equal
deleted
inserted
replaced
46 @Override |
46 @Override |
47 boolean needsPositionLock() { |
47 boolean needsPositionLock() { |
48 return true; |
48 return true; |
49 } |
49 } |
50 |
50 |
51 int read(FileDescriptor fd, long address, int len) |
51 public int read(FileDescriptor fd, long address, int len) |
52 throws IOException |
52 throws IOException |
53 { |
53 { |
54 return read0(fd, address, len); |
54 return read0(fd, address, len); |
55 } |
55 } |
56 |
56 |
62 |
62 |
63 long readv(FileDescriptor fd, long address, int len) throws IOException { |
63 long readv(FileDescriptor fd, long address, int len) throws IOException { |
64 return readv0(fd, address, len); |
64 return readv0(fd, address, len); |
65 } |
65 } |
66 |
66 |
67 int write(FileDescriptor fd, long address, int len) throws IOException { |
67 public int write(FileDescriptor fd, long address, int len) throws IOException { |
68 return write0(fd, address, len, fdAccess.getAppend(fd)); |
68 return write0(fd, address, len, fdAccess.getAppend(fd)); |
69 } |
69 } |
70 |
70 |
71 int pwrite(FileDescriptor fd, long address, int len, long position) |
71 int pwrite(FileDescriptor fd, long address, int len, long position) |
72 throws IOException |
72 throws IOException |
102 |
102 |
103 void release(FileDescriptor fd, long pos, long size) throws IOException { |
103 void release(FileDescriptor fd, long pos, long size) throws IOException { |
104 release0(fd, pos, size); |
104 release0(fd, pos, size); |
105 } |
105 } |
106 |
106 |
107 void close(FileDescriptor fd) throws IOException { |
107 public void close(FileDescriptor fd) throws IOException { |
108 fdAccess.close(fd); |
108 fdAccess.close(fd); |
109 } |
109 } |
110 |
110 |
111 FileDescriptor duplicateForMapping(FileDescriptor fd) throws IOException { |
111 FileDescriptor duplicateForMapping(FileDescriptor fd) throws IOException { |
112 // on Windows we need to keep a handle to the file |
112 // on Windows we need to keep a handle to the file |