diff options
author | Narayan Kamath <narayan@google.com> | 2015-01-16 17:51:59 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-01-16 18:49:12 +0000 |
commit | c8d9ea662de6f4856b28907b4119087cfc5a44d2 (patch) | |
tree | 20dfc61e0f134a3f5770ec95fcafbf7909206cbf /luni/src/main/java/android | |
parent | 7861c3e60b7769a9cce11015a48842f1b1712360 (diff) | |
download | libcore-c8d9ea662de6f4856b28907b4119087cfc5a44d2.zip libcore-c8d9ea662de6f4856b28907b4119087cfc5a44d2.tar.gz libcore-c8d9ea662de6f4856b28907b4119087cfc5a44d2.tar.bz2 |
Add fcntlInt.
Hidden for now, for use from the frameworks.
Change-Id: I30d95b28ecbc422aaa5bf28fb2f288c3ca026493
Diffstat (limited to 'luni/src/main/java/android')
-rw-r--r-- | luni/src/main/java/android/system/Os.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/luni/src/main/java/android/system/Os.java b/luni/src/main/java/android/system/Os.java index 1cdaf14..73b999a 100644 --- a/luni/src/main/java/android/system/Os.java +++ b/luni/src/main/java/android/system/Os.java @@ -109,9 +109,10 @@ public final class Os { */ public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.fchown(fd, uid, gid); } - /** @hide */ public static int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { return Libcore.os.fcntlVoid(fd, cmd); } - /** @hide */ public static int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return Libcore.os.fcntlLong(fd, cmd, arg); } /** @hide */ public static int fcntlFlock(FileDescriptor fd, int cmd, StructFlock arg) throws ErrnoException, InterruptedIOException { return Libcore.os.fcntlFlock(fd, cmd, arg); } + /** @hide */ public static int fcntlInt(FileDescriptor fd, int cmd, int arg) throws ErrnoException { return Libcore.os.fcntlInt(fd, cmd, arg); } + /** @hide */ public static int fcntlLong(FileDescriptor fd, int cmd, long arg) throws ErrnoException { return Libcore.os.fcntlLong(fd, cmd, arg); } + /** @hide */ public static int fcntlVoid(FileDescriptor fd, int cmd) throws ErrnoException { return Libcore.os.fcntlVoid(fd, cmd); } /** * See <a href="http://man7.org/linux/man-pages/man2/fdatasync.2.html">fdatasync(2)</a>. |