diff options
Diffstat (limited to 'usr/klibc/accept.c')
-rw-r--r-- | usr/klibc/accept.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/klibc/accept.c b/usr/klibc/accept.c new file mode 100644 index 0000000..6057544 --- /dev/null +++ b/usr/klibc/accept.c @@ -0,0 +1,16 @@ +/* + * accept.c + * + * Some architectures need to wrap the system call + */ + +#include <sys/socket.h> + +#if !_KLIBC_SYS_SOCKETCALL && defined(__NR_accept4) && !defined(__NR_accept) + +int accept(int socket, struct sockaddr *address, socklen_t *addr_len) +{ + return accept4(socket, address, addr_len, 0); +} + +#endif |