src/share/native/java/io/RandomAccessFile.c

Print this page
rev 10457 : 8054720: Modifications of I/O methods for instrumentation purposes
Summary: Wrap some native methods in Java methods and change native method names to a consistent form.
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;