diff options
Diffstat (limited to 'libjava/java/io/FileDescriptor.java')
-rw-r--r-- | libjava/java/io/FileDescriptor.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/java/io/FileDescriptor.java b/libjava/java/io/FileDescriptor.java index b713e1bf688..109d2468783 100644 --- a/libjava/java/io/FileDescriptor.java +++ b/libjava/java/io/FileDescriptor.java @@ -208,6 +208,10 @@ public final class FileDescriptor native long getLength() throws IOException; native void setLength(long pos) throws IOException; + native void lock(long pos, int len, boolean shared) throws IOException; + native boolean tryLock(long pos, int lent, boolean shared) throws IOException; + native void unlock(long pos, int len) throws IOException; + // When collected, close. protected void finalize() throws Throwable { |