From c4da963f1e65c4837285bc6e99f0551e9a793d40 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 15 Sep 2015 22:06:54 -0400 Subject: nt32: implement accept(3) as a wrapper around accept4(2). --- src/network/nt32/accept.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/network/nt32/accept.c 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 +#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); +} -- cgit v1.2.3