src/java.base/windows/native/libnio/ch/IOUtil.c
branchunixdomainchannels
changeset 58801 119ac9128c1b
parent 54154 1caf2daef7cf
child 58847 692de65ab293
equal deleted inserted replaced
58799:eb491334113f 58801:119ac9128c1b
   190 }
   190 }
   191 
   191 
   192 /* Note: This function returns the int fd value from file descriptor.
   192 /* Note: This function returns the int fd value from file descriptor.
   193    It is mostly used for sockets which should use the int fd value.
   193    It is mostly used for sockets which should use the int fd value.
   194 */
   194 */
   195 jint
   195 JNIEXPORT jint JNICALL
   196 fdval(JNIEnv *env, jobject fdo)
   196 fdval(JNIEnv *env, jobject fdo)
   197 {
   197 {
   198     return (*env)->GetIntField(env, fdo, fd_fdID);
   198     return (*env)->GetIntField(env, fdo, fd_fdID);
   199 }
   199 }
   200 
   200 
   201 void
   201 JNIEXPORT void JNICALL
   202 setfdval(JNIEnv *env, jobject fdo, jint val)
   202 setfdval(JNIEnv *env, jobject fdo, jint val)
   203 {
   203 {
   204     (*env)->SetIntField(env, fdo, fd_fdID, val);
   204     (*env)->SetIntField(env, fdo, fd_fdID, val);
   205 }
   205 }
   206 
   206