Blame lib/sys_types.in.h

Packit Service fdd496
/* Provide a more complete sys/types.h.
Packit Service fdd496
Packit Service fdd496
   Copyright (C) 2011-2017 Free Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
   This program is free software; you can redistribute it and/or modify
Packit Service fdd496
   it under the terms of the GNU General Public License as published by
Packit Service fdd496
   the Free Software Foundation; either version 3, or (at your option)
Packit Service fdd496
   any later version.
Packit Service fdd496
Packit Service fdd496
   This program is distributed in the hope that it will be useful,
Packit Service fdd496
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service fdd496
   GNU General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public License
Packit Service fdd496
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
#if __GNUC__ >= 3
Packit Service fdd496
@PRAGMA_SYSTEM_HEADER@
Packit Service fdd496
#endif
Packit Service fdd496
@PRAGMA_COLUMNS@
Packit Service fdd496
Packit Service fdd496
#ifndef _@GUARD_PREFIX@_SYS_TYPES_H
Packit Service fdd496
Packit Service fdd496
/* The include_next requires a split double-inclusion guard.  */
Packit Service fdd496
# define _GL_INCLUDING_SYS_TYPES_H
Packit Service fdd496
#@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@
Packit Service fdd496
# undef _GL_INCLUDING_SYS_TYPES_H
Packit Service fdd496
Packit Service fdd496
#ifndef _@GUARD_PREFIX@_SYS_TYPES_H
Packit Service fdd496
#define _@GUARD_PREFIX@_SYS_TYPES_H
Packit Service fdd496
Packit Service fdd496
/* Override off_t if Large File Support is requested on native Windows.  */
Packit Service fdd496
#if @WINDOWS_64_BIT_OFF_T@
Packit Service fdd496
/* Same as int64_t in <stdint.h>.  */
Packit Service fdd496
# if defined _MSC_VER
Packit Service fdd496
#  define off_t __int64
Packit Service fdd496
# else
Packit Service fdd496
#  define off_t long long int
Packit Service fdd496
# endif
Packit Service fdd496
/* Indicator, for gnulib internal purposes.  */
Packit Service fdd496
# define _GL_WINDOWS_64_BIT_OFF_T 1
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Override dev_t and ino_t if distinguishable inodes support is requested
Packit Service fdd496
   on native Windows.  */
Packit Service fdd496
#if @WINDOWS_STAT_INODES@
Packit Service fdd496
Packit Service fdd496
# if @WINDOWS_STAT_INODES@ == 2
Packit Service fdd496
/* Experimental, not useful in Windows 10.  */
Packit Service fdd496
Packit Service fdd496
/* Define dev_t to a 64-bit type.  */
Packit Service fdd496
#  if !defined GNULIB_defined_dev_t
Packit Service fdd496
typedef unsigned long long int rpl_dev_t;
Packit Service fdd496
#   undef dev_t
Packit Service fdd496
#   define dev_t rpl_dev_t
Packit Service fdd496
#   define GNULIB_defined_dev_t 1
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
/* Define ino_t to a 128-bit type.  */
Packit Service fdd496
#  if !defined GNULIB_defined_ino_t
Packit Service fdd496
/* MSVC does not have a 128-bit integer type.
Packit Service fdd496
   GCC has a 128-bit integer type __int128, but only on 64-bit targets.  */
Packit Service fdd496
typedef struct { unsigned long long int _gl_ino[2]; } rpl_ino_t;
Packit Service fdd496
#   undef ino_t
Packit Service fdd496
#   define ino_t rpl_ino_t
Packit Service fdd496
#   define GNULIB_defined_ino_t 1
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
# else /* @WINDOWS_STAT_INODES@ == 1 */
Packit Service fdd496
Packit Service fdd496
/* Define ino_t to a 64-bit type.  */
Packit Service fdd496
#  if !defined GNULIB_defined_ino_t
Packit Service fdd496
typedef unsigned long long int rpl_ino_t;
Packit Service fdd496
#   undef ino_t
Packit Service fdd496
#   define ino_t rpl_ino_t
Packit Service fdd496
#   define GNULIB_defined_ino_t 1
Packit Service fdd496
#  endif
Packit Service fdd496
Packit Service fdd496
# endif
Packit Service fdd496
Packit Service fdd496
/* Indicator, for gnulib internal purposes.  */
Packit Service fdd496
# define _GL_WINDOWS_STAT_INODES @WINDOWS_STAT_INODES@
Packit Service fdd496
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>.  */
Packit Service fdd496
/* But avoid namespace pollution on glibc systems.  */
Packit Service fdd496
#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
Packit Service fdd496
    && ! defined __GLIBC__
Packit Service fdd496
# include <stddef.h>
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#endif /* _@GUARD_PREFIX@_SYS_TYPES_H */
Packit Service fdd496
#endif /* _@GUARD_PREFIX@_SYS_TYPES_H */