< prev index next > src/java.base/unix/native/libnio/ch/IOUtil.c
Print this page
/*
- * Copyright (c) 2000, 2021, Oracle and/or its affiliates. All rights reserved.
+ * 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
return (flags == newflags) ? 0 : fcntl(fd, F_SETFL, newflags);
}
JNIEXPORT void JNICALL
- Java_sun_nio_ch_IOUtil_configureBlocking(JNIEnv *env, jclass clazz,
- jobject fdo, jboolean blocking)
+ Java_sun_nio_ch_IOUtil_configureBlocking(JNIEnv *env, jclass clazz, jint fd, jboolean blocking)
{
- if (configureBlocking(fdval(env, fdo), blocking) < 0)
+ if (configureBlocking(fd, blocking) < 0)
JNU_ThrowIOExceptionWithLastError(env, "Configure blocking failed");
}
JNIEXPORT jlong JNICALL
Java_sun_nio_ch_IOUtil_makePipe(JNIEnv *env, jobject this, jboolean blocking)
< prev index next >