aboutsummaryrefslogtreecommitdiff
path: root/socket
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-04-24 13:36:50 +0000
committerAndreas Jaeger <aj@suse.de>2001-04-24 13:36:50 +0000
commitc2063191c35b57831414ed9a48e549ba3d2d2321 (patch)
treef659fcb33d5d99e068ee3f3b080ac39ec1cdbfc0 /socket
parentdcea709aac90f307d27551cc3752744334292f97 (diff)
downloadglibc-c2063191c35b57831414ed9a48e549ba3d2d2321.tar
glibc-c2063191c35b57831414ed9a48e549ba3d2d2321.tar.gz
glibc-c2063191c35b57831414ed9a48e549ba3d2d2321.tar.bz2
glibc-c2063191c35b57831414ed9a48e549ba3d2d2321.zip
send returns ssize_t.
Diffstat (limited to 'socket')
-rw-r--r--socket/sys/socket.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/socket/sys/socket.h b/socket/sys/socket.h
index 83f7de7331..7ccb7dd8d0 100644
--- a/socket/sys/socket.h
+++ b/socket/sys/socket.h
@@ -128,37 +128,37 @@ extern int getpeername (int __fd, __SOCKADDR_ARG __addr,
/* Send N bytes of BUF to socket FD. Returns the number sent or -1. */
-extern int send (int __fd, __const void *__buf, size_t __n, int __flags)
+extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags)
__THROW;
/* Read N bytes into BUF from socket FD.
Returns the number read or -1 for errors. */
-extern int recv (int __fd, void *__buf, size_t __n, int __flags)
+extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags)
__THROW;
/* Send N bytes of BUF on socket FD to peer at address ADDR (which is
ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */
-extern int sendto (int __fd, __const void *__buf, size_t __n,
- int __flags, __CONST_SOCKADDR_ARG __addr,
- socklen_t __addr_len) __THROW;
+extern ssize_t sendto (int __fd, __const void *__buf, size_t __n,
+ int __flags, __CONST_SOCKADDR_ARG __addr,
+ socklen_t __addr_len) __THROW;
/* Read N bytes into BUF through socket FD.
If ADDR is not NULL, fill in *ADDR_LEN bytes of it with tha address of
the sender, and store the actual size of the address in *ADDR_LEN.
Returns the number of bytes read or -1 for errors. */
-extern int recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags,
- __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
+extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags,
+ __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
__THROW;
/* Send a message described MESSAGE on socket FD.
Returns the number of bytes sent, or -1 for errors. */
-extern int sendmsg (int __fd, __const struct msghdr *__message, int __flags)
+extern ssize_t sendmsg (int __fd, __const struct msghdr *__message, int __flags)
__THROW;
/* Receive a message as described by MESSAGE from socket FD.
Returns the number of bytes read or -1 for errors. */
-extern int recvmsg (int __fd, struct msghdr *__message, int __flags)
+extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags)
__THROW;