Lines Matching refs:fd

45     int read(FileDescriptor fd, long address, int len) throws IOException {
46 return read0(fd, address, len);
49 int pread(FileDescriptor fd, long address, int len, long position)
52 return pread0(fd, address, len, position);
55 long readv(FileDescriptor fd, long address, int len) throws IOException {
56 return readv0(fd, address, len);
59 int write(FileDescriptor fd, long address, int len) throws IOException {
60 return write0(fd, address, len);
63 int pwrite(FileDescriptor fd, long address, int len, long position)
66 return pwrite0(fd, address, len, position);
69 long writev(FileDescriptor fd, long address, int len)
72 return writev0(fd, address, len);
75 int force(FileDescriptor fd, boolean metaData) throws IOException {
76 return force0(fd, metaData);
79 int truncate(FileDescriptor fd, long size) throws IOException {
80 return truncate0(fd, size);
83 long size(FileDescriptor fd) throws IOException {
84 return size0(fd);
87 int lock(FileDescriptor fd, boolean blocking, long pos, long size,
90 return lock0(fd, blocking, pos, size, shared);
93 void release(FileDescriptor fd, long pos, long size) throws IOException {
94 release0(fd, pos, size);
97 void close(FileDescriptor fd) throws IOException {
98 close0(fd);
101 void preClose(FileDescriptor fd) throws IOException {
102 preClose0(fd);
105 FileDescriptor duplicateForMapping(FileDescriptor fd) {
113 static native int read0(FileDescriptor fd, long address, int len)
116 static native int pread0(FileDescriptor fd, long address, int len,
119 static native long readv0(FileDescriptor fd, long address, int len)
122 static native int write0(FileDescriptor fd, long address, int len)
125 static native int pwrite0(FileDescriptor fd, long address, int len,
128 static native long writev0(FileDescriptor fd, long address, int len)
131 static native int force0(FileDescriptor fd, boolean metaData)
134 static native int truncate0(FileDescriptor fd, long size)
137 static native long size0(FileDescriptor fd) throws IOException;
139 static native int lock0(FileDescriptor fd, boolean blocking, long pos,
142 static native void release0(FileDescriptor fd, long pos, long size)
145 static native void close0(FileDescriptor fd) throws IOException;
147 static native void preClose0(FileDescriptor fd) throws IOException;
149 static native void closeIntFD(int fd) throws IOException;