summaryrefslogtreecommitdiffstats
path: root/luni/src/main/java/android
diff options
context:
space:
mode:
authorPaul Jensen <pauljensen@google.com>2014-05-12 23:40:42 -0400
committerLorenzo Colitti <lorenzo@google.com>2014-05-13 19:46:56 -0700
commit3e58734d651080009c9190c7062837fca5c7cf4e (patch)
treed213742063128c6be8b785ae4fd7816b95a71879 /luni/src/main/java/android
parent8f3ae282cb56de80de35b90408c9d832c8e3c424 (diff)
downloadlibcore-3e58734d651080009c9190c7062837fca5c7cf4e.zip
libcore-3e58734d651080009c9190c7062837fca5c7cf4e.tar.gz
libcore-3e58734d651080009c9190c7062837fca5c7cf4e.tar.bz2
Add support for network-specific host name resolution.
For now all such support is hidden. Change-Id: I932f73158a8f6e3ccc36c319d138180dff2aa070
Diffstat (limited to 'luni/src/main/java/android')
-rw-r--r--luni/src/main/java/android/system/Os.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/luni/src/main/java/android/system/Os.java b/luni/src/main/java/android/system/Os.java
index beb785f..0b80b52 100644
--- a/luni/src/main/java/android/system/Os.java
+++ b/luni/src/main/java/android/system/Os.java
@@ -61,6 +61,8 @@ public final class Os {
*/
public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.access(path, mode); }
+ /** @hide */ public static InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getaddrinfo(node, hints, netId); }
+
/**
* See <a href="http://man7.org/linux/man-pages/man2/bind.2.html">bind(2)</a>.
*/
@@ -155,8 +157,6 @@ public final class Os {
*/
public static String gai_strerror(int error) { return Libcore.os.gai_strerror(error); }
- /** @hide */ public static InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException { return Libcore.os.getaddrinfo(node, hints); }
-
/**
* See <a href="http://man7.org/linux/man-pages/man2/getegid.2.html">getegid(2)</a>.
*/