From c2063191c35b57831414ed9a48e549ba3d2d2321 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 24 Apr 2001 13:36:50 +0000 Subject: send returns ssize_t. --- sysdeps/generic/recvfrom.c | 4 ++-- sysdeps/generic/recvmsg.c | 4 ++-- sysdeps/generic/send.c | 4 ++-- sysdeps/generic/sendmsg.c | 4 ++-- sysdeps/generic/sendto.c | 4 ++-- sysdeps/mach/hurd/recv.c | 4 ++-- sysdeps/mach/hurd/recvfrom.c | 4 ++-- sysdeps/mach/hurd/send.c | 4 ++-- sysdeps/mach/hurd/sendto.c | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/recvfrom.c b/sysdeps/generic/recvfrom.c index 35b281a..acb1e98 100644 --- a/sysdeps/generic/recvfrom.c +++ b/sysdeps/generic/recvfrom.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ /* Read N bytes into BUF through socket FD from peer at address ADDR (which is ADDR_LEN bytes long). Returns the number read or -1 for errors. */ -int +ssize_t recvfrom (fd, buf, n, flags, addr, addr_len) int fd; void *buf; diff --git a/sysdeps/generic/recvmsg.c b/sysdeps/generic/recvmsg.c index 625e85a..c4bbd1b 100644 --- a/sysdeps/generic/recvmsg.c +++ b/sysdeps/generic/recvmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ /* Receive a message as described by MESSAGE from socket FD. Returns the number of bytes read or -1 for errors. */ -int +ssize_t recvmsg (fd, message, flags) int fd; struct msghdr *message; diff --git a/sysdeps/generic/send.c b/sysdeps/generic/send.c index 0ef8294..35c05ba 100644 --- a/sysdeps/generic/send.c +++ b/sysdeps/generic/send.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,7 @@ #include /* Send N bytes of BUF to socket FD. Returns the number sent or -1. */ -int +ssize_t __send (fd, buf, n, flags) int fd; __const __ptr_t buf; diff --git a/sysdeps/generic/sendmsg.c b/sysdeps/generic/sendmsg.c index 20d8bd6..9f771be 100644 --- a/sysdeps/generic/sendmsg.c +++ b/sysdeps/generic/sendmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ /* Send a message described MESSAGE on socket FD. Returns the number of bytes sent, or -1 for errors. */ -int +ssize_t sendmsg (fd, message, flags) int fd; const struct msghdr *message; diff --git a/sysdeps/generic/sendto.c b/sysdeps/generic/sendto.c index f9b3c87..54f3e18 100644 --- a/sysdeps/generic/sendto.c +++ b/sysdeps/generic/sendto.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ /* 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. */ -int +ssize_t sendto (fd, buf, n, flags, addr, addr_len) int fd; __const __ptr_t buf; diff --git a/sysdeps/mach/hurd/recv.c b/sysdeps/mach/hurd/recv.c index 6ae3a6a..0e4ff03 100644 --- a/sysdeps/mach/hurd/recv.c +++ b/sysdeps/mach/hurd/recv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,7 +27,7 @@ Returns the number read or -1 for errors. */ /* XXX should be __recv ? */ -int +ssize_t recv (fd, buf, n, flags) int fd; void *buf; diff --git a/sysdeps/mach/hurd/recvfrom.c b/sysdeps/mach/hurd/recvfrom.c index b395286..91417f8 100644 --- a/sysdeps/mach/hurd/recvfrom.c +++ b/sysdeps/mach/hurd/recvfrom.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1997, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -27,7 +27,7 @@ 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. */ -int +ssize_t recvfrom (fd, buf, n, flags, addrarg, addr_len) int fd; void *buf; diff --git a/sysdeps/mach/hurd/send.c b/sysdeps/mach/hurd/send.c index 73c5389..4899bef 100644 --- a/sysdeps/mach/hurd/send.c +++ b/sysdeps/mach/hurd/send.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,7 +23,7 @@ #include /* Send N bytes of BUF to socket FD. Returns the number sent or -1. */ -int +ssize_t __send (fd, buf, n, flags) int fd; const void *buf; diff --git a/sysdeps/mach/hurd/sendto.c b/sysdeps/mach/hurd/sendto.c index 4f0ada7..6f41068 100644 --- a/sysdeps/mach/hurd/sendto.c +++ b/sysdeps/mach/hurd/sendto.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,7 +26,7 @@ /* 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. */ -int +ssize_t sendto (int fd, const void *buf, size_t n, -- cgit v1.1