Index: libraries/nacl-mounts/base/Entry.cc |
=================================================================== |
--- libraries/nacl-mounts/base/Entry.cc (revision 594) |
+++ libraries/nacl-mounts/base/Entry.cc (working copy) |
@@ -169,6 +169,10 @@ |
return kp->kill(pid, sig); |
} |
+ struct hostent* gethostbyname(const char* name) { |
+ return kp->gethostbyname(name); |
+ } |
+ |
int unlink(const char *path) { |
return kp->unlink(path); |
} |
@@ -404,6 +408,11 @@ |
return (*ret < 0) ? errno : 0; |
} |
+ struct hostent* WRAP(gethostbyname) (const char* name) { |
+ return kp->gethostbyname(name); |
+ } |
+ |
+ |
int WRAP(getsockname) (int sockfd, struct sockaddr* addr, |
socklen_t* addrlen) { |
return (kp->getsockname(sockfd, addr, addrlen)) < 0 ? errno : 0; |