The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
utsname.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file utsname.h
5 * @brief the name of the system: uname.
6 */
7
8#define _UTSNAME_LENGTH 65
9
10struct utsname
11{
12 char sysname[_UTSNAME_LENGTH]; // "ginnOS"
13 char nodename[_UTSNAME_LENGTH]; // the host name
14 char release[_UTSNAME_LENGTH]; // the release, "0.1"
15 char version[_UTSNAME_LENGTH]; // the commit and its date
16 char machine[_UTSNAME_LENGTH]; // "x86_64" or "i686"
17};
18
19/**
20 * fill name with the system's names.
21 * @return 0, or -1 with errno set.
22 */
23int uname(struct utsname *name);
Definition utsname.h:11
char nodename[_UTSNAME_LENGTH]
Definition utsname.h:13
char sysname[_UTSNAME_LENGTH]
Definition utsname.h:12
char version[_UTSNAME_LENGTH]
Definition utsname.h:15
char release[_UTSNAME_LENGTH]
Definition utsname.h:14
char machine[_UTSNAME_LENGTH]
Definition utsname.h:16
int uname(struct utsname *name)
fill name with the system's names.
#define _UTSNAME_LENGTH
Definition utsname.h:8