< prev index next >
src/java.base/unix/classes/sun/nio/ch/FileDispatcherImpl.java
Print this page
*** 120,129 ****
--- 120,140 ----
boolean transferToDirectlyNeedsPositionLock() {
return false;
}
+ int setDirectIO(FileDescriptor fd, String path) {
+ int result = -1;
+ try {
+ result = setDirect0(fd);
+ } catch (IOException e) {
+ throw new UnsupportedOperationException
+ ("Error setting up DirectIO", e);
+ }
+ return result;
+ }
+
// -- Native methods --
static native int read0(FileDescriptor fd, long address, int len)
throws IOException;
*** 165,172 ****
--- 176,185 ----
static native void preClose0(FileDescriptor fd) throws IOException;
static native void closeIntFD(int fd) throws IOException;
+ static native int setDirect0(FileDescriptor fd) throws IOException;
+
static native void init();
}
< prev index next >