< prev index next >

src/java.base/unix/classes/sun/nio/ch/FileDispatcherImpl.java

Print this page

        

*** 28,37 **** --- 28,39 ---- import java.io.FileDescriptor; import java.io.IOException; class FileDispatcherImpl extends FileDispatcher { + private int pageSize = -1; + static { IOUtil.load(); init(); }
*** 50,59 **** --- 52,75 ---- long readv(FileDescriptor fd, long address, int len) throws IOException { return readv0(fd, address, len); } + int readDirect(FileDescriptor fd, long address, int len) throws IOException { + return readDirect0(fd, address, len); + } + + int preadDirect(FileDescriptor fd, long address, int len, long position) + throws IOException + { + return preadDirect0(fd, address, len, position); + } + + long readvDirect(FileDescriptor fd, long address, int len) throws IOException { + return readvDirect0(fd, address, len); + } + int write(FileDescriptor fd, long address, int len) throws IOException { return write0(fd, address, len); } int pwrite(FileDescriptor fd, long address, int len, long position)
*** 66,75 **** --- 82,107 ---- throws IOException { return writev0(fd, address, len); } + int writeDirect(FileDescriptor fd, long address, int len) throws IOException { + return writeDirect0(fd, address, len); + } + + int pwriteDirect(FileDescriptor fd, long address, int len, long position) + throws IOException + { + return pwriteDirect0(fd, address, len, position); + } + + long writevDirect(FileDescriptor fd, long address, int len) + throws IOException + { + return writevDirect0(fd, address, len); + } + int force(FileDescriptor fd, boolean metaData) throws IOException { return force0(fd, metaData); } int truncate(FileDescriptor fd, long size) throws IOException {
*** 121,139 **** --- 153,189 ---- long position) throws IOException; static native long readv0(FileDescriptor fd, long address, int len) throws IOException; + static native int readDirect0(FileDescriptor fd, long address, int len) + throws IOException; + + static native int preadDirect0(FileDescriptor fd, long address, int len, + long position) throws IOException; + + static native long readvDirect0(FileDescriptor fd, long address, int len) + throws IOException; + static native int write0(FileDescriptor fd, long address, int len) throws IOException; static native int pwrite0(FileDescriptor fd, long address, int len, long position) throws IOException; static native long writev0(FileDescriptor fd, long address, int len) throws IOException; + static native int writeDirect0(FileDescriptor fd, long address, int len) + throws IOException; + + static native int pwriteDirect0(FileDescriptor fd, long address, int len, + long position) throws IOException; + + static native long writevDirect0(FileDescriptor fd, long address, int len) + throws IOException; + static native int force0(FileDescriptor fd, boolean metaData) throws IOException; static native int truncate0(FileDescriptor fd, long size) throws IOException;
*** 151,157 **** static native void preClose0(FileDescriptor fd) throws IOException; static native void closeIntFD(int fd) throws IOException; static native void init(); - } --- 201,206 ----
< prev index next >