FreeNOS
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 
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