diff options
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/accept4.c | 9 | ||||
-rw-r--r-- | src/linux/dup3.c | 10 | ||||
-rw-r--r-- | src/linux/pipe2.c | 8 |
3 files changed, 0 insertions, 27 deletions
diff --git a/src/linux/accept4.c b/src/linux/accept4.c deleted file mode 100644 index 6b5c16ce..00000000 --- a/src/linux/accept4.c +++ /dev/null @@ -1,9 +0,0 @@ -#define _GNU_SOURCE -#include <sys/socket.h> -#include "syscall.h" -#include "libc.h" - -int accept4(int fd, struct sockaddr *restrict addr, socklen_t *restrict len, int flg) -{ - return socketcall_cp(accept4, fd, addr, len, flg, 0, 0); -} diff --git a/src/linux/dup3.c b/src/linux/dup3.c deleted file mode 100644 index 18f6fcce..00000000 --- a/src/linux/dup3.c +++ /dev/null @@ -1,10 +0,0 @@ -#define _GNU_SOURCE -#include <unistd.h> -#include <errno.h> -#include "syscall.h" - -int dup3(int old, int new, int flags) { - int r; - while ((r=__syscall(SYS_dup3, old, new, flags))==-EBUSY); - return __syscall_ret(r); -} diff --git a/src/linux/pipe2.c b/src/linux/pipe2.c deleted file mode 100644 index 83282bb9..00000000 --- a/src/linux/pipe2.c +++ /dev/null @@ -1,8 +0,0 @@ -#define _GNU_SOURCE -#include <unistd.h> -#include "syscall.h" - -int pipe2(int fd[2], int flg) -{ - return syscall(SYS_pipe2, fd, flg); -} |