From dc62790deec183697489d5fddea03c82f725e7fd Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 29 Sep 2012 17:40:42 -0400 Subject: move accept4, dup3, and pipe2 to non-linux-specific locations these interfaces have been adopted by the Austin Group for inclusion in the next version of POSIX. --- src/network/accept4.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/network/accept4.c (limited to 'src/network/accept4.c') diff --git a/src/network/accept4.c b/src/network/accept4.c new file mode 100644 index 00000000..6b5c16ce --- /dev/null +++ b/src/network/accept4.c @@ -0,0 +1,9 @@ +#define _GNU_SOURCE +#include +#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); +} -- cgit v1.2.1