diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-09-29 17:40:42 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-09-29 17:40:42 -0400 |
commit | dc62790deec183697489d5fddea03c82f725e7fd (patch) | |
tree | 0a86683bd8a0a558a5789e2ccaa45ae29856bd25 /src/network | |
parent | 79a5e73e518213d5e77a06cfc0db74ffbf7922c6 (diff) | |
download | musl-dc62790deec183697489d5fddea03c82f725e7fd.tar.gz musl-dc62790deec183697489d5fddea03c82f725e7fd.tar.bz2 musl-dc62790deec183697489d5fddea03c82f725e7fd.tar.xz musl-dc62790deec183697489d5fddea03c82f725e7fd.zip |
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.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/accept4.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <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); +} |