< prev index next > src/java.base/windows/native/libnio/ch/IOUtil.c
Print this page
/*
! * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
/*
! * Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
#define SET_BLOCKING 0
#define SET_NONBLOCKING 1
JNIEXPORT void JNICALL
Java_sun_nio_ch_IOUtil_configureBlocking(JNIEnv *env, jclass clazz,
! jobject fdo, jboolean blocking)
{
u_long argp;
int result = 0;
- jint fd = fdval(env, fdo);
if (blocking == JNI_FALSE) {
argp = SET_NONBLOCKING;
} else {
argp = SET_BLOCKING;
#define SET_BLOCKING 0
#define SET_NONBLOCKING 1
JNIEXPORT void JNICALL
Java_sun_nio_ch_IOUtil_configureBlocking(JNIEnv *env, jclass clazz,
! jint fd, jboolean blocking)
{
u_long argp;
int result = 0;
if (blocking == JNI_FALSE) {
argp = SET_NONBLOCKING;
} else {
argp = SET_BLOCKING;
< prev index next >