summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-03-15 16:13:35 -0700
committerElliott Hughes <enh@google.com>2011-03-15 16:13:35 -0700
commitcdf7a1f942469221bcfd63d9cdf71851b011eaf0 (patch)
tree783786af5c910cdcf0b37e46985ef3d7fd2c4f5e /dalvik
parent5d33c6339eac79ef7db2edb90e2207c1cab0bf63 (diff)
downloadlibcore-cdf7a1f942469221bcfd63d9cdf71851b011eaf0.zip
libcore-cdf7a1f942469221bcfd63d9cdf71851b011eaf0.tar.gz
libcore-cdf7a1f942469221bcfd63d9cdf71851b011eaf0.tar.bz2
Expose POSIX constants.
And use them, too. This patch is a little confusing because we already had constants in Java that were using the POSIX names but that didn't actually correspond to the constants whose names they'd stolen. Ugh. Bug: 3107501 Change-Id: Ib64a109c9340b0ecdf80bec91074206c001f455a
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/BlockGuard.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java
index 0f7ff10..d2d6862 100644
--- a/dalvik/src/main/java/dalvik/system/BlockGuard.java
+++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java
@@ -202,18 +202,16 @@ public final class BlockGuard {
return mFileSystem.writeDirect(fileDescriptor, address, offset, length);
}
- public boolean lock(int fileDescriptor, long start, long length, int type,
+ public boolean lock(int fileDescriptor, long start, long length, boolean shared,
boolean waitFlag) throws IOException {
- return mFileSystem.lock(fileDescriptor, start, length, type, waitFlag);
+ return mFileSystem.lock(fileDescriptor, start, length, shared, waitFlag);
}
- public void unlock(int fileDescriptor, long start, long length)
- throws IOException {
+ public void unlock(int fileDescriptor, long start, long length) throws IOException {
mFileSystem.unlock(fileDescriptor, start, length);
}
- public long seek(int fileDescriptor, long offset, int whence)
- throws IOException {
+ public long seek(int fileDescriptor, long offset, int whence) throws IOException {
return mFileSystem.seek(fileDescriptor, offset, whence);
}