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

Unified Diff: fusl/src/network/socketpair.c

Issue 1730723002: [fusl] Remove socketcall abstraction (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « fusl/src/network/socket.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/network/socketpair.c
diff --git a/fusl/src/network/socketpair.c b/fusl/src/network/socketpair.c
index b2dc231e8d2efd1a0f17d0de71262e43fbc2e920..66e656ee263a7d768e3e2f9667241ac7aaf4145a 100644
--- a/fusl/src/network/socketpair.c
+++ b/fusl/src/network/socketpair.c
@@ -4,11 +4,11 @@
#include "syscall.h"
int socketpair(int domain, int type, int protocol, int fd[2]) {
- int r = socketcall(socketpair, domain, type, protocol, fd, 0, 0);
+ int r = syscall(SYS_socketpair, domain, type, protocol, fd, 0, 0);
if (r < 0 && (errno == EINVAL || errno == EPROTONOSUPPORT) &&
(type & (SOCK_CLOEXEC | SOCK_NONBLOCK))) {
- r = socketcall(socketpair, domain, type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK),
- protocol, fd, 0, 0);
+ r = syscall(SYS_socketpair, domain, type & ~(SOCK_CLOEXEC | SOCK_NONBLOCK),
+ protocol, fd, 0, 0);
if (r < 0)
return r;
if (type & SOCK_CLOEXEC) {
« no previous file with comments | « fusl/src/network/socket.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698