diff options
Diffstat (limited to 'usr/src/man/man3head/socket.h.3head')
-rw-r--r-- | usr/src/man/man3head/socket.h.3head | 96 |
1 files changed, 6 insertions, 90 deletions
diff --git a/usr/src/man/man3head/socket.h.3head b/usr/src/man/man3head/socket.h.3head index 03693c7dc8..ecd516e1b2 100644 --- a/usr/src/man/man3head/socket.h.3head +++ b/usr/src/man/man3head/socket.h.3head @@ -9,7 +9,7 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH socket.h 3HEAD "28 Jan 2009" "SunOS 5.11" "Headers" +.TH SOCKET.H 3HEAD "Jan 28, 2009" .SH NAME socket.h, socket \- Internet Protocol family .SH SYNOPSIS @@ -85,24 +85,20 @@ header defines the following macros for use as the \fBcmsg_type\fR values when \fBcmsg_level\fR is \fBSOL_SOCKET\fR. .sp .ne 2 -.mk .na \fB\fBSCM_RIGHTS\fR\fR .ad .RS 14n -.rt Indicates that the data array contains the access rights to be sent or received. .RE .sp .ne 2 -.mk .na \fB\fBSCM_UCRED\fR\fR .ad .RS 14n -.rt Indicates that the data array contains a \fBucred_t\fR to be received. The \fBucred_t\fR is the credential of the sending process at the time the message was sent. This is a Sun-specific, Evolving interface. See \fBucred_get\fR(3C). @@ -115,7 +111,6 @@ The IPv4 data formats generally use the same values for data passed back in formats are listed below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IP\fR\fR .ad @@ -130,7 +125,6 @@ formats are listed below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IP\fR\fR .ad @@ -145,7 +139,6 @@ variable-length IP options, up to 40 bytes .sp .ne 2 -.mk .na \fB\fBIPPROTO_IP\fR\fR .ad @@ -160,7 +153,6 @@ variable-length IP options, up to 40 bytes .sp .ne 2 -.mk .na \fB\fBIPPROTO_IP\fR\fR .ad @@ -175,7 +167,6 @@ variable-length IP options, up to 40 bytes .sp .ne 2 -.mk .na \fB\fBIPPROTO_IP\fR\fR .ad @@ -190,7 +181,6 @@ variable-length IP options, up to 40 bytes .sp .ne 2 -.mk .na \fB\fBSOL_SOCKET\fR\fR .ad @@ -211,7 +201,6 @@ passing the value back to the application. The IPv6 data formats are listed below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -226,7 +215,6 @@ below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -241,7 +229,6 @@ below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -256,7 +243,6 @@ below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -271,7 +257,6 @@ below with the associated payload for each. .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -286,7 +271,6 @@ variable-length IPv6 options, \fBcmsg_type\fR \fBIPV6_HOPOPTS\fR .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -301,7 +285,6 @@ variable-length IPv6 options, \fBcmsg_type\fR \fBIPV6_DSTOPTS\fR .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -316,7 +299,6 @@ variable-length IPv6 options, \fBcmsg_type\fR \fBIPV6_RTHDR\fR .sp .ne 2 -.mk .na \fB\fBIPPROTO_IPV6\fR\fR .ad @@ -335,7 +317,6 @@ The \fB<sys/socket.h>\fR header defines the following macros to gain access to the data arrays in the ancillary data associated with a message header: .sp .ne 2 -.mk .na \fB\fBCMSG_DATA(\fR\fIcmsg\fR)\fR .ad @@ -348,7 +329,6 @@ an unsigned character pointer to the data array associated with the .sp .ne 2 -.mk .na \fB\fBCMSG_NXTHDR(\fR\fImhdr\fR, \fIcmsg\fR)\fR .ad @@ -363,7 +343,6 @@ if this structure is the last \fBcmsghdr\fR in the ancillary data. .sp .ne 2 -.mk .na \fB\fBCMSG_FIRSTHDR(\fR\fImhdr\fR)\fR .ad @@ -377,7 +356,6 @@ data associated with the \fBmsghdr\fR structure. .sp .ne 2 -.mk .na \fB\fBCMSG_SPACE\fR(\fIlen\fR)\fR .ad @@ -393,7 +371,6 @@ structure. Use the \fBCMSG_LEN()\fR macro instead. .sp .ne 2 -.mk .na \fB\fBCMSG_LEN\fR(\fIlen\fR)\fR .ad @@ -421,34 +398,28 @@ int l_linger /* linger time, in seconds */ The \fB<sys/socket.h>\fR header defines the following macros: .sp .ne 2 -.mk .na \fB\fBSOCK_DGRAM\fR\fR .ad .RS 18n -.rt Datagram socket .RE .sp .ne 2 -.mk .na \fB\fBSOCK_STREAM\fR\fR .ad .RS 18n -.rt Byte-stream socket .RE .sp .ne 2 -.mk .na \fB\fBSOCK_SEQPACKET\fR\fR .ad .RS 18n -.rt Sequenced-packet socket .RE @@ -458,23 +429,19 @@ The \fB<sys/socket.h>\fR header defines the following macros for use as the \fIlevel\fR argument of \fBsetsockopt()\fR and \fBgetsockopt()\fR. .sp .ne 2 -.mk .na \fB\fBSOL_SOCKET\fR\fR .ad .RS 14n -.rt Options to be accessed at the socket level, not the protocol level. .RE .sp .ne 2 -.mk .na \fB\fBSOL_ROUTE\fR\fR .ad .RS 14n -.rt Options to be accessed at the routing socket level, not the protocol level. .RE @@ -484,157 +451,129 @@ The \fB<sys/socket.h>\fR header defines the following macros for use as the \fIoption_name\fR argument of \fBgetsockopt()\fR or \fBsetsockopt()\fR calls: .sp .ne 2 -.mk .na \fB\fBSO_DEBUG\fR\fR .ad .RS 17n -.rt Debugging information is being recorded. .RE .sp .ne 2 -.mk .na \fB\fBSO_ACCEPTCONN\fR\fR .ad .RS 17n -.rt Socket is accepting connections. .RE .sp .ne 2 -.mk .na \fB\fBSO_BROADCAST\fR\fR .ad .RS 17n -.rt Transmission of broadcast messages is supported. .RE .sp .ne 2 -.mk .na \fB\fBSO_REUSEADDR\fR\fR .ad .RS 17n -.rt Reuse of local addresses is supported. .RE .sp .ne 2 -.mk .na \fB\fBSO_KEEPALIVE\fR\fR .ad .RS 17n -.rt Connections are kept alive with periodic messages. .RE .sp .ne 2 -.mk .na \fB\fBSO_LINGER\fR\fR .ad .RS 17n -.rt Socket lingers on close. .RE .sp .ne 2 -.mk .na \fB\fBSO_OOBINLINE\fR\fR .ad .RS 17n -.rt Out-of-band data is transmitted in line. .RE .sp .ne 2 -.mk .na \fB\fBSO_SNDBUF\fR\fR .ad .RS 17n -.rt Send buffer size. .RE .sp .ne 2 -.mk .na \fB\fBSO_RCVBUF\fR\fR .ad .RS 17n -.rt Receive buffer size. .RE .sp .ne 2 -.mk .na \fB\fBSO_ERROR\fR\fR .ad .RS 17n -.rt Socket error status. .RE .sp .ne 2 -.mk .na \fB\fBSO_TYPE\fR\fR .ad .RS 17n -.rt Socket type. .RE .sp .ne 2 -.mk .na \fB\fBSO_RECVUCRED\fR\fR .ad .RS 17n -.rt Request the reception of user credential ancillary data. This is a Sun-specific, Evolving interface. See \fBucred_get\fR(3C). .RE .sp .ne 2 -.mk .na \fB\fBSO_MAC_EXEMPT\fR\fR .ad .RS 17n -.rt Mandatory Access Control (\fBMAC\fR) exemption for unlabeled peers. This option is available only if the system is configured with Trusted Extensions. .RE .sp .ne 2 -.mk .na \fB\fBSO_ALLZONES\fR\fR .ad .RS 17n -.rt Bypass zone boundaries (privileged). .RE @@ -646,67 +585,55 @@ the flags parameter in \fBrecvfrom()\fR, \fBrecvmsg()\fR, \fBsendto()\fR, or \fBsendmsg()\fR calls: .sp .ne 2 -.mk .na \fB\fBMSG_CTRUNC\fR\fR .ad .RS 15n -.rt Control data truncated. .RE .sp .ne 2 -.mk .na \fB\fBMSG_EOR\fR\fR .ad .RS 15n -.rt Terminates a record (if supported by the protocol). .RE .sp .ne 2 -.mk .na \fB\fBMSG_OOB\fR\fR .ad .RS 15n -.rt Out-of-band data. .RE .sp .ne 2 -.mk .na \fB\fBMSG_PEEK\fR\fR .ad .RS 15n -.rt Leave received data in queue. .RE .sp .ne 2 -.mk .na \fB\fBMSG_TRUNC\fR\fR .ad .RS 15n -.rt Normal data truncated. .RE .sp .ne 2 -.mk .na \fB\fBMSG_WAITALL\fR\fR .ad .RS 15n -.rt Wait for complete message. .RE @@ -715,23 +642,19 @@ Wait for complete message. The \fB<sys/socket.h>\fR header defines the following macros: .sp .ne 2 -.mk .na \fB\fBAF_UNIX\fR\fR .ad .RS 11n -.rt UNIX domain sockets .RE .sp .ne 2 -.mk .na \fB\fBAF_INET\fR\fR .ad .RS 11n -.rt Internet domain sockets .RE @@ -740,34 +663,28 @@ Internet domain sockets The \fB<sys/socket.h>\fR header defines the following macros: .sp .ne 2 -.mk .na \fB\fBSHUT_RD\fR\fR .ad .RS 13n -.rt Disables further receive operations. .RE .sp .ne 2 -.mk .na \fB\fBSHUT_WR\fR\fR .ad .RS 13n -.rt Disables further send operations. .RE .sp .ne 2 -.mk .na \fB\fBSHUT_RDWR\fR\fR .ad .RS 13n -.rt Disables further send and receive operations. .RE @@ -804,13 +721,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityStandard +Interface Stability Standard .TE .SH SEE ALSO |