summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-15 22:06:54 -0400
committermidipix <writeonce@midipix.org>2015-09-15 22:06:54 -0400
commitc4da963f1e65c4837285bc6e99f0551e9a793d40 (patch)
treea2d4efddf5b3b2fe3a8a40deaf102ffebf80d501
parentebb4799baac5120df8de86ce5fded85cd8b50628 (diff)
downloadmmglue-c4da963f1e65c4837285bc6e99f0551e9a793d40.tar.bz2
mmglue-c4da963f1e65c4837285bc6e99f0551e9a793d40.tar.xz
nt32: implement accept(3) as a wrapper around accept4(2).
-rw-r--r--src/network/nt32/accept.c8
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);
+}