Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1771)

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc

Issue 99933002: [NaCl SDK] nacl_io: implement getaddrinfo() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
index 615e7d248e356675fda514932807077926d5b02a..9c59b6a209394c4ecf48e8452193679b8cfe0dad 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
@@ -1264,6 +1264,16 @@ int KernelProxy::connect(int fd, const struct sockaddr* addr, socklen_t len) {
return 0;
}
+void KernelProxy::freeaddrinfo(struct addrinfo *res) {
+ return host_resolver_.freeaddrinfo(res);
+}
+
+int KernelProxy::getaddrinfo(const char* node, const char* service,
+ const struct addrinfo* hints,
+ struct addrinfo** res) {
+ return host_resolver_.getaddrinfo(node, service, hints, res);
binji 2014/01/29 19:18:52 In the man pages it says EAI_SYSTEM should set err
Sam Clegg 2014/01/29 22:06:13 That would be a little more complicated, since our
+}
+
struct hostent* KernelProxy::gethostbyname(const char* name) {
return host_resolver_.gethostbyname(name);
}

Powered by Google App Engine
This is Rietveld 408576698