Blame lib/sys_utsname.in.h

Packit Service 2723c6
/* Substitute for <sys/utsname.h>.
Packit Service 2723c6
   Copyright (C) 2009-2018 Free Software Foundation, Inc.
Packit Service 2723c6
Packit Service 2723c6
   This program is free software; you can redistribute it and/or modify
Packit Service 2723c6
   it under the terms of the GNU General Public License as published by
Packit Service 2723c6
   the Free Software Foundation; either version 3, or (at your option)
Packit Service 2723c6
   any later version.
Packit Service 2723c6
Packit Service 2723c6
   This program is distributed in the hope that it will be useful,
Packit Service 2723c6
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 2723c6
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 2723c6
   GNU General Public License for more details.
Packit Service 2723c6
Packit Service 2723c6
   You should have received a copy of the GNU General Public License
Packit Service 2723c6
   along with this program; if not, see <https://www.gnu.org/licenses/>.  */
Packit Service 2723c6
Packit Service 2723c6
#ifndef _@GUARD_PREFIX@_SYS_UTSNAME_H
Packit Service 2723c6
Packit Service 2723c6
#if __GNUC__ >= 3
Packit Service 2723c6
@PRAGMA_SYSTEM_HEADER@
Packit Service 2723c6
#endif
Packit Service 2723c6
@PRAGMA_COLUMNS@
Packit Service 2723c6
Packit Service 2723c6
#if @HAVE_SYS_UTSNAME_H@
Packit Service 2723c6
Packit Service 2723c6
/* Minix 3.1.8 has a bug: <stddef.h> must be included before <sys/utsname.h>.
Packit Service 2723c6
   But avoid namespace pollution on glibc systems.  */
Packit Service 2723c6
# if defined __minix && !defined __GLIBC__
Packit Service 2723c6
#  include <stddef.h>
Packit Service 2723c6
# endif
Packit Service 2723c6
Packit Service 2723c6
# @INCLUDE_NEXT@ @NEXT_SYS_UTSNAME_H@
Packit Service 2723c6
Packit Service 2723c6
#endif
Packit Service 2723c6
Packit Service 2723c6
#define _@GUARD_PREFIX@_SYS_UTSNAME_H
Packit Service 2723c6
Packit Service 2723c6
/* The definition of _GL_ARG_NONNULL is copied here.  */
Packit Service 2723c6
Packit Service 2723c6
/* The definition of _GL_WARN_ON_USE is copied here.  */
Packit Service 2723c6
Packit Service 2723c6
Packit Service 2723c6
#ifdef __cplusplus
Packit Service 2723c6
extern "C" {
Packit Service 2723c6
#endif
Packit Service 2723c6
Packit Service 2723c6
#if !@HAVE_STRUCT_UTSNAME@
Packit Service 2723c6
/* Length of the entries in 'struct utsname' is 256.  */
Packit Service 2723c6
# define _UTSNAME_LENGTH 256
Packit Service 2723c6
Packit Service 2723c6
# ifndef _UTSNAME_NODENAME_LENGTH
Packit Service 2723c6
#  define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH
Packit Service 2723c6
# endif
Packit Service 2723c6
# ifndef _UTSNAME_SYSNAME_LENGTH
Packit Service 2723c6
#  define _UTSNAME_SYSNAME_LENGTH _UTSNAME_LENGTH
Packit Service 2723c6
# endif
Packit Service 2723c6
# ifndef _UTSNAME_RELEASE_LENGTH
Packit Service 2723c6
#  define _UTSNAME_RELEASE_LENGTH _UTSNAME_LENGTH
Packit Service 2723c6
# endif
Packit Service 2723c6
# ifndef _UTSNAME_VERSION_LENGTH
Packit Service 2723c6
#  define _UTSNAME_VERSION_LENGTH _UTSNAME_LENGTH
Packit Service 2723c6
# endif
Packit Service 2723c6
# ifndef _UTSNAME_MACHINE_LENGTH
Packit Service 2723c6
#  define _UTSNAME_MACHINE_LENGTH _UTSNAME_LENGTH
Packit Service 2723c6
# endif
Packit Service 2723c6
Packit Service 2723c6
# if !GNULIB_defined_struct_utsname
Packit Service 2723c6
/* Structure describing the system and machine.  */
Packit Service 2723c6
struct utsname
Packit Service 2723c6
  {
Packit Service 2723c6
    /* Name of this node on the network.  */
Packit Service 2723c6
    char nodename[_UTSNAME_NODENAME_LENGTH];
Packit Service 2723c6
Packit Service 2723c6
    /* Name of the implementation of the operating system.  */
Packit Service 2723c6
    char sysname[_UTSNAME_SYSNAME_LENGTH];
Packit Service 2723c6
    /* Current release level of this implementation.  */
Packit Service 2723c6
    char release[_UTSNAME_RELEASE_LENGTH];
Packit Service 2723c6
    /* Current version level of this release.  */
Packit Service 2723c6
    char version[_UTSNAME_VERSION_LENGTH];
Packit Service 2723c6
Packit Service 2723c6
    /* Name of the hardware type the system is running on.  */
Packit Service 2723c6
    char machine[_UTSNAME_MACHINE_LENGTH];
Packit Service 2723c6
  };
Packit Service 2723c6
#  define GNULIB_defined_struct_utsname 1
Packit Service 2723c6
# endif
Packit Service 2723c6
Packit Service 2723c6
#endif /* !@HAVE_STRUCT_UTSNAME@ */
Packit Service 2723c6
Packit Service 2723c6
Packit Service 2723c6
#if @GNULIB_UNAME@
Packit Service 2723c6
# if !@HAVE_UNAME@
Packit Service 2723c6
extern int uname (struct utsname *buf) _GL_ARG_NONNULL ((1));
Packit Service 2723c6
# endif
Packit Service 2723c6
#elif defined GNULIB_POSIXCHECK
Packit Service 2723c6
# undef uname
Packit Service 2723c6
# if HAVE_RAW_DECL_UNAME
Packit Service 2723c6
_GL_WARN_ON_USE (uname, "uname is unportable - "
Packit Service 2723c6
                 "use gnulib module uname for portability");
Packit Service 2723c6
# endif
Packit Service 2723c6
#endif
Packit Service 2723c6
Packit Service 2723c6
Packit Service 2723c6
#ifdef __cplusplus
Packit Service 2723c6
}
Packit Service 2723c6
#endif
Packit Service 2723c6
Packit Service 2723c6
Packit Service 2723c6
#endif /* _@GUARD_PREFIX@_SYS_UTSNAME_H */