3 Copyright 1999, 2001 Red Hat, Inc.
5 This file is part of Cygwin.
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
14 /* POSIX requires only at least 100 bytes */
15 #define UNIX_PATH_LEN 108
18 unsigned short sun_family
; /* address family AF_LOCAL/AF_UNIX */
19 char sun_path
[UNIX_PATH_LEN
]; /* 108 bytes of socket address */
22 /* Evaluates the actual length of `sockaddr_un' structure. */
23 #define SUN_LEN(p) ((size_t)(((struct sockaddr_un *) NULL)->sun_path) \
24 + strlen ((p)->sun_path))