diff options
author | Elliott Hughes <enh@google.com> | 2011-03-24 16:38:05 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-03-24 16:38:05 -0700 |
commit | fc549a0b0388987b26dea524894d75a63d14783b (patch) | |
tree | 208631602082e9dc5347ea1a2e22d2a169b14852 /dalvik | |
parent | 7341b9ed7157a1e37a3e69a0974676da358b735a (diff) | |
download | libcore-fc549a0b0388987b26dea524894d75a63d14783b.zip libcore-fc549a0b0388987b26dea524894d75a63d14783b.tar.gz libcore-fc549a0b0388987b26dea524894d75a63d14783b.tar.bz2 |
Add fcntl(2).
I initially used overloading, but that actually decreases safety in practice
because which overload you need is (uniquely) determined by the specific
command you're issuing. Forcing callers to explicitly state what they're
doing works around this. As it was, I had to use strace(1) to find my bug.
Bug: 3107501
Change-Id: Ia54b72dd6453372922f01b22f382eb93ac91aaa7
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/BlockGuard.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java index c5c5d7c..7eefedb 100644 --- a/dalvik/src/main/java/dalvik/system/BlockGuard.java +++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java @@ -202,15 +202,6 @@ public final class BlockGuard { return mFileSystem.writeDirect(fileDescriptor, address, offset, length); } - public boolean lock(int fileDescriptor, long start, long length, boolean shared, - boolean waitFlag) throws IOException { - return mFileSystem.lock(fileDescriptor, start, length, shared, waitFlag); - } - - public void unlock(int fileDescriptor, long start, long length) throws IOException { - mFileSystem.unlock(fileDescriptor, start, length); - } - public long transfer(int fileHandler, FileDescriptor socketDescriptor, long offset, long count) throws IOException { return mFileSystem.transfer(fileHandler, socketDescriptor, offset, count); |