1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #ifndef _@GUARD_PREFIX@_SYS_UTSNAME_H
18
19 #if __GNUC__ >= 3
20 @PRAGMA_SYSTEM_HEADER@
21 #endif
22 @PRAGMA_COLUMNS@
23
24 #if @HAVE_SYS_UTSNAME_H@
25
26
27
28 # if defined __minix && !defined __GLIBC__
29 # include <stddef.h>
30 # endif
31
32 # @INCLUDE_NEXT@ @NEXT_SYS_UTSNAME_H@
33
34 #endif
35
36 #define _@GUARD_PREFIX@_SYS_UTSNAME_H
37
38
39
40
41
42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47 #if !@HAVE_STRUCT_UTSNAME@
48
49 # define _UTSNAME_LENGTH 256
50
51 # ifndef _UTSNAME_NODENAME_LENGTH
52 # define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
53 # endif
54 # ifndef _UTSNAME_SYSNAME_LENGTH
55 # define _UTSNAME_SYSNAME_LENGTH _UTSNAME_LENGTH
56 # endif
57 # ifndef _UTSNAME_RELEASE_LENGTH
58 # define _UTSNAME_RELEASE_LENGTH _UTSNAME_LENGTH
59 # endif
60 # ifndef _UTSNAME_VERSION_LENGTH
61 # define _UTSNAME_VERSION_LENGTH _UTSNAME_LENGTH
62 # endif
63 # ifndef _UTSNAME_MACHINE_LENGTH
64 # define _UTSNAME_MACHINE_LENGTH _UTSNAME_LENGTH
65 # endif
66
67 # if !GNULIB_defined_struct_utsname
68
69 struct utsname
70 {
71
72 char nodename[_UTSNAME_NODENAME_LENGTH];
73
74
75 char sysname[_UTSNAME_SYSNAME_LENGTH];
76
77 char release[_UTSNAME_RELEASE_LENGTH];
78
79 char version[_UTSNAME_VERSION_LENGTH];
80
81
82 char machine[_UTSNAME_MACHINE_LENGTH];
83 };
84 # define GNULIB_defined_struct_utsname 1
85 # endif
86
87 #endif
88
89
90 #if @GNULIB_UNAME@
91 # if !@HAVE_UNAME@
92 extern int uname (struct utsname *buf) _GL_ARG_NONNULL ((1));
93 # endif
94 #elif defined GNULIB_POSIXCHECK
95 # undef uname
96 # if HAVE_RAW_DECL_UNAME
97 _GL_WARN_ON_USE (uname, "uname is unportable - "
98 "use gnulib module uname for portability");
99 # endif
100 #endif
101
102
103 #ifdef __cplusplus
104 }
105 #endif
106
107
108 #endif