utsname.h
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23: #ifndef _SYS_UTSNAME_H
24: #define _SYS_UTSNAME_H 1
25:
26: #include <features.h>
27:
28: __BEGIN_DECLS
29:
30: #include <bits/utsname.h>
31:
32: #ifndef _UTSNAME_SYSNAME_LENGTH
33: # define _UTSNAME_SYSNAME_LENGTH _UTSNAME_LENGTH
34: #endif
35: #ifndef _UTSNAME_NODENAME_LENGTH
36: # define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
37: #endif
38: #ifndef _UTSNAME_RELEASE_LENGTH
39: # define _UTSNAME_RELEASE_LENGTH _UTSNAME_LENGTH
40: #endif
41: #ifndef _UTSNAME_VERSION_LENGTH
42: # define _UTSNAME_VERSION_LENGTH _UTSNAME_LENGTH
43: #endif
44: #ifndef _UTSNAME_MACHINE_LENGTH
45: # define _UTSNAME_MACHINE_LENGTH _UTSNAME_LENGTH
46: #endif
47:
48:
49: struct utsname
50: {
51:
52: char sysname[_UTSNAME_SYSNAME_LENGTH];
53:
54:
55: char nodename[_UTSNAME_NODENAME_LENGTH];
56:
57:
58: char release[_UTSNAME_RELEASE_LENGTH];
59:
60: char version[_UTSNAME_VERSION_LENGTH];
61:
62:
63: char machine[_UTSNAME_MACHINE_LENGTH];
64:
65: #if _UTSNAME_DOMAIN_LENGTH - 0
66:
67: # ifdef __USE_GNU
68: char domainname[_UTSNAME_DOMAIN_LENGTH];
69: # else
70: char __domainname[_UTSNAME_DOMAIN_LENGTH];
71: # endif
72: #endif
73: };
74:
75: #ifdef __USE_SVID
76:
77: # define SYS_NMLN _UTSNAME_LENGTH
78: #endif
79:
80:
81:
82: extern int uname (struct utsname *__name) __THROW;
83:
84:
85: __END_DECLS
86:
87: #endif
88:
© Andrew Scott 2006 -
2026,
All Rights Reserved