equal
deleted
inserted
replaced
42 SharedSecrets.getJavaIOFileDescriptorAccess(); |
42 SharedSecrets.getJavaIOFileDescriptorAccess(); |
43 |
43 |
44 FileDispatcherImpl() { |
44 FileDispatcherImpl() { |
45 } |
45 } |
46 |
46 |
47 int read(FileDescriptor fd, long address, int len) throws IOException { |
47 public int read(FileDescriptor fd, long address, int len) throws IOException { |
48 return read0(fd, address, len); |
48 return read0(fd, address, len); |
49 } |
49 } |
50 |
50 |
51 int pread(FileDescriptor fd, long address, int len, long position) |
51 int pread(FileDescriptor fd, long address, int len, long position) |
52 throws IOException |
52 throws IOException |
56 |
56 |
57 long readv(FileDescriptor fd, long address, int len) throws IOException { |
57 long readv(FileDescriptor fd, long address, int len) throws IOException { |
58 return readv0(fd, address, len); |
58 return readv0(fd, address, len); |
59 } |
59 } |
60 |
60 |
61 int write(FileDescriptor fd, long address, int len) throws IOException { |
61 public int write(FileDescriptor fd, long address, int len) throws IOException { |
62 return write0(fd, address, len); |
62 return write0(fd, address, len); |
63 } |
63 } |
64 |
64 |
65 int pwrite(FileDescriptor fd, long address, int len, long position) |
65 int pwrite(FileDescriptor fd, long address, int len, long position) |
66 throws IOException |
66 throws IOException |
98 |
98 |
99 void release(FileDescriptor fd, long pos, long size) throws IOException { |
99 void release(FileDescriptor fd, long pos, long size) throws IOException { |
100 release0(fd, pos, size); |
100 release0(fd, pos, size); |
101 } |
101 } |
102 |
102 |
103 void close(FileDescriptor fd) throws IOException { |
103 public void close(FileDescriptor fd) throws IOException { |
104 fdAccess.close(fd); |
104 fdAccess.close(fd); |
105 } |
105 } |
106 |
106 |
107 void preClose(FileDescriptor fd) throws IOException { |
107 public void preClose(FileDescriptor fd) throws IOException { |
108 preClose0(fd); |
108 preClose0(fd); |
109 } |
109 } |
110 |
110 |
111 FileDescriptor duplicateForMapping(FileDescriptor fd) { |
111 FileDescriptor duplicateForMapping(FileDescriptor fd) { |
112 // file descriptor not required for mapping operations; okay |
112 // file descriptor not required for mapping operations; okay |