diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2017-11-02 02:40:43 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2017-11-02 03:14:17 +0100 |
commit | c7e82668bd23fbdd02ebe1e83ff2bb6877812423 (patch) | |
tree | 8c2fac1a085f3f59675c57e6734c80221e1a56d8 /libpthread/linuxthreads | |
parent | 3e880faa4f76eb7aa61893f5de73fb0bb9b6a4ab (diff) |
convert accept4() to use cancel.h macros
Diffstat (limited to 'libpthread/linuxthreads')
-rw-r--r-- | libpthread/linuxthreads/wrapsyscall.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/wrapsyscall.c b/libpthread/linuxthreads/wrapsyscall.c index ca046a442..2386bfdef 100644 --- a/libpthread/linuxthreads/wrapsyscall.c +++ b/libpthread/linuxthreads/wrapsyscall.c @@ -192,6 +192,13 @@ CANCELABLE_SYSCALL (int, accept, (int fd, __SOCKADDR_ARG addr, socklen_t *addr_len), (fd, addr, addr_len)) +#if defined __UCLIBC_LINUX_SPECIFIC__ +/* accept4(2). */ +CANCELABLE_SYSCALL (int, accept4, (int fd, __SOCKADDR_ARG addr, + socklen_t *addr_len, int flags), + (fd, addr, addr_len, flags)) +#endif + /* connect(2). */ CANCELABLE_SYSCALL (int, connect, (int fd, __CONST_SOCKADDR_ARG addr, socklen_t len), |