diff options
author | Richard Lowe <richlowe@richlowe.net> | 2011-10-11 16:00:17 +0100 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2011-10-11 16:00:17 +0100 |
commit | c00ed4fa5a593e8e48ded4fb5ad22ecf0348f01d (patch) | |
tree | 909f29a065a94e61f2919a39f46a243c3f5c295b /usr/src/man/man3socket | |
parent | d322ce9e5e9bb437d93bf09b5354eede23491de7 (diff) | |
parent | ea3068a71489464a7cde899773f9ae3541209461 (diff) | |
download | illumos-joyent-c00ed4fa5a593e8e48ded4fb5ad22ecf0348f01d.tar.gz |
Merge branch 'master' of http://github.com/illumos/illumos-gate into gcc/upgrade
Conflicts:
usr/src/cmd/avs/dsw/iiadm.c
Diffstat (limited to 'usr/src/man/man3socket')
36 files changed, 277 insertions, 894 deletions
diff --git a/usr/src/man/man3socket/accept.3socket b/usr/src/man/man3socket/accept.3socket index c6ad97671a..e9ff5df69c 100644 --- a/usr/src/man/man3socket/accept.3socket +++ b/usr/src/man/man3socket/accept.3socket @@ -1,10 +1,10 @@ '\" te -.\" Copyright 1989 AT&T +.\" Copyright 1989 AT&T .\" Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved .\" 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 accept 3SOCKET "24 Jan 2002" "SunOS 5.11" "Sockets Library Functions" +.TH ACCEPT 3SOCKET "Jan 24, 2002" .SH NAME accept \- accept a connection on a socket .SH SYNOPSIS @@ -68,137 +68,113 @@ returns a non-negative integer that is a descriptor for the accepted socket. \fBaccept()\fR will fail if: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The descriptor is invalid. .RE .sp .ne 2 -.mk .na \fB\fBECONNABORTED\fR\fR .ad .RS 16n -.rt The remote side aborted the connection before the \fBaccept()\fR operation completed. .RE .sp .ne 2 -.mk .na \fB\fBEFAULT\fR\fR .ad .RS 16n -.rt The \fIaddr\fR parameter or the \fIaddrlen\fR parameter is invalid. .RE .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 16n -.rt The \fBaccept()\fR attempt was interrupted by the delivery of a signal. .RE .sp .ne 2 -.mk .na \fB\fBEMFILE\fR\fR .ad .RS 16n -.rt The per-process descriptor table is full. .RE .sp .ne 2 -.mk .na \fB\fBENODEV\fR\fR .ad .RS 16n -.rt The protocol family and type corresponding to \fIs\fR could not be found in the \fBnetconfig\fR file. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 16n -.rt There was insufficient user memory available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 16n -.rt There were insufficient \fBSTREAMS\fR resources available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt The descriptor does not reference a socket. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 16n -.rt The referenced socket is not of type \fBSOCK_STREAM\fR. .RE .sp .ne 2 -.mk .na \fB\fBEPROTO\fR\fR .ad .RS 16n -.rt A protocol error has occurred; for example, the \fBSTREAMS\fR protocol stack has not been initialized or the connection has already been released. .RE .sp .ne 2 -.mk .na \fB\fBEWOULDBLOCK\fR\fR .ad .RS 16n -.rt The socket is marked as non-blocking and no connections are present to be accepted. .RE @@ -211,13 +187,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/bind.3socket b/usr/src/man/man3socket/bind.3socket index 0f98ab7014..723926dec4 100644 --- a/usr/src/man/man3socket/bind.3socket +++ b/usr/src/man/man3socket/bind.3socket @@ -4,7 +4,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 bind 3SOCKET "11 May 2009" "SunOS 5.11" "Sockets Library Functions" +.TH BIND 3SOCKET "May 11, 2009" .SH NAME bind \- bind a name to a socket .SH SYNOPSIS @@ -37,57 +37,47 @@ returned and \fBerrno\fR is set to indicate the error. The \fBbind()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 17n -.rt The requested address is protected, and \fB{PRIV_NET_PRIVADDR}\fR is not asserted in the effective set of the current process. .RE .sp .ne 2 -.mk .na \fB\fBEADDRINUSE\fR\fR .ad .RS 17n -.rt The specified address is already in use. .RE .sp .ne 2 -.mk .na \fB\fBEADDRNOTAVAIL\fR\fR .ad .RS 17n -.rt The specified address is not available on the local machine. .RE .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 17n -.rt \fIs\fR is not a valid descriptor. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 17n -.rt \fInamelen\fR is not the size of a valid address for the specified address family. .sp @@ -98,23 +88,19 @@ Socket options are inconsistent with port attributes. .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 17n -.rt There were insufficient \fBSTREAMS\fR resources for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 17n -.rt \fIs\fR is a descriptor for a file, not a socket. .RE @@ -123,81 +109,67 @@ There were insufficient \fBSTREAMS\fR resources for the operation to complete. The following errors are specific to binding names in the UNIX domain: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 11n -.rt Search permission is denied for a component of the path prefix of the pathname in \fIname\fR. .RE .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 11n -.rt An I/O error occurred while making the directory entry or allocating the inode. .RE .sp .ne 2 -.mk .na \fB\fBEISDIR\fR\fR .ad .RS 11n -.rt A null pathname was specified. .RE .sp .ne 2 -.mk .na \fB\fBELOOP\fR\fR .ad .RS 11n -.rt Too many symbolic links were encountered in translating the pathname in \fIname\fR. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 11n -.rt A component of the path prefix of the pathname in \fIname\fR does not exist. .RE .sp .ne 2 -.mk .na \fB\fBENOTDIR\fR\fR .ad .RS 11n -.rt A component of the path prefix of the pathname in \fIname\fR is not a directory. .RE .sp .ne 2 -.mk .na \fB\fBEROFS\fR\fR .ad .RS 11n -.rt The inode would reside on a read-only file system. .RE @@ -209,13 +181,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/byteorder.3socket b/usr/src/man/man3socket/byteorder.3socket index 63984a833f..ec7cd3b497 100644 --- a/usr/src/man/man3socket/byteorder.3socket +++ b/usr/src/man/man3socket/byteorder.3socket @@ -4,7 +4,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 byteorder 3SOCKET "10 Sep 2008" "SunOS 5.11" "Sockets Library Functions" +.TH BYTEORDER 3SOCKET "Sep 10, 2008" .SH NAME byteorder, htonl, htonll, htons, ntohl, ntohll, ntohs \- convert values between host and network byte order @@ -65,13 +65,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/connect.3socket b/usr/src/man/man3socket/connect.3socket index 4a47bf0515..d724a0d990 100644 --- a/usr/src/man/man3socket/connect.3socket +++ b/usr/src/man/man3socket/connect.3socket @@ -5,7 +5,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 connect 3SOCKET "08 Mar 2005" "SunOS 5.11" "Sockets Library Functions" +.TH CONNECT 3SOCKET "Mar 08, 2005" .SH NAME connect \- initiate a connection on a socket .SH SYNOPSIS @@ -47,80 +47,66 @@ If the connection or binding succeeds, \fB0\fR is returned. Otherwise, The call fails if: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 17n -.rt Search permission is denied for a component of the path prefix of the pathname in \fIname\fR. .RE .sp .ne 2 -.mk .na \fB\fBEADDRINUSE\fR\fR .ad .RS 17n -.rt The address is already in use. .RE .sp .ne 2 -.mk .na \fB\fBEADDRNOTAVAIL\fR\fR .ad .RS 17n -.rt The specified address is not available on the remote machine. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 17n -.rt Addresses in the specified address family cannot be used with this socket. .RE .sp .ne 2 -.mk .na \fB\fBEALREADY\fR\fR .ad .RS 17n -.rt The socket is non-blocking, and a previous connection attempt has not yet been completed. .RE .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 17n -.rt \fIs\fR is not a valid descriptor. .RE .sp .ne 2 -.mk .na \fB\fBECONNREFUSED\fR\fR .ad .RS 17n -.rt The attempt to connect was forcefully rejected. The calling program should \fBclose\fR(2) the socket descriptor, and issue another \fBsocket\fR(3SOCKET) call to obtain a new descriptor before attempting another \fBconnect()\fR call. @@ -128,12 +114,10 @@ call to obtain a new descriptor before attempting another \fBconnect()\fR call. .sp .ne 2 -.mk .na \fB\fBEINPROGRESS\fR\fR .ad .RS 17n -.rt The socket is non-blocking, and the connection cannot be completed immediately. You can use \fBselect\fR(3C) to complete the connection by selecting the socket for writing. @@ -141,148 +125,122 @@ socket for writing. .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 17n -.rt The connection attempt was interrupted before any data arrived by the delivery of a signal. The connection, however, will be established asynchronously. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 17n -.rt \fInamelen\fR is not the size of a valid address for the specified address family. .RE .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 17n -.rt An I/O error occurred while reading from or writing to the file system. .RE .sp .ne 2 -.mk .na \fB\fBEISCONN\fR\fR .ad .RS 17n -.rt The socket is already connected. .RE .sp .ne 2 -.mk .na \fB\fBELOOP\fR\fR .ad .RS 17n -.rt Too many symbolic links were encountered in translating the pathname in \fIname\fR. .RE .sp .ne 2 -.mk .na \fB\fBENETUNREACH\fR\fR .ad .RS 17n -.rt The network is not reachable from this host. .RE .sp .ne 2 -.mk .na \fB\fBEHOSTUNREACH\fR\fR .ad .RS 17n -.rt The remote host is not reachable from this host. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 17n -.rt A component of the path prefix of the pathname in \fIname\fR does not exist. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 17n -.rt The socket referred to by the pathname in \fIname\fR does not exist. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 17n -.rt There were insufficient \fBSTREAMS\fR resources available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBENXIO\fR\fR .ad .RS 17n -.rt The server exited before the connection was complete. .RE .sp .ne 2 -.mk .na \fB\fBETIMEDOUT\fR\fR .ad .RS 17n -.rt Connection establishment timed out without establishing a connection. .RE .sp .ne 2 -.mk .na \fB\fBEWOULDBLOCK\fR\fR .ad .RS 17n -.rt The socket is marked as non-blocking, and the requested operation would block. .RE @@ -292,46 +250,38 @@ The following errors are specific to connecting names in the UNIX domain. These errors might not apply in future versions of the UNIX \fBIPC\fR domain. .sp .ne 2 -.mk .na \fB\fBENOTDIR\fR\fR .ad .RS 14n -.rt A component of the path prefix of the pathname in \fIname\fR is not a directory. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 14n -.rt \fIs\fR is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 14n -.rt \fIname\fR is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEPROTOTYPE\fR\fR .ad .RS 14n -.rt The file that is referred to by \fIname\fR is a socket of a type other than type \fIs\fR. For example, \fIs\fR is a \fBSOCK_DGRAM\fR socket, while \fIname\fR refers to a \fBSOCK_STREAM\fR socket. @@ -345,13 +295,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/ethers.3socket b/usr/src/man/man3socket/ethers.3socket index cf48452411..94cec9c957 100644 --- a/usr/src/man/man3socket/ethers.3socket +++ b/usr/src/man/man3socket/ethers.3socket @@ -4,7 +4,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 ethers 3SOCKET "5 Apr 2004" "SunOS 5.11" "Sockets Library Functions" +.TH ETHERS 3SOCKET "Apr 5, 2004" .SH NAME ethers, ether_ntoa, ether_aton, ether_ntohost, ether_hostton, ether_line \- Ethernet address mapping operations @@ -77,23 +77,19 @@ The format of the scanned line is described by \fBethers\fR(4). .SH FILES .sp .ne 2 -.mk .na \fB\fB/etc/ethers\fR\fR .ad .RS 22n -.rt Ethernet address to hostname database or domain .RE .sp .ne 2 -.mk .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 22n -.rt configuration file for the name service switch .RE @@ -105,13 +101,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 _ -MT-LevelMT-Safe +MT-Level MT-Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getaddrinfo.3socket b/usr/src/man/man3socket/getaddrinfo.3socket index a322d10c44..66f3731a58 100644 --- a/usr/src/man/man3socket/getaddrinfo.3socket +++ b/usr/src/man/man3socket/getaddrinfo.3socket @@ -3,14 +3,14 @@ .\" 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 getaddrinfo 3SOCKET "8 May 2009" "SunOS 5.11" "Sockets Library Functions" +.TH GETADDRINFO 3SOCKET "May 8, 2009" .SH NAME getaddrinfo, getnameinfo, freeaddrinfo, gai_strerror \- translate between node name and address .SH SYNOPSIS .LP .nf -\fBcc\fR [ \fIflag\fR\&.\|.\|. ] \fIfile\fR \&.\|.\|. \fB-lsocket\fR \fB -lnsl \fR [ \fIlibrary\fR \&.\|.\|. ] +\fBcc\fR [ \fIflag\fR\&.\|.\|. ] \fIfile\fR \&.\|.\|. \fB-lsocket\fR \fB -lnsl \fR [ \fIlibrary\fR \&.\|.\|. ] #include <sys/socket.h> #include <netdb.h> @@ -83,7 +83,7 @@ The \fBaddrinfo\fR structure is defined as: struct addrinfo { int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST, AI_NUMERICSERV - AI_V4MAPPED, AI_ALL, + AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG */ int ai_family; /* PF_xxx */ int ai_socktype; /* SOCK_xxx */ @@ -324,49 +324,48 @@ address ordering list of pair-wise comparison rules follow below: .sp .TS -tab() box; -lw(2.75i) |lw(2.75i) -lw(2.75i) |lw(2.75i) -. -Avoid unusable destinations.T{ +box; +l | l +l | l . +Avoid unusable destinations. T{ Prefer a destination that is reachable through the IP routing table. T} _ -Prefer matching scope.T{ +Prefer matching scope. T{ Prefer a destination whose scope is equal to the scope of its source address. See \fBinet6\fR(7P) for the definition of scope used by this rule. T} _ -Avoid link-local source.T{ +Avoid link-local source. T{ Avoid selecting a link-local source address when the destination address is not a link-local address. T} _ -Avoid deprecated addresses.T{ +Avoid deprecated addresses. T{ Prefer a destination that is not deprecated (\fBIFF_DEPRECATED\fR). T} _ T{ Prefer matching label. This rule uses labels that are obtained through the IPv6 default address selection policy table. See \fBipaddrsel\fR(1M) for a description of the default contents of the table and how the table is configured. -T}T{ +T} T{ Prefer a destination whose label is equal to the label of its source address. T} _ T{ Prefer higher precedence. This rule uses precedence values that are obtained through the IPv6 default address selection policy table. See \fBipaddrsel\fR(1M) for a description of the default contents of the table and how the table is configured. -T}T{ +T} T{ Prefer the destination whose precedence is higher than the other destination. T} _ -Prefer native transport.T{ +Prefer native transport. T{ Prefer a destination if the interface that is used for sending packets to that destination is not an IP over IP tunnel. T} _ T{ Prefer smaller scope. See \fBinet6\fR(7P) for the definition of this rule. -T}T{ +T} T{ Prefer the destination whose scope is smaller than the other destination. T} _ -Use longest matching prefix.T{ +Use longest matching prefix. T{ When the two destinations belong to the same address family, prefer the destination that has the longer matching prefix with its source address. T} .TE @@ -378,167 +377,137 @@ The following names are the error values returned by \fBgetaddrinfo()\fR and are defined in <\fBnetdb.h\fR>: .sp .ne 2 -.mk .na \fB\fBEAI_ADDRFAMILY\fR\fR .ad .RS 18n -.rt Address family for nodename is not supported. .RE .sp .ne 2 -.mk .na \fB\fBEAI_AGAIN\fR\fR .ad .RS 18n -.rt Temporary failure in name resolution has occurred . .RE .sp .ne 2 -.mk .na \fB\fBEAI_BADFLAGS\fR\fR .ad .RS 18n -.rt Invalid value specified for \fBai_flags\fR. .RE .sp .ne 2 -.mk .na \fB\fBEAI_FAIL\fR\fR .ad .RS 18n -.rt Non-recoverable failure in name resolution has occurred. .RE .sp .ne 2 -.mk .na \fB\fBEAI_FAMILY\fR\fR .ad .RS 18n -.rt The \fBai_family\fR is not supported. .RE .sp .ne 2 -.mk .na \fB\fBEAI_MEMORY\fR\fR .ad .RS 18n -.rt Memory allocation failure has occurred. .RE .sp .ne 2 -.mk .na \fB\fBEAI_NODATA\fR\fR .ad .RS 18n -.rt No address is associated with \fInodename\fR. .RE .sp .ne 2 -.mk .na \fB\fBEAI_NONAME\fR\fR .ad .RS 18n -.rt Neither \fInodename\fR nor \fIservname\fR is provided or known. .RE .sp .ne 2 -.mk .na \fB\fBEAI_SERVICE\fR\fR .ad .RS 18n -.rt The \fIservname\fR is not supported for \fBai_socktype\fR. .RE .sp .ne 2 -.mk .na \fB\fBEAI_SOCKTYPE\fR\fR .ad .RS 18n -.rt The \fBai_socktype\fR is not supported. .RE .sp .ne 2 -.mk .na \fB\fBEAI_OVERFLOW\fR\fR .ad .RS 18n -.rt Argument buffer has overflowed. .RE .sp .ne 2 -.mk .na \fB\fBEAI_SYSTEM\fR\fR .ad .RS 18n -.rt System error was returned in \fIerrno\fR. .RE .SH FILES .sp .ne 2 -.mk .na \fB\fB/etc/inet/hosts\fR\fR .ad .RS 22n -.rt local database that associates names of nodes with IP addresses .RE .sp .ne 2 -.mk .na \fB\fB/etc/netconfig\fR\fR .ad .RS 22n -.rt network configuration database .RE .sp .ne 2 -.mk .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 22n -.rt configuration file for the name service switch .RE @@ -550,17 +519,16 @@ See \fBattributes\fR(5) for description 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelMT-Safe +MT-Level MT-Safe _ -StandardSee \fBstandards\fR(5). +Standard See \fBstandards\fR(5). .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getipnodebyname.3socket b/usr/src/man/man3socket/getipnodebyname.3socket index 446d4580c6..7cc3f4b408 100644 --- a/usr/src/man/man3socket/getipnodebyname.3socket +++ b/usr/src/man/man3socket/getipnodebyname.3socket @@ -3,7 +3,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 getipnodebyname 3SOCKET "22 Aug 2007" "SunOS 5.11" "Sockets Library Functions" +.TH GETIPNODEBYNAME 3SOCKET "Aug 22, 2007" .SH NAME getipnodebyname, getipnodebyaddr, freehostent \- get IP node entry .SH SYNOPSIS @@ -31,78 +31,64 @@ getipnodebyname, getipnodebyaddr, freehostent \- get IP node entry .SH PARAMETERS .sp .ne 2 -.mk .na \fB\fIaf\fR\fR .ad .RS 13n -.rt Address family .RE .sp .ne 2 -.mk .na \fB\fIflags\fR\fR .ad .RS 13n -.rt Various flags .RE .sp .ne 2 -.mk .na \fB\fIname\fR\fR .ad .RS 13n -.rt Name of host .RE .sp .ne 2 -.mk .na \fB\fIerror_num\fR\fR .ad .RS 13n -.rt Error storage .RE .sp .ne 2 -.mk .na \fB\fIsrc\fR\fR .ad .RS 13n -.rt Address for lookup .RE .sp .ne 2 -.mk .na \fB\fIlen\fR\fR .ad .RS 13n -.rt Length of address .RE .sp .ne 2 -.mk .na \fB\fIptr\fR\fR .ad .RS 13n -.rt Pointer to \fBhostent\fR structure .RE @@ -279,56 +265,46 @@ dotted-decimal IPv4 address and \fIaf\fR equals \fBAF_INET\fR and when members of the returned \fBhostent\fR structure are: .sp .ne 2 -.mk .na \fB\fBh_name\fR\fR .ad .RS 15n -.rt Pointer to a copy of the name argument .RE .sp .ne 2 -.mk .na \fB\fBh_aliases\fR\fR .ad .RS 15n -.rt \fINULL\fR pointer. .RE .sp .ne 2 -.mk .na \fB\fBh_addrtype\fR\fR .ad .RS 15n -.rt Copy of the \fIaf\fR argument. .RE .sp .ne 2 -.mk .na \fB\fBh_length\fR\fR .ad .RS 15n -.rt 4 for \fBAF_INET\fR or 16 for \fBAF_INET6\fR. .RE .sp .ne 2 -.mk .na \fB\fBh_addr_list\fR\fR .ad .RS 15n -.rt Array of pointers to 4-byte or 16-byte binary addresses. The array is terminated by a \fINULL\fR pointer. .RE @@ -371,23 +347,19 @@ to support thread-safe error code returns. The following error conditions can be returned for \fBerror_num\fR: .sp .ne 2 -.mk .na \fB\fBHOST_NOT_FOUND\fR\fR .ad .RS 18n -.rt Host is unknown. .RE .sp .ne 2 -.mk .na \fB\fBNO_DATA\fR\fR .ad .RS 18n -.rt No address is available for the \fIname\fR specified in the server request. This error is not a soft error. Another type of \fIname\fR server request might be successful. @@ -395,23 +367,19 @@ be successful. .sp .ne 2 -.mk .na \fB\fBNO_RECOVERY\fR\fR .ad .RS 18n -.rt An unexpected server failure occurred, which is a non-recoverable error. .RE .sp .ne 2 -.mk .na \fB\fBTRY_AGAIN\fR\fR .ad .RS 18n -.rt This error is a soft error that indicates that the local server did not receive a response from an authoritative server. A retry at some later time might be successful. @@ -528,15 +496,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getnetbyname.3socket b/usr/src/man/man3socket/getnetbyname.3socket index f456d9f848..acc0b88606 100644 --- a/usr/src/man/man3socket/getnetbyname.3socket +++ b/usr/src/man/man3socket/getnetbyname.3socket @@ -2,7 +2,7 @@ .\" Copyright (C) 2004, Sun Microsystems, Inc. All Rights Reserved. .\" Copyright 1989 AT&T .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. -.TH getnetbyname 3SOCKET "4 Nov 2004" "SunOS 5.11" "Sockets Library Functions" +.TH GETNETBYNAME 3SOCKET "Nov 4, 2004" .SH NAME getnetbyname, getnetbyname_r, getnetbyaddr, getnetbyaddr_r, getnetent, getnetent_r, setnetent, endnetent \- get network entry @@ -83,15 +83,13 @@ aligned based upon the input string. For example: .sp .TS -tab(); -cw(2.75i) cw(2.75i) -lw(2.75i) lw(2.75i) -. -TextValue -\fB"10"\fR\fB0x0000000a\fR -\fB"10.0"\fR\fB0x00000a00\fR -\fB"10.0.1"\fR\fB0a000a0001\fR -\fB"10.0.1.28\fR"\fB0x0a000180\fR +c c +l l . +Text Value +\fB"10"\fR \fB0x0000000a\fR +\fB"10.0"\fR \fB0x00000a00\fR +\fB"10.0.1"\fR \fB0a000a0001\fR +\fB"10.0.1.28\fR" \fB0x0a000180\fR .TE .sp @@ -225,23 +223,19 @@ result. See \fBIntro\fR(2) for the proper usage and interpretation of .SH FILES .sp .ne 2 -.mk .na \fB\fB/etc/networks\fR\fR .ad .RS 22n -.rt network name database .RE .sp .ne 2 -.mk .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 22n -.rt configuration file for the name service switch .RE @@ -253,13 +247,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 _ -MT-LevelMT-Safe +MT-Level MT-Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getpeername.3socket b/usr/src/man/man3socket/getpeername.3socket index 6879fa1dcc..f8625adbdf 100644 --- a/usr/src/man/man3socket/getpeername.3socket +++ b/usr/src/man/man3socket/getpeername.3socket @@ -3,7 +3,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 getpeername 3SOCKET "26 Mar 1998" "SunOS 5.11" "Sockets Library Functions" +.TH GETPEERNAME 3SOCKET "Mar 26, 1998" .SH NAME getpeername \- get name of connected peer .SH SYNOPSIS @@ -35,57 +35,47 @@ If successful, \fBgetpeername()\fR returns \fB0\fR; otherwise it returns The call succeeds unless: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 12n -.rt The argument \fIs\fR is not a valid descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 12n -.rt There was insufficient user memory for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 12n -.rt There were insufficient STREAMS resources available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 12n -.rt The socket is not connected. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 12n -.rt The argument \fIs\fR is not a socket. .RE @@ -97,13 +87,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getprotobyname.3socket b/usr/src/man/man3socket/getprotobyname.3socket index bfaac47db5..0cf1786aad 100644 --- a/usr/src/man/man3socket/getprotobyname.3socket +++ b/usr/src/man/man3socket/getprotobyname.3socket @@ -1,6 +1,6 @@ '\" te .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright 1989 AT&T Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved. -.TH getprotobyname 3SOCKET "5 Apr 2004" "SunOS 5.11" "Sockets Library Functions" +.TH GETPROTOBYNAME 3SOCKET "Apr 5, 2004" .SH NAME getprotobyname, getprotobyname_r, getprotobynumber, getprotobynumber_r, getprotoent, getprotoent_r, setprotoent, endprotoent \- get protocol entry @@ -156,12 +156,10 @@ The \fBgetprotobyname_r()\fR, \fBgetprotobynumber_r()\fR, and \fBgetprotoent_r()\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBERANGE\fR\fR .ad .RS 10n -.rt The length of the buffer supplied by the caller is not large enough to store the result. .RE @@ -181,13 +179,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 _ -MT-LevelSee \fBNOTES\fR below. +MT-Level See \fBNOTES\fR below. .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getservbyname.3socket b/usr/src/man/man3socket/getservbyname.3socket index 606ca35ff2..cc251a2252 100644 --- a/usr/src/man/man3socket/getservbyname.3socket +++ b/usr/src/man/man3socket/getservbyname.3socket @@ -1,7 +1,7 @@ '\" te -.\" Copyright (c) 1983, Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright 1989 AT&T. Copyright (c) 2007, Sun Microsystems, Inc. +.\" Copyright (c) 1983, Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright 1989 AT&T. Copyright (c) 2007, Sun Microsystems, Inc. .\" All Rights Reserved. -.TH getservbyname 3SOCKET "31 Jan 2007" "SunOS 5.11" "Sockets Library Functions" +.TH GETSERVBYNAME 3SOCKET "Jan 31, 2007" .SH NAME getservbyname, getservbyname_r, getservbyport, getservbyport_r, getservent, getservent_r, setservent, endservent \- get service entry @@ -165,8 +165,8 @@ in <\fBnetdb.h\fR>: .nf struct servent { char *s_name; /* official name of service */ - char **s_aliases; /* alias list */ - int s_port; /* port service resides at */ + char **s_aliases; /* alias list */ + int s_port; /* port service resides at */ char *s_proto; /* protocol to use */ }; .fi @@ -177,46 +177,38 @@ struct servent { The members of this structure are: .sp .ne 2 -.mk .na \fB\fBs_name\fR\fR .ad .RS 13n -.rt The official name of the service. .RE .sp .ne 2 -.mk .na \fB\fBs_aliases\fR\fR .ad .RS 13n -.rt A zero terminated list of alternate names for the service. .RE .sp .ne 2 -.mk .na \fB\fBs_port\fR\fR .ad .RS 13n -.rt The port number at which the service resides. Port numbers are returned in network byte order. .RE .sp .ne 2 -.mk .na \fB\fBs_proto\fR\fR .ad .RS 13n -.rt The name of the protocol to use when contacting the service .RE @@ -252,34 +244,28 @@ result. See \fBIntro\fR(2) for the proper usage and interpretation of .SH FILES .sp .ne 2 -.mk .na \fB\fB/etc/services\fR\fR .ad .RS 22n -.rt Internet network services .RE .sp .ne 2 -.mk .na \fB\fB/etc/netconfig\fR\fR .ad .RS 22n -.rt network configuration file .RE .sp .ne 2 -.mk .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 22n -.rt configuration file for the name-service switch .RE @@ -291,13 +277,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 _ -MT-LevelT{ +MT-Level T{ See "Reentrant Interfaces" in \fBDESCRIPTION\fR. T} .TE diff --git a/usr/src/man/man3socket/getsockname.3socket b/usr/src/man/man3socket/getsockname.3socket index f5e5194554..a7ab0d1318 100644 --- a/usr/src/man/man3socket/getsockname.3socket +++ b/usr/src/man/man3socket/getsockname.3socket @@ -3,7 +3,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 getsockname 3SOCKET "12 Dec 1997" "SunOS 5.11" "Sockets Library Functions" +.TH GETSOCKNAME 3SOCKET "Dec 12, 1997" .SH NAME getsockname \- get socket name .SH SYNOPSIS @@ -11,7 +11,7 @@ getsockname \- get socket name .nf \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsocket\fR \fB -lnsl \fR [ \fIlibrary\fR ... ] #include <sys/types.h> -#include <sys/socket.h> +#include <sys/socket.h> \fBint\fR \fBgetsockname\fR(\fBint\fR \fIs\fR, \fBstruct sockaddr *\fR\fIname\fR, \fBsocklen_t *\fR\fInamelen\fR); .fi @@ -34,46 +34,38 @@ If successful, \fBgetsockname()\fR returns \fB0\fR; otherwise it returns The call succeeds unless: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 12n -.rt The argument \fIs\fR is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 12n -.rt There was insufficient memory available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 12n -.rt There were insufficient STREAMS resources available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 12n -.rt The argument \fIs\fR is not a socket. .RE @@ -85,13 +77,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getsockopt.3socket b/usr/src/man/man3socket/getsockopt.3socket index 7aeaa140b3..1b9032d7a0 100644 --- a/usr/src/man/man3socket/getsockopt.3socket +++ b/usr/src/man/man3socket/getsockopt.3socket @@ -4,7 +4,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 getsockopt 3SOCKET "27 Jan 2009" "SunOS 5.11" "Sockets Library Functions" +.TH GETSOCKOPT 3SOCKET "Jan 27, 2009" .SH NAME getsockopt, setsockopt \- get and set options on sockets .SH SYNOPSIS @@ -67,23 +67,19 @@ and the linger interval. \fBstruct linger\fR is defined in <\fBsys/socket.h\fR>. \fBstruct\fR \fBlinger\fR contains the following members: .sp .ne 2 -.mk .na \fB\fBl_onoff\fR\fR .ad .RS 12n -.rt on = 1/off = 0 .RE .sp .ne 2 -.mk .na \fB\fBl_linger\fR\fR .ad .RS 12n -.rt linger time, in seconds .RE @@ -93,200 +89,164 @@ The following options are recognized at the socket level. Except as noted, each may be examined with \fBgetsockopt()\fR and set with \fBsetsockopt()\fR. .sp .ne 2 -.mk .na \fB\fBSO_DEBUG\fR\fR .ad .RS 19n -.rt enable/disable recording of debugging information .RE .sp .ne 2 -.mk .na \fB\fBSO_REUSEADDR\fR\fR .ad .RS 19n -.rt enable/disable local address reuse .RE .sp .ne 2 -.mk .na \fB\fBSO_KEEPALIVE\fR\fR .ad .RS 19n -.rt enable/disable keep connections alive .RE .sp .ne 2 -.mk .na \fB\fBSO_DONTROUTE\fR\fR .ad .RS 19n -.rt enable/disable routing bypass for outgoing messages .RE .sp .ne 2 -.mk .na \fB\fBSO_LINGER\fR\fR .ad .RS 19n -.rt linger on close if data is present .RE .sp .ne 2 -.mk .na \fB\fBSO_BROADCAST\fR\fR .ad .RS 19n -.rt enable/disable permission to transmit broadcast messages .RE .sp .ne 2 -.mk .na \fB\fBSO_OOBINLINE\fR\fR .ad .RS 19n -.rt enable/disable reception of out-of-band data in band .RE .sp .ne 2 -.mk .na \fB\fBSO_SNDBUF\fR\fR .ad .RS 19n -.rt set buffer size for output .RE .sp .ne 2 -.mk .na \fB\fBSO_RCVBUF\fR\fR .ad .RS 19n -.rt set buffer size for input .RE .sp .ne 2 -.mk .na \fB\fBSO_DGRAM_ERRIND\fR\fR .ad .RS 19n -.rt application wants delayed error .RE .sp .ne 2 -.mk .na \fB\fBSO_TIMESTAMP\fR\fR .ad .RS 19n -.rt enable/disable reception of timestamp with datagrams .RE .sp .ne 2 -.mk .na \fB\fBSO_EXCLBIND\fR\fR .ad .RS 19n -.rt enable/disable exclusive binding of the socket .RE .sp .ne 2 -.mk .na \fB\fBSO_TYPE\fR\fR .ad .RS 19n -.rt get the type of the socket (get only) .RE .sp .ne 2 -.mk .na \fB\fBSO_ERROR\fR\fR .ad .RS 19n -.rt get and clear error on the socket (get only) .RE .sp .ne 2 -.mk .na \fB\fBSO_MAC_EXEMPT\fR\fR .ad .RS 19n -.rt get or set mandatory access control on the socket. This option is available only when the system is configured with Trusted Extensions. .RE .sp .ne 2 -.mk .na \fB\fBSO_ALLZONES\fR\fR .ad .RS 19n -.rt bypass zone boundaries (privileged). .RE .sp .ne 2 -.mk .na \fB\fBSO_DOMAIN\fR\fR .ad .RS 19n -.rt get the domain used in the socket (get only) .RE .sp .ne 2 -.mk .na \fB\fBSO_PROTOTYPE\fR\fR .ad .RS 19n -.rt for socket in domains \fBPF_INET\fR and \fBPF_INET6\fR, get the underlying protocol number used in the socket. For socket in domain \fBPF_ROUTE\fR, get the address family used in the socket. @@ -406,168 +366,138 @@ error. The \fBgetsockopt()\fR and \fBsetsockopt()\fR calls succeed unless: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 17n -.rt The argument \fIs\fR is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 17n -.rt There was insufficient memory available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOPROTOOPT\fR\fR .ad .RS 17n -.rt The option is unknown at the level indicated. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 17n -.rt There were insufficient STREAMS resources available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 17n -.rt The argument \fIs\fR is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBENOBUFS\fR\fR .ad .RS 17n -.rt \fBSO_SNDBUF\fR or \fBSO_RCVBUF\fR exceeds a system limit. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 17n -.rt Invalid length for \fBIP_OPTIONS\fR. .RE .sp .ne 2 -.mk .na \fB\fBEHOSTUNREACH\fR\fR .ad .RS 17n -.rt Invalid address for \fBIP_MULTICAST_IF\fR. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 17n -.rt Not a multicast address for \fBIP_ADD_MEMBERSHIP\fR and \fBIP_DROP_MEMBERSHIP\fR. .RE .sp .ne 2 -.mk .na \fB\fBEADDRNOTAVAIL\fR\fR .ad .RS 17n -.rt Bad interface address for \fBIP_ADD_MEMBERSHIP\fR and \fBIP_DROP_MEMBERSHIP\fR. .RE .sp .ne 2 -.mk .na \fB\fBEADDRINUSE\fR\fR .ad .RS 17n -.rt Address already joined for \fBIP_ADD_MEMBERSHIP\fR. .RE .sp .ne 2 -.mk .na \fB\fBENOENT\fR\fR .ad .RS 17n -.rt Address not joined for \fBIP_DROP_MEMBERSHIP\fR. .RE .sp .ne 2 -.mk .na \fB\fBEPERM\fR\fR .ad .RS 17n -.rt No permissions. .RE .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 17n -.rt Permission denied. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 17n -.rt The specified option is invalid at the specified socket level, or the socket has been shut down. .RE @@ -580,13 +510,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/getsourcefilter.3socket b/usr/src/man/man3socket/getsourcefilter.3socket index 64707387d1..22d231a763 100644 --- a/usr/src/man/man3socket/getsourcefilter.3socket +++ b/usr/src/man/man3socket/getsourcefilter.3socket @@ -3,7 +3,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 getsourcefilter 3SOCKET "20 Aug 2007" "SunOS 5.11" "Sockets Library Functions" +.TH GETSOURCEFILTER 3SOCKET "Aug 20, 2007" .SH NAME getsourcefilter, setsourcefilter, getipv4sourcefilter, setipv4sourcefilter \- retrieve and set a socket's multicast filter @@ -119,69 +119,57 @@ If successful, all four functions return \fB0\fR. Otherwise, they return These functions will fail if: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The \fIs\fR argument is not a valid descriptor. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 16n -.rt The address family of the passed-in \fIsockaddr\fR is not \fBAF_INET\fR or \fBAF_INET6\fR. .RE .sp .ne 2 -.mk .na \fB\fBENOPROTOOPT\fR\fR .ad .RS 16n -.rt The socket \fIs\fR is not of type \fBSOCK_DGRAM\fR or \fBSOCK_RAW\fR. .RE .sp .ne 2 -.mk .na \fB\fBENOPROTOOPT\fR\fR .ad .RS 16n -.rt The address family of the group parameter does not match the protocol family of the socket. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 16n -.rt Insufficient \fBSTREAMS\fR resources available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENXIO\fR\fR .ad .RS 16n -.rt The \fIinterface\fR argument, either an index or an IPv4 address, does not identify a valid interface. .RE @@ -192,12 +180,10 @@ The \fBgetsourcefilter()\fR and \fBgetipv4sourcefilter()\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBEADDRNOTAVAIL\fR\fR .ad .RS 17n -.rt The tuple consisting of socket, interface, and multicast group values does not exist; \fIgroup\fR is not being listened to on \fIinterface\fR by \fIsocket\fR. .RE @@ -208,12 +194,10 @@ The functions \fBsetsourcefilter()\fRand \fBsetipv4sourcefilter()\fR can fail in the following additional case: .sp .ne 2 -.mk .na \fB\fBENOBUFS\fR\fR .ad .RS 11n -.rt The source filter list is larger than that allowed by the implementation. .RE @@ -225,15 +209,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/icmp6_filter.3socket b/usr/src/man/man3socket/icmp6_filter.3socket index b6dd176012..3bd77f69f2 100644 --- a/usr/src/man/man3socket/icmp6_filter.3socket +++ b/usr/src/man/man3socket/icmp6_filter.3socket @@ -1,10 +1,10 @@ '\" te -.\" Copyright 2003 AT&T +.\" Copyright 2003 AT&T .\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved .\" 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 icmp6_filter 3SOCKET "13 Dec 2003" "SunOS 5.11" "Sockets Library Functions" +.TH ICMP6_FILTER 3SOCKET "Dec 13, 2003" .SH NAME icmp6_filter \- Variable allocation datatype .SH SYNOPSIS @@ -85,14 +85,13 @@ 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 _ -MT-LevelSafe +MT-Level Safe _ -Interface StabilityStandard +Interface Stability Standard .TE diff --git a/usr/src/man/man3socket/if_nametoindex.3socket b/usr/src/man/man3socket/if_nametoindex.3socket index 3bcb115718..04331f79ab 100644 --- a/usr/src/man/man3socket/if_nametoindex.3socket +++ b/usr/src/man/man3socket/if_nametoindex.3socket @@ -3,7 +3,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 if_nametoindex 3SOCKET "28 Jan 2009" "SunOS 5.11" "Sockets Library Functions" +.TH IF_NAMETOINDEX 3SOCKET "Jan 28, 2009" .SH NAME if_nametoindex, if_indextoname, if_nameindex, if_freenameindex \- routines to map Internet Protocol network interface names and interface indexes @@ -34,34 +34,28 @@ map Internet Protocol network interface names and interface indexes .SH PARAMETERS .sp .ne 2 -.mk .na \fB\fIifname\fR\fR .ad .RS 11n -.rt interface name .RE .sp .ne 2 -.mk .na \fB\fIifindex\fR\fR .ad .RS 11n -.rt interface index .RE .sp .ne 2 -.mk .na \fB\fIptr\fR\fR .ad .RS 11n -.rt pointer returned by \fBif_nameindex()\fR .RE @@ -82,12 +76,10 @@ the specified index is returned. \fBIF_NAMESIZE\fR is defined in the interface name. .sp .ne 2 -.mk .na \fB\fBif_nametoindex()\fR\fR .ad .RS 22n -.rt The \fBif_nametoindex()\fR function returns the interface index corresponding to the interface name pointed to by the \fIifname\fR pointer. If the specified interface name does not exist, the return value is \fB0\fR, and \fIerrno\fR is @@ -98,12 +90,10 @@ example, \fBENOMEM\fR. .sp .ne 2 -.mk .na \fB\fBif_indextoname()\fR\fR .ad .RS 22n -.rt The \fBif_indextoname()\fR function maps an interface index into its corresponding name. This pointer is also the return value of the function. If there is no interface corresponding to the specified index, \fBNULL\fR is @@ -114,12 +104,10 @@ such as running out of memory, \fBif_indextoname()\fR returns \fBNULL\fR and .sp .ne 2 -.mk .na \fB\fBif_nameindex()\fR\fR .ad .RS 22n -.rt The \fBif_nameindex()\fR function returns an array of \fBif_nameindex\fR structures, one structure per interface. The \fBif_nameindex\fR structure holds the information about a single interface and is defined when the @@ -127,10 +115,10 @@ the information about a single interface and is defined when the .sp .in +2 .nf -struct if_nameindex - unsigned int if_index; /* 1, 2, ... */ +struct if_nameindex + unsigned int if_index; /* 1, 2, ... */ char *if_name; /* "net0", ... */ -}; +}; .fi .in -2 @@ -147,12 +135,10 @@ by the \fBif_freenameindex()\fR function. .sp .ne 2 -.mk .na \fB\fBif_freenameindex()\fR\fR .ad .RS 22n -.rt The \fBif_freenameindex()\fR function frees the dynamic memory that was allocated by \fBif_nameindex()\fR. The argument to this function must be a pointer that was returned by \fBif_nameindex()\fR. @@ -166,12 +152,11 @@ 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 -MT-LevelMT-Safe +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE +MT-Level MT-Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/inet.3socket b/usr/src/man/man3socket/inet.3socket index beea488f1f..818fb98fdd 100644 --- a/usr/src/man/man3socket/inet.3socket +++ b/usr/src/man/man3socket/inet.3socket @@ -1,10 +1,10 @@ '\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved -.\" Copyright 1989 AT&T +.\" Copyright 1989 AT&T .\" 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 inet 3SOCKET "28 Nov 2007" "SunOS 5.11" "Sockets Library Functions" +.TH INET 3SOCKET "Nov 28, 2007" .SH NAME inet, inet6, inet_ntop, inet_pton, inet_aton, inet_addr, inet_network, inet_makeaddr, inet_lnaof, inet_netof, inet_ntoa \- Internet address @@ -291,15 +291,14 @@ 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 StabilitySee below. +Interface Stability See below. _ -MT-LevelSafe +MT-Level Safe .TE .sp diff --git a/usr/src/man/man3socket/inet6_opt.3socket b/usr/src/man/man3socket/inet6_opt.3socket index eb210d19d2..b081684f7a 100644 --- a/usr/src/man/man3socket/inet6_opt.3socket +++ b/usr/src/man/man3socket/inet6_opt.3socket @@ -1,10 +1,10 @@ '\" te -.\" Copyright 2003 AT&T +.\" Copyright 2003 AT&T .\" Copyright (C) 2007, Sun Microsystems, Inc. All Rights Reserved .\" 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 inet6_opt 3SOCKET "15 Feb 2007" "SunOS 5.11" "Sockets Library Functions" +.TH INET6_OPT 3SOCKET "Feb 15, 2007" .SH NAME inet6_opt, inet6_opt_init, inet6_opt_append, inet6_opt_finish, inet6_opt_set_val, inet6_opt_next, inet6_opt_find, inet6_opt_get_val \- Option @@ -168,15 +168,14 @@ 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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/inet6_rth.3socket b/usr/src/man/man3socket/inet6_rth.3socket index 6d09f4a6f2..02dca243d4 100644 --- a/usr/src/man/man3socket/inet6_rth.3socket +++ b/usr/src/man/man3socket/inet6_rth.3socket @@ -1,10 +1,10 @@ '\" te -.\" Copyright 2003 AT&T +.\" Copyright 2003 AT&T .\" Copyright (C) 2007, Sun Microsystems, Inc. All Rights Reserved .\" 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 inet6_rth 3SOCKET "15 Feb 2007" "SunOS 5.11" "Sockets Library Functions" +.TH INET6_RTH 3SOCKET "Feb 15, 2007" .SH NAME inet6_rth, inet6_rth_space, inet6_rth_init, inet6_rth_add, inet6_rth_reverse, inet6_rth_segments, inet6_rth_getaddr \- Routing header manipulation @@ -172,15 +172,14 @@ 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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/listen.3socket b/usr/src/man/man3socket/listen.3socket index 5546f5c138..f918145a50 100644 --- a/usr/src/man/man3socket/listen.3socket +++ b/usr/src/man/man3socket/listen.3socket @@ -1,11 +1,11 @@ '\" te -.\" Copyright 1989 AT&T +.\" Copyright 1989 AT&T .\" Copyright (C) 1999, Sun Microsystems, .\" Inc. All Rights Reserved .\" 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 listen 3SOCKET "8 Nov 1999" "SunOS 5.11" "Sockets Library Functions" +.TH LISTEN 3SOCKET "Nov 8, 1999" .SH NAME listen \- listen for connections on a socket .SH SYNOPSIS @@ -48,34 +48,28 @@ A \fB0\fR return value indicates success; \fB\(mi1\fR indicates an error. The call fails if: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 14n -.rt The argument \fIs\fR is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 14n -.rt The argument \fIs\fR is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 14n -.rt The socket is not of a type that supports the operation \fBlisten()\fR. .RE @@ -87,13 +81,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/rcmd.3socket b/usr/src/man/man3socket/rcmd.3socket index 266dc6e2b5..cd9517a569 100644 --- a/usr/src/man/man3socket/rcmd.3socket +++ b/usr/src/man/man3socket/rcmd.3socket @@ -1,7 +1,7 @@ '\" te .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. .\" Copyright (C) 2004, Sun Microsystems, Inc. All Rights Reserved -.TH rcmd 3SOCKET "10 Feb 2004" "SunOS 5.11" "Sockets Library Functions" +.TH RCMD 3SOCKET "Feb 10, 2004" .SH NAME rcmd, rcmd_af, rresvport, rresvport_af, ruserok \- routines for returning a stream to a remote command @@ -129,23 +129,19 @@ with the global value \fIerrno\fR set according to the reason for failure. .SH FILES .sp .ne 2 -.mk .na \fB\fB/etc/hosts.equiv\fR\fR .ad .RS 20n -.rt system trusted hosts and users .RE .sp .ne 2 -.mk .na \fB\fB~/.rhosts\fR\fR .ad .RS 20n -.rt user's trusted hosts and users .RE @@ -157,13 +153,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 _ -MT-LevelUnsafe +MT-Level Unsafe .TE .sp diff --git a/usr/src/man/man3socket/recv.3socket b/usr/src/man/man3socket/recv.3socket index 5ca6d02529..fa011c4481 100644 --- a/usr/src/man/man3socket/recv.3socket +++ b/usr/src/man/man3socket/recv.3socket @@ -1,10 +1,10 @@ '\" te -.\" Copyright 1989 AT&T +.\" Copyright 1989 AT&T .\" Copyright (C) 2006, Sun Microsystems, Inc. All Rights Reserved .\" 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 recv 3SOCKET "20 Aug 2007" "SunOS 5.11" "Sockets Library Functions" +.TH RECV 3SOCKET "Aug 20, 2007" .SH NAME recv, recvfrom, recvmsg \- receive a message from a socket .SH SYNOPSIS @@ -69,36 +69,30 @@ The \fIflags\fR parameter is formed by an \fBOR\fR operation on one or more of the following: .sp .ne 2 -.mk .na \fB\fBMSG_OOB\fR\fR .ad .RS 16n -.rt Read any \fBout-of-band\fR data present on the socket rather than the regular \fBin-band\fR data. .RE .sp .ne 2 -.mk .na \fB\fBMSG_PEEK\fR\fR .ad .RS 16n -.rt Peek at the data present on the socket. The data is returned, but not consumed to allow a subsequent receive operation to see the same data. .RE .sp .ne 2 -.mk .na \fB\fBMSG_WAITALL\fR\fR .ad .RS 16n -.rt Messages are blocked until the full amount of data requested is returned. The \fBrecv()\fR function can return a smaller amount of data if a signal is caught, the connection is terminated, \fBMSG_PEEK\fR is specified, or if an @@ -107,12 +101,10 @@ error is pending for the socket. .sp .ne 2 -.mk .na \fB\fBMSG_DONTWAIT\fR\fR .ad .RS 16n -.rt Pending messages received on the connection are returned. If data is unavailable, the function does not block. This behavior is the equivalent to specifying \fBO_NONBLOCK\fR on the file descriptor of a socket, except that @@ -136,113 +128,93 @@ The \fBrecv()\fR, \fBrecvfrom()\fR, and \fBrecvmsg()\fR functions return errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The \fIs\fR file descriptor is invalid. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The \fBMSG_OOB\fR flag is set and no out-of-band data is available. .RE .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 16n -.rt The operation is interrupted by the delivery of a signal before any data is available to be received. .RE .sp .ne 2 -.mk .na \fB\fBEIO\fR\fR .ad .RS 16n -.rt An I/O error occurs while reading from or writing to the file system. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 16n -.rt Insufficient user memory is available to complete operation. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 16n -.rt Insufficient \fBSTREAMS\fR resources are available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt \fIs\fR is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBESTALE\fR\fR .ad .RS 16n -.rt A stale NFS file handle exists. .RE .sp .ne 2 -.mk .na \fB\fBEWOULDBLOCK\fR\fR .ad .RS 16n -.rt The socket is marked non-blocking and the requested operation would block. .RE .sp .ne 2 -.mk .na \fB\fBECONNREFUSED\fR\fR .ad .RS 16n -.rt The requested connection was refused by the peer. For connected IPv4 and IPv6 datagram sockets, this indicates that the system received an \fBICMP Destination Port Unreachable\fR message from the peer. @@ -254,12 +226,10 @@ The \fBrecv()\fR and \fBrecvfrom()\fR functions fail under the following conditions: .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The \fIlen\fR argument overflows a \fBssize_t\fR. .RE @@ -268,12 +238,10 @@ The \fIlen\fR argument overflows a \fBssize_t\fR. The \fBrecvmsg()\fR function returns errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The \fBmsg_iovlen\fR member of the \fBmsghdr\fR structure pointed to by \fImsg\fR is less than or equal to \fB0\fR, or greater than \fB[IOV_MAX}\fR. See \fBIntro\fR(2) for a definition of \fB[IOV_MAX}\fR. @@ -281,12 +249,10 @@ See \fBIntro\fR(2) for a definition of \fB[IOV_MAX}\fR. .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt One of the \fIiov_len\fR values in the \fBmsg_iov\fR array member of the \fBmsghdr\fR structure pointed to by \fImsg\fR is negative, or the sum of the \fIiov_len\fR values in the \fBmsg_iov\fR array overflows a \fBssize_t\fR. @@ -300,15 +266,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/rexec.3socket b/usr/src/man/man3socket/rexec.3socket index 1c34c3fe6d..34163c2d80 100644 --- a/usr/src/man/man3socket/rexec.3socket +++ b/usr/src/man/man3socket/rexec.3socket @@ -4,7 +4,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 rexec 3SOCKET "10 Feb 2004" "SunOS 5.11" "Sockets Library Functions" +.TH REXEC 3SOCKET "Feb 10, 2004" .SH NAME rexec, rexec_af \- return stream to a remote command .SH SYNOPSIS @@ -90,13 +90,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 _ -MT-LevelUnsafe +MT-Level Unsafe .TE .sp diff --git a/usr/src/man/man3socket/sctp_bindx.3socket b/usr/src/man/man3socket/sctp_bindx.3socket index b2a0c39743..3f94ca2846 100644 --- a/usr/src/man/man3socket/sctp_bindx.3socket +++ b/usr/src/man/man3socket/sctp_bindx.3socket @@ -3,7 +3,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 sctp_bindx 3SOCKET "22 Aug 2007" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_BINDX 3SOCKET "Aug 22, 2007" .SH NAME sctp_bindx \- add or remove IP addresses to or from an SCTP socket .SH SYNOPSIS @@ -35,23 +35,19 @@ be added or removed from a socket. The \fIflags\fR parameter is formed by bitwise OR of zero or more of the following flags: .sp .ne 2 -.mk .na \fB\fBSCTP_BINDX_ADD_ADDR\fR\fR .ad .RS 23n -.rt Indicates that addresses from \fIaddrs\fR should be added to the SCTP socket. .RE .sp .ne 2 -.mk .na \fB\fBSCTP_BINDX_REM_ADDR\fR\fR .ad .RS 23n -.rt Indicates that addresses from \fIaddrs\fR should be removed from the SCTP socket. .RE @@ -83,56 +79,46 @@ error. The \fBsctp_bindx()\fR call fails under the following conditions. .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 12n -.rt The \fIsock\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 12n -.rt The \fIsock\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt One or more of the IPv4 or IPv6 addresses is invalid. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt The endpoint is not bound. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt The last address is requested to be removed from an established association. .RE @@ -144,15 +130,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_getladdrs.3socket b/usr/src/man/man3socket/sctp_getladdrs.3socket index a5c5234023..255b0ca435 100644 --- a/usr/src/man/man3socket/sctp_getladdrs.3socket +++ b/usr/src/man/man3socket/sctp_getladdrs.3socket @@ -3,7 +3,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 sctp_getladdrs 3SOCKET "23 Jan 2008" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_GETLADDRS 3SOCKET "Jan 23, 2008" .SH NAME sctp_getladdrs, sctp_freeladdrs \- returns all locally bound addresses on an SCTP socket @@ -63,45 +63,37 @@ number of addresses in the \fIaddrs\fR array. Otherwise, the function returns The \fBsctp_getladdrs()\fR call fails under the following conditions. .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 12n -.rt The \fIsock\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 12n -.rt The \fIsock\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt The \fIaddrs\fR argument is \fINULL\fR. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt The \fIid\fR argument is an invalid socket. .RE @@ -113,15 +105,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_getpaddrs.3socket b/usr/src/man/man3socket/sctp_getpaddrs.3socket index f3deaa5ef6..d816a3723c 100644 --- a/usr/src/man/man3socket/sctp_getpaddrs.3socket +++ b/usr/src/man/man3socket/sctp_getpaddrs.3socket @@ -3,7 +3,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 sctp_getpaddrs 3SOCKET "23 Jan 2008" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_GETPADDRS 3SOCKET "Jan 23, 2008" .SH NAME sctp_getpaddrs, sctp_freepaddrs \- returns all peer addresses on an SCTP association @@ -63,57 +63,47 @@ The \fBsctp_getpaddrs()\fR succeeds unless one of the following conditions exist. .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 12n -.rt The \fIsock\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 12n -.rt The \fIsock\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt The \fIaddrs\fR argument is \fINULL\fR. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 12n -.rt The \fIid\fR argument is an invalid association identifier for a one-to-many style STP socket. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 12n -.rt The specified socket is not connected. .RE @@ -125,15 +115,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_opt_info.3socket b/usr/src/man/man3socket/sctp_opt_info.3socket index 8ef16b6e2a..394b60d5a8 100644 --- a/usr/src/man/man3socket/sctp_opt_info.3socket +++ b/usr/src/man/man3socket/sctp_opt_info.3socket @@ -3,7 +3,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 sctp_opt_info 3SOCKET "25 Feb 2005" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_OPT_INFO 3SOCKET "Feb 25, 2005" .SH NAME sctp_opt_info \- examine SCTP level options for an SCTP endpoint .SH SYNOPSIS @@ -37,12 +37,10 @@ can be ignored for one-to-one style or branched-off one-to-many style SCTP sockets. .sp .ne 2 -.mk .na \fB\fBSCTP_RTOINFO\fR\fR .ad .RS 27n -.rt Returns the protocol parameters used to initialize and bind retransmission timeout (RTO) tunable. The following structure is used to access these parameters: @@ -67,12 +65,10 @@ where: .sp .ne 2 -.mk .na \fB\fBSSCTP_ASSOCINFO\fR\fR .ad .RS 27n -.rt Returns association-specific parameters. The following structure is used to access the parameters: .sp @@ -106,12 +102,10 @@ All parameters with time values are in milliseconds. .sp .ne 2 -.mk .na \fB\fBSCTP_DEFAULT_SEND_PARAM\fR\fR .ad .RS 27n -.rt Returns the default set of parameters used by the \fBsendto()\fR function on this association. The following structure is used to access the parameters: .sp @@ -166,12 +160,10 @@ where: .sp .ne 2 -.mk .na \fB\fBSCTP_PEER_ADDR_PARAMS\fR\fR .ad .RS 27n -.rt Returns the parameters for a specified peer address of the association. The following structure is used to access the parameters: .sp @@ -187,8 +179,8 @@ where: spp_assoc_id Association ID specified by the caller spp_address Peer's address spp_hbinterval Heartbeat interval in milliseconds - spp_pathmaxrxt Maximum number of retransmissions - to an address before it is + spp_pathmaxrxt Maximum number of retransmissions + to an address before it is considered unreachable .fi .in -2 @@ -197,12 +189,10 @@ where: .sp .ne 2 -.mk .na \fB\fBSCTP_STATUS\fR\fR .ad .RS 27n -.rt Returns the current status information about the association. The following structure is used to access the parameters: .sp @@ -235,10 +225,10 @@ where: SCTP_SHUTDOWN_SENT SCTP_SHUTDOWN_RECEIVED SCTP_SHUTDOWN_ACK_SENT - sstat_rwnd Current receive window of the + sstat_rwnd Current receive window of the association peer sstat_unackdata Number of unacked DATA chunks - sstat_penddata Number of DATA chunks pending + sstat_penddata Number of DATA chunks pending receipt sstat_instrms Number of inbound streams sstat_outstrms Number of outbound streams @@ -268,14 +258,14 @@ where: SCTP_ACTIVE or SCTP_INACTIVE spinfo_cwnd Congestion window - of the peer + of the peer address spinfo_srtt Smoothed round-trip time calculation of the peer address - spinfo_rto Current retransmission + spinfo_rto Current retransmission timeout value of the - peer address in + peer address in milliseconds spinfo_mtu P-MTU of the address .fi @@ -295,67 +285,55 @@ error. The \fBsctp_opt_info()\fR call fails under the following conditions. .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The \fIsock\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt The \fIsock\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The association \fIid\fR is invalid for a one-to-many style SCTP socket. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The input buffer length is insufficient for the option specified. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The peer address is invalid or does not belong to the association. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 16n -.rt The address family for the peer's address is other than \fBAF_INET\fR or \fBAF_INET6\fR. .RE @@ -368,15 +346,14 @@ 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 StabilityEvolving +Interface Stability Evolving _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_peeloff.3socket b/usr/src/man/man3socket/sctp_peeloff.3socket index c143b55dad..00449dfbbb 100644 --- a/usr/src/man/man3socket/sctp_peeloff.3socket +++ b/usr/src/man/man3socket/sctp_peeloff.3socket @@ -4,7 +4,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 sctp_peeloff 3SOCKET "05 Mar 2004" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_PEELOFF 3SOCKET "Mar 05, 2004" .SH NAME sctp_peeloff \- branch off existing association from a one-to-many SCTP socket to create a one-to-one STP socket @@ -42,35 +42,29 @@ descriptor that references the branched-off socket. The function returns The \fBsctp_peeloff()\fR function fails under the following conditions. .sp .ne 2 -.mk .na \fB\fBEOPTNOTSUPP\fR\fR .ad .RS 15n -.rt The \fIsock\fR argument is not a one-to-many style SCTP socket. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 15n -.rt The \fIid\fR is \fB0\fR or greater than the maximum number of associations for \fIsock\fR. .RE .sp .ne 2 -.mk .na \fB\fBEMFILE\fR\fR .ad .RS 15n -.rt Failure to create a new user file descriptor or file structure. .RE @@ -82,15 +76,14 @@ 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 StabilityEvolving +Interface Stability Evolving _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_recvmsg.3socket b/usr/src/man/man3socket/sctp_recvmsg.3socket index d8746c7597..8c5018b48e 100644 --- a/usr/src/man/man3socket/sctp_recvmsg.3socket +++ b/usr/src/man/man3socket/sctp_recvmsg.3socket @@ -4,7 +4,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 sctp_recvmsg 3SOCKET "14 Jul 2004" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_RECVMSG 3SOCKET "Jul 14, 2004" .SH NAME sctp_recvmsg \- receive message from an SCTP socket .SH SYNOPSIS @@ -30,46 +30,38 @@ In addition to specifying the message buffer \fImsg\fR and the length \fIlen\fR of the buffer, the following parameters can be set: .sp .ne 2 -.mk .na \fB\fIfrom\fR\fR .ad .RS 13n -.rt Pointer to an address, filled in with the sender's address .RE .sp .ne 2 -.mk .na \fB\fIfromlen\fR\fR .ad .RS 13n -.rt Size of the buffer associated with the \fIfrom\fR parameter .RE .sp .ne 2 -.mk .na \fB\fIsinfo\fR\fR .ad .RS 13n -.rt Pointer to an \fBsctp_sndrcvinfo\fR structure, filled in upon the receipt of the message .RE .sp .ne 2 -.mk .na \fB\fImsg_flags\fR\fR .ad .RS 13n -.rt Message flags such as \fBMSG_CTRUNC\fR, \fBMSG_NOTIFICATION\fR, \fBMSG_EOR\fR .RE @@ -89,45 +81,37 @@ number of bytes received. The function returns \fB-1\fR if an error occurs. The \fBsctp_recvmsg()\fR function fails under the following conditions. .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 14n -.rt The \fIs\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 14n -.rt The \fIs\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 14n -.rt \fBMSG_OOB\fR is set as a flag. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 14n -.rt There is no established association. .RE @@ -139,15 +123,14 @@ 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 StabilityEvolving +Interface Stability Evolving _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_send.3socket b/usr/src/man/man3socket/sctp_send.3socket index 4f31389942..81322ed3c1 100644 --- a/usr/src/man/man3socket/sctp_send.3socket +++ b/usr/src/man/man3socket/sctp_send.3socket @@ -3,7 +3,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 sctp_send 3SOCKET "19 Mar 2004" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_SEND 3SOCKET "Mar 19, 2004" .SH NAME sctp_send \- send message from an SCTP socket .SH SYNOPSIS @@ -25,34 +25,28 @@ The \fBsctp_send()\fR function sends messages from one-to-one and one-to-many style SCTP endpoints. The following parameters can be set: .sp .ne 2 -.mk .na \fB\fIs\fR\fR .ad .RS 7n -.rt Socket created by \fBsocket\fR(3SOCKET) .RE .sp .ne 2 -.mk .na \fB\fImsg\fR\fR .ad .RS 7n -.rt Message to be sent .RE .sp .ne 2 -.mk .na \fB\fIlen\fR\fR .ad .RS 7n -.rt Size of the message to be sent in bytes .RE @@ -77,113 +71,93 @@ of bytes sent. The function returns \fB-1\fR if an error occurs. The \fBsctp_send()\fR function fails under the following conditions. .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The \fIs\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt The \fIs\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 16n -.rt \fBMSG_ABORT\fR or \fBMSG_EOF\fR is set in the \fBsinfo_flags\fR field of \fBsinfo\fR for a one-to-one style SCTP socket. .RE .sp .ne 2 -.mk .na \fB\fBEPIPE\fR\fR .ad .RS 16n -.rt The socket is shutting down and no more writes are allowed. .RE .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad .RS 16n -.rt The socket is non-blocking and the transmit queue is full. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 16n -.rt There is no established association. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt Control message length is incorrect. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt Specified destination address does not belong to the association. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt The \fBstream_no\fR is outside the number of outbound streams supported by the association. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 16n -.rt Address family of the specified destination address is other than \fBAF_INET\fR or \fBAF_INET6\fR. .RE @@ -196,15 +170,14 @@ 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 StabilityEvolving +Interface Stability Evolving _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/sctp_sendmsg.3socket b/usr/src/man/man3socket/sctp_sendmsg.3socket index 835495080f..382e93b35f 100644 --- a/usr/src/man/man3socket/sctp_sendmsg.3socket +++ b/usr/src/man/man3socket/sctp_sendmsg.3socket @@ -3,7 +3,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 sctp_sendmsg 3SOCKET "22 Aug 2007" "SunOS 5.11" "Sockets Library Functions" +.TH SCTP_SENDMSG 3SOCKET "Aug 22, 2007" .SH NAME sctp_sendmsg \- send message from an SCTP socket .SH SYNOPSIS @@ -31,56 +31,46 @@ In addition to specifying \fImsg\fR as the message buffer and \fIlen\fR as the length of the buffer, the following parameters can be set: .sp .ne 2 -.mk .na \fB\fIto\fR\fR .ad .RS 14n -.rt Destination address .RE .sp .ne 2 -.mk .na \fB\fItolen\fR\fR .ad .RS 14n -.rt Length of the destination address .RE .sp .ne 2 -.mk .na \fB\fIppid\fR\fR .ad .RS 14n -.rt Application-specified payload protocol identifier .RE .sp .ne 2 -.mk .na \fB\fIstream_no\fR\fR .ad .RS 14n -.rt Target stream for the message .RE .sp .ne 2 -.mk .na \fB\fItimetolive\fR\fR .ad .RS 14n -.rt Time period in milliseconds after which the message expires if transmission for the message has not been started. A value of \fB0\fR indicates that the message does not expire. When the \fBMSG_PR_SCTP\fR flag is set the message expires, @@ -90,12 +80,10 @@ within the \fItimetolive\fR period. .sp .ne 2 -.mk .na \fB\fIcontext\fR\fR .ad .RS 14n -.rt Value returned when an error occurs in sending a message .RE @@ -105,24 +93,20 @@ The \fIflags\fR parameter is formed from the bitwise OR of zero or more of the following flags: .sp .ne 2 -.mk .na \fBMSG_UNORDERED\fR .ad .RS 17n -.rt This flag requests un-ordered delivery of the message. If this flag is clear the message is considered an ordered send. .RE .sp .ne 2 -.mk .na \fBMSG_ABORT\fR .ad .RS 17n -.rt When set, this flag causes the specified association to abort by sending an ABORT to the peer. The flag is used only for one-to-many style SCTP socket associations. @@ -130,24 +114,20 @@ associations. .sp .ne 2 -.mk .na \fBMSG_EOF\fR .ad .RS 17n -.rt When set, this flag invokes a graceful shutdown on a specified association. The flag is used only for one-to-many style SCTP socket associations. .RE .sp .ne 2 -.mk .na \fBMSG_PR_SCTP\fR .ad .RS 17n -.rt This flag indicates that the message is treated as partially reliable. The message expires unless the entire message is successfully transmitted within the time period specified in the \fItimetolive\fR parameter. @@ -174,111 +154,91 @@ number of bytes sent. The function returns \fB-1\fR if an error occurs. The \fBsctp_sendmsg()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt The \fIs\fR argument is an invalid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt The \fIs\fR argument is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 16n -.rt \fBMSG_OOB\fR is set as a \fIflag\fR. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 16n -.rt \fBMSG_ABORT\fR or \fBMSG_EOF\fR is set on a one-to-one style SCTP socket. .RE .sp .ne 2 -.mk .na \fB\fBEPIPE\fR\fR .ad .RS 16n -.rt The socket is shutting down and no more writes are allowed. .RE .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad .RS 16n -.rt The socket is non-blocking and the transmit queue is full. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 16n -.rt There is no established association. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt Control message length is incorrect. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n -.rt Specified destination address does not belong to the association. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 16n -.rt Address family of the specified destination address is other than \fBAF_INET\fR or \fBAF_INET6\fR. .RE @@ -291,15 +251,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/send.3socket b/usr/src/man/man3socket/send.3socket index f9e1ad6b15..249b746b27 100644 --- a/usr/src/man/man3socket/send.3socket +++ b/usr/src/man/man3socket/send.3socket @@ -4,7 +4,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 send 3SOCKET "31 Aug 2009" "SunOS 5.11" "Sockets Library Functions" +.TH SEND 3SOCKET "Aug 31, 2009" .SH NAME send, sendto, sendmsg \- send a message from a socket .SH SYNOPSIS @@ -62,12 +62,10 @@ The \fIflags\fR parameter is formed from the bitwise OR of zero or more of the following: .sp .ne 2 -.mk .na \fB\fBMSG_OOB\fR\fR .ad .RS 17n -.rt Send \fBout-of-band\fR data on sockets that support this notion. The underlying protocol must also support \fBout-of-band\fR data. Only \fBSOCK_STREAM\fR sockets created in the \fBAF_INET\fR or the \fBAF_INET6\fR address family @@ -76,12 +74,10 @@ support out-of-band data. .sp .ne 2 -.mk .na \fB\fBMSG_DONTROUTE\fR\fR .ad .RS 17n -.rt The \fBSO_DONTROUTE\fR option is turned on for the duration of the operation. It is used only by diagnostic or routing programs. .RE @@ -101,35 +97,29 @@ The \fBsend()\fR, \fBsendto()\fR, and \fBsendmsg()\fR functions return errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 16n -.rt \fIs\fR is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBEINTR\fR\fR .ad .RS 16n -.rt The operation was interrupted by delivery of a signal before any data could be buffered to be sent. .RE .sp .ne 2 -.mk .na \fB\fBEMSGSIZE\fR\fR .ad .RS 16n -.rt The message is too large to be sent all at once (as the socket requires), or the \fImsg_iovlen\fR member of the \fBmsghdr\fR structure pointed to by message is less than or equal to 0 or is greater than {\fBIOV_MAX\fR}. @@ -137,45 +127,37 @@ is less than or equal to 0 or is greater than {\fBIOV_MAX\fR}. .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 16n -.rt Insufficient memory is available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 16n -.rt Insufficient STREAMS resources are available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 16n -.rt \fIs\fR is not a socket. .RE .sp .ne 2 -.mk .na \fB\fBEWOULDBLOCK\fR\fR .ad .RS 16n -.rt The socket is marked non-blocking and the requested operation would block. \fBEWOULDBLOCK\fR is also returned when sufficient memory is not immediately available to allocate a suitable buffer. In such a case, the operation can be @@ -184,12 +166,10 @@ retried later. .sp .ne 2 -.mk .na \fB\fBECONNREFUSED\fR\fR .ad .RS 16n -.rt The requested connection was refused by the peer. For conected IPv4 and IPv6 datagram sockets, this indicates that the system received an \fBICMP Destination Port Unreachable\fR message from the peer in response to some prior @@ -202,12 +182,10 @@ The \fBsend()\fR and \fBsendto()\fR functions return errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The \fIlen\fR argument overflows a \fBssize_t\fR. .sp Inconsistent port attributes for system call. @@ -218,24 +196,20 @@ Inconsistent port attributes for system call. The \fBsendto()\fR function returns errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The value specified for the \fItolen\fR parameter is not the size of a valid address for the specified address family. .RE .sp .ne 2 -.mk .na \fB\fBEISCON\fR\fR .ad .RS 10n -.rt A destination address was specified and the socket is already connected. .RE @@ -244,12 +218,10 @@ A destination address was specified and the socket is already connected. The \fBsendmsg()\fR function returns errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The \fBmsg_iovlen\fR member of the \fBmsghdr\fR structure pointed to by \fImsg\fR is less than or equal to \fB0\fR, or the sum of the \fIiov_len\fR values in the \fBmsg_iov\fR array overflows a \fBssize_t\fR. @@ -266,12 +238,10 @@ One of the \fIiov_len\fR values in the \fBmsg_iov\fR array member of the The \fBsend()\fR function returns errors under the following conditions: .sp .ne 2 -.mk .na \fB\fBEPIPE\fR\fR .ad .RS 9n -.rt The socket is shut down for writing, or the socket is connection-mode and is no longer connected. In the latter case, if the socket is of type \fBSOCK_STREAM\fR, the \fBSIGPIPE\fR signal is generated to the calling thread. @@ -285,15 +255,14 @@ 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 StabilityCommitted +Interface Stability Committed _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/shutdown.3socket b/usr/src/man/man3socket/shutdown.3socket index 912797fec8..752a8731e7 100644 --- a/usr/src/man/man3socket/shutdown.3socket +++ b/usr/src/man/man3socket/shutdown.3socket @@ -4,7 +4,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 shutdown 3SOCKET "31 Jan 2005" "SunOS 5.11" "Sockets Library Functions" +.TH SHUTDOWN 3SOCKET "Jan 31, 2005" .SH NAME shutdown \- shut down part of a full-duplex connection .SH SYNOPSIS @@ -40,57 +40,47 @@ The \fIhow\fR values should be defined constants. The call succeeds unless one of the following conditions exists: .sp .ne 2 -.mk .na \fB\fBEBADF\fR\fR .ad .RS 12n -.rt The \fIs\fR value is not a valid file descriptor. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 12n -.rt Insufficient user memory is available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 12n -.rt Insufficient \fBSTREAMS\fR resources are available for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOTCONN\fR\fR .ad .RS 12n -.rt The specified socket is not connected. .RE .sp .ne 2 -.mk .na \fB\fBENOTSOCK\fR\fR .ad .RS 12n -.rt The \fIs\fR value is not a socket. .RE @@ -102,13 +92,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/socket.3socket b/usr/src/man/man3socket/socket.3socket index c474af2c5b..1587e04925 100644 --- a/usr/src/man/man3socket/socket.3socket +++ b/usr/src/man/man3socket/socket.3socket @@ -1,10 +1,10 @@ '\" te -.\" Copyright (C) 2009, Sun Microsystems, Inc. All Rights Reserved. +.\" Copyright (C) 2009, Sun Microsystems, Inc. All Rights Reserved. .\" Copyright 1989 AT&T .\" 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 3SOCKET "28 Jan 2009" "SunOS 5.11" "Sockets Library Functions" +.TH SOCKET 3SOCKET "Jan 28, 2009" .SH NAME socket \- create an endpoint for communication .SH SYNOPSIS @@ -33,45 +33,37 @@ These families are defined in \fB<sys/socket.h>\fR. The currently supported protocol families are: .sp .ne 2 -.mk .na \fB\fBPF_UNIX\fR\fR .ad .RS 12n -.rt \fBUNIX\fR system internal protocols .RE .sp .ne 2 -.mk .na \fB\fBPF_INET\fR\fR .ad .RS 12n -.rt Internet Protocol Version 4 (IPv4) .RE .sp .ne 2 -.mk .na \fB\fBPF_INET6\fR\fR .ad .RS 12n -.rt Internet Protocol Version 6 (IPv6) .RE .sp .ne 2 -.mk .na \fB\fBPF_NCA\fR\fR .ad .RS 12n -.rt Network Cache and Accelerator (NCA) protocols .RE @@ -176,100 +168,82 @@ Otherwise, -1 is returned and \fBerrno\fR is set to indicate the error. The \fBsocket()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 19n -.rt Permission to create a socket of the specified type or protocol is denied. .RE .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad .RS 19n -.rt There were insufficient resources available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 19n -.rt The specified address family is not supported by the protocol family. .RE .sp .ne 2 -.mk .na \fB\fBEMFILE\fR\fR .ad .RS 19n -.rt The per-process descriptor table is full. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 19n -.rt Insufficient user memory is available. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 19n -.rt There were insufficient STREAMS resources available to complete the operation. .RE .sp .ne 2 -.mk .na \fB\fBEPFNOSUPPORT\fR\fR .ad .RS 19n -.rt The specified protocol family is not supported. .RE .sp .ne 2 -.mk .na \fB\fBEPROTONOSUPPORT\fR\fR .ad .RS 19n -.rt The protocol type is not supported by the address family. .RE .sp .ne 2 -.mk .na \fB\fBEPROTOTYPE\fR\fR .ad .RS 19n -.rt The socket type is not supported by the protocol. .RE @@ -281,13 +255,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/socketpair.3socket b/usr/src/man/man3socket/socketpair.3socket index a455bef899..e4f5373ef1 100644 --- a/usr/src/man/man3socket/socketpair.3socket +++ b/usr/src/man/man3socket/socketpair.3socket @@ -4,7 +4,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 socketpair 3SOCKET "10 Jan 2001" "SunOS 5.11" "Sockets Library Functions" +.TH SOCKETPAIR 3SOCKET "Jan 10, 2001" .SH NAME socketpair \- create a pair of connected sockets .SH SYNOPSIS @@ -35,78 +35,64 @@ that are used in referencing the new sockets are returned in \fIsv\fR[0] and The call succeeds unless: .sp .ne 2 -.mk .na \fB\fBEAFNOSUPPORT\fR\fR .ad .RS 19n -.rt The specified address family is not supported on this machine. .RE .sp .ne 2 -.mk .na \fB\fBEMFILE\fR\fR .ad .RS 19n -.rt Too many descriptors are in use by this process. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 19n -.rt There was insufficient user memory for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBENOSR\fR\fR .ad .RS 19n -.rt There were insufficient \fBSTREAMS\fR resources for the operation to complete. .RE .sp .ne 2 -.mk .na \fB\fBEOPNOTSUPP\fR\fR .ad .RS 19n -.rt The specified protocol does not support creation of socket pairs. .RE .sp .ne 2 -.mk .na \fB\fBEPROTONOSUPPORT\fR\fR .ad .RS 19n -.rt The specified protocol is not supported on this machine. .RE .sp .ne 2 -.mk .na \fB\fBEACCES\fR\fR .ad .RS 19n -.rt The process does not have appropriate privileges. .RE @@ -118,13 +104,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 _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO diff --git a/usr/src/man/man3socket/spray.3socket b/usr/src/man/man3socket/spray.3socket index 612a5ece32..ed725e2c3d 100644 --- a/usr/src/man/man3socket/spray.3socket +++ b/usr/src/man/man3socket/spray.3socket @@ -3,7 +3,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 spray 3SOCKET "30 Dec 1996" "SunOS 5.11" "Sockets Library Functions" +.TH SPRAY 3SOCKET "Dec 30, 1996" .SH NAME spray \- scatter data in order to test the network .SH SYNOPSIS @@ -38,34 +38,28 @@ The spray program currently supports the following procedures, which should be called in the order given: .sp .ne 2 -.mk .na \fB\fBSPRAYPROC_CLEAR\fR\fR .ad .RS 19n -.rt This procedure clears the counter. .RE .sp .ne 2 -.mk .na \fB\fBSPRAYPROC_SPRAY\fR\fR .ad .RS 19n -.rt This procedure sends the packet. .RE .sp .ne 2 -.mk .na \fB\fBSPRAYPROC_GET\fR\fR .ad .RS 19n -.rt This procedure returns the count and the amount of time since the last \fBSPRAYPROC_CLEAR\fR. .RE @@ -125,13 +119,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 _ -MT-LevelUnsafe +MT-Level Unsafe .TE .SH SEE ALSO |