|
Packit |
6c4009 |
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* POSIX Standard: 4.4 System Identification <sys/utsname.h>
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _SYS_UTSNAME_H
|
|
Packit |
6c4009 |
#define _SYS_UTSNAME_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <features.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__BEGIN_DECLS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <bits/utsname.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _UTSNAME_SYSNAME_LENGTH
|
|
Packit |
6c4009 |
# define _UTSNAME_SYSNAME_LENGTH _UTSNAME_LENGTH
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef _UTSNAME_NODENAME_LENGTH
|
|
Packit |
6c4009 |
# define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef _UTSNAME_RELEASE_LENGTH
|
|
Packit |
6c4009 |
# define _UTSNAME_RELEASE_LENGTH _UTSNAME_LENGTH
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef _UTSNAME_VERSION_LENGTH
|
|
Packit |
6c4009 |
# define _UTSNAME_VERSION_LENGTH _UTSNAME_LENGTH
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef _UTSNAME_MACHINE_LENGTH
|
|
Packit |
6c4009 |
# define _UTSNAME_MACHINE_LENGTH _UTSNAME_LENGTH
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Structure describing the system and machine. */
|
|
Packit |
6c4009 |
struct utsname
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
/* Name of the implementation of the operating system. */
|
|
Packit |
6c4009 |
char sysname[_UTSNAME_SYSNAME_LENGTH];
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Name of this node on the network. */
|
|
Packit |
6c4009 |
char nodename[_UTSNAME_NODENAME_LENGTH];
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Current release level of this implementation. */
|
|
Packit |
6c4009 |
char release[_UTSNAME_RELEASE_LENGTH];
|
|
Packit |
6c4009 |
/* Current version level of this release. */
|
|
Packit |
6c4009 |
char version[_UTSNAME_VERSION_LENGTH];
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Name of the hardware type the system is running on. */
|
|
Packit |
6c4009 |
char machine[_UTSNAME_MACHINE_LENGTH];
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#if _UTSNAME_DOMAIN_LENGTH - 0
|
|
Packit |
6c4009 |
/* Name of the domain of this node on the network. */
|
|
Packit |
6c4009 |
# ifdef __USE_GNU
|
|
Packit |
6c4009 |
char domainname[_UTSNAME_DOMAIN_LENGTH];
|
|
Packit |
6c4009 |
# else
|
|
Packit |
6c4009 |
char __domainname[_UTSNAME_DOMAIN_LENGTH];
|
|
Packit |
6c4009 |
# endif
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
};
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifdef __USE_MISC
|
|
Packit |
6c4009 |
/* Note that SVID assumes all members have the same size. */
|
|
Packit |
6c4009 |
# define SYS_NMLN _UTSNAME_LENGTH
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Put information about the system in NAME. */
|
|
Packit |
6c4009 |
extern int uname (struct utsname *__name) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__END_DECLS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* sys/utsname.h */
|