summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-03-16 13:31:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-16 13:31:17 +0000
commit6ff8e03ef67c204565ceb3679029a0b88bdfaa62 (patch)
tree2418f2494d4ba54caae24e0ecf80f08d7f28cf6f
parent29e698e33247219311a98756833439a7a4f1e71a (diff)
parentba6caa1cf21e2f9245b9717570117c6ec6b951b3 (diff)
downloadlibcore-6ff8e03ef67c204565ceb3679029a0b88bdfaa62.zip
libcore-6ff8e03ef67c204565ceb3679029a0b88bdfaa62.tar.gz
libcore-6ff8e03ef67c204565ceb3679029a0b88bdfaa62.tar.bz2
am ba6caa1c: Merge "Expose the SocketAddress variant to bundled apps."
* commit 'ba6caa1cf21e2f9245b9717570117c6ec6b951b3': Expose the SocketAddress variant to bundled apps.
-rw-r--r--luni/src/main/java/android/system/Os.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/luni/src/main/java/android/system/Os.java b/luni/src/main/java/android/system/Os.java
index ee683d2..fcecf18 100644
--- a/luni/src/main/java/android/system/Os.java
+++ b/luni/src/main/java/android/system/Os.java
@@ -410,6 +410,11 @@ public final class Os {
public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port); }
/**
+ * See <a href="http://man7.org/linux/man-pages/man2/sendto.2.html">sendto(2)</a>.
+ */
+ /** @hide */ public static int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, SocketAddress address) throws ErrnoException, SocketException { return Libcore.os.sendto(fd, bytes, byteOffset, byteCount, flags, address); }
+
+ /**
* See <a href="http://man7.org/linux/man-pages/man2/setegid.2.html">setegid(2)</a>.
*/
public static void setegid(int egid) throws ErrnoException { Libcore.os.setegid(egid); }