change ldso path file logic to replace rather than add to search path
[oweals/musl.git] / src / network / listen.c
index 7c8c1a8a3c142ff579c68fe9e9de9aa987dba378..f84ad03b7a54c57a5fff6322573cafd054f889fa 100644 (file)
@@ -1,9 +1,7 @@
 #include <sys/socket.h>
 #include "syscall.h"
-#include "socketcall.h"
 
 int listen(int fd, int backlog)
 {
-       unsigned long args[] = { fd, backlog };
-       return syscall2(__NR_socketcall, SYS_LISTEN, (long)args);
+       return socketcall(listen, fd, backlog, 0, 0, 0, 0);
 }