src/java.base/share/native/libjava/RandomAccessFile.c

Print this page
rev 10519 : 8054720: Modifications of I/O methods for instrumentation purposes
Summary: Wrap some native methods in Java methods.
Reviewed-by: TBD

*** 45,55 **** raf_fd = (*env)->GetFieldID(env, fdClass, "fd", "Ljava/io/FileDescriptor;"); } JNIEXPORT void JNICALL ! Java_java_io_RandomAccessFile_open(JNIEnv *env, jobject this, jstring path, jint mode) { int flags = 0; if (mode & java_io_RandomAccessFile_O_RDONLY) flags = O_RDONLY; --- 45,55 ---- raf_fd = (*env)->GetFieldID(env, fdClass, "fd", "Ljava/io/FileDescriptor;"); } JNIEXPORT void JNICALL ! Java_java_io_RandomAccessFile_open0(JNIEnv *env, jobject this, jstring path, jint mode) { int flags = 0; if (mode & java_io_RandomAccessFile_O_RDONLY) flags = O_RDONLY;