1 #ifndef _SYS_UTSNAME_H_
2 #define _SYS_UTSNAME_H_
4 #include <sys/featuretest.h>
8 #if defined(_NETBSD_SOURCE)
9 #define SYS_NMLN _SYS_NMLN
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. */
21 #include <sys/cdefs.h>
24 int uname(struct utsname
*);
26 int sysuname(int _req
, int _field
, char *_value
, size_t _len
);
31 /* req: Get or set a string. */
35 /* field: What field to get or set. These values can't be changed lightly. */
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
45 #define _UTS_MAX 9 /* Number of strings. */
48 #endif /* !_SYS_UTSNAME_H_ */