mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8212001: Verify exported symbols in java.base (libjava)
Reviewed-by: chegar
This commit is contained in:
parent
9701ffd293
commit
01a3fec4cb
5 changed files with 5 additions and 8 deletions
|
@ -201,7 +201,7 @@ writeBytes(JNIEnv *env, jobject this, jbyteArray bytes,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL
|
void
|
||||||
throwFileNotFoundException(JNIEnv *env, jstring path)
|
throwFileNotFoundException(JNIEnv *env, jstring path)
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
|
@ -54,8 +54,7 @@ void writeSingle(JNIEnv *env, jobject this, jint byte, jboolean append, jfieldID
|
||||||
void writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off,
|
void writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off,
|
||||||
jint len, jboolean append, jfieldID fid);
|
jint len, jboolean append, jfieldID fid);
|
||||||
void fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags);
|
void fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags);
|
||||||
JNIEXPORT void JNICALL
|
void throwFileNotFoundException(JNIEnv *env, jstring path);
|
||||||
throwFileNotFoundException(JNIEnv *env, jstring path);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Macros for managing platform strings. The typical usage pattern is:
|
* Macros for managing platform strings. The typical usage pattern is:
|
||||||
|
|
|
@ -213,8 +213,7 @@ pathToNTPath(JNIEnv *env, jstring path, jboolean throwFNFE) {
|
||||||
return pathbuf;
|
return pathbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT FD JNICALL
|
FD winFileHandleOpen(JNIEnv *env, jstring path, int flags)
|
||||||
winFileHandleOpen(JNIEnv *env, jstring path, int flags)
|
|
||||||
{
|
{
|
||||||
const DWORD access =
|
const DWORD access =
|
||||||
(flags & O_WRONLY) ? GENERIC_WRITE :
|
(flags & O_WRONLY) ? GENERIC_WRITE :
|
||||||
|
|
|
@ -56,8 +56,7 @@ handleLseek(FD fd, jlong offset, jint whence);
|
||||||
* Returns an opaque handle to file named by "path". If an error occurs,
|
* Returns an opaque handle to file named by "path". If an error occurs,
|
||||||
* returns -1 and an exception is pending.
|
* returns -1 and an exception is pending.
|
||||||
*/
|
*/
|
||||||
JNIEXPORT FD JNICALL
|
FD winFileHandleOpen(JNIEnv *env, jstring path, int flags);
|
||||||
winFileHandleOpen(JNIEnv *env, jstring path, int flags);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Macros to set/get fd from the java.io.FileDescriptor.
|
* Macros to set/get fd from the java.io.FileDescriptor.
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file implements a binding between Java and the hsdis
|
* This file implements a binding between Java and the hsdis
|
||||||
* dissasembler. It should compile on Linux/Solaris and Windows.
|
* disassembler. It should compile on Linux/Solaris and Windows.
|
||||||
* The only platform dependent pieces of the code for doing
|
* The only platform dependent pieces of the code for doing
|
||||||
* dlopen/dlsym to find the entry point in hsdis. All the rest is
|
* dlopen/dlsym to find the entry point in hsdis. All the rest is
|
||||||
* standard JNI code.
|
* standard JNI code.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue