equal
deleted
inserted
replaced
53 |
53 |
54 long writev(FileDescriptor fd, long address, int len) throws IOException { |
54 long writev(FileDescriptor fd, long address, int len) throws IOException { |
55 return writev0(fd, address, len); |
55 return writev0(fd, address, len); |
56 } |
56 } |
57 |
57 |
58 void close(FileDescriptor fd) throws IOException { |
58 void preClose(FileDescriptor fd) throws IOException { |
|
59 preClose0(fd); |
59 } |
60 } |
60 |
61 |
61 void preClose(FileDescriptor fd) throws IOException { |
62 void close(FileDescriptor fd) throws IOException { |
62 close0(fd); |
63 close0(fd); |
63 } |
64 } |
64 |
65 |
65 //-- Native methods |
66 //-- Native methods |
66 static native int read0(FileDescriptor fd, long address, int len) |
67 static native int read0(FileDescriptor fd, long address, int len) |
73 throws IOException; |
74 throws IOException; |
74 |
75 |
75 static native long writev0(FileDescriptor fd, long address, int len) |
76 static native long writev0(FileDescriptor fd, long address, int len) |
76 throws IOException; |
77 throws IOException; |
77 |
78 |
|
79 static native void preClose0(FileDescriptor fd) throws IOException; |
|
80 |
78 static native void close0(FileDescriptor fd) throws IOException; |
81 static native void close0(FileDescriptor fd) throws IOException; |
79 } |
82 } |