gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

pthread_linux_amd64.go (81633B)


      1 // Code generated by 'ccgo pthread/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o pthread/pthread_linux_amd64.go -pkgname pthread', DO NOT EDIT.
      2 
      3 package pthread
      4 
      5 import (
      6 	"math"
      7 	"reflect"
      8 	"sync/atomic"
      9 	"unsafe"
     10 )
     11 
     12 var _ = math.Pi
     13 var _ reflect.Kind
     14 var _ atomic.Value
     15 var _ unsafe.Pointer
     16 
     17 const (
     18 	CLOCK_BOOTTIME                  = 7      // time.h:60:1:
     19 	CLOCK_BOOTTIME_ALARM            = 9      // time.h:64:1:
     20 	CLOCK_MONOTONIC                 = 1      // time.h:48:1:
     21 	CLOCK_MONOTONIC_COARSE          = 6      // time.h:58:1:
     22 	CLOCK_MONOTONIC_RAW             = 4      // time.h:54:1:
     23 	CLOCK_PROCESS_CPUTIME_ID        = 2      // time.h:50:1:
     24 	CLOCK_REALTIME                  = 0      // time.h:46:1:
     25 	CLOCK_REALTIME_ALARM            = 8      // time.h:62:1:
     26 	CLOCK_REALTIME_COARSE           = 5      // time.h:56:1:
     27 	CLOCK_TAI                       = 11     // time.h:66:1:
     28 	CLOCK_THREAD_CPUTIME_ID         = 3      // time.h:52:1:
     29 	PTHREAD_BARRIER_SERIAL_THREAD   = -1     // pthread.h:189:1:
     30 	PTHREAD_ONCE_INIT               = 0      // pthread.h:182:1:
     31 	SCHED_FIFO                      = 1      // sched.h:29:1:
     32 	SCHED_OTHER                     = 0      // sched.h:28:1:
     33 	SCHED_RR                        = 2      // sched.h:30:1:
     34 	TIMER_ABSTIME                   = 1      // time.h:69:1:
     35 	TIME_UTC                        = 1      // time.h:65:1:
     36 	X_ATFILE_SOURCE                 = 1      // features.h:342:1:
     37 	X_BITS_CPU_SET_H                = 1      // cpu-set.h:21:1:
     38 	X_BITS_ENDIANNESS_H             = 1      // endianness.h:2:1:
     39 	X_BITS_ENDIAN_H                 = 1      // endian.h:20:1:
     40 	X_BITS_PTHREADTYPES_ARCH_H      = 1      // pthreadtypes-arch.h:19:1:
     41 	X_BITS_PTHREADTYPES_COMMON_H    = 1      // pthreadtypes.h:20:1:
     42 	X_BITS_SCHED_H                  = 1      // sched.h:21:1:
     43 	X_BITS_SETJMP_H                 = 1      // setjmp.h:20:1:
     44 	X_BITS_TIME64_H                 = 1      // time64.h:24:1:
     45 	X_BITS_TIME_H                   = 1      // time.h:24:1:
     46 	X_BITS_TYPESIZES_H              = 1      // typesizes.h:24:1:
     47 	X_BITS_TYPES_H                  = 1      // types.h:24:1:
     48 	X_BITS_TYPES_LOCALE_T_H         = 1      // locale_t.h:20:1:
     49 	X_BITS_TYPES_STRUCT_SCHED_PARAM = 1      // struct_sched_param.h:20:1:
     50 	X_BITS_TYPES___LOCALE_T_H       = 1      // __locale_t.h:21:1:
     51 	X_BSD_SIZE_T_                   = 0      // stddef.h:189:1:
     52 	X_BSD_SIZE_T_DEFINED_           = 0      // stddef.h:192:1:
     53 	X_DEFAULT_SOURCE                = 1      // features.h:227:1:
     54 	X_FEATURES_H                    = 1      // features.h:19:1:
     55 	X_FILE_OFFSET_BITS              = 64     // <builtin>:25:1:
     56 	X_GCC_SIZE_T                    = 0      // stddef.h:195:1:
     57 	X_LP64                          = 1      // <predefined>:284:1:
     58 	X_POSIX_C_SOURCE                = 200809 // features.h:281:1:
     59 	X_POSIX_SOURCE                  = 1      // features.h:279:1:
     60 	X_PTHREAD_H                     = 1      // pthread.h:19:1:
     61 	X_RWLOCK_INTERNAL_H             = 0      // struct_rwlock.h:21:1:
     62 	X_SCHED_H                       = 1      // sched.h:20:1:
     63 	X_SIZET_                        = 0      // stddef.h:196:1:
     64 	X_SIZE_T                        = 0      // stddef.h:183:1:
     65 	X_SIZE_T_                       = 0      // stddef.h:188:1:
     66 	X_SIZE_T_DECLARED               = 0      // stddef.h:193:1:
     67 	X_SIZE_T_DEFINED                = 0      // stddef.h:191:1:
     68 	X_SIZE_T_DEFINED_               = 0      // stddef.h:190:1:
     69 	X_STDC_PREDEF_H                 = 1      // <predefined>:162:1:
     70 	X_STRUCT_TIMESPEC               = 1      // struct_timespec.h:3:1:
     71 	X_SYS_CDEFS_H                   = 1      // cdefs.h:19:1:
     72 	X_SYS_SIZE_T_H                  = 0      // stddef.h:184:1:
     73 	X_THREAD_MUTEX_INTERNAL_H       = 1      // struct_mutex.h:20:1:
     74 	X_THREAD_SHARED_TYPES_H         = 1      // thread-shared-types.h:20:1:
     75 	X_TIME_H                        = 1      // time.h:23:1:
     76 	X_T_SIZE                        = 0      // stddef.h:186:1:
     77 	X_T_SIZE_                       = 0      // stddef.h:185:1:
     78 	Linux                           = 1      // <predefined>:231:1:
     79 	Unix                            = 1      // <predefined>:177:1:
     80 )
     81 
     82 // Read-write lock types.
     83 const ( /* pthread.h:100:1: */
     84 	PTHREAD_RWLOCK_PREFER_READER_NP              = 0
     85 	PTHREAD_RWLOCK_PREFER_WRITER_NP              = 1
     86 	PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2
     87 	PTHREAD_RWLOCK_DEFAULT_NP                    = 0
     88 )
     89 
     90 // Read-write lock initializers.
     91 
     92 // Scheduler inheritance.
     93 const ( /* pthread.h:120:1: */
     94 	PTHREAD_INHERIT_SCHED  = 0
     95 	PTHREAD_EXPLICIT_SCHED = 1
     96 )
     97 
     98 // Scope handling.
     99 const ( /* pthread.h:130:1: */
    100 	PTHREAD_SCOPE_SYSTEM  = 0
    101 	PTHREAD_SCOPE_PROCESS = 1
    102 )
    103 
    104 // Process shared or private flag.
    105 const ( /* pthread.h:140:1: */
    106 	PTHREAD_PROCESS_PRIVATE = 0
    107 	PTHREAD_PROCESS_SHARED  = 1
    108 )
    109 
    110 // Cancellation
    111 const ( /* pthread.h:164:1: */
    112 	PTHREAD_CANCEL_ENABLE  = 0
    113 	PTHREAD_CANCEL_DISABLE = 1
    114 )
    115 const ( /* pthread.h:171:1: */
    116 	PTHREAD_CANCEL_DEFERRED     = 0
    117 	PTHREAD_CANCEL_ASYNCHRONOUS = 1
    118 )
    119 
    120 // Determine the wordsize from the preprocessor defines.
    121 
    122 // Both x86-64 and x32 use the 64-bit system call interface.
    123 // NB: Include guard matches what <linux/time.h> uses.
    124 
    125 // Detach state.
    126 const ( /* pthread.h:33:1: */
    127 	PTHREAD_CREATE_JOINABLE = 0
    128 	PTHREAD_CREATE_DETACHED = 1
    129 )
    130 
    131 // Mutex types.
    132 const ( /* pthread.h:43:1: */
    133 	PTHREAD_MUTEX_TIMED_NP      = 0
    134 	PTHREAD_MUTEX_RECURSIVE_NP  = 1
    135 	PTHREAD_MUTEX_ERRORCHECK_NP = 2
    136 	PTHREAD_MUTEX_ADAPTIVE_NP   = 3
    137 	PTHREAD_MUTEX_NORMAL        = 0
    138 	PTHREAD_MUTEX_RECURSIVE     = 1
    139 	PTHREAD_MUTEX_ERRORCHECK    = 2
    140 	PTHREAD_MUTEX_DEFAULT       = 0
    141 )
    142 
    143 // Robust mutex or not flags.
    144 const ( /* pthread.h:65:1: */
    145 	PTHREAD_MUTEX_STALLED    = 0
    146 	PTHREAD_MUTEX_STALLED_NP = 0
    147 	PTHREAD_MUTEX_ROBUST     = 1
    148 	PTHREAD_MUTEX_ROBUST_NP  = 1
    149 )
    150 
    151 // Mutex protocols.
    152 const ( /* pthread.h:77:1: */
    153 	PTHREAD_PRIO_NONE    = 0
    154 	PTHREAD_PRIO_INHERIT = 1
    155 	PTHREAD_PRIO_PROTECT = 2
    156 )
    157 
    158 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    159 
    160 type Size_t = uint64 /* <builtin>:9:23 */
    161 
    162 type Wchar_t = int32 /* <builtin>:15:24 */
    163 
    164 type X__int128_t = struct {
    165 	Flo int64
    166 	Fhi int64
    167 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    168 type X__uint128_t = struct {
    169 	Flo uint64
    170 	Fhi uint64
    171 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    172 
    173 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    174 type X__float128 = float64        /* <builtin>:47:21 */
    175 
    176 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
    177 //    This file is part of the GNU C Library.
    178 //
    179 //    The GNU C Library is free software; you can redistribute it and/or
    180 //    modify it under the terms of the GNU Lesser General Public
    181 //    License as published by the Free Software Foundation; either
    182 //    version 2.1 of the License, or (at your option) any later version.
    183 //
    184 //    The GNU C Library is distributed in the hope that it will be useful,
    185 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    186 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    187 //    Lesser General Public License for more details.
    188 //
    189 //    You should have received a copy of the GNU Lesser General Public
    190 //    License along with the GNU C Library; if not, see
    191 //    <https://www.gnu.org/licenses/>.
    192 
    193 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    194 //    This file is part of the GNU C Library.
    195 //
    196 //    The GNU C Library is free software; you can redistribute it and/or
    197 //    modify it under the terms of the GNU Lesser General Public
    198 //    License as published by the Free Software Foundation; either
    199 //    version 2.1 of the License, or (at your option) any later version.
    200 //
    201 //    The GNU C Library is distributed in the hope that it will be useful,
    202 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    203 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    204 //    Lesser General Public License for more details.
    205 //
    206 //    You should have received a copy of the GNU Lesser General Public
    207 //    License along with the GNU C Library; if not, see
    208 //    <https://www.gnu.org/licenses/>.
    209 
    210 // These are defined by the user (or the compiler)
    211 //    to specify the desired environment:
    212 //
    213 //    __STRICT_ANSI__	ISO Standard C.
    214 //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
    215 //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
    216 //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
    217 //    __STDC_WANT_LIB_EXT2__
    218 // 			Extensions to ISO C99 from TR 27431-2:2010.
    219 //    __STDC_WANT_IEC_60559_BFP_EXT__
    220 // 			Extensions to ISO C11 from TS 18661-1:2014.
    221 //    __STDC_WANT_IEC_60559_FUNCS_EXT__
    222 // 			Extensions to ISO C11 from TS 18661-4:2015.
    223 //    __STDC_WANT_IEC_60559_TYPES_EXT__
    224 // 			Extensions to ISO C11 from TS 18661-3:2015.
    225 //
    226 //    _POSIX_SOURCE	IEEE Std 1003.1.
    227 //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
    228 // 			if >=199309L, add IEEE Std 1003.1b-1993;
    229 // 			if >=199506L, add IEEE Std 1003.1c-1995;
    230 // 			if >=200112L, all of IEEE 1003.1-2004
    231 // 			if >=200809L, all of IEEE 1003.1-2008
    232 //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
    233 // 			Single Unix conformance is wanted, to 600 for the
    234 // 			sixth revision, to 700 for the seventh revision.
    235 //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
    236 //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
    237 //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
    238 //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
    239 //    _ATFILE_SOURCE	Additional *at interfaces.
    240 //    _GNU_SOURCE		All of the above, plus GNU extensions.
    241 //    _DEFAULT_SOURCE	The default set of features (taking precedence over
    242 // 			__STRICT_ANSI__).
    243 //
    244 //    _FORTIFY_SOURCE	Add security hardening to many library functions.
    245 // 			Set to 1 or 2; 2 performs stricter checks than 1.
    246 //
    247 //    _REENTRANT, _THREAD_SAFE
    248 // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
    249 //
    250 //    The `-ansi' switch to the GNU C compiler, and standards conformance
    251 //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
    252 //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
    253 //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
    254 //    200809L, as well as enabling miscellaneous functions from BSD and
    255 //    SVID.  If more than one of these are defined, they accumulate.  For
    256 //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
    257 //    give you ISO C, 1003.1, and 1003.2, but nothing else.
    258 //
    259 //    These are defined by this file and are used by the
    260 //    header files to decide what to declare or define:
    261 //
    262 //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
    263 // 			to 1 or 0; the subsequent macros are either defined
    264 // 			or undefined, and those tests should be moved to
    265 // 			__GLIBC_USE.
    266 //    __USE_ISOC11		Define ISO C11 things.
    267 //    __USE_ISOC99		Define ISO C99 things.
    268 //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
    269 //    __USE_ISOCXX11	Define ISO C++11 things.
    270 //    __USE_POSIX		Define IEEE Std 1003.1 things.
    271 //    __USE_POSIX2		Define IEEE Std 1003.2 things.
    272 //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
    273 //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
    274 //    __USE_XOPEN		Define XPG things.
    275 //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
    276 //    __USE_UNIX98		Define Single Unix V2 things.
    277 //    __USE_XOPEN2K        Define XPG6 things.
    278 //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
    279 //    __USE_XOPEN2K8       Define XPG7 things.
    280 //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
    281 //    __USE_LARGEFILE	Define correct standard I/O things.
    282 //    __USE_LARGEFILE64	Define LFS things with separate names.
    283 //    __USE_FILE_OFFSET64	Define 64bit interface as default.
    284 //    __USE_MISC		Define things from 4.3BSD or System V Unix.
    285 //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
    286 //    __USE_GNU		Define GNU extensions.
    287 //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
    288 //
    289 //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
    290 //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
    291 //    only for compatibility.  All new code should use the other symbols
    292 //    to test for features.
    293 //
    294 //    All macros listed above as possibly being defined by this file are
    295 //    explicitly undefined if they are not explicitly defined.
    296 //    Feature-test macros that are not defined by the user or compiler
    297 //    but are implied by the other feature-test macros defined (or by the
    298 //    lack of any definitions) are defined by the file.
    299 //
    300 //    ISO C feature test macros depend on the definition of the macro
    301 //    when an affected header is included, not when the first system
    302 //    header is included, and so they are handled in
    303 //    <bits/libc-header-start.h>, which does not have a multiple include
    304 //    guard.  Feature test macros that can be handled from the first
    305 //    system header included are handled here.
    306 
    307 // Undefine everything, so we get a clean slate.
    308 
    309 // Suppress kernel-name space pollution unless user expressedly asks
    310 //    for it.
    311 
    312 // Convenience macro to test the version of gcc.
    313 //    Use like this:
    314 //    #if __GNUC_PREREQ (2,8)
    315 //    ... code requiring gcc 2.8 or later ...
    316 //    #endif
    317 //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
    318 //    added in 2.0.
    319 
    320 // Similarly for clang.  Features added to GCC after version 4.2 may
    321 //    or may not also be available in clang, and clang's definitions of
    322 //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
    323 //    features can be queried via __has_extension/__has_feature.
    324 
    325 // Whether to use feature set F.
    326 
    327 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
    328 //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
    329 //    issue a warning; the expectation is that the source is being
    330 //    transitioned to use the new macro.
    331 
    332 // If _GNU_SOURCE was defined by the user, turn on all the other features.
    333 
    334 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
    335 //    define _DEFAULT_SOURCE.
    336 
    337 // This is to enable the ISO C2X extension.
    338 
    339 // This is to enable the ISO C11 extension.
    340 
    341 // This is to enable the ISO C99 extension.
    342 
    343 // This is to enable the ISO C90 Amendment 1:1995 extension.
    344 
    345 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
    346 //    is defined, use POSIX.1-2008 (or another version depending on
    347 //    _XOPEN_SOURCE).
    348 
    349 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
    350 //    defined in all multithreaded code.  GNU libc has not required this
    351 //    for many years.  We now treat them as compatibility synonyms for
    352 //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
    353 //    comprehensive support for multithreaded code.  Using them never
    354 //    lowers the selected level of POSIX conformance, only raises it.
    355 
    356 // The function 'gets' existed in C89, but is impossible to use
    357 //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
    358 //    compatibility with various implementations of <cstdio>, this test
    359 //    must consider only the value of __cplusplus when compiling C++.
    360 
    361 // GNU formerly extended the scanf functions with modified format
    362 //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
    363 //    input using malloc.  This extension conflicts with ISO C99, which
    364 //    defines %a as a standalone format specifier that reads a floating-
    365 //    point number; moreover, POSIX.1-2008 provides the same feature
    366 //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
    367 //
    368 //    We now follow C99 unless GNU extensions are active and the compiler
    369 //    is specifically in C89 or C++98 mode (strict or not).  For
    370 //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
    371 //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
    372 //    old extension.
    373 
    374 // Get definitions of __STDC_* predefined macros, if the compiler has
    375 //    not preincluded this header automatically.
    376 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    377 //    This file is part of the GNU C Library.
    378 //
    379 //    The GNU C Library is free software; you can redistribute it and/or
    380 //    modify it under the terms of the GNU Lesser General Public
    381 //    License as published by the Free Software Foundation; either
    382 //    version 2.1 of the License, or (at your option) any later version.
    383 //
    384 //    The GNU C Library is distributed in the hope that it will be useful,
    385 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    386 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    387 //    Lesser General Public License for more details.
    388 //
    389 //    You should have received a copy of the GNU Lesser General Public
    390 //    License along with the GNU C Library; if not, see
    391 //    <https://www.gnu.org/licenses/>.
    392 
    393 // This macro indicates that the installed library is the GNU C Library.
    394 //    For historic reasons the value now is 6 and this will stay from now
    395 //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
    396 //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
    397 //    GNU C library version and use the values in <gnu/lib-names.h> to get
    398 //    the sonames of the shared libraries.
    399 
    400 // Major and minor version number of the GNU C library package.  Use
    401 //    these macros to test for features in specific releases.
    402 
    403 // This is here only because every header file already includes this one.
    404 // Copyright (C) 1992-2020 Free Software Foundation, Inc.
    405 //    This file is part of the GNU C Library.
    406 //
    407 //    The GNU C Library is free software; you can redistribute it and/or
    408 //    modify it under the terms of the GNU Lesser General Public
    409 //    License as published by the Free Software Foundation; either
    410 //    version 2.1 of the License, or (at your option) any later version.
    411 //
    412 //    The GNU C Library is distributed in the hope that it will be useful,
    413 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    414 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    415 //    Lesser General Public License for more details.
    416 //
    417 //    You should have received a copy of the GNU Lesser General Public
    418 //    License along with the GNU C Library; if not, see
    419 //    <https://www.gnu.org/licenses/>.
    420 
    421 // We are almost always included from features.h.
    422 
    423 // The GNU libc does not support any K&R compilers or the traditional mode
    424 //    of ISO C compilers anymore.  Check for some of the combinations not
    425 //    anymore supported.
    426 
    427 // Some user header file might have defined this before.
    428 
    429 // All functions, except those with callbacks or those that
    430 //    synchronize memory, are leaf functions.
    431 
    432 // GCC can always grok prototypes.  For C++ programs we add throw()
    433 //    to help it optimize the function calls.  But this works only with
    434 //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
    435 //    as non-throwing using a function attribute since programs can use
    436 //    the -fexceptions options for C code as well.
    437 
    438 // Compilers that are not clang may object to
    439 //        #if defined __clang__ && __has_extension(...)
    440 //    even though they do not need to evaluate the right-hand side of the &&.
    441 
    442 // These two macros are not used in glibc anymore.  They are kept here
    443 //    only because some other projects expect the macros to be defined.
    444 
    445 // For these things, GCC behaves the ANSI way normally,
    446 //    and the non-ANSI way under -traditional.
    447 
    448 // This is not a typedef so `const __ptr_t' does the right thing.
    449 
    450 // C++ needs to know that types and declarations are C, not C++.
    451 
    452 // Fortify support.
    453 
    454 // Support for flexible arrays.
    455 //    Headers that should use flexible arrays only if they're "real"
    456 //    (e.g. only if they won't affect sizeof()) should test
    457 //    #if __glibc_c99_flexarr_available.
    458 
    459 // __asm__ ("xyz") is used throughout the headers to rename functions
    460 //    at the assembly language level.  This is wrapped by the __REDIRECT
    461 //    macro, in order to support compilers that can do this some other
    462 //    way.  When compilers don't support asm-names at all, we have to do
    463 //    preprocessor tricks instead (which don't have exactly the right
    464 //    semantics, but it's the best we can do).
    465 //
    466 //    Example:
    467 //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
    468 
    469 //
    470 // #elif __SOME_OTHER_COMPILER__
    471 //
    472 // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
    473 
    474 // GCC has various useful declarations that can be made with the
    475 //    `__attribute__' syntax.  All of the ways we use this do fine if
    476 //    they are omitted for compilers that don't understand it.
    477 
    478 // At some point during the gcc 2.96 development the `malloc' attribute
    479 //    for functions was introduced.  We don't want to use it unconditionally
    480 //    (although this would be possible) since it generates warnings.
    481 
    482 // Tell the compiler which arguments to an allocation function
    483 //    indicate the size of the allocation.
    484 
    485 // At some point during the gcc 2.96 development the `pure' attribute
    486 //    for functions was introduced.  We don't want to use it unconditionally
    487 //    (although this would be possible) since it generates warnings.
    488 
    489 // This declaration tells the compiler that the value is constant.
    490 
    491 // At some point during the gcc 3.1 development the `used' attribute
    492 //    for functions was introduced.  We don't want to use it unconditionally
    493 //    (although this would be possible) since it generates warnings.
    494 
    495 // Since version 3.2, gcc allows marking deprecated functions.
    496 
    497 // Since version 4.5, gcc also allows one to specify the message printed
    498 //    when a deprecated function is used.  clang claims to be gcc 4.2, but
    499 //    may also support this feature.
    500 
    501 // At some point during the gcc 2.8 development the `format_arg' attribute
    502 //    for functions was introduced.  We don't want to use it unconditionally
    503 //    (although this would be possible) since it generates warnings.
    504 //    If several `format_arg' attributes are given for the same function, in
    505 //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
    506 //    all designated arguments are considered.
    507 
    508 // At some point during the gcc 2.97 development the `strfmon' format
    509 //    attribute for functions was introduced.  We don't want to use it
    510 //    unconditionally (although this would be possible) since it
    511 //    generates warnings.
    512 
    513 // The nonull function attribute allows to mark pointer parameters which
    514 //    must not be NULL.
    515 
    516 // If fortification mode, we warn about unused results of certain
    517 //    function calls which can lead to problems.
    518 
    519 // Forces a function to be always inlined.
    520 // The Linux kernel defines __always_inline in stddef.h (283d7573), and
    521 //    it conflicts with this definition.  Therefore undefine it first to
    522 //    allow either header to be included first.
    523 
    524 // Associate error messages with the source location of the call site rather
    525 //    than with the source location inside the function.
    526 
    527 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
    528 //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
    529 //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
    530 //    older than 4.3 may define these macros and still not guarantee GNU inlining
    531 //    semantics.
    532 //
    533 //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
    534 //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
    535 //    __GNUC_GNU_INLINE__ macro definitions.
    536 
    537 // GCC 4.3 and above allow passing all anonymous arguments of an
    538 //    __extern_always_inline function to some other vararg function.
    539 
    540 // It is possible to compile containing GCC extensions even if GCC is
    541 //    run in pedantic mode if the uses are carefully marked using the
    542 //    `__extension__' keyword.  But this is not generally available before
    543 //    version 2.8.
    544 
    545 // __restrict is known in EGCS 1.2 and above.
    546 
    547 // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
    548 //      array_name[restrict]
    549 //    GCC 3.1 supports this.
    550 
    551 // Describes a char array whose address can safely be passed as the first
    552 //    argument to strncpy and strncat, as the char array is not necessarily
    553 //    a NUL-terminated string.
    554 
    555 // Undefine (also defined in libc-symbols.h).
    556 // Copies attributes from the declaration or type referenced by
    557 //    the argument.
    558 
    559 // Determine the wordsize from the preprocessor defines.
    560 
    561 // Both x86-64 and x32 use the 64-bit system call interface.
    562 // Properties of long double type.  ldbl-96 version.
    563 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    564 //    This file is part of the GNU C Library.
    565 //
    566 //    The GNU C Library is free software; you can redistribute it and/or
    567 //    modify it under the terms of the GNU Lesser General Public
    568 //    License  published by the Free Software Foundation; either
    569 //    version 2.1 of the License, or (at your option) any later version.
    570 //
    571 //    The GNU C Library is distributed in the hope that it will be useful,
    572 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    573 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    574 //    Lesser General Public License for more details.
    575 //
    576 //    You should have received a copy of the GNU Lesser General Public
    577 //    License along with the GNU C Library; if not, see
    578 //    <https://www.gnu.org/licenses/>.
    579 
    580 // long double is distinct from double, so there is nothing to
    581 //    define here.
    582 
    583 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    584 //    intended for use in preprocessor macros.
    585 //
    586 //    Note: MESSAGE must be a _single_ string; concatenation of string
    587 //    literals is not supported.
    588 
    589 // Generic selection (ISO C11) is a C-only feature, available in GCC
    590 //    since version 4.9.  Previous versions do not provide generic
    591 //    selection, even though they might set __STDC_VERSION__ to 201112L,
    592 //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
    593 //    when testing __STDC_VERSION__ for generic selection support.
    594 //    On the other hand, Clang also defines __GNUC__, so a clang-specific
    595 //    check is required to enable the use of generic selection.
    596 
    597 // If we don't have __REDIRECT, prototypes will be missing if
    598 //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
    599 
    600 // Decide whether we can define 'extern inline' functions in headers.
    601 
    602 // This is here only because every header file already includes this one.
    603 //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
    604 //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
    605 //    that will always return failure (and set errno to ENOSYS).
    606 // This file is automatically generated.
    607 //    This file selects the right generated file of `__stub_FUNCTION' macros
    608 //    based on the architecture being compiled for.
    609 
    610 // This file is automatically generated.
    611 //    It defines a symbol `__stub_FUNCTION' for each function
    612 //    in the C library which is a stub, meaning it will fail
    613 //    every time called, usually setting errno to ENOSYS.
    614 
    615 // Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
    616 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
    617 //    This file is part of the GNU C Library.
    618 //
    619 //    The GNU C Library is free software; you can redistribute it and/or
    620 //    modify it under the terms of the GNU Lesser General Public
    621 //    License as published by the Free Software Foundation; either
    622 //    version 2.1 of the License, or (at your option) any later version.
    623 //
    624 //    The GNU C Library is distributed in the hope that it will be useful,
    625 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    626 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    627 //    Lesser General Public License for more details.
    628 //
    629 //    You should have received a copy of the GNU Lesser General Public
    630 //    License along with the GNU C Library; if not, see
    631 //    <https://www.gnu.org/licenses/>.
    632 
    633 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    634 //    This file is part of the GNU C Library.
    635 //
    636 //    The GNU C Library is free software; you can redistribute it and/or
    637 //    modify it under the terms of the GNU Lesser General Public
    638 //    License as published by the Free Software Foundation; either
    639 //    version 2.1 of the License, or (at your option) any later version.
    640 //
    641 //    The GNU C Library is distributed in the hope that it will be useful,
    642 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    643 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    644 //    Lesser General Public License for more details.
    645 //
    646 //    You should have received a copy of the GNU Lesser General Public
    647 //    License along with the GNU C Library; if not, see
    648 //    <https://www.gnu.org/licenses/>.
    649 
    650 // Get type definitions.
    651 // bits/types.h -- definitions of __*_t types underlying *_t types.
    652 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    653 //    This file is part of the GNU C Library.
    654 //
    655 //    The GNU C Library is free software; you can redistribute it and/or
    656 //    modify it under the terms of the GNU Lesser General Public
    657 //    License as published by the Free Software Foundation; either
    658 //    version 2.1 of the License, or (at your option) any later version.
    659 //
    660 //    The GNU C Library is distributed in the hope that it will be useful,
    661 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    662 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    663 //    Lesser General Public License for more details.
    664 //
    665 //    You should have received a copy of the GNU Lesser General Public
    666 //    License along with the GNU C Library; if not, see
    667 //    <https://www.gnu.org/licenses/>.
    668 
    669 // Never include this file directly; use <sys/types.h> instead.
    670 
    671 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    672 //    This file is part of the GNU C Library.
    673 //
    674 //    The GNU C Library is free software; you can redistribute it and/or
    675 //    modify it under the terms of the GNU Lesser General Public
    676 //    License as published by the Free Software Foundation; either
    677 //    version 2.1 of the License, or (at your option) any later version.
    678 //
    679 //    The GNU C Library is distributed in the hope that it will be useful,
    680 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    681 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    682 //    Lesser General Public License for more details.
    683 //
    684 //    You should have received a copy of the GNU Lesser General Public
    685 //    License along with the GNU C Library; if not, see
    686 //    <https://www.gnu.org/licenses/>.
    687 
    688 // Determine the wordsize from the preprocessor defines.
    689 
    690 // Both x86-64 and x32 use the 64-bit system call interface.
    691 // Bit size of the time_t type at glibc build time, x86-64 and x32 case.
    692 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
    693 //    This file is part of the GNU C Library.
    694 //
    695 //    The GNU C Library is free software; you can redistribute it and/or
    696 //    modify it under the terms of the GNU Lesser General Public
    697 //    License as published by the Free Software Foundation; either
    698 //    version 2.1 of the License, or (at your option) any later version.
    699 //
    700 //    The GNU C Library is distributed in the hope that it will be useful,
    701 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    702 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    703 //    Lesser General Public License for more details.
    704 //
    705 //    You should have received a copy of the GNU Lesser General Public
    706 //    License along with the GNU C Library; if not, see
    707 //    <https://www.gnu.org/licenses/>.
    708 
    709 // For others, time size is word size.
    710 
    711 // Convenience types.
    712 type X__u_char = uint8   /* types.h:31:23 */
    713 type X__u_short = uint16 /* types.h:32:28 */
    714 type X__u_int = uint32   /* types.h:33:22 */
    715 type X__u_long = uint64  /* types.h:34:27 */
    716 
    717 // Fixed-size types, underlying types depend on word size and compiler.
    718 type X__int8_t = int8     /* types.h:37:21 */
    719 type X__uint8_t = uint8   /* types.h:38:23 */
    720 type X__int16_t = int16   /* types.h:39:26 */
    721 type X__uint16_t = uint16 /* types.h:40:28 */
    722 type X__int32_t = int32   /* types.h:41:20 */
    723 type X__uint32_t = uint32 /* types.h:42:22 */
    724 type X__int64_t = int64   /* types.h:44:25 */
    725 type X__uint64_t = uint64 /* types.h:45:27 */
    726 
    727 // Smallest types with at least a given width.
    728 type X__int_least8_t = X__int8_t     /* types.h:52:18 */
    729 type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
    730 type X__int_least16_t = X__int16_t   /* types.h:54:19 */
    731 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
    732 type X__int_least32_t = X__int32_t   /* types.h:56:19 */
    733 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
    734 type X__int_least64_t = X__int64_t   /* types.h:58:19 */
    735 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
    736 
    737 // quad_t is also 64 bits.
    738 type X__quad_t = int64    /* types.h:63:18 */
    739 type X__u_quad_t = uint64 /* types.h:64:27 */
    740 
    741 // Largest integral types.
    742 type X__intmax_t = int64   /* types.h:72:18 */
    743 type X__uintmax_t = uint64 /* types.h:73:27 */
    744 
    745 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
    746 //    macros for each of the OS types we define below.  The definitions
    747 //    of those macros must use the following macros for underlying types.
    748 //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
    749 //    variants of each of the following integer types on this machine.
    750 //
    751 // 	16		-- "natural" 16-bit type (always short)
    752 // 	32		-- "natural" 32-bit type (always int)
    753 // 	64		-- "natural" 64-bit type (long or long long)
    754 // 	LONG32		-- 32-bit type, traditionally long
    755 // 	QUAD		-- 64-bit type, traditionally long long
    756 // 	WORD		-- natural type of __WORDSIZE bits (int or long)
    757 // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
    758 //
    759 //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
    760 //    conventional uses of `long' or `long long' type modifiers match the
    761 //    types we define, even when a less-adorned type would be the same size.
    762 //    This matters for (somewhat) portably writing printf/scanf formats for
    763 //    these types, where using the appropriate l or ll format modifiers can
    764 //    make the typedefs and the formats match up across all GNU platforms.  If
    765 //    we used `long' when it's 64 bits where `long long' is expected, then the
    766 //    compiler would warn about the formats not matching the argument types,
    767 //    and the programmer changing them to shut up the compiler would break the
    768 //    program's portability.
    769 //
    770 //    Here we assume what is presently the case in all the GCC configurations
    771 //    we support: long long is always 64 bits, long is always word/address size,
    772 //    and int is always 32 bits.
    773 
    774 // No need to mark the typedef with __extension__.
    775 // bits/typesizes.h -- underlying types for *_t.  Linux/x86-64 version.
    776 //    Copyright (C) 2012-2020 Free Software Foundation, Inc.
    777 //    This file is part of the GNU C Library.
    778 //
    779 //    The GNU C Library is free software; you can redistribute it and/or
    780 //    modify it under the terms of the GNU Lesser General Public
    781 //    License as published by the Free Software Foundation; either
    782 //    version 2.1 of the License, or (at your option) any later version.
    783 //
    784 //    The GNU C Library is distributed in the hope that it will be useful,
    785 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    786 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    787 //    Lesser General Public License for more details.
    788 //
    789 //    You should have received a copy of the GNU Lesser General Public
    790 //    License along with the GNU C Library; if not, see
    791 //    <https://www.gnu.org/licenses/>.
    792 
    793 // See <bits/types.h> for the meaning of these macros.  This file exists so
    794 //    that <bits/types.h> need not vary across different GNU platforms.
    795 
    796 // X32 kernel interface is 64-bit.
    797 
    798 // Tell the libc code that off_t and off64_t are actually the same type
    799 //    for all ABI purposes, even if possibly expressed as different base types
    800 //    for C type-checking purposes.
    801 
    802 // Same for ino_t and ino64_t.
    803 
    804 // And for __rlim_t and __rlim64_t.
    805 
    806 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
    807 
    808 // Number of descriptors that can fit in an `fd_set'.
    809 
    810 // bits/time64.h -- underlying types for __time64_t.  Generic version.
    811 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
    812 //    This file is part of the GNU C Library.
    813 //
    814 //    The GNU C Library is free software; you can redistribute it and/or
    815 //    modify it under the terms of the GNU Lesser General Public
    816 //    License as published by the Free Software Foundation; either
    817 //    version 2.1 of the License, or (at your option) any later version.
    818 //
    819 //    The GNU C Library is distributed in the hope that it will be useful,
    820 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    821 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    822 //    Lesser General Public License for more details.
    823 //
    824 //    You should have received a copy of the GNU Lesser General Public
    825 //    License along with the GNU C Library; if not, see
    826 //    <https://www.gnu.org/licenses/>.
    827 
    828 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
    829 
    830 // If we already have 64-bit time type then use it.
    831 
    832 type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
    833 type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
    834 type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
    835 type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
    836 type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
    837 type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
    838 type X__nlink_t = uint64                   /* types.h:151:27 */ // Type of file link counts.
    839 type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
    840 type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
    841 type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
    842 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
    843 type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
    844 type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
    845 type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
    846 type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
    847 type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
    848 type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
    849 type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
    850 
    851 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
    852 type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
    853 
    854 // Clock ID used in clock and timer functions.
    855 type X__clockid_t = int32 /* types.h:168:29 */
    856 
    857 // Timer ID returned by `timer_create'.
    858 type X__timer_t = uintptr /* types.h:171:12 */
    859 
    860 // Type to represent block size.
    861 type X__blksize_t = int64 /* types.h:174:29 */
    862 
    863 // Types from the Large File Support interface.
    864 
    865 // Type to count number of disk blocks.
    866 type X__blkcnt_t = int64   /* types.h:179:28 */
    867 type X__blkcnt64_t = int64 /* types.h:180:30 */
    868 
    869 // Type to count file system blocks.
    870 type X__fsblkcnt_t = uint64   /* types.h:183:30 */
    871 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
    872 
    873 // Type to count file system nodes.
    874 type X__fsfilcnt_t = uint64   /* types.h:187:30 */
    875 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
    876 
    877 // Type of miscellaneous file system fields.
    878 type X__fsword_t = int64 /* types.h:191:28 */
    879 
    880 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
    881 
    882 // Signed long type used in system calls.
    883 type X__syscall_slong_t = int64 /* types.h:196:33 */
    884 // Unsigned long type used in system calls.
    885 type X__syscall_ulong_t = uint64 /* types.h:198:33 */
    886 
    887 // These few don't really vary by system, they always correspond
    888 //
    889 //	to one of the other defined types.
    890 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
    891 type X__caddr_t = uintptr   /* types.h:203:14 */
    892 
    893 // Duplicates info from stdint.h but this is used in unistd.h.
    894 type X__intptr_t = int64 /* types.h:206:25 */
    895 
    896 // Duplicate info from sys/socket.h.
    897 type X__socklen_t = uint32 /* types.h:209:23 */
    898 
    899 // C99: An integer type that can be accessed as an atomic entity,
    900 //
    901 //	even in the presence of asynchronous interrupts.
    902 //	It is not currently necessary for this to be machine-specific.
    903 type X__sig_atomic_t = int32 /* types.h:214:13 */
    904 
    905 // Wide character type.
    906 //    Locale-writers should change this as necessary to
    907 //    be big enough to hold unique values not between 0 and 127,
    908 //    and not (wchar_t) -1, for each defined multibyte character.
    909 
    910 // Define this type if we are doing the whole job,
    911 //    or if we want this type in particular.
    912 
    913 // A null pointer constant.
    914 
    915 // bits/types.h -- definitions of __*_t types underlying *_t types.
    916 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    917 //    This file is part of the GNU C Library.
    918 //
    919 //    The GNU C Library is free software; you can redistribute it and/or
    920 //    modify it under the terms of the GNU Lesser General Public
    921 //    License as published by the Free Software Foundation; either
    922 //    version 2.1 of the License, or (at your option) any later version.
    923 //
    924 //    The GNU C Library is distributed in the hope that it will be useful,
    925 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    926 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    927 //    Lesser General Public License for more details.
    928 //
    929 //    You should have received a copy of the GNU Lesser General Public
    930 //    License along with the GNU C Library; if not, see
    931 //    <https://www.gnu.org/licenses/>.
    932 
    933 // Never include this file directly; use <sys/types.h> instead.
    934 
    935 // Returned by `time'.
    936 type Time_t = X__time_t /* time_t.h:7:18 */
    937 
    938 // NB: Include guard matches what <linux/time.h> uses.
    939 
    940 // bits/types.h -- definitions of __*_t types underlying *_t types.
    941 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    942 //    This file is part of the GNU C Library.
    943 //
    944 //    The GNU C Library is free software; you can redistribute it and/or
    945 //    modify it under the terms of the GNU Lesser General Public
    946 //    License as published by the Free Software Foundation; either
    947 //    version 2.1 of the License, or (at your option) any later version.
    948 //
    949 //    The GNU C Library is distributed in the hope that it will be useful,
    950 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    951 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    952 //    Lesser General Public License for more details.
    953 //
    954 //    You should have received a copy of the GNU Lesser General Public
    955 //    License along with the GNU C Library; if not, see
    956 //    <https://www.gnu.org/licenses/>.
    957 
    958 // Never include this file directly; use <sys/types.h> instead.
    959 
    960 // Endian macros for string.h functions
    961 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
    962 //    This file is part of the GNU C Library.
    963 //
    964 //    The GNU C Library is free software; you can redistribute it and/or
    965 //    modify it under the terms of the GNU Lesser General Public
    966 //    License as published by the Free Software Foundation; either
    967 //    version 2.1 of the License, or (at your option) any later version.
    968 //
    969 //    The GNU C Library is distributed in the hope that it will be useful,
    970 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    971 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    972 //    Lesser General Public License for more details.
    973 //
    974 //    You should have received a copy of the GNU Lesser General Public
    975 //    License along with the GNU C Library; if not, see
    976 //    <http://www.gnu.org/licenses/>.
    977 
    978 // Definitions for byte order, according to significance of bytes,
    979 //    from low addresses to high addresses.  The value is what you get by
    980 //    putting '4' in the most significant byte, '3' in the second most
    981 //    significant byte, '2' in the second least significant byte, and '1'
    982 //    in the least significant byte, and then writing down one digit for
    983 //    each byte, starting with the byte at the lowest address at the left,
    984 //    and proceeding to the byte with the highest address at the right.
    985 
    986 // This file defines `__BYTE_ORDER' for the particular machine.
    987 
    988 // i386/x86_64 are little-endian.
    989 
    990 // Some machines may need to use a different endianness for floating point
    991 //    values.
    992 
    993 // POSIX.1b structure for a time value.  This is like a `struct timeval' but
    994 //
    995 //	has nanoseconds instead of microseconds.
    996 type Timespec = struct {
    997 	Ftv_sec  X__time_t
    998 	Ftv_nsec X__syscall_slong_t
    999 } /* struct_timespec.h:10:1 */
   1000 
   1001 type Pid_t = X__pid_t /* sched.h:38:17 */
   1002 
   1003 // Get system specific constant and data structure definitions.
   1004 // Definitions of constants and data structure for POSIX 1003.1b-1993
   1005 //    scheduling interface.
   1006 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1007 //    This file is part of the GNU C Library.
   1008 //
   1009 //    The GNU C Library is free software; you can redistribute it and/or
   1010 //    modify it under the terms of the GNU Lesser General Public
   1011 //    License as published by the Free Software Foundation; either
   1012 //    version 2.1 of the License, or (at your option) any later version.
   1013 //
   1014 //    The GNU C Library is distributed in the hope that it will be useful,
   1015 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1016 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1017 //    Lesser General Public License for more details.
   1018 //
   1019 //    You should have received a copy of the GNU Lesser General Public
   1020 //    License along with the GNU C Library; if not, see
   1021 //    <https://www.gnu.org/licenses/>.
   1022 
   1023 // Scheduling algorithms.
   1024 
   1025 // Sched parameter structure.  Generic version.
   1026 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1027 //    This file is part of the GNU C Library.
   1028 //
   1029 //    The GNU C Library is free software; you can redistribute it and/or
   1030 //    modify it under the terms of the GNU Lesser General Public
   1031 //    License as published by the Free Software Foundation; either
   1032 //    version 2.1 of the License, or (at your option) any later version.
   1033 //
   1034 //    The GNU C Library is distributed in the hope that it will be useful,
   1035 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1036 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1037 //    Lesser General Public License for more details.
   1038 //
   1039 //    You should have received a copy of the GNU Lesser General Public
   1040 //    License along with the GNU C Library;  if not, see
   1041 //    <https://www.gnu.org/licenses/>.
   1042 
   1043 // Data structure to describe a process' schedulability.
   1044 type Sched_param = struct{ Fsched_priority int32 } /* struct_sched_param.h:23:1 */
   1045 
   1046 // Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
   1047 //    scheduling interface.
   1048 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1049 //    This file is part of the GNU C Library.
   1050 //
   1051 //    The GNU C Library is free software; you can redistribute it and/or
   1052 //    modify it under the terms of the GNU Lesser General Public
   1053 //    License as published by the Free Software Foundation; either
   1054 //    version 2.1 of the License, or (at your option) any later version.
   1055 //
   1056 //    The GNU C Library is distributed in the hope that it will be useful,
   1057 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1058 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1059 //    Lesser General Public License for more details.
   1060 //
   1061 //    You should have received a copy of the GNU Lesser General Public
   1062 //    License along with the GNU C Library; if not, see
   1063 //    <https://www.gnu.org/licenses/>.
   1064 
   1065 // Size definition for CPU sets.
   1066 
   1067 // Type for array elements in 'cpu_set_t'.
   1068 type X__cpu_mask = uint64 /* cpu-set.h:32:25 */
   1069 
   1070 // Basic access functions.
   1071 
   1072 // Data structure to describe CPU mask.
   1073 type Cpu_set_t = struct{ F__bits [16]X__cpu_mask } /* cpu-set.h:42:3 */
   1074 
   1075 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1076 //    This file is part of the GNU C Library.
   1077 //
   1078 //    The GNU C Library is free software; you can redistribute it and/or
   1079 //    modify it under the terms of the GNU Lesser General Public
   1080 //    License as published by the Free Software Foundation; either
   1081 //    version 2.1 of the License, or (at your option) any later version.
   1082 //
   1083 //    The GNU C Library is distributed in the hope that it will be useful,
   1084 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1085 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1086 //    Lesser General Public License for more details.
   1087 //
   1088 //    You should have received a copy of the GNU Lesser General Public
   1089 //    License along with the GNU C Library; if not, see
   1090 //    <https://www.gnu.org/licenses/>.
   1091 
   1092 //	ISO C99 Standard: 7.23 Date and time	<time.h>
   1093 
   1094 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1095 //    This file is part of the GNU C Library.
   1096 //
   1097 //    The GNU C Library is free software; you can redistribute it and/or
   1098 //    modify it under the terms of the GNU Lesser General Public
   1099 //    License as published by the Free Software Foundation; either
   1100 //    version 2.1 of the License, or (at your option) any later version.
   1101 //
   1102 //    The GNU C Library is distributed in the hope that it will be useful,
   1103 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1104 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1105 //    Lesser General Public License for more details.
   1106 //
   1107 //    You should have received a copy of the GNU Lesser General Public
   1108 //    License along with the GNU C Library; if not, see
   1109 //    <https://www.gnu.org/licenses/>.
   1110 
   1111 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
   1112 //
   1113 // This file is part of GCC.
   1114 //
   1115 // GCC is free software; you can redistribute it and/or modify
   1116 // it under the terms of the GNU General Public License as published by
   1117 // the Free Software Foundation; either version 3, or (at your option)
   1118 // any later version.
   1119 //
   1120 // GCC is distributed in the hope that it will be useful,
   1121 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   1122 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1123 // GNU General Public License for more details.
   1124 //
   1125 // Under Section 7 of GPL version 3, you are granted additional
   1126 // permissions described in the GCC Runtime Library Exception, version
   1127 // 3.1, as published by the Free Software Foundation.
   1128 //
   1129 // You should have received a copy of the GNU General Public License and
   1130 // a copy of the GCC Runtime Library Exception along with this program;
   1131 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   1132 // <http://www.gnu.org/licenses/>.
   1133 
   1134 // ISO C Standard:  7.17  Common definitions  <stddef.h>
   1135 
   1136 // Any one of these symbols __need_* means that GNU libc
   1137 //    wants us just to define one data type.  So don't define
   1138 //    the symbols that indicate this file's entire job has been done.
   1139 
   1140 // This avoids lossage on SunOS but only if stdtypes.h comes first.
   1141 //    There's no way to win with the other order!  Sun lossage.
   1142 
   1143 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
   1144 //    Just ignore it.
   1145 
   1146 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
   1147 //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
   1148 //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
   1149 //    not defined, and so that defining this macro defines _GCC_SIZE_T.
   1150 //    If we find that the macros are still defined at this point, we must
   1151 //    invoke them so that the type is defined as expected.
   1152 
   1153 // In case nobody has defined these types, but we aren't running under
   1154 //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
   1155 //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
   1156 //    parts of GCC is compiled by an older compiler, that actually
   1157 //    include gstddef.h, such as collect2.
   1158 
   1159 // Signed type of difference of two pointers.
   1160 
   1161 // Define this type if we are doing the whole job,
   1162 //    or if we want this type in particular.
   1163 
   1164 // Unsigned type of `sizeof' something.
   1165 
   1166 // Define this type if we are doing the whole job,
   1167 //    or if we want this type in particular.
   1168 
   1169 // Wide character type.
   1170 //    Locale-writers should change this as necessary to
   1171 //    be big enough to hold unique values not between 0 and 127,
   1172 //    and not (wchar_t) -1, for each defined multibyte character.
   1173 
   1174 // Define this type if we are doing the whole job,
   1175 //    or if we want this type in particular.
   1176 
   1177 // A null pointer constant.
   1178 
   1179 // This defines CLOCKS_PER_SEC, which is the number of processor clock
   1180 //    ticks per second, and possibly a number of other constants.
   1181 // System-dependent timing definitions.  Linux version.
   1182 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1183 //    This file is part of the GNU C Library.
   1184 //
   1185 //    The GNU C Library is free software; you can redistribute it and/or
   1186 //    modify it under the terms of the GNU Lesser General Public
   1187 //    License as published by the Free Software Foundation; either
   1188 //    version 2.1 of the License, or (at your option) any later version.
   1189 //
   1190 //    The GNU C Library is distributed in the hope that it will be useful,
   1191 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1192 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1193 //    Lesser General Public License for more details.
   1194 //
   1195 //    You should have received a copy of the GNU Lesser General Public
   1196 //    License along with the GNU C Library; if not, see
   1197 //    <https://www.gnu.org/licenses/>.
   1198 
   1199 // Never include this file directly; use <time.h> instead.
   1200 
   1201 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1202 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1203 //    This file is part of the GNU C Library.
   1204 //
   1205 //    The GNU C Library is free software; you can redistribute it and/or
   1206 //    modify it under the terms of the GNU Lesser General Public
   1207 //    License as published by the Free Software Foundation; either
   1208 //    version 2.1 of the License, or (at your option) any later version.
   1209 //
   1210 //    The GNU C Library is distributed in the hope that it will be useful,
   1211 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1212 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1213 //    Lesser General Public License for more details.
   1214 //
   1215 //    You should have received a copy of the GNU Lesser General Public
   1216 //    License along with the GNU C Library; if not, see
   1217 //    <https://www.gnu.org/licenses/>.
   1218 
   1219 // Never include this file directly; use <sys/types.h> instead.
   1220 
   1221 // ISO/IEC 9899:1999 7.23.1: Components of time
   1222 //    The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is
   1223 //    the number per second of the value returned by the `clock' function.
   1224 // CAE XSH, Issue 4, Version 2: <time.h>
   1225 //    The value of CLOCKS_PER_SEC is required to be 1 million on all
   1226 //    XSI-conformant systems.
   1227 
   1228 // Identifier for system-wide realtime clock.
   1229 // Monotonic system-wide clock.
   1230 // High-resolution timer from the CPU.
   1231 // Thread-specific CPU-time clock.
   1232 // Monotonic system-wide clock, not adjusted for frequency scaling.
   1233 // Identifier for system-wide realtime clock, updated only on ticks.
   1234 // Monotonic system-wide clock, updated only on ticks.
   1235 // Monotonic system-wide clock that includes time spent in suspension.
   1236 // Like CLOCK_REALTIME but also wakes suspended system.
   1237 // Like CLOCK_BOOTTIME but also wakes suspended system.
   1238 // Like CLOCK_REALTIME but in International Atomic Time.
   1239 
   1240 // Flag to indicate time is absolute.
   1241 
   1242 // Many of the typedefs and structs whose official home is this header
   1243 //    may also need to be defined by other headers.
   1244 
   1245 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1246 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1247 //    This file is part of the GNU C Library.
   1248 //
   1249 //    The GNU C Library is free software; you can redistribute it and/or
   1250 //    modify it under the terms of the GNU Lesser General Public
   1251 //    License as published by the Free Software Foundation; either
   1252 //    version 2.1 of the License, or (at your option) any later version.
   1253 //
   1254 //    The GNU C Library is distributed in the hope that it will be useful,
   1255 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1256 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1257 //    Lesser General Public License for more details.
   1258 //
   1259 //    You should have received a copy of the GNU Lesser General Public
   1260 //    License along with the GNU C Library; if not, see
   1261 //    <https://www.gnu.org/licenses/>.
   1262 
   1263 // Never include this file directly; use <sys/types.h> instead.
   1264 
   1265 // Returned by `clock'.
   1266 type Clock_t = X__clock_t /* clock_t.h:7:19 */
   1267 
   1268 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1269 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1270 //    This file is part of the GNU C Library.
   1271 //
   1272 //    The GNU C Library is free software; you can redistribute it and/or
   1273 //    modify it under the terms of the GNU Lesser General Public
   1274 //    License as published by the Free Software Foundation; either
   1275 //    version 2.1 of the License, or (at your option) any later version.
   1276 //
   1277 //    The GNU C Library is distributed in the hope that it will be useful,
   1278 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1279 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1280 //    Lesser General Public License for more details.
   1281 //
   1282 //    You should have received a copy of the GNU Lesser General Public
   1283 //    License along with the GNU C Library; if not, see
   1284 //    <https://www.gnu.org/licenses/>.
   1285 
   1286 // Never include this file directly; use <sys/types.h> instead.
   1287 
   1288 // ISO C `broken-down time' structure.
   1289 type Tm = struct {
   1290 	Ftm_sec      int32
   1291 	Ftm_min      int32
   1292 	Ftm_hour     int32
   1293 	Ftm_mday     int32
   1294 	Ftm_mon      int32
   1295 	Ftm_year     int32
   1296 	Ftm_wday     int32
   1297 	Ftm_yday     int32
   1298 	Ftm_isdst    int32
   1299 	F__ccgo_pad1 [4]byte
   1300 	Ftm_gmtoff   int64
   1301 	Ftm_zone     uintptr
   1302 } /* struct_tm.h:7:1 */
   1303 
   1304 // NB: Include guard matches what <linux/time.h> uses.
   1305 
   1306 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1307 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1308 //    This file is part of the GNU C Library.
   1309 //
   1310 //    The GNU C Library is free software; you can redistribute it and/or
   1311 //    modify it under the terms of the GNU Lesser General Public
   1312 //    License as published by the Free Software Foundation; either
   1313 //    version 2.1 of the License, or (at your option) any later version.
   1314 //
   1315 //    The GNU C Library is distributed in the hope that it will be useful,
   1316 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1317 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1318 //    Lesser General Public License for more details.
   1319 //
   1320 //    You should have received a copy of the GNU Lesser General Public
   1321 //    License along with the GNU C Library; if not, see
   1322 //    <https://www.gnu.org/licenses/>.
   1323 
   1324 // Never include this file directly; use <sys/types.h> instead.
   1325 
   1326 // Clock ID used in clock and timer functions.
   1327 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   1328 
   1329 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1330 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1331 //    This file is part of the GNU C Library.
   1332 //
   1333 //    The GNU C Library is free software; you can redistribute it and/or
   1334 //    modify it under the terms of the GNU Lesser General Public
   1335 //    License as published by the Free Software Foundation; either
   1336 //    version 2.1 of the License, or (at your option) any later version.
   1337 //
   1338 //    The GNU C Library is distributed in the hope that it will be useful,
   1339 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1340 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1341 //    Lesser General Public License for more details.
   1342 //
   1343 //    You should have received a copy of the GNU Lesser General Public
   1344 //    License along with the GNU C Library; if not, see
   1345 //    <https://www.gnu.org/licenses/>.
   1346 
   1347 // Never include this file directly; use <sys/types.h> instead.
   1348 
   1349 // Timer ID returned by `timer_create'.
   1350 type Timer_t = X__timer_t /* timer_t.h:7:19 */
   1351 
   1352 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1353 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1354 //    This file is part of the GNU C Library.
   1355 //
   1356 //    The GNU C Library is free software; you can redistribute it and/or
   1357 //    modify it under the terms of the GNU Lesser General Public
   1358 //    License as published by the Free Software Foundation; either
   1359 //    version 2.1 of the License, or (at your option) any later version.
   1360 //
   1361 //    The GNU C Library is distributed in the hope that it will be useful,
   1362 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1363 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1364 //    Lesser General Public License for more details.
   1365 //
   1366 //    You should have received a copy of the GNU Lesser General Public
   1367 //    License along with the GNU C Library; if not, see
   1368 //    <https://www.gnu.org/licenses/>.
   1369 
   1370 // Never include this file directly; use <sys/types.h> instead.
   1371 
   1372 // NB: Include guard matches what <linux/time.h> uses.
   1373 
   1374 // POSIX.1b structure for timer start values and intervals.
   1375 type Itimerspec = struct {
   1376 	Fit_interval struct {
   1377 		Ftv_sec  X__time_t
   1378 		Ftv_nsec X__syscall_slong_t
   1379 	}
   1380 	Fit_value struct {
   1381 		Ftv_sec  X__time_t
   1382 		Ftv_nsec X__syscall_slong_t
   1383 	}
   1384 } /* struct_itimerspec.h:8:1 */
   1385 
   1386 // Definition of locale_t.
   1387 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1388 //    This file is part of the GNU C Library.
   1389 //
   1390 //    The GNU C Library is free software; you can redistribute it and/or
   1391 //    modify it under the terms of the GNU Lesser General Public
   1392 //    License as published by the Free Software Foundation; either
   1393 //    version 2.1 of the License, or (at your option) any later version.
   1394 //
   1395 //    The GNU C Library is distributed in the hope that it will be useful,
   1396 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1397 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1398 //    Lesser General Public License for more details.
   1399 //
   1400 //    You should have received a copy of the GNU Lesser General Public
   1401 //    License along with the GNU C Library; if not, see
   1402 //    <https://www.gnu.org/licenses/>.
   1403 
   1404 // Definition of struct __locale_struct and __locale_t.
   1405 //    Copyright (C) 1997-2020 Free Software Foundation, Inc.
   1406 //    This file is part of the GNU C Library.
   1407 //    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
   1408 //
   1409 //    The GNU C Library is free software; you can redistribute it and/or
   1410 //    modify it under the terms of the GNU Lesser General Public
   1411 //    License as published by the Free Software Foundation; either
   1412 //    version 2.1 of the License, or (at your option) any later version.
   1413 //
   1414 //    The GNU C Library is distributed in the hope that it will be useful,
   1415 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1416 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1417 //    Lesser General Public License for more details.
   1418 //
   1419 //    You should have received a copy of the GNU Lesser General Public
   1420 //    License along with the GNU C Library; if not, see
   1421 //    <https://www.gnu.org/licenses/>.
   1422 
   1423 // POSIX.1-2008: the locale_t type, representing a locale context
   1424 //    (implementation-namespace version).  This type should be treated
   1425 //    as opaque by applications; some details are exposed for the sake of
   1426 //    efficiency in e.g. ctype functions.
   1427 
   1428 type X__locale_struct = struct {
   1429 	F__locales       [13]uintptr
   1430 	F__ctype_b       uintptr
   1431 	F__ctype_tolower uintptr
   1432 	F__ctype_toupper uintptr
   1433 	F__names         [13]uintptr
   1434 } /* __locale_t.h:28:1 */
   1435 
   1436 type X__locale_t = uintptr /* __locale_t.h:42:32 */
   1437 
   1438 type Locale_t = X__locale_t /* locale_t.h:24:20 */
   1439 
   1440 // Endian macros for string.h functions
   1441 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1442 //    This file is part of the GNU C Library.
   1443 //
   1444 //    The GNU C Library is free software; you can redistribute it and/or
   1445 //    modify it under the terms of the GNU Lesser General Public
   1446 //    License as published by the Free Software Foundation; either
   1447 //    version 2.1 of the License, or (at your option) any later version.
   1448 //
   1449 //    The GNU C Library is distributed in the hope that it will be useful,
   1450 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1451 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1452 //    Lesser General Public License for more details.
   1453 //
   1454 //    You should have received a copy of the GNU Lesser General Public
   1455 //    License along with the GNU C Library; if not, see
   1456 //    <http://www.gnu.org/licenses/>.
   1457 
   1458 // Declaration of common pthread types for all architectures.
   1459 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1460 //    This file is part of the GNU C Library.
   1461 //
   1462 //    The GNU C Library is free software; you can redistribute it and/or
   1463 //    modify it under the terms of the GNU Lesser General Public
   1464 //    License as published by the Free Software Foundation; either
   1465 //    version 2.1 of the License, or (at your option) any later version.
   1466 //
   1467 //    The GNU C Library is distributed in the hope that it will be useful,
   1468 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1469 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1470 //    Lesser General Public License for more details.
   1471 //
   1472 //    You should have received a copy of the GNU Lesser General Public
   1473 //    License along with the GNU C Library; if not, see
   1474 //    <https://www.gnu.org/licenses/>.
   1475 
   1476 // For internal mutex and condition variable definitions.
   1477 // Common threading primitives definitions for both POSIX and C11.
   1478 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1479 //    This file is part of the GNU C Library.
   1480 //
   1481 //    The GNU C Library is free software; you can redistribute it and/or
   1482 //    modify it under the terms of the GNU Lesser General Public
   1483 //    License as published by the Free Software Foundation; either
   1484 //    version 2.1 of the License, or (at your option) any later version.
   1485 //
   1486 //    The GNU C Library is distributed in the hope that it will be useful,
   1487 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1488 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1489 //    Lesser General Public License for more details.
   1490 //
   1491 //    You should have received a copy of the GNU Lesser General Public
   1492 //    License along with the GNU C Library; if not, see
   1493 //    <https://www.gnu.org/licenses/>.
   1494 
   1495 // Arch-specific definitions.  Each architecture must define the following
   1496 //    macros to define the expected sizes of pthread data types:
   1497 //
   1498 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   1499 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   1500 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   1501 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   1502 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   1503 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   1504 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   1505 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   1506 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   1507 //
   1508 //    The additional macro defines any constraint for the lock alignment
   1509 //    inside the thread structures:
   1510 //
   1511 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   1512 //
   1513 //    Same idea but for the once locking primitive:
   1514 //
   1515 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   1516 
   1517 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1518 //    This file is part of the GNU C Library.
   1519 //
   1520 //    The GNU C Library is free software; you can redistribute it and/or
   1521 //    modify it under the terms of the GNU Lesser General Public
   1522 //    License as published by the Free Software Foundation; either
   1523 //    version 2.1 of the License, or (at your option) any later version.
   1524 //
   1525 //    The GNU C Library is distributed in the hope that it will be useful,
   1526 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1527 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1528 //    Lesser General Public License for more details.
   1529 //
   1530 //    You should have received a copy of the GNU Lesser General Public
   1531 //    License along with the GNU C Library; if not, see
   1532 //    <https://www.gnu.org/licenses/>.
   1533 
   1534 // Determine the wordsize from the preprocessor defines.
   1535 
   1536 // Both x86-64 and x32 use the 64-bit system call interface.
   1537 
   1538 // Common definition of pthread_mutex_t.
   1539 
   1540 type X__pthread_internal_list = struct {
   1541 	F__prev uintptr
   1542 	F__next uintptr
   1543 } /* thread-shared-types.h:49:9 */
   1544 
   1545 // Endian macros for string.h functions
   1546 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1547 //    This file is part of the GNU C Library.
   1548 //
   1549 //    The GNU C Library is free software; you can redistribute it and/or
   1550 //    modify it under the terms of the GNU Lesser General Public
   1551 //    License as published by the Free Software Foundation; either
   1552 //    version 2.1 of the License, or (at your option) any later version.
   1553 //
   1554 //    The GNU C Library is distributed in the hope that it will be useful,
   1555 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1556 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1557 //    Lesser General Public License for more details.
   1558 //
   1559 //    You should have received a copy of the GNU Lesser General Public
   1560 //    License along with the GNU C Library; if not, see
   1561 //    <http://www.gnu.org/licenses/>.
   1562 
   1563 // Declaration of common pthread types for all architectures.
   1564 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1565 //    This file is part of the GNU C Library.
   1566 //
   1567 //    The GNU C Library is free software; you can redistribute it and/or
   1568 //    modify it under the terms of the GNU Lesser General Public
   1569 //    License as published by the Free Software Foundation; either
   1570 //    version 2.1 of the License, or (at your option) any later version.
   1571 //
   1572 //    The GNU C Library is distributed in the hope that it will be useful,
   1573 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1574 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1575 //    Lesser General Public License for more details.
   1576 //
   1577 //    You should have received a copy of the GNU Lesser General Public
   1578 //    License along with the GNU C Library; if not, see
   1579 //    <https://www.gnu.org/licenses/>.
   1580 
   1581 // For internal mutex and condition variable definitions.
   1582 // Common threading primitives definitions for both POSIX and C11.
   1583 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1584 //    This file is part of the GNU C Library.
   1585 //
   1586 //    The GNU C Library is free software; you can redistribute it and/or
   1587 //    modify it under the terms of the GNU Lesser General Public
   1588 //    License as published by the Free Software Foundation; either
   1589 //    version 2.1 of the License, or (at your option) any later version.
   1590 //
   1591 //    The GNU C Library is distributed in the hope that it will be useful,
   1592 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1593 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1594 //    Lesser General Public License for more details.
   1595 //
   1596 //    You should have received a copy of the GNU Lesser General Public
   1597 //    License along with the GNU C Library; if not, see
   1598 //    <https://www.gnu.org/licenses/>.
   1599 
   1600 // Arch-specific definitions.  Each architecture must define the following
   1601 //    macros to define the expected sizes of pthread data types:
   1602 //
   1603 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   1604 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   1605 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   1606 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   1607 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   1608 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   1609 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   1610 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   1611 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   1612 //
   1613 //    The additional macro defines any constraint for the lock alignment
   1614 //    inside the thread structures:
   1615 //
   1616 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   1617 //
   1618 //    Same idea but for the once locking primitive:
   1619 //
   1620 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   1621 
   1622 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1623 //    This file is part of the GNU C Library.
   1624 //
   1625 //    The GNU C Library is free software; you can redistribute it and/or
   1626 //    modify it under the terms of the GNU Lesser General Public
   1627 //    License as published by the Free Software Foundation; either
   1628 //    version 2.1 of the License, or (at your option) any later version.
   1629 //
   1630 //    The GNU C Library is distributed in the hope that it will be useful,
   1631 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1632 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1633 //    Lesser General Public License for more details.
   1634 //
   1635 //    You should have received a copy of the GNU Lesser General Public
   1636 //    License along with the GNU C Library; if not, see
   1637 //    <https://www.gnu.org/licenses/>.
   1638 
   1639 // Determine the wordsize from the preprocessor defines.
   1640 
   1641 // Both x86-64 and x32 use the 64-bit system call interface.
   1642 
   1643 // Common definition of pthread_mutex_t.
   1644 
   1645 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
   1646 
   1647 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
   1648 
   1649 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
   1650 
   1651 // Arch-specific mutex definitions.  A generic implementation is provided
   1652 //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
   1653 //    can override it by defining:
   1654 //
   1655 //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
   1656 //       definition).  It should contains at least the internal members
   1657 //       defined in the generic version.
   1658 //
   1659 //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
   1660 //       atomic operations.
   1661 //
   1662 //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
   1663 //       It should initialize the mutex internal flag.
   1664 
   1665 // x86 internal mutex struct definitions.
   1666 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   1667 //    This file is part of the GNU C Library.
   1668 //
   1669 //    The GNU C Library is free software; you can redistribute it and/or
   1670 //    modify it under the terms of the GNU Lesser General Public
   1671 //    License as published by the Free Software Foundation; either
   1672 //    version 2.1 of the License, or (at your option) any later version.
   1673 //
   1674 //    The GNU C Library is distributed in the hope that it will be useful,
   1675 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1676 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1677 //    Lesser General Public License for more details.
   1678 //
   1679 //    You should have received a copy of the GNU Lesser General Public
   1680 //    License along with the GNU C Library; if not, see
   1681 //    <http://www.gnu.org/licenses/>.
   1682 
   1683 type X__pthread_mutex_s = struct {
   1684 	F__lock    int32
   1685 	F__count   uint32
   1686 	F__owner   int32
   1687 	F__nusers  uint32
   1688 	F__kind    int32
   1689 	F__spins   int16
   1690 	F__elision int16
   1691 	F__list    X__pthread_list_t
   1692 } /* struct_mutex.h:22:1 */
   1693 
   1694 // Arch-sepecific read-write lock definitions.  A generic implementation is
   1695 //    provided by struct_rwlock.h.  If required, an architecture can override it
   1696 //    by defining:
   1697 //
   1698 //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
   1699 //       It should contain at least the internal members defined in the
   1700 //       generic version.
   1701 //
   1702 //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
   1703 //       It should initialize the rwlock internal type.
   1704 
   1705 // x86 internal rwlock struct definitions.
   1706 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   1707 //
   1708 //    This file is part of the GNU C Library.
   1709 //
   1710 //    The GNU C Library is free software; you can redistribute it and/or
   1711 //    modify it under the terms of the GNU Lesser General Public
   1712 //    License as published by the Free Software Foundation; either
   1713 //    version 2.1 of the License, or (at your option) any later version.
   1714 //
   1715 //    The GNU C Library is distributed in the hope that it will be useful,
   1716 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1717 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1718 //    Lesser General Public License for more details.
   1719 //
   1720 //    You should have received a copy of the GNU Lesser General Public
   1721 //    License along with the GNU C Library; if not, see
   1722 //    <http://www.gnu.org/licenses/>.
   1723 
   1724 type X__pthread_rwlock_arch_t = struct {
   1725 	F__readers       uint32
   1726 	F__writers       uint32
   1727 	F__wrphase_futex uint32
   1728 	F__writers_futex uint32
   1729 	F__pad3          uint32
   1730 	F__pad4          uint32
   1731 	F__cur_writer    int32
   1732 	F__shared        int32
   1733 	F__rwelision     int8
   1734 	F__pad1          [7]uint8
   1735 	F__pad2          uint64
   1736 	F__flags         uint32
   1737 	F__ccgo_pad1     [4]byte
   1738 } /* struct_rwlock.h:23:1 */
   1739 
   1740 // Common definition of pthread_cond_t.
   1741 
   1742 type X__pthread_cond_s = struct {
   1743 	F__0            struct{ F__wseq uint64 }
   1744 	F__8            struct{ F__g1_start uint64 }
   1745 	F__g_refs       [2]uint32
   1746 	F__g_size       [2]uint32
   1747 	F__g1_orig_size uint32
   1748 	F__wrefs        uint32
   1749 	F__g_signals    [2]uint32
   1750 } /* thread-shared-types.h:92:1 */
   1751 
   1752 // Thread identifiers.  The structure of the attribute type is not
   1753 //
   1754 //	exposed on purpose.
   1755 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
   1756 
   1757 // Data structures for mutex handling.  The structure of the attribute
   1758 //
   1759 //	type is not exposed on purpose.
   1760 type Pthread_mutexattr_t = struct {
   1761 	F__ccgo_pad1 [0]uint32
   1762 	F__size      [4]int8
   1763 } /* pthreadtypes.h:36:3 */
   1764 
   1765 // Data structure for condition variable handling.  The structure of
   1766 //
   1767 //	the attribute type is not exposed on purpose.
   1768 type Pthread_condattr_t = struct {
   1769 	F__ccgo_pad1 [0]uint32
   1770 	F__size      [4]int8
   1771 } /* pthreadtypes.h:45:3 */
   1772 
   1773 // Keys for thread-specific data
   1774 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
   1775 
   1776 // Once-only execution
   1777 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
   1778 
   1779 type Pthread_attr_t1 = struct {
   1780 	F__ccgo_pad1 [0]uint64
   1781 	F__size      [56]int8
   1782 } /* pthreadtypes.h:56:1 */
   1783 
   1784 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
   1785 
   1786 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
   1787 
   1788 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
   1789 
   1790 // Data structure for reader-writer lock variable handling.  The
   1791 //
   1792 //	structure of the attribute type is deliberately not exposed.
   1793 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
   1794 
   1795 type Pthread_rwlockattr_t = struct {
   1796 	F__ccgo_pad1 [0]uint64
   1797 	F__size      [8]int8
   1798 } /* pthreadtypes.h:97:3 */
   1799 
   1800 // POSIX spinlock data type.
   1801 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
   1802 
   1803 // POSIX barriers data type.  The structure of the type is
   1804 //
   1805 //	deliberately not exposed.
   1806 type Pthread_barrier_t = struct {
   1807 	F__ccgo_pad1 [0]uint64
   1808 	F__size      [32]int8
   1809 } /* pthreadtypes.h:112:3 */
   1810 
   1811 type Pthread_barrierattr_t = struct {
   1812 	F__ccgo_pad1 [0]uint32
   1813 	F__size      [4]int8
   1814 } /* pthreadtypes.h:118:3 */
   1815 
   1816 // Copyright (C) 2001-2020 Free Software Foundation, Inc.
   1817 //    This file is part of the GNU C Library.
   1818 //
   1819 //    The GNU C Library is free software; you can redistribute it and/or
   1820 //    modify it under the terms of the GNU Lesser General Public
   1821 //    License as published by the Free Software Foundation; either
   1822 //    version 2.1 of the License, or (at your option) any later version.
   1823 //
   1824 //    The GNU C Library is distributed in the hope that it will be useful,
   1825 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1826 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1827 //    Lesser General Public License for more details.
   1828 //
   1829 //    You should have received a copy of the GNU Lesser General Public
   1830 //    License along with the GNU C Library; if not, see
   1831 //    <https://www.gnu.org/licenses/>.
   1832 
   1833 // Define the machine-dependent type `jmp_buf'.  x86-64 version.
   1834 
   1835 // Determine the wordsize from the preprocessor defines.
   1836 
   1837 // Both x86-64 and x32 use the 64-bit system call interface.
   1838 
   1839 type X__jmp_buf = [8]int64 /* setjmp.h:31:18 */
   1840 
   1841 // Conditional variable handling.
   1842 
   1843 // Cleanup buffers
   1844 type X_pthread_cleanup_buffer = struct {
   1845 	F__routine    uintptr
   1846 	F__arg        uintptr
   1847 	F__canceltype int32
   1848 	F__ccgo_pad1  [4]byte
   1849 	F__prev       uintptr
   1850 } /* pthread.h:155:1 */
   1851 
   1852 // Cancellation handling with integration into exception handling.
   1853 
   1854 type X__pthread_unwind_buf_t = struct {
   1855 	F__cancel_jmp_buf [1]struct {
   1856 		F__cancel_jmp_buf X__jmp_buf
   1857 		F__mask_was_saved int32
   1858 		F__ccgo_pad1      [4]byte
   1859 	}
   1860 	F__pad [4]uintptr
   1861 } /* pthread.h:507:3 */
   1862 
   1863 // No special attributes by default.
   1864 
   1865 // Structure to hold the cleanup handler information.
   1866 type X__pthread_cleanup_frame = struct {
   1867 	F__cancel_routine uintptr
   1868 	F__cancel_arg     uintptr
   1869 	F__do_it          int32
   1870 	F__cancel_type    int32
   1871 } /* pthread.h:516:1 */
   1872 
   1873 var _ int8 /* gen.c:2:13: */