2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH LIBSOCKET 3LIB "Nov 2, 2004"
8 libsocket \- sockets library
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lsocket\fR [ \fIlibrary\fR... ]
18 Functions in this library provide the socket internetworking interface,
19 primarily used with the TCP/IP protocol suite.
23 The shared object \fBlibsocket.so.1\fR provides the public interfaces defined
24 below. See \fBIntro\fR(3) for additional information on shared object
32 \fB__xnet_bind\fR \fB__xnet_connect\fR
33 \fB__xnet_getsockopt\fR \fB__xnet_listen\fR
34 \fB__xnet_recvmsg\fR \fB__xnet_sendmsg\fR
35 \fB__xnet_sendto\fR \fB__xnet_socket\fR
36 \fB__xnet_socketpair\fR \fBaccept\fR
37 \fBbind\fR \fBconnect\fR
38 \fBendnetent\fR \fBendprotoent\fR
39 \fBendservent\fR \fBether_aton\fR
40 \fBether_hostton\fR \fBether_line\fR
41 \fBether_ntoa\fR \fBether_ntohost\fR
42 \fBfreeaddrinfo\fR \fBgai_strerror\fR
43 \fBgetaddrinfo\fR \fBgetnameinfo\fR
44 \fBgetnetbyaddr\fR \fBgetnetbyaddr_r\fR
45 \fBgetnetbyname\fR \fBgetnetbyname_r\fR
46 \fBgetnetent\fR \fBgetnetent_r\fR
47 \fBgetpeername\fR \fBgetprotobyname\fR
48 \fBgetprotobyname_r\fR \fBgetprotobynumber\fR
49 \fBgetprotobynumber_r\fR \fBgetprotoent\fR
50 \fBgetprotoent_r\fR \fBgetservbyname\fR
51 \fBgetservbyname_r\fR \fBgetservbyport\fR
52 \fBgetservbyport_r\fR \fBgetservent\fR
53 \fBgetservent_r\fR \fBgetsockname\fR
54 \fBgetsockopt\fR \fBhtonl\fR
55 \fBhtons\fR \fBif_freenameindex\fR
56 \fBif_indextoname\fR \fBif_nameindex\fR
57 \fBif_nametoindex\fR \fBin6addr_any\fR
58 \fBin6addr_loopback\fR \fBinet_lnaof\fR
59 \fBinet_makeaddr\fR \fBinet_network\fR
60 \fBlisten\fR \fBntohl\fR
61 \fBntohs\fR \fBrcmd\fR
62 \fBrcmd_af\fR \fBrecv\fR
63 \fBrecvfrom\fR \fBrecvmsg\fR
64 \fBrexec\fR \fBrexec_af\fR
65 \fBrresvport\fR \fBrresvport_af\fR
66 \fBruserok\fR \fBsend\fR
67 \fBsendmsg\fR \fBsendto\fR
68 \fBsetnetent\fR \fBsetprotoent\fR
69 \fBsetservent\fR \fBsetsockopt\fR
70 \fBshutdown\fR \fBsocket\fR
78 \fB\fB/lib/libsocket.so.1\fR\fR
87 \fB\fB/lib/64/libsocket.so.1\fR\fR
96 See \fBattributes\fR(5) for descriptions of the following attributes:
104 ATTRIBUTE TYPE ATTRIBUTE VALUE
106 MT-Level See the manual page for each interface.
112 \fBpvs\fR(1), \fBIntro\fR(2), \fBIntro\fR(3), \fBsocket.h\fR(3HEAD),