5 #include <sys/featuretest.h>
9 typedef __sa_family_t sa_family_t
;
10 #define sa_family_t __sa_family_t
13 #define UNIX_PATH_MAX 127
16 * Definitions for UNIX IPC domain.
19 sa_family_t sun_family
;
20 char sun_path
[UNIX_PATH_MAX
];
25 /* Compute the actual length of a struct sockaddr_un pointed
26 * to by 'unp'. sun_path must be NULL terminated. Length does
27 * not include the NULL byte. This is not a POSIX standard
28 * definition, but BSD and Linux have it, so it is here for
31 #define SUN_LEN(unp) \
32 ((size_t)((sizeof(*(unp)) - sizeof((unp)->sun_path)) + strlen((unp)->sun_path)))
34 #endif /* _SYS_UN_H_ */