summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
+}