src/java.base/windows/native/libnio/ch/IOUtil.c
branchunixdomainchannels
changeset 58856 b2f0339a4cad
parent 58847 692de65ab293
equal deleted inserted replaced
58848:c3df0f8b6d93 58856:b2f0339a4cad
   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 fdval(JNIEnv *env, jobject fdo)
   195 jint
       
   196 fdval(JNIEnv *env, jobject fdo)
   196 {
   197 {
   197     return (*env)->GetIntField(env, fdo, fd_fdID);
   198     return (*env)->GetIntField(env, fdo, fd_fdID);
   198 }
   199 }
   199 
   200 
   200 void setfdval(JNIEnv *env, jobject fdo, jint val)
   201 void
       
   202 setfdval(JNIEnv *env, jobject fdo, jint val)
   201 {
   203 {
   202     (*env)->SetIntField(env, fdo, fd_fdID, val);
   204     (*env)->SetIntField(env, fdo, fd_fdID, val);
   203 }
   205 }
   204 
   206 
   205 jlong
   207 jlong