The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
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
10
struct
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
*/
23
int
uname
(
struct
utsname
*name);
utsname
Definition
utsname.h:11
utsname::nodename
char nodename[_UTSNAME_LENGTH]
Definition
utsname.h:13
utsname::sysname
char sysname[_UTSNAME_LENGTH]
Definition
utsname.h:12
utsname::version
char version[_UTSNAME_LENGTH]
Definition
utsname.h:15
utsname::release
char release[_UTSNAME_LENGTH]
Definition
utsname.h:14
utsname::machine
char machine[_UTSNAME_LENGTH]
Definition
utsname.h:16
uname
int uname(struct utsname *name)
fill name with the system's names.
_UTSNAME_LENGTH
#define _UTSNAME_LENGTH
Definition
utsname.h:8
src
libc
include
sys
utsname.h
Generated by
1.18.0