diff options
author | midipix <writeonce@midipix.org> | 2015-09-15 22:06:54 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-09-15 22:06:54 -0400 |
commit | c4da963f1e65c4837285bc6e99f0551e9a793d40 (patch) | |
tree | a2d4efddf5b3b2fe3a8a40deaf102ffebf80d501 | |
parent | ebb4799baac5120df8de86ce5fded85cd8b50628 (diff) | |
download | mmglue-c4da963f1e65c4837285bc6e99f0551e9a793d40.tar.bz2 mmglue-c4da963f1e65c4837285bc6e99f0551e9a793d40.tar.xz |
nt32: implement accept(3) as a wrapper around accept4(2).
-rw-r--r-- | src/network/nt32/accept.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/nt32/accept.c b/src/network/nt32/accept.c new file mode 100644 index 0000000..8c8c025 --- /dev/null +++ b/src/network/nt32/accept.c @@ -0,0 +1,8 @@ +#include <sys/socket.h> +#include "syscall.h" +#include "libc.h" + +int accept(int fd, struct sockaddr *restrict addr, socklen_t *restrict len) +{ + return socketcall_cp(accept4, fd, addr, len, 0, 0, 0); +} |