emulate SOCK_CLOEXEC and SOCK_NONBLOCK for old (pre-2.6.27) kernels
[musl] / src / linux / accept4.c
1 #define _GNU_SOURCE
2 #include <sys/socket.h>
3 #include "syscall.h"
4 #include "libc.h"
5
6 int accept4(int fd, struct sockaddr *restrict addr, socklen_t *restrict len, int flg)
7 {
8         return socketcall_cp(accept4, fd, addr, len, flg, 0, 0);
9 }