Re-install OpenSSL 0.9.8k
[msysgit.git] / include / sys / un.h
blob25588e2b2b31786aa67f9366d4df39d513690a7e
1 /* sys/un.h
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
9 details. */
11 #ifndef _SYS_UN_H
12 #define _SYS_UN_H
14 /* POSIX requires only at least 100 bytes */
15 #define UNIX_PATH_LEN 108
17 struct sockaddr_un {
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))
26 #endif