kernel debug: priv can be NULL early on
[minix.git] / include / sys / utsname.h
blob0338c2791512a8aaf25f0752217cfc22c8d7852b
1 #ifndef _SYS_UTSNAME_H_
2 #define _SYS_UTSNAME_H_
4 #include <sys/featuretest.h>
6 #define _SYS_NMLN 256
8 #if defined(_NETBSD_SOURCE)
9 #define SYS_NMLN _SYS_NMLN
10 #endif
12 struct utsname {
13 char sysname[_SYS_NMLN]; /* Name of this OS. */
14 char nodename[_SYS_NMLN]; /* Name of this network node. */
15 char release[_SYS_NMLN]; /* Release level. */
16 char version[_SYS_NMLN]; /* Version level. */
17 char machine[_SYS_NMLN]; /* Hardware type. */
18 char arch[_SYS_NMLN];
21 #include <sys/cdefs.h>
23 __BEGIN_DECLS
24 int uname(struct utsname *);
25 #ifdef __minix
26 int sysuname(int _req, int _field, char *_value, size_t _len);
27 #endif
28 __END_DECLS
30 #ifdef __minix
31 /* req: Get or set a string. */
32 #define _UTS_GET 0
33 #define _UTS_SET 1
35 /* field: What field to get or set. These values can't be changed lightly. */
36 #define _UTS_ARCH 0
37 #define _UTS_KERNEL 1
38 #define _UTS_MACHINE 2
39 #define _UTS_HOSTNAME 3
40 #define _UTS_NODENAME 4
41 #define _UTS_RELEASE 5
42 #define _UTS_VERSION 6
43 #define _UTS_SYSNAME 7
44 #define _UTS_BUS 8
45 #define _UTS_MAX 9 /* Number of strings. */
46 #endif /* __minix */
48 #endif /* !_SYS_UTSNAME_H_ */