summaryrefslogtreecommitdiff
path: root/lib/libc/sys/send.2
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-02-27 12:31:34 +0000
committercgd <cgd@NetBSD.org>1995-02-27 12:31:34 +0000
commit4eab61bd40c07b2fc612ad50cface2b77fc110d0 (patch)
tree7118747f1d9919499fdea5d7c6908c5cfe04e5a8 /lib/libc/sys/send.2
parentc67e54a2e2b9f3d455a30d68ea4e09e56d7b9136 (diff)
merge with lite, keeping most local changes. clean up Ids
Diffstat (limited to 'lib/libc/sys/send.2')
-rw-r--r--lib/libc/sys/send.223
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2
index ef151313b75..3a290121daf 100644
--- a/lib/libc/sys/send.2
+++ b/lib/libc/sys/send.2
@@ -1,5 +1,7 @@
-.\" Copyright (c) 1983, 1991 The Regents of the University of California.
-.\" All rights reserved.
+.\" $NetBSD: send.2,v 1.5 1995/02/27 12:36:43 cgd Exp $
+.\"
+.\" Copyright (c) 1983, 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -29,10 +31,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)send.2 6.9 (Berkeley) 5/1/91
-.\" $Id: send.2,v 1.4 1993/11/29 21:25:33 jtc Exp $
+.\" @(#)send.2 8.2 (Berkeley) 2/21/94
.\"
-.Dd May 1, 1991
+.Dd February 21, 1994
.Dt SEND 2
.Os BSD 4.2
.Sh NAME
@@ -43,11 +44,11 @@
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/socket.h>
-.Ft int
-.Fn send "int s" "const void *msg" "int len" "int flags"
-.Ft int
-.Fn sendto "int s" "const void *msg" "int len" "int flags" "const struct sockaddr *to" "int tolen"
-.Ft int
+.Ft ssize_t
+.Fn send "int s" "const void *msg" "size_t len" "int flags"
+.Ft ssize_t
+.Fn sendto "int s" "const void *msg" "size_t len" "int flags" "const struct sockaddr *to" "int tolen"
+.Ft ssize_t
.Fn sendmsg "int s" "const struct msghdr *msg" "int flags"
.Sh DESCRIPTION
.Fn Send ,
@@ -137,7 +138,7 @@ An invalid user space address was specified for a parameter.
.It Bq Er EMSGSIZE
The socket requires that message be sent atomically,
and the size of the message to be sent made this impossible.
-.It Bq Er EWOULDBLOCK
+.It Bq Er EAGAIN
The socket is marked non-blocking and the requested operation
would block.
.It Bq Er ENOBUFS