move accept4, dup3, and pipe2 to non-linux-specific locations
[musl] / src / network / accept4.c
diff --git a/src/network/accept4.c b/src/network/accept4.c
new file mode 100644 (file)
index 0000000..6b5c16c
--- /dev/null
@@ -0,0 +1,9 @@
+#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);
+}