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

Unified Diff: libraries/nacl-mounts/net/SocketSubSystem.cc

Issue 10556007: changes in memory mount and socket subsystem to port thttpd (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: Created 8 years, 6 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/net/SocketSubSystem.cc
===================================================================
--- libraries/nacl-mounts/net/SocketSubSystem.cc (revision 598)
+++ libraries/nacl-mounts/net/SocketSubSystem.cc (working copy)
@@ -29,6 +29,12 @@
AddHostAddress("localhost", 0x7F000001);
}
+int SocketSubSystem::setsockopt(Socket* stream, int level, int optname,
+ const void* optval, socklen_t optlen) {
+ // this is just a placeholder, chromium does not provide api for this yet
+ return 0;
+}
+
uint32_t SocketSubSystem::AddHostAddress(const char* name, uint32_t addr) {
return addr;
}
@@ -101,7 +107,6 @@
hints->ai_family != AF_INET6) {
*pres = PP_ERROR_FAILED;
cond().broadcast();
- dbgprintf("SSS::Resolve failed: incorrect ai_family\n");
return;
}
@@ -446,9 +451,8 @@
}
errno = EINVAL;
return 0;
- } else {
- errno = EBADF;
- return 0;
}
+ errno = EBADF;
+ return 0;
}

Powered by Google App Engine
This is Rietveld 408576698