mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8245619: Remove unused methods in UnixNativeDispatcher
Reviewed-by: alanb
This commit is contained in:
parent
113c48f5da
commit
de37507b8e
2 changed files with 0 additions and 101 deletions
|
@ -97,27 +97,6 @@ class UnixNativeDispatcher {
|
|||
}
|
||||
private static native void close0(int fd);
|
||||
|
||||
/**
|
||||
* FILE* fopen(const char *filename, const char* mode);
|
||||
*/
|
||||
static long fopen(UnixPath filename, String mode) throws UnixException {
|
||||
NativeBuffer pathBuffer = copyToNativeBuffer(filename);
|
||||
NativeBuffer modeBuffer = NativeBuffers.asNativeBuffer(Util.toBytes(mode));
|
||||
try {
|
||||
return fopen0(pathBuffer.address(), modeBuffer.address());
|
||||
} finally {
|
||||
modeBuffer.release();
|
||||
pathBuffer.release();
|
||||
}
|
||||
}
|
||||
private static native long fopen0(long pathAddress, long modeAddress)
|
||||
throws UnixException;
|
||||
|
||||
/**
|
||||
* fclose(FILE* stream)
|
||||
*/
|
||||
static native void fclose(long stream) throws UnixException;
|
||||
|
||||
/**
|
||||
* void rewind(FILE* stream);
|
||||
*/
|
||||
|
@ -579,25 +558,6 @@ class UnixNativeDispatcher {
|
|||
private static native void statvfs0(long pathAddress, UnixFileStoreAttributes attrs)
|
||||
throws UnixException;
|
||||
|
||||
/**
|
||||
* long int pathconf(const char *path, int name);
|
||||
*/
|
||||
static long pathconf(UnixPath path, int name) throws UnixException {
|
||||
NativeBuffer buffer = copyToNativeBuffer(path);
|
||||
try {
|
||||
return pathconf0(buffer.address(), name);
|
||||
} finally {
|
||||
buffer.release();
|
||||
}
|
||||
}
|
||||
private static native long pathconf0(long pathAddress, int name)
|
||||
throws UnixException;
|
||||
|
||||
/**
|
||||
* long fpathconf(int fildes, int name);
|
||||
*/
|
||||
static native long fpathconf(int filedes, int name) throws UnixException;
|
||||
|
||||
/**
|
||||
* char* strerror(int errnum)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue