equal
deleted
inserted
replaced
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 |