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
38struct utsname
39{
42
48
51
54
57};
58
67extern C int uname(struct utsname *name);
68
74#endif /* __ASSEMBLER__ */
75#endif /* __LIBPOSIX_UTSNAME_H */
#define UTSBUF
Size of each buffer in the utsname structure fields.
Definition utsname.h:33
C int uname(struct utsname *name)
Get the name of the current system.
Definition utsname.cpp:23
#define C
Used to define external C functions.
Definition Macros.h:134
System name structure.
Definition utsname.h:39
char release[UTSBUF]
Current release level of this implementation.
Definition utsname.h:50
char sysname[UTSBUF]
Name of this implementation of the operating system.
Definition utsname.h:41
char version[UTSBUF]
Current version level of this release.
Definition utsname.h:53
char machine[UTSBUF]
Name of the hardware type on which the system is running.
Definition utsname.h:56
char nodename[UTSBUF]
Name of this node within the communications network to which this node is attached,...
Definition utsname.h:47