diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-23 23:53:57 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:42 +0200 |
commit | 19607f1113ef9916a0a0ac2bf99b5bc32526f0de (patch) | |
tree | e27e7572ea8d69702b685801f62d2fb54fbce945 /include/sys | |
parent | 7d0131c55226a515086bf36e664ed70d19dba7f1 (diff) |
socketcalls.c: rewrite to use cancel.h
__socketcall.c: remove guard, we definitely need this syscall
Re-added guard plus added comment (Bernhard)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/socket.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h index 6037f92ae..62ba60e94 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -161,7 +161,10 @@ libc_hidden_proto(recv) extern ssize_t sendto (int __fd, __const void *__buf, size_t __n, int __flags, __CONST_SOCKADDR_ARG __addr, socklen_t __addr_len); +#ifdef _LIBC +extern __typeof(sendto) __sendto_nocancel attribute_hidden; libc_hidden_proto(sendto) +#endif /* Read N bytes into BUF through socket FD. If ADDR is not NULL, fill in *ADDR_LEN bytes of it with tha address of @@ -173,7 +176,10 @@ libc_hidden_proto(sendto) extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len); +#ifdef _LIBC +extern __typeof(recvfrom) __recvfrom_nocancel attribute_hidden; libc_hidden_proto(recvfrom) +#endif /* Send a message described MESSAGE on socket FD. @@ -260,4 +266,8 @@ extern int isfdtype (int __fd, int __fdtype) __THROW; __END_DECLS +#ifdef _LIBC +extern int __socketcall(int, unsigned long *) attribute_hidden; +#endif + #endif /* sys/socket.h */ |