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

Unified Diff: libraries/nacl-mounts/base/Entry.cc

Issue 10392070: Socket subsystem implementation (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 8 years, 7 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: libraries/nacl-mounts/base/Entry.cc
===================================================================
--- libraries/nacl-mounts/base/Entry.cc (revision 583)
+++ 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;

Powered by Google App Engine
This is Rietveld 408576698