summaryrefslogtreecommitdiffstats
path: root/gl/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/sys/types.h')
-rw-r--r--gl/sys/types.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/gl/sys/types.h b/gl/sys/types.h
new file mode 100644
index 0000000..d720b9d
--- /dev/null
+++ b/gl/sys/types.h
@@ -0,0 +1,107 @@
1/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
2/* Provide a more complete sys/types.h.
3
4 Copyright (C) 2011-2022 Free Software Foundation, Inc.
5
6 This file is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation; either version 2.1 of the
9 License, or (at your option) any later version.
10
11 This file is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with this program. If not, see <https://www.gnu.org/licenses/>. */
18
19#if __GNUC__ >= 3
20#pragma GCC system_header
21#endif
22
23
24#if defined _WIN32 && !defined __CYGWIN__ \
25 && (defined __need_off_t || defined __need___off64_t \
26 || defined __need_ssize_t || defined __need_time_t)
27
28/* Special invocation convention inside mingw header files. */
29
30#include_next <sys/types.h>
31
32#else
33/* Normal invocation convention. */
34
35#ifndef _GL_SYS_TYPES_H
36
37/* The include_next requires a split double-inclusion guard. */
38# define _GL_INCLUDING_SYS_TYPES_H
39#include_next <sys/types.h>
40# undef _GL_INCLUDING_SYS_TYPES_H
41
42#ifndef _GL_SYS_TYPES_H
43#define _GL_SYS_TYPES_H
44
45/* Override off_t if Large File Support is requested on native Windows. */
46#if 0
47/* Same as int64_t in <stdint.h>. */
48# if defined _MSC_VER
49# define off_t __int64
50# else
51# define off_t long long int
52# endif
53/* Indicator, for gnulib internal purposes. */
54# define _GL_WINDOWS_64_BIT_OFF_T 1
55#endif
56
57/* Override dev_t and ino_t if distinguishable inodes support is requested
58 on native Windows. */
59#if 0
60
61# if 0 == 2
62/* Experimental, not useful in Windows 10. */
63
64/* Define dev_t to a 64-bit type. */
65# if !defined GNULIB_defined_dev_t
66typedef unsigned long long int rpl_dev_t;
67# undef dev_t
68# define dev_t rpl_dev_t
69# define GNULIB_defined_dev_t 1
70# endif
71
72/* Define ino_t to a 128-bit type. */
73# if !defined GNULIB_defined_ino_t
74/* MSVC does not have a 128-bit integer type.
75 GCC has a 128-bit integer type __int128, but only on 64-bit targets. */
76typedef struct { unsigned long long int _gl_ino[2]; } rpl_ino_t;
77# undef ino_t
78# define ino_t rpl_ino_t
79# define GNULIB_defined_ino_t 1
80# endif
81
82# else /* 0 == 1 */
83
84/* Define ino_t to a 64-bit type. */
85# if !defined GNULIB_defined_ino_t
86typedef unsigned long long int rpl_ino_t;
87# undef ino_t
88# define ino_t rpl_ino_t
89# define GNULIB_defined_ino_t 1
90# endif
91
92# endif
93
94/* Indicator, for gnulib internal purposes. */
95# define _GL_WINDOWS_STAT_INODES 0
96
97#endif
98
99/* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>. */
100/* But avoid namespace pollution on glibc systems. */
101#if (defined _WIN32 && ! defined __CYGWIN__) && ! defined __GLIBC__
102# include <stddef.h>
103#endif
104
105#endif /* _GL_SYS_TYPES_H */
106#endif /* _GL_SYS_TYPES_H */
107#endif /* __need_XXX */