summaryrefslogtreecommitdiffstats
path: root/luni/src
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-03-16 21:02:52 +0900
committerLorenzo Colitti <lorenzo@google.com>2015-03-16 21:50:16 +0900
commit36f73b3bd9014eaf47663b85fb185b95fbf7a3a6 (patch)
tree2418f2494d4ba54caae24e0ecf80f08d7f28cf6f /luni/src
parent71f075469264b2ae9fbfae18d4601e1675f00956 (diff)
downloadlibcore-36f73b3bd9014eaf47663b85fb185b95fbf7a3a6.zip
libcore-36f73b3bd9014eaf47663b85fb185b95fbf7a3a6.tar.gz
libcore-36f73b3bd9014eaf47663b85fb185b95fbf7a3a6.tar.bz2
Expose the SocketAddress variant to bundled apps.
Change-Id: I6b7985f23c1063c0cf68a12bf510da032bbd3e94
Diffstat (limited to 'luni/src')
-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); }