|
|
1.1 root 1: /*
2: * /usr/include/sys/utsname.h
3: *
4: * Revised: Wed May 19 10:29:48 1993 CDT
5: */
6: #ifndef __SYS_UTSNAME_H__
7: #define __SYS_UTSNAME_H__
8:
9:
10: /*
11: * This header is defined in the POSIX.1 standard ISO/IEC 9945-1:1990, and as
12: * such client programs which include this header should not use any symbols
13: * which end in "_t".
14: */
15:
16: /*
17: * The contents of this header are also defined by the provisions of binary
18: * compatibility standards such as the iBCS2 specification and the System V
19: * ABI. The visibility of certain symbols defined by those standards may be
20: * controlled by feature-test macros such as _SYSV3 for iBCS2, and _SYSV4 for
21: * System V, Release 4.
22: */
23:
24: #include <sys/ccompat.h>
25:
26:
27: #if _SYSV4
28:
29: # define __SYS_NMLN 257
30:
31: #else
32:
33: # define __SYS_NMLN 9
34:
35: #endif
36:
37:
38: #if !defined(_POSIX_SOURCE)
39:
40: # define SYS_NMLN __SYS_NMLN
41:
42: #endif
43:
44:
45: struct utsname {
46: char sysname [__SYS_NMLN];
47: char nodename [__SYS_NMLN];
48: char release [__SYS_NMLN];
49: char version [__SYS_NMLN];
50: char machine [__SYS_NMLN];
51: };
52:
53:
54: __EXTERN_C_BEGIN__
55:
56: int uname __PROTO ((struct utsname * _name));
57:
58: __EXTERN_C_END__
59:
60: #endif /* ! defined (__SYS_UTSNAME_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.