summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/send.2
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
committerru <ru@FreeBSD.org>2002-12-18 09:22:32 +0000
commita4b155d7a2170a500eb79b46959eef4018441062 (patch)
treecb18f664ed0ee63bee30f6af9b148510b6e9663b /lib/libc/sys/send.2
parente7e659d1cc574138f455ed70d58a07294211ff5a (diff)
downloadFreeBSD-src-a4b155d7a2170a500eb79b46959eef4018441062.zip
FreeBSD-src-a4b155d7a2170a500eb79b46959eef4018441062.tar.gz
mdoc(7) police: Tidy up the syscall language.
Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe.
Diffstat (limited to 'lib/libc/sys/send.2')
-rw-r--r--lib/libc/sys/send.223
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2
index 885b59a..ac64f3f 100644
--- a/lib/libc/sys/send.2
+++ b/lib/libc/sys/send.2
@@ -52,12 +52,18 @@
.Ft ssize_t
.Fn sendmsg "int s" "const struct msghdr *msg" "int flags"
.Sh DESCRIPTION
-.Fn Send ,
-.Fn sendto ,
+The
+.Fn send
+function,
+and
+.Fn sendto
and
.Fn sendmsg
+system calls
are used to transmit a message to another socket.
-.Fn Send
+The
+.Fn send
+function
may be used only when the socket is in a
.Em connected
state, while
@@ -90,7 +96,7 @@ normally blocks, unless the socket has been placed in
non-blocking I/O mode.
The
.Xr select 2
-call may be used to determine when it is possible to
+system call may be used to determine when it is possible to
send more data.
.Pp
The
@@ -139,10 +145,13 @@ structure.
The call returns the number of characters sent, or -1
if an error occurred.
.Sh ERRORS
-.Fn Send ,
-.Fn sendto ,
+The
+.Fn send
+function and
+.Fn sendto
and
.Fn sendmsg
+system calls
fail if:
.Bl -tag -width Er
.It Bq Er EBADF
@@ -205,5 +214,5 @@ implement an acknowlegment mechanism to prevent this from happening.
.Sh HISTORY
The
.Fn send
-function call appeared in
+function appeared in
.Bx 4.2 .
OpenPOWER on IntegriCloud