diff options
| author | Marcel Telka <marcel@telka.sk> | 2018-08-16 11:14:05 +0200 |
|---|---|---|
| committer | Dan McDonald <danmcd@joyent.com> | 2018-08-20 13:33:11 -0400 |
| commit | 16b6a7e9a6f9116cc7c300e732be5000d82934e7 (patch) | |
| tree | 53019b87a1cb32f14b043bde878961cc7a786ceb /usr | |
| parent | 66a2141c21574ea874644d1b0703e2f175e8e8a1 (diff) | |
| download | illumos-joyent-16b6a7e9a6f9116cc7c300e732be5000d82934e7.tar.gz | |
9737 send(3xnet) and friends are missing MSG_NOSIGNAL
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Sebastian Wiedenroth <wiedi@frubar.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
| -rw-r--r-- | usr/src/man/man3xnet/send.3xnet | 15 | ||||
| -rw-r--r-- | usr/src/man/man3xnet/sendmsg.3xnet | 24 | ||||
| -rw-r--r-- | usr/src/man/man3xnet/sendto.3xnet | 15 |
3 files changed, 40 insertions, 14 deletions
diff --git a/usr/src/man/man3xnet/send.3xnet b/usr/src/man/man3xnet/send.3xnet index 90ed5523f6..63174c8f28 100644 --- a/usr/src/man/man3xnet/send.3xnet +++ b/usr/src/man/man3xnet/send.3xnet @@ -43,7 +43,7 @@ .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. .\" Portions Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. .\" -.TH SEND 3XNET "Dec 3, 2014" +.TH SEND 3XNET "Aug 16, 2018" .SH NAME send \- send a message on a socket .SH SYNOPSIS @@ -109,6 +109,16 @@ Sends out-of-band data on sockets that support out-of-band communications. The significance and semantics of out-of-band data are protocol-specific. .RE +.sp +.ne 2 +.na +\fB\fBMSG_NOSIGNAL\fR\fR +.ad +.RS 11n +Don't generate the \fBSIGPIPE\fR signal when a stream-oriented socket is no +longer connected. +.RE + .RE .SH DESCRIPTION @@ -256,7 +266,8 @@ or more of the values set in \fIflags\fR. .RS 16n The socket is shut down for writing, or the socket is connection-mode and is no longer connected. In the latter case, and if the socket is of type -\fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread. +\fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread +unless the \fBMSG_NOSIGNAL\fR flag is set. .RE .sp diff --git a/usr/src/man/man3xnet/sendmsg.3xnet b/usr/src/man/man3xnet/sendmsg.3xnet index a5c9298bf8..381db99348 100644 --- a/usr/src/man/man3xnet/sendmsg.3xnet +++ b/usr/src/man/man3xnet/sendmsg.3xnet @@ -43,7 +43,7 @@ .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. .\" Portions Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. .\" -.TH SENDMSG 3XNET "Nov 1, 2003" +.TH SENDMSG 3XNET "Aug 16, 2018" .SH NAME sendmsg \- send a message on a socket using a message structure .SH SYNOPSIS @@ -56,7 +56,6 @@ sendmsg \- send a message on a socket using a message structure .fi .SH PARAMETERS -.sp .LP The function takes the following arguments: .sp @@ -107,10 +106,19 @@ Sends out-of-band data on sockets that support out-of-bound data. The significance and semantics of out-of-band data are protocol-specific. .RE +.sp +.ne 2 +.na +\fB\fBMSG_NOSIGNAL\fR\fR +.ad +.RS 11n +Don't generate the \fBSIGPIPE\fR signal when a stream-oriented socket is no +longer connected. +.RE + .RE .SH DESCRIPTION -.sp .LP The \fBsendmsg()\fR function sends a message through a connection-mode or connectionless-mode socket. If the socket is connectionless-mode, the message @@ -147,18 +155,15 @@ broadcast address for the socket protocol, \fBsendmsg()\fR will fail if the The socket in use may require the process to have appropriate privileges to use the \fBsendmsg()\fR function. .SH USAGE -.sp .LP The \fBselect\fR(3C) and \fBpoll\fR(2) functions can be used to determine when it is possible to send more data. .SH RETURN VALUES -.sp .LP Upon successful completion, \fBsendmsg()\fR function returns the number of bytes sent. Otherwise, \(mi1 is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS -.sp .LP The \fBsendmsg()\fR function will fail if: .sp @@ -278,8 +283,9 @@ or more of the values set in \fIflags\fR. .ad .RS 16n The socket is shut down for writing, or the socket is connection-mode and is no -longer connected. In the latter case, and if the socket is of type SOCK_STREAM, -the \fBSIGPIPE\fR signal is generated to the calling thread. +longer connected. In the latter case, and if the socket is of type +\fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread +unless the \fBMSG_NOSIGNAL\fR flag is set. .RE .sp @@ -447,7 +453,6 @@ length exceeds \fIPATH_MAX\fR. .RE .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -465,7 +470,6 @@ MT-Level MT-Safe .TE .SH SEE ALSO -.sp .LP \fBpoll\fR(2) \fBgetsockopt\fR(3XNET), \fBrecv\fR(3XNET), \fBrecvfrom\fR(3XNET), \fBrecvmsg\fR(3XNET), \fBselect\fR(3C), diff --git a/usr/src/man/man3xnet/sendto.3xnet b/usr/src/man/man3xnet/sendto.3xnet index 0c2d9febda..b311a3f05c 100644 --- a/usr/src/man/man3xnet/sendto.3xnet +++ b/usr/src/man/man3xnet/sendto.3xnet @@ -43,7 +43,7 @@ .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. .\" Portions Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved. .\" -.TH SENDTO 3XNET "Nov 1, 2003" +.TH SENDTO 3XNET "Aug 16, 2018" .SH NAME sendto \- send a message on a socket .SH SYNOPSIS @@ -144,6 +144,16 @@ Sends out-of-band data on sockets that support out-of-band data. The significance and semantics of out-of-band data are protocol-specific. .RE +.sp +.ne 2 +.na +\fB\fBMSG_NOSIGNAL\fR\fR +.ad +.RS 11n +Don't generate the \fBSIGPIPE\fR signal when a stream-oriented socket is no +longer connected. +.RE + .RE .sp @@ -281,7 +291,8 @@ or more of the values set in \fIflags\fR. .RS 16n The socket is shut down for writing, or the socket is connection-mode and is no longer connected. In the latter case, and if the socket is of type -\fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread. +\fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread +unless the \fBMSG_NOSIGNAL\fR flag is set. .RE .sp |
