man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: July 2014
 
 

un(3HEAD)

Name

un.h, un - definitions for UNIX-domain sockets

Synopsis

#include <sys/un.h>

Description

The < sys/un.h> header defines the sockaddr_un structure that includes the following members:

sa_family_t  sun_family   /* address family */
char         sun_path[]   /* socket pathname */

The sockaddr_un structure is used to store addresses for UNIX domain sockets. Values of this type must be cast to struct sockaddr for use with the socket interfaces.

The <sys/un.h> header defines the type sa_family_t as described in socket.h(3HEAD).

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See also

bind(3SOCKET), bind(3XNET), socket.h(3HEAD), socket(3SOCKET), socket(3XNET), socketpair(3SOCKET), socketpair(3XNET), attributes(5), standards(5)