| 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) {
|
|
|