< prev index next >

src/java.base/unix/native/libjava/FileDescriptor_md.c

Print this page

        

*** 24,36 **** */ #include <unistd.h> #include <fcntl.h> #include "jvm.h" - #include "io_util_md.h" #include "java_io_FileDescriptor.h" /*******************************************************************/ /* BEGIN JNI ********* BEGIN JNI *********** BEGIN JNI ************/ /*******************************************************************/ --- 24,38 ---- */ #include <unistd.h> #include <fcntl.h> + #include "jni.h" + #include "jni_util.h" #include "jvm.h" + #include "io_util_md.h" #include "java_io_FileDescriptor.h" /*******************************************************************/ /* BEGIN JNI ********* BEGIN JNI *********** BEGIN JNI ************/ /*******************************************************************/
*** 45,56 **** * static methods to store field ID's in initializers */ JNIEXPORT void JNICALL Java_java_io_FileDescriptor_initIDs(JNIEnv *env, jclass fdClass) { ! IO_fd_fdID = (*env)->GetFieldID(env, fdClass, "fd", "I"); ! IO_append_fdID = (*env)->GetFieldID(env, fdClass, "append", "Z"); } /************************************************************** * File Descriptor */ --- 47,58 ---- * static methods to store field ID's in initializers */ JNIEXPORT void JNICALL Java_java_io_FileDescriptor_initIDs(JNIEnv *env, jclass fdClass) { ! CHECK_NULL(IO_fd_fdID = (*env)->GetFieldID(env, fdClass, "fd", "I")); ! CHECK_NULL(IO_append_fdID = (*env)->GetFieldID(env, fdClass, "append", "Z")); } /************************************************************** * File Descriptor */
< prev index next >