|
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
|
| Rev | Line | |
|---|
| [18] | 1 | /* Copyright (c)1996 by Holger Veit
|
|---|
| [183] | 2 | * May be freely used with EMX
|
|---|
| 3 | * Modified 2003 by bird
|
|---|
| [18] | 4 | */
|
|---|
| 5 |
|
|---|
| 6 | #ifndef _SYS_UN_H_
|
|---|
| 7 | #define _SYS_UN_H_
|
|---|
| 8 |
|
|---|
| [183] | 9 | /** Definitions for UNIX IPC domain. */
|
|---|
| [18] | 10 | struct sockaddr_un {
|
|---|
| [183] | 11 | #ifdef TCPV40HDRS
|
|---|
| [18] | 12 | u_short sun_family; /* socket family: AF_UNIX */
|
|---|
| [183] | 13 | #else
|
|---|
| 14 | u_char sun_len; /* sockaddr len including null */
|
|---|
| 15 | u_char sun_family; /* AF_UNIX */
|
|---|
| 16 | #endif
|
|---|
| [18] | 17 | char sun_path[108]; /* path name (not used) */
|
|---|
| 18 | };
|
|---|
| 19 |
|
|---|
| [183] | 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 |
|
|---|
| [18] | 25 | #endif /* !_SYS_UN_H_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.