MentOS  0.8.0
The Mentoring Operating System
utsname.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 #define SYS_LEN 257
10 
12 typedef struct utsname_t {
14  char sysname[SYS_LEN];
16  char nodename[SYS_LEN];
18  char release[SYS_LEN];
20  char version[SYS_LEN];
22  char machine[SYS_LEN];
24 
25 
29 int uname(utsname_t* buf);
int uname(utsname_t *buf)
Returns system information in the structure pointed to by buf.
#define SYS_LEN
Maximum length of the string used by utsname.
Definition: utsname.h:9
struct utsname_t utsname_t
Holds information concerning the machine and the os.
Holds information concerning the machine and the os.
Definition: utsname.h:12
char nodename[SYS_LEN]
The name of the node.
Definition: utsname.h:16
char version[SYS_LEN]
The version of the OS.
Definition: utsname.h:20
char release[SYS_LEN]
Operating system release (e.g., "2.6.28").
Definition: utsname.h:18
char sysname[SYS_LEN]
The name of the system.
Definition: utsname.h:14
char machine[SYS_LEN]
The name of the machine.
Definition: utsname.h:22