FreeNOS
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Functions
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
w
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
f
h
i
m
n
o
p
r
s
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Variables
_
a
c
d
e
f
g
h
i
k
l
m
p
r
s
t
u
v
x
Typedefs
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Enumerations
Enumerator
a
b
c
d
e
g
i
k
l
m
p
r
s
u
w
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
lib
libposix
sys
utsname.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009 Niek Linnenbank
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef __LIBPOSIX_UTSNAME_H
19
#define __LIBPOSIX_UTSNAME_H
20
#ifndef __ASSEMBLER__
21
22
#include <
Macros.h
>
23
33
#define UTSBUF 128
34
38
struct
utsname
39
{
41
char
sysname
[
UTSBUF
];
42
47
char
nodename
[
UTSBUF
];
48
50
char
release
[
UTSBUF
];
51
53
char
version
[
UTSBUF
];
54
56
char
machine
[
UTSBUF
];
57
};
58
67
extern
C
int
uname
(
struct
utsname
*name);
68
74
#endif
/* __ASSEMBLER__ */
75
#endif
/* __LIBPOSIX_UTSNAME_H */
Macros.h
utsname::machine
char machine[UTSBUF]
Name of the hardware type on which the system is running.
Definition:
utsname.h:56
utsname::version
char version[UTSBUF]
Current version level of this release.
Definition:
utsname.h:53
uname
C int uname(struct utsname *name)
Get the name of the current system.
Definition:
utsname.cpp:23
C
#define C
Used to define external C functions.
Definition:
Macros.h:134
UTSBUF
#define UTSBUF
Size of each buffer in the utsname structure fields.
Definition:
utsname.h:33
utsname::sysname
char sysname[UTSBUF]
Name of this implementation of the operating system.
Definition:
utsname.h:41
utsname
System name structure.
Definition:
utsname.h:38
utsname::nodename
char nodename[UTSBUF]
Name of this node within the communications network to which this node is attached,...
Definition:
utsname.h:47
utsname::release
char release[UTSBUF]
Current release level of this implementation.
Definition:
utsname.h:50
Generated by
1.8.17