]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/send.2
Automated addition of parentheses by add_parens_for_own_funcs.sh
[thirdparty/man-pages.git] / man2 / send.2
index 0e713cf51f0417f9da0e3bb900e95b0efabed7c4..e8cef33aab95c5b77d6b4fa07d0e60154ee9cf70 100644 (file)
@@ -53,19 +53,19 @@ send, sendto, sendmsg \- send a message on a socket
 .BI "int " flags );
 .SH DESCRIPTION
 The system calls
-.BR send ,
-.BR sendto ,
+.BR send (),
+.BR sendto (),
 and
-.B sendmsg
+.BR sendmsg ()
 are used to transmit a message to another socket.
 .PP
 The
-.B send
+.BR send ()
 call may be used only when the socket is in a 
 .I connected
 state (so that the intended recipient is known).
 The only difference between
-.B send
+.BR send ()
 and
 .B write
 is the presence of
@@ -73,7 +73,7 @@ is the presence of
 With zero
 .I flags
 parameter,
-.B send
+.BR send ()
 is equivalent to
 .BR write .
 Also,
@@ -86,7 +86,7 @@ The parameter
 is the file descriptor of the sending socket.
 .PP
 If
-.B sendto
+.BR sendto ()
 is used on a connection-mode (SOCK_STREAM, SOCK_SEQPACKET) socket,
 the parameters
 .I to
@@ -100,7 +100,7 @@ with
 .I tolen
 specifying its size.
 For
-.BR sendmsg ,
+.BR sendmsg (),
 the address of the target is given by
 .IR msg.msg_name ,
 with
@@ -108,19 +108,19 @@ with
 specifying its size.
 .PP
 For
-.B send
+.BR send ()
 and
-.BR sendto ,
+.BR sendto (),
 the message is found in
 .I buf
 and has length
 .IR len .
 For
-.BR sendmsg ,
+.BR sendmsg (),
 the message is pointed to by the elements of the array
 .IR msg.msg_iov .
 The
-.B sendmsg
+.BR sendmsg ()
 call also allows sending ancillary data (also known as control information).
 .PP
 If the message is too long to pass atomically through the
@@ -129,11 +129,11 @@ underlying protocol, the error
 is returned, and the message is not transmitted.
 .PP
 No indication of failure to deliver is implicit in a
-.BR send .
+.BR send ().
 Locally detected errors are indicated by a return value of \-1.
 .PP
 When the message does not fit into the send buffer of the socket,
-.B send
+.BR send ()
 normally blocks, unless the socket has been placed in non-blocking I/O
 mode.  In non-blocking mode it would return
 .B EAGAIN