source: trunk/src/emx/include/sys/un.h@ 183

Last change on this file since 183 was 183, checked in by bird, 23 years ago

#434: Initial tcpip header merges.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 631 bytes
Line 
1/* Copyright (c)1996 by Holger Veit
2 * May be freely used with EMX
3 * Modified 2003 by bird
4 */
5
6#ifndef _SYS_UN_H_
7#define _SYS_UN_H_
8
9/** Definitions for UNIX IPC domain. */
10struct sockaddr_un {
11#ifdef TCPV40HDRS
12 u_short sun_family; /* socket family: AF_UNIX */
13#else
14 u_char sun_len; /* sockaddr len including null */
15 u_char sun_family; /* AF_UNIX */
16#endif
17 char sun_path[108]; /* path name (not used) */
18};
19
20#ifndef TCPV40HDRS
21/* actual length of an initialized sockaddr_un */
22#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
23#endif
24
25#endif /* !_SYS_UN_H_ */
Note: See TracBrowser for help on using the repository browser.