1<sys/un.h>(0P)             POSIX Programmer's Manual            <sys/un.h>(0P)
2
3
4

NAME

6       sys/un.h - definitions for UNIX domain sockets
7

SYNOPSIS

9       #include <sys/un.h>
10

DESCRIPTION

12       The  <sys/un.h>  header  shall  define  the  sockaddr_un structure that
13       includes at least the following members:
14
15
16              sa_family_t  sun_family  Address family.
17              char         sun_path[]  Socket pathname.
18
19       The sockaddr_un structure is used to store addresses  for  UNIX  domain
20       sockets.  Values  of  this type shall be cast by applications to struct
21       sockaddr for use with socket functions.
22
23       The sa_family_t type shall be defined as described in <sys/socket.h> .
24
25       The following sections are informative.
26

APPLICATION USAGE

28       The size of sun_path has intentionally been left  undefined.   This  is
29       because different implementations use different sizes. For example, 4.3
30       BSD uses a size of 108, and 4.4 BSD uses a  size  of  104.  Since  most
31       implementations  originate  from BSD versions, the size is typically in
32       the range 92 to 108.
33
34       Applications should not assume a  particular  length  for  sun_path  or
35       assume that it can hold {_POSIX_PATH_MAX} characters (255).
36

RATIONALE

38       None.
39

FUTURE DIRECTIONS

41       None.
42

SEE ALSO

44       <sys/socket.h>,  the  System Interfaces volume of IEEE Std 1003.1-2001,
45       bind(), socket(), socketpair()
46
48       Portions of this text are reprinted and reproduced in  electronic  form
49       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
50       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
51       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
52       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
53       event of any discrepancy between this version and the original IEEE and
54       The Open Group Standard, the original IEEE and The Open Group  Standard
55       is  the  referee document. The original Standard can be obtained online
56       at http://www.opengroup.org/unix/online.html .
57
58
59
60IEEE/The Open Group                  2003                       <sys/un.h>(0P)
Impressum