1 #ifndef _SYS_UN_H 2 #define _SYS_UN_H 3 4 /* POSIX requires only at least 100 bytes */ 5 #define UNIX_PATH_LEN 108 6 7 struct sockaddr_un { 8 unsigned short sun_family; /* address family AF_LOCAL/AF_UNIX */ 9 char sun_path[UNIX_PATH_LEN]; /* 108 bytes of socket address */ 10 }; 11 12 /* Evaluates the actual length of `sockaddr_un' structure. */ 13 #define SUN_LEN(p) ((size_t)(((struct sockaddr_un *) NULL)->sun_path) \ 14 + strlen ((p)->sun_path)) 15 16 #endif |