Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

libsocket(3LIB)

Name

libsocket - sockets library

Description

Historically, this library provided the socket API, primarily used with the TCP/IP protocol suite. This functionality now resides in libc(3LIB).

This library is maintained to provide backward compatibility for both runtime and compilation environments. The shared object is implemented as a filter on libc.so.1. New application development does not need to specify –lsocket.

Files

/lib/libsocket.so.1

32-bit shared object

/lib/64/libsocket.so.1

64-bit shared object

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/libc
Interface Stability
Obsolete Committed
MT-Level
See the manual page for each interface.

See Also

pvs(1), Intro(2), socket.h(3HEAD), intro(3), attributes(7)

History

The htonl(), htons(), ntohl(), and ntohs() functions were provided in the libsocket(3LIB) library in Solaris 2 through Solaris 10, and moved to the libc(3LIB) library in Solaris 11.0.

The rest of the historical content of the libsocket library moved to the libc(3LIB) library in Solaris 11.4.