8245619: Remove unused methods in UnixNativeDispatcher

Reviewed-by: alanb
This commit is contained in:
Claes Redestad 2020-05-22 12:10:55 +02:00
parent 113c48f5da
commit de37507b8e
2 changed files with 0 additions and 101 deletions

View file

@ -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)
*/