diff options
Diffstat (limited to 'man2/send.2')
-rw-r--r-- | man2/send.2 | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/man2/send.2 b/man2/send.2 index 88588148e..d45db0cec 100644 --- a/man2/send.2 +++ b/man2/send.2 @@ -43,7 +43,7 @@ state (so that the intended recipient is known). The only difference between .BR send () and -.BR write (2) +.MR write 2 is the presence of .IR flags . With a zero @@ -51,7 +51,7 @@ With a zero argument, .BR send () is equivalent to -.BR write (2). +.MR write 2 . Also, the following call .P .in +4n @@ -135,7 +135,7 @@ or .B EWOULDBLOCK in this case. The -.BR select (2) +.MR select 2 call may be used to determine when it is possible to send more data. .SS The flags argument The @@ -155,7 +155,7 @@ and .B SOCK_RAW sockets and currently implemented only for IPv4 and IPv6. See -.BR arp (7) +.MR arp 7 for details. .TP .B MSG_DONTROUTE @@ -175,14 +175,14 @@ is returned. This provides similar behavior to setting the .B O_NONBLOCK flag (via the -.BR fcntl (2) +.MR fcntl 2 .B F_SETFL operation), but differs in that .B MSG_DONTWAIT is a per-call option, whereas .B O_NONBLOCK is a setting on the open file description (see -.BR open (2)), +.MR open 2 ), which will affect all threads in the calling process and as well as other processes that hold file descriptors referring to the same open file description. @@ -197,7 +197,7 @@ This flag is used with TCP sockets to obtain the same effect as the .B TCP_CORK socket option (see -.BR tcp (7)), +.MR tcp 7 ), with the difference that this flag can be set on a per-call basis. .IP Since Linux 2.6, this flag is also supported for UDP sockets, and informs @@ -207,7 +207,7 @@ that does not specify this flag. (See also the .B UDP_CORK socket option described in -.BR udp (7).) +.MR udp 7 .) .TP .BR MSG_NOSIGNAL " (since Linux 2.2)" Don't generate a @@ -217,7 +217,7 @@ The .B EPIPE error is still returned. This provides similar behavior to using -.BR sigaction (2) +.MR sigaction 2 to ignore .BR SIGPIPE , but, whereas @@ -239,11 +239,11 @@ data. .BR MSG_FASTOPEN " (since Linux 3.7)" Attempts TCP Fast Open (RFC7413) and sends data in the SYN like a combination of -.BR connect (2) +.MR connect 2 and -.BR write (2), +.MR write 2 , by performing an implicit -.BR connect (2) +.MR connect 2 operation. It blocks until the data is buffered and the handshake has completed. For a non-blocking socket, @@ -257,7 +257,7 @@ On errors, it sets the same .I errno as -.BR connect (2) +.MR connect 2 if the handshake fails. This flag requires enabling TCP Fast Open client support on sysctl .IR net.ipv4.tcp_fastopen . @@ -265,7 +265,7 @@ This flag requires enabling TCP Fast Open client support on sysctl Refer to .B TCP_FASTOPEN_CONNECT socket option in -.BR tcp (7) +.MR tcp 7 for an alternative approach. .SS sendmsg() The definition of the @@ -303,7 +303,7 @@ The and .I msg_iovlen fields specify scatter-gather locations, as for -.BR writev (2). +.MR writev 2 . .P You may send control information (ancillary data) using the .I msg_control @@ -314,12 +314,12 @@ The maximum control buffer length the kernel can process is limited per socket by the value in .IR /proc/sys/net/core/optmem_max ; see -.BR socket (7). +.MR socket 7 . For further information on the use of ancillary data in various socket domains, see -.BR unix (7) +.MR unix 7 and -.BR ip (7). +.MR ip 7 . .P The .I msg_flags @@ -344,7 +344,7 @@ Write permission is denied on the destination socket file, or search permission is denied for one of the directories the path prefix. (See -.BR path_resolution (7).) +.MR path_resolution 7 .) .IP (For UDP sockets) An attempt was made to send to a network/broadcast address as though it was a unicast address. @@ -368,7 +368,7 @@ are currently in use. See the discussion of .I /proc/sys/net/ipv4/ip_local_port_range in -.BR ip (7). +.MR ip 7 . .TP .B EALREADY Another Fast Open is in progress. @@ -388,7 +388,7 @@ An invalid user space address was specified for an argument. .TP .B EINTR A signal occurred before any data was transmitted; see -.BR signal (7). +.MR signal 7 . .TP .B EINVAL Invalid argument passed. @@ -474,7 +474,7 @@ POSIX.1-2008 adds a specification of .BR MSG_NOSIGNAL . .SH NOTES See -.BR sendmmsg (2) +.MR sendmmsg 2 for information about a Linux-specific system call that can be used to transmit multiple datagrams in a single call. .SH BUGS @@ -486,21 +486,21 @@ instead of An example of the use of .BR sendto () is shown in -.BR getaddrinfo (3). +.MR getaddrinfo 3 . .SH SEE ALSO -.BR fcntl (2), -.BR getsockopt (2), -.BR recv (2), -.BR select (2), -.BR sendfile (2), -.BR sendmmsg (2), -.BR shutdown (2), -.BR socket (2), -.BR write (2), -.BR cmsg (3), -.BR ip (7), -.BR ipv6 (7), -.BR socket (7), -.BR tcp (7), -.BR udp (7), -.BR unix (7) +.MR fcntl 2 , +.MR getsockopt 2 , +.MR recv 2 , +.MR select 2 , +.MR sendfile 2 , +.MR sendmmsg 2 , +.MR shutdown 2 , +.MR socket 2 , +.MR write 2 , +.MR cmsg 3 , +.MR ip 7 , +.MR ipv6 7 , +.MR socket 7 , +.MR tcp 7 , +.MR udp 7 , +.MR unix 7 |