gtsocial-umbx

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

fts_linux_arm64.go (89465B)


      1 // Code generated by 'ccgo fts/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_linux_arm64.go -pkgname fts', DO NOT EDIT.
      2 
      3 package fts
      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 	ACCESSPERMS                  = 511
     19 	ALLPERMS                     = 4095
     20 	BIG_ENDIAN                   = 4321
     21 	BYTE_ORDER                   = 1234
     22 	DEFFILEMODE                  = 438
     23 	FD_SETSIZE                   = 1024
     24 	FTS_AGAIN                    = 1
     25 	FTS_COMFOLLOW                = 0x0001
     26 	FTS_D                        = 1
     27 	FTS_DC                       = 2
     28 	FTS_DEFAULT                  = 3
     29 	FTS_DNR                      = 4
     30 	FTS_DONTCHDIR                = 0x01
     31 	FTS_DOT                      = 5
     32 	FTS_DP                       = 6
     33 	FTS_ERR                      = 7
     34 	FTS_F                        = 8
     35 	FTS_FOLLOW                   = 2
     36 	FTS_INIT                     = 9
     37 	FTS_LOGICAL                  = 0x0002
     38 	FTS_NAMEONLY                 = 0x0100
     39 	FTS_NOCHDIR                  = 0x0004
     40 	FTS_NOINSTR                  = 3
     41 	FTS_NOSTAT                   = 0x0008
     42 	FTS_NS                       = 10
     43 	FTS_NSOK                     = 11
     44 	FTS_OPTIONMASK               = 0x00ff
     45 	FTS_PHYSICAL                 = 0x0010
     46 	FTS_ROOTLEVEL                = 0
     47 	FTS_ROOTPARENTLEVEL          = -1
     48 	FTS_SEEDOT                   = 0x0020
     49 	FTS_SKIP                     = 4
     50 	FTS_SL                       = 12
     51 	FTS_SLNONE                   = 13
     52 	FTS_STOP                     = 0x0200
     53 	FTS_SYMFOLLOW                = 0x02
     54 	FTS_W                        = 14
     55 	FTS_WHITEOUT                 = 0x0080
     56 	FTS_XDEV                     = 0x0040
     57 	LITTLE_ENDIAN                = 1234
     58 	PDP_ENDIAN                   = 3412
     59 	S_BLKSIZE                    = 512
     60 	S_IEXEC                      = 64
     61 	S_IFBLK                      = 24576
     62 	S_IFCHR                      = 8192
     63 	S_IFDIR                      = 16384
     64 	S_IFIFO                      = 4096
     65 	S_IFLNK                      = 40960
     66 	S_IFMT                       = 61440
     67 	S_IFREG                      = 32768
     68 	S_IFSOCK                     = 49152
     69 	S_IREAD                      = 256
     70 	S_IRGRP                      = 32
     71 	S_IROTH                      = 4
     72 	S_IRUSR                      = 256
     73 	S_IRWXG                      = 56
     74 	S_IRWXO                      = 7
     75 	S_IRWXU                      = 448
     76 	S_ISGID                      = 1024
     77 	S_ISUID                      = 2048
     78 	S_ISVTX                      = 512
     79 	S_IWGRP                      = 16
     80 	S_IWOTH                      = 2
     81 	S_IWRITE                     = 128
     82 	S_IWUSR                      = 128
     83 	S_IXGRP                      = 8
     84 	S_IXOTH                      = 1
     85 	S_IXUSR                      = 64
     86 	UTIME_NOW                    = 1073741823
     87 	UTIME_OMIT                   = 1073741822
     88 	X_ATFILE_SOURCE              = 1
     89 	X_BITS_BYTESWAP_H            = 1
     90 	X_BITS_ENDIANNESS_H          = 1
     91 	X_BITS_ENDIAN_H              = 1
     92 	X_BITS_PTHREADTYPES_ARCH_H   = 1
     93 	X_BITS_PTHREADTYPES_COMMON_H = 1
     94 	X_BITS_STAT_H                = 1
     95 	X_BITS_STDINT_INTN_H         = 1
     96 	X_BITS_TIME64_H              = 1
     97 	X_BITS_TYPESIZES_H           = 1
     98 	X_BITS_TYPES_H               = 1
     99 	X_BITS_UINTN_IDENTITY_H      = 1
    100 	X_BSD_SIZE_T_                = 0
    101 	X_BSD_SIZE_T_DEFINED_        = 0
    102 	X_DEFAULT_SOURCE             = 1
    103 	X_ENDIAN_H                   = 1
    104 	X_FEATURES_H                 = 1
    105 	X_FILE_OFFSET_BITS           = 64
    106 	X_FTS_H                      = 1
    107 	X_GCC_SIZE_T                 = 0
    108 	X_LP64                       = 1
    109 	X_MKNOD_VER                  = 0
    110 	X_MKNOD_VER_LINUX            = 0
    111 	X_POSIX_C_SOURCE             = 200809
    112 	X_POSIX_SOURCE               = 1
    113 	X_RWLOCK_INTERNAL_H          = 0
    114 	X_SIZET_                     = 0
    115 	X_SIZE_T                     = 0
    116 	X_SIZE_T_                    = 0
    117 	X_SIZE_T_DECLARED            = 0
    118 	X_SIZE_T_DEFINED             = 0
    119 	X_SIZE_T_DEFINED_            = 0
    120 	X_STATBUF_ST_BLKSIZE         = 0
    121 	X_STATBUF_ST_NSEC            = 0
    122 	X_STATBUF_ST_RDEV            = 0
    123 	X_STAT_VER                   = 0
    124 	X_STAT_VER_KERNEL            = 0
    125 	X_STAT_VER_LINUX             = 0
    126 	X_STDC_PREDEF_H              = 1
    127 	X_STRUCT_TIMESPEC            = 1
    128 	X_SYS_CDEFS_H                = 1
    129 	X_SYS_SELECT_H               = 1
    130 	X_SYS_SIZE_T_H               = 0
    131 	X_SYS_STAT_H                 = 1
    132 	X_SYS_TYPES_H                = 1
    133 	X_THREAD_MUTEX_INTERNAL_H    = 1
    134 	X_THREAD_SHARED_TYPES_H      = 1
    135 	X_T_SIZE                     = 0
    136 	X_T_SIZE_                    = 0
    137 	Linux                        = 1
    138 	Unix                         = 1
    139 )
    140 
    141 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    142 
    143 type Size_t = uint64 /* <builtin>:9:23 */
    144 
    145 type Wchar_t = uint32 /* <builtin>:15:24 */
    146 
    147 type X__int128_t = struct {
    148 	Flo int64
    149 	Fhi int64
    150 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    151 type X__uint128_t = struct {
    152 	Flo uint64
    153 	Fhi uint64
    154 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    155 
    156 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    157 type X__float128 = float64        /* <builtin>:47:21 */
    158 
    159 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    160 //    This file is part of the GNU C Library.
    161 //
    162 //    The GNU C Library is free software; you can redistribute it and/or
    163 //    modify it under the terms of the GNU Lesser General Public
    164 //    License as published by the Free Software Foundation; either
    165 //    version 2.1 of the License, or (at your option) any later version.
    166 //
    167 //    The GNU C Library is distributed in the hope that it will be useful,
    168 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    169 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    170 //    Lesser General Public License for more details.
    171 //
    172 //    You should have received a copy of the GNU Lesser General Public
    173 //    License along with the GNU C Library; if not, see
    174 //    <https://www.gnu.org/licenses/>.
    175 
    176 //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
    177 
    178 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    179 //    This file is part of the GNU C Library.
    180 //
    181 //    The GNU C Library is free software; you can redistribute it and/or
    182 //    modify it under the terms of the GNU Lesser General Public
    183 //    License as published by the Free Software Foundation; either
    184 //    version 2.1 of the License, or (at your option) any later version.
    185 //
    186 //    The GNU C Library is distributed in the hope that it will be useful,
    187 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    188 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    189 //    Lesser General Public License for more details.
    190 //
    191 //    You should have received a copy of the GNU Lesser General Public
    192 //    License along with the GNU C Library; if not, see
    193 //    <https://www.gnu.org/licenses/>.
    194 
    195 // These are defined by the user (or the compiler)
    196 //    to specify the desired environment:
    197 //
    198 //    __STRICT_ANSI__	ISO Standard C.
    199 //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
    200 //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
    201 //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
    202 //    __STDC_WANT_LIB_EXT2__
    203 // 			Extensions to ISO C99 from TR 27431-2:2010.
    204 //    __STDC_WANT_IEC_60559_BFP_EXT__
    205 // 			Extensions to ISO C11 from TS 18661-1:2014.
    206 //    __STDC_WANT_IEC_60559_FUNCS_EXT__
    207 // 			Extensions to ISO C11 from TS 18661-4:2015.
    208 //    __STDC_WANT_IEC_60559_TYPES_EXT__
    209 // 			Extensions to ISO C11 from TS 18661-3:2015.
    210 //
    211 //    _POSIX_SOURCE	IEEE Std 1003.1.
    212 //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
    213 // 			if >=199309L, add IEEE Std 1003.1b-1993;
    214 // 			if >=199506L, add IEEE Std 1003.1c-1995;
    215 // 			if >=200112L, all of IEEE 1003.1-2004
    216 // 			if >=200809L, all of IEEE 1003.1-2008
    217 //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
    218 // 			Single Unix conformance is wanted, to 600 for the
    219 // 			sixth revision, to 700 for the seventh revision.
    220 //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
    221 //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
    222 //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
    223 //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
    224 //    _ATFILE_SOURCE	Additional *at interfaces.
    225 //    _GNU_SOURCE		All of the above, plus GNU extensions.
    226 //    _DEFAULT_SOURCE	The default set of features (taking precedence over
    227 // 			__STRICT_ANSI__).
    228 //
    229 //    _FORTIFY_SOURCE	Add security hardening to many library functions.
    230 // 			Set to 1 or 2; 2 performs stricter checks than 1.
    231 //
    232 //    _REENTRANT, _THREAD_SAFE
    233 // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
    234 //
    235 //    The `-ansi' switch to the GNU C compiler, and standards conformance
    236 //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
    237 //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
    238 //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
    239 //    200809L, as well as enabling miscellaneous functions from BSD and
    240 //    SVID.  If more than one of these are defined, they accumulate.  For
    241 //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
    242 //    give you ISO C, 1003.1, and 1003.2, but nothing else.
    243 //
    244 //    These are defined by this file and are used by the
    245 //    header files to decide what to declare or define:
    246 //
    247 //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
    248 // 			to 1 or 0; the subsequent macros are either defined
    249 // 			or undefined, and those tests should be moved to
    250 // 			__GLIBC_USE.
    251 //    __USE_ISOC11		Define ISO C11 things.
    252 //    __USE_ISOC99		Define ISO C99 things.
    253 //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
    254 //    __USE_ISOCXX11	Define ISO C++11 things.
    255 //    __USE_POSIX		Define IEEE Std 1003.1 things.
    256 //    __USE_POSIX2		Define IEEE Std 1003.2 things.
    257 //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
    258 //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
    259 //    __USE_XOPEN		Define XPG things.
    260 //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
    261 //    __USE_UNIX98		Define Single Unix V2 things.
    262 //    __USE_XOPEN2K        Define XPG6 things.
    263 //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
    264 //    __USE_XOPEN2K8       Define XPG7 things.
    265 //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
    266 //    __USE_LARGEFILE	Define correct standard I/O things.
    267 //    __USE_LARGEFILE64	Define LFS things with separate names.
    268 //    __USE_FILE_OFFSET64	Define 64bit interface as default.
    269 //    __USE_MISC		Define things from 4.3BSD or System V Unix.
    270 //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
    271 //    __USE_GNU		Define GNU extensions.
    272 //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
    273 //
    274 //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
    275 //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
    276 //    only for compatibility.  All new code should use the other symbols
    277 //    to test for features.
    278 //
    279 //    All macros listed above as possibly being defined by this file are
    280 //    explicitly undefined if they are not explicitly defined.
    281 //    Feature-test macros that are not defined by the user or compiler
    282 //    but are implied by the other feature-test macros defined (or by the
    283 //    lack of any definitions) are defined by the file.
    284 //
    285 //    ISO C feature test macros depend on the definition of the macro
    286 //    when an affected header is included, not when the first system
    287 //    header is included, and so they are handled in
    288 //    <bits/libc-header-start.h>, which does not have a multiple include
    289 //    guard.  Feature test macros that can be handled from the first
    290 //    system header included are handled here.
    291 
    292 // Undefine everything, so we get a clean slate.
    293 
    294 // Suppress kernel-name space pollution unless user expressedly asks
    295 //    for it.
    296 
    297 // Convenience macro to test the version of gcc.
    298 //    Use like this:
    299 //    #if __GNUC_PREREQ (2,8)
    300 //    ... code requiring gcc 2.8 or later ...
    301 //    #endif
    302 //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
    303 //    added in 2.0.
    304 
    305 // Similarly for clang.  Features added to GCC after version 4.2 may
    306 //    or may not also be available in clang, and clang's definitions of
    307 //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
    308 //    features can be queried via __has_extension/__has_feature.
    309 
    310 // Whether to use feature set F.
    311 
    312 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
    313 //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
    314 //    issue a warning; the expectation is that the source is being
    315 //    transitioned to use the new macro.
    316 
    317 // If _GNU_SOURCE was defined by the user, turn on all the other features.
    318 
    319 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
    320 //    define _DEFAULT_SOURCE.
    321 
    322 // This is to enable the ISO C2X extension.
    323 
    324 // This is to enable the ISO C11 extension.
    325 
    326 // This is to enable the ISO C99 extension.
    327 
    328 // This is to enable the ISO C90 Amendment 1:1995 extension.
    329 
    330 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
    331 //    is defined, use POSIX.1-2008 (or another version depending on
    332 //    _XOPEN_SOURCE).
    333 
    334 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
    335 //    defined in all multithreaded code.  GNU libc has not required this
    336 //    for many years.  We now treat them as compatibility synonyms for
    337 //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
    338 //    comprehensive support for multithreaded code.  Using them never
    339 //    lowers the selected level of POSIX conformance, only raises it.
    340 
    341 // The function 'gets' existed in C89, but is impossible to use
    342 //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
    343 //    compatibility with various implementations of <cstdio>, this test
    344 //    must consider only the value of __cplusplus when compiling C++.
    345 
    346 // GNU formerly extended the scanf functions with modified format
    347 //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
    348 //    input using malloc.  This extension conflicts with ISO C99, which
    349 //    defines %a as a standalone format specifier that reads a floating-
    350 //    point number; moreover, POSIX.1-2008 provides the same feature
    351 //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
    352 //
    353 //    We now follow C99 unless GNU extensions are active and the compiler
    354 //    is specifically in C89 or C++98 mode (strict or not).  For
    355 //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
    356 //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
    357 //    old extension.
    358 
    359 // Get definitions of __STDC_* predefined macros, if the compiler has
    360 //    not preincluded this header automatically.
    361 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    362 //    This file is part of the GNU C Library.
    363 //
    364 //    The GNU C Library is free software; you can redistribute it and/or
    365 //    modify it under the terms of the GNU Lesser General Public
    366 //    License as published by the Free Software Foundation; either
    367 //    version 2.1 of the License, or (at your option) any later version.
    368 //
    369 //    The GNU C Library is distributed in the hope that it will be useful,
    370 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    371 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    372 //    Lesser General Public License for more details.
    373 //
    374 //    You should have received a copy of the GNU Lesser General Public
    375 //    License along with the GNU C Library; if not, see
    376 //    <https://www.gnu.org/licenses/>.
    377 
    378 // This macro indicates that the installed library is the GNU C Library.
    379 //    For historic reasons the value now is 6 and this will stay from now
    380 //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
    381 //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
    382 //    GNU C library version and use the values in <gnu/lib-names.h> to get
    383 //    the sonames of the shared libraries.
    384 
    385 // Major and minor version number of the GNU C library package.  Use
    386 //    these macros to test for features in specific releases.
    387 
    388 // This is here only because every header file already includes this one.
    389 // Copyright (C) 1992-2020 Free Software Foundation, Inc.
    390 //    This file is part of the GNU C Library.
    391 //
    392 //    The GNU C Library is free software; you can redistribute it and/or
    393 //    modify it under the terms of the GNU Lesser General Public
    394 //    License as published by the Free Software Foundation; either
    395 //    version 2.1 of the License, or (at your option) any later version.
    396 //
    397 //    The GNU C Library is distributed in the hope that it will be useful,
    398 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    399 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    400 //    Lesser General Public License for more details.
    401 //
    402 //    You should have received a copy of the GNU Lesser General Public
    403 //    License along with the GNU C Library; if not, see
    404 //    <https://www.gnu.org/licenses/>.
    405 
    406 // We are almost always included from features.h.
    407 
    408 // The GNU libc does not support any K&R compilers or the traditional mode
    409 //    of ISO C compilers anymore.  Check for some of the combinations not
    410 //    anymore supported.
    411 
    412 // Some user header file might have defined this before.
    413 
    414 // All functions, except those with callbacks or those that
    415 //    synchronize memory, are leaf functions.
    416 
    417 // GCC can always grok prototypes.  For C++ programs we add throw()
    418 //    to help it optimize the function calls.  But this works only with
    419 //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
    420 //    as non-throwing using a function attribute since programs can use
    421 //    the -fexceptions options for C code as well.
    422 
    423 // Compilers that are not clang may object to
    424 //        #if defined __clang__ && __has_extension(...)
    425 //    even though they do not need to evaluate the right-hand side of the &&.
    426 
    427 // These two macros are not used in glibc anymore.  They are kept here
    428 //    only because some other projects expect the macros to be defined.
    429 
    430 // For these things, GCC behaves the ANSI way normally,
    431 //    and the non-ANSI way under -traditional.
    432 
    433 // This is not a typedef so `const __ptr_t' does the right thing.
    434 
    435 // C++ needs to know that types and declarations are C, not C++.
    436 
    437 // Fortify support.
    438 
    439 // Support for flexible arrays.
    440 //    Headers that should use flexible arrays only if they're "real"
    441 //    (e.g. only if they won't affect sizeof()) should test
    442 //    #if __glibc_c99_flexarr_available.
    443 
    444 // __asm__ ("xyz") is used throughout the headers to rename functions
    445 //    at the assembly language level.  This is wrapped by the __REDIRECT
    446 //    macro, in order to support compilers that can do this some other
    447 //    way.  When compilers don't support asm-names at all, we have to do
    448 //    preprocessor tricks instead (which don't have exactly the right
    449 //    semantics, but it's the best we can do).
    450 //
    451 //    Example:
    452 //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
    453 
    454 //
    455 // #elif __SOME_OTHER_COMPILER__
    456 //
    457 // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
    458 
    459 // GCC has various useful declarations that can be made with the
    460 //    `__attribute__' syntax.  All of the ways we use this do fine if
    461 //    they are omitted for compilers that don't understand it.
    462 
    463 // At some point during the gcc 2.96 development the `malloc' attribute
    464 //    for functions was introduced.  We don't want to use it unconditionally
    465 //    (although this would be possible) since it generates warnings.
    466 
    467 // Tell the compiler which arguments to an allocation function
    468 //    indicate the size of the allocation.
    469 
    470 // At some point during the gcc 2.96 development the `pure' attribute
    471 //    for functions was introduced.  We don't want to use it unconditionally
    472 //    (although this would be possible) since it generates warnings.
    473 
    474 // This declaration tells the compiler that the value is constant.
    475 
    476 // At some point during the gcc 3.1 development the `used' attribute
    477 //    for functions was introduced.  We don't want to use it unconditionally
    478 //    (although this would be possible) since it generates warnings.
    479 
    480 // Since version 3.2, gcc allows marking deprecated functions.
    481 
    482 // Since version 4.5, gcc also allows one to specify the message printed
    483 //    when a deprecated function is used.  clang claims to be gcc 4.2, but
    484 //    may also support this feature.
    485 
    486 // At some point during the gcc 2.8 development the `format_arg' attribute
    487 //    for functions was introduced.  We don't want to use it unconditionally
    488 //    (although this would be possible) since it generates warnings.
    489 //    If several `format_arg' attributes are given for the same function, in
    490 //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
    491 //    all designated arguments are considered.
    492 
    493 // At some point during the gcc 2.97 development the `strfmon' format
    494 //    attribute for functions was introduced.  We don't want to use it
    495 //    unconditionally (although this would be possible) since it
    496 //    generates warnings.
    497 
    498 // The nonull function attribute allows to mark pointer parameters which
    499 //    must not be NULL.
    500 
    501 // If fortification mode, we warn about unused results of certain
    502 //    function calls which can lead to problems.
    503 
    504 // Forces a function to be always inlined.
    505 // The Linux kernel defines __always_inline in stddef.h (283d7573), and
    506 //    it conflicts with this definition.  Therefore undefine it first to
    507 //    allow either header to be included first.
    508 
    509 // Associate error messages with the source location of the call site rather
    510 //    than with the source location inside the function.
    511 
    512 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
    513 //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
    514 //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
    515 //    older than 4.3 may define these macros and still not guarantee GNU inlining
    516 //    semantics.
    517 //
    518 //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
    519 //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
    520 //    __GNUC_GNU_INLINE__ macro definitions.
    521 
    522 // GCC 4.3 and above allow passing all anonymous arguments of an
    523 //    __extern_always_inline function to some other vararg function.
    524 
    525 // It is possible to compile containing GCC extensions even if GCC is
    526 //    run in pedantic mode if the uses are carefully marked using the
    527 //    `__extension__' keyword.  But this is not generally available before
    528 //    version 2.8.
    529 
    530 // __restrict is known in EGCS 1.2 and above.
    531 
    532 // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
    533 //      array_name[restrict]
    534 //    GCC 3.1 supports this.
    535 
    536 // Describes a char array whose address can safely be passed as the first
    537 //    argument to strncpy and strncat, as the char array is not necessarily
    538 //    a NUL-terminated string.
    539 
    540 // Undefine (also defined in libc-symbols.h).
    541 // Copies attributes from the declaration or type referenced by
    542 //    the argument.
    543 
    544 // Determine the wordsize from the preprocessor defines.
    545 //
    546 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    547 //    This file is part of the GNU C Library.
    548 //
    549 //    The GNU C Library is free software; you can redistribute it and/or
    550 //    modify it under the terms of the GNU Lesser General Public
    551 //    License as published by the Free Software Foundation; either
    552 //    version 2.1 of the License, or (at your option) any later version.
    553 //
    554 //    The GNU C Library is distributed in the hope that it will be useful,
    555 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    556 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    557 //    Lesser General Public License for more details.
    558 //
    559 //    You should have received a copy of the GNU Lesser General Public
    560 //    License along with the GNU C Library; if not, see
    561 //    <https://www.gnu.org/licenses/>.
    562 
    563 // Properties of long double type.  ldbl-128 version.
    564 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    565 //    This file is part of the GNU C Library.
    566 //
    567 //    The GNU C Library is free software; you can redistribute it and/or
    568 //    modify it under the terms of the GNU Lesser General Public
    569 //    License  published by the Free Software Foundation; either
    570 //    version 2.1 of the License, or (at your option) any later version.
    571 //
    572 //    The GNU C Library is distributed in the hope that it will be useful,
    573 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    574 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    575 //    Lesser General Public License for more details.
    576 //
    577 //    You should have received a copy of the GNU Lesser General Public
    578 //    License along with the GNU C Library; if not, see
    579 //    <https://www.gnu.org/licenses/>.
    580 
    581 // long double is distinct from double, so there is nothing to
    582 //    define here.
    583 
    584 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    585 //    intended for use in preprocessor macros.
    586 //
    587 //    Note: MESSAGE must be a _single_ string; concatenation of string
    588 //    literals is not supported.
    589 
    590 // Generic selection (ISO C11) is a C-only feature, available in GCC
    591 //    since version 4.9.  Previous versions do not provide generic
    592 //    selection, even though they might set __STDC_VERSION__ to 201112L,
    593 //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
    594 //    when testing __STDC_VERSION__ for generic selection support.
    595 //    On the other hand, Clang also defines __GNUC__, so a clang-specific
    596 //    check is required to enable the use of generic selection.
    597 
    598 // If we don't have __REDIRECT, prototypes will be missing if
    599 //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
    600 
    601 // Decide whether we can define 'extern inline' functions in headers.
    602 
    603 // This is here only because every header file already includes this one.
    604 //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
    605 //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
    606 //    that will always return failure (and set errno to ENOSYS).
    607 // This file is automatically generated.
    608 //    This file selects the right generated file of `__stub_FUNCTION' macros
    609 //    based on the architecture being compiled for.
    610 
    611 // Determine the wordsize from the preprocessor defines.
    612 //
    613 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    614 //    This file is part of the GNU C Library.
    615 //
    616 //    The GNU C Library is free software; you can redistribute it and/or
    617 //    modify it under the terms of the GNU Lesser General Public
    618 //    License as published by the Free Software Foundation; either
    619 //    version 2.1 of the License, or (at your option) any later version.
    620 //
    621 //    The GNU C Library is distributed in the hope that it will be useful,
    622 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    623 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    624 //    Lesser General Public License for more details.
    625 //
    626 //    You should have received a copy of the GNU Lesser General Public
    627 //    License along with the GNU C Library; if not, see
    628 //    <https://www.gnu.org/licenses/>.
    629 
    630 // This file is automatically generated.
    631 //    It defines a symbol `__stub_FUNCTION' for each function
    632 //    in the C library which is a stub, meaning it will fail
    633 //    every time called, usually setting errno to ENOSYS.
    634 
    635 // bits/types.h -- definitions of __*_t types underlying *_t types.
    636 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    637 //    This file is part of the GNU C Library.
    638 //
    639 //    The GNU C Library is free software; you can redistribute it and/or
    640 //    modify it under the terms of the GNU Lesser General Public
    641 //    License as published by the Free Software Foundation; either
    642 //    version 2.1 of the License, or (at your option) any later version.
    643 //
    644 //    The GNU C Library is distributed in the hope that it will be useful,
    645 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    646 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    647 //    Lesser General Public License for more details.
    648 //
    649 //    You should have received a copy of the GNU Lesser General Public
    650 //    License along with the GNU C Library; if not, see
    651 //    <https://www.gnu.org/licenses/>.
    652 
    653 // Never include this file directly; use <sys/types.h> instead.
    654 
    655 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    656 //    This file is part of the GNU C Library.
    657 //
    658 //    The GNU C Library is free software; you can redistribute it and/or
    659 //    modify it under the terms of the GNU Lesser General Public
    660 //    License as published by the Free Software Foundation; either
    661 //    version 2.1 of the License, or (at your option) any later version.
    662 //
    663 //    The GNU C Library is distributed in the hope that it will be useful,
    664 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    665 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    666 //    Lesser General Public License for more details.
    667 //
    668 //    You should have received a copy of the GNU Lesser General Public
    669 //    License along with the GNU C Library; if not, see
    670 //    <https://www.gnu.org/licenses/>.
    671 
    672 // Determine the wordsize from the preprocessor defines.
    673 //
    674 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    675 //    This file is part of the GNU C Library.
    676 //
    677 //    The GNU C Library is free software; you can redistribute it and/or
    678 //    modify it under the terms of the GNU Lesser General Public
    679 //    License as published by the Free Software Foundation; either
    680 //    version 2.1 of the License, or (at your option) any later version.
    681 //
    682 //    The GNU C Library is distributed in the hope that it will be useful,
    683 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    684 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    685 //    Lesser General Public License for more details.
    686 //
    687 //    You should have received a copy of the GNU Lesser General Public
    688 //    License along with the GNU C Library; if not, see
    689 //    <https://www.gnu.org/licenses/>.
    690 
    691 // Bit size of the time_t type at glibc build time, general 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 // Determine the wordsize from the preprocessor defines.
    710 //
    711 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    712 //    This file is part of the GNU C Library.
    713 //
    714 //    The GNU C Library is free software; you can redistribute it and/or
    715 //    modify it under the terms of the GNU Lesser General Public
    716 //    License as published by the Free Software Foundation; either
    717 //    version 2.1 of the License, or (at your option) any later version.
    718 //
    719 //    The GNU C Library is distributed in the hope that it will be useful,
    720 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    721 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    722 //    Lesser General Public License for more details.
    723 //
    724 //    You should have received a copy of the GNU Lesser General Public
    725 //    License along with the GNU C Library; if not, see
    726 //    <https://www.gnu.org/licenses/>.
    727 
    728 // Size in bits of the 'time_t' type of the default ABI.
    729 
    730 // Convenience types.
    731 type X__u_char = uint8   /* types.h:31:23 */
    732 type X__u_short = uint16 /* types.h:32:28 */
    733 type X__u_int = uint32   /* types.h:33:22 */
    734 type X__u_long = uint64  /* types.h:34:27 */
    735 
    736 // Fixed-size types, underlying types depend on word size and compiler.
    737 type X__int8_t = int8     /* types.h:37:21 */
    738 type X__uint8_t = uint8   /* types.h:38:23 */
    739 type X__int16_t = int16   /* types.h:39:26 */
    740 type X__uint16_t = uint16 /* types.h:40:28 */
    741 type X__int32_t = int32   /* types.h:41:20 */
    742 type X__uint32_t = uint32 /* types.h:42:22 */
    743 type X__int64_t = int64   /* types.h:44:25 */
    744 type X__uint64_t = uint64 /* types.h:45:27 */
    745 
    746 // Smallest types with at least a given width.
    747 type X__int_least8_t = X__int8_t     /* types.h:52:18 */
    748 type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
    749 type X__int_least16_t = X__int16_t   /* types.h:54:19 */
    750 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
    751 type X__int_least32_t = X__int32_t   /* types.h:56:19 */
    752 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
    753 type X__int_least64_t = X__int64_t   /* types.h:58:19 */
    754 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
    755 
    756 // quad_t is also 64 bits.
    757 type X__quad_t = int64    /* types.h:63:18 */
    758 type X__u_quad_t = uint64 /* types.h:64:27 */
    759 
    760 // Largest integral types.
    761 type X__intmax_t = int64   /* types.h:72:18 */
    762 type X__uintmax_t = uint64 /* types.h:73:27 */
    763 
    764 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
    765 //    macros for each of the OS types we define below.  The definitions
    766 //    of those macros must use the following macros for underlying types.
    767 //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
    768 //    variants of each of the following integer types on this machine.
    769 //
    770 // 	16		-- "natural" 16-bit type (always short)
    771 // 	32		-- "natural" 32-bit type (always int)
    772 // 	64		-- "natural" 64-bit type (long or long long)
    773 // 	LONG32		-- 32-bit type, traditionally long
    774 // 	QUAD		-- 64-bit type, traditionally long long
    775 // 	WORD		-- natural type of __WORDSIZE bits (int or long)
    776 // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
    777 //
    778 //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
    779 //    conventional uses of `long' or `long long' type modifiers match the
    780 //    types we define, even when a less-adorned type would be the same size.
    781 //    This matters for (somewhat) portably writing printf/scanf formats for
    782 //    these types, where using the appropriate l or ll format modifiers can
    783 //    make the typedefs and the formats match up across all GNU platforms.  If
    784 //    we used `long' when it's 64 bits where `long long' is expected, then the
    785 //    compiler would warn about the formats not matching the argument types,
    786 //    and the programmer changing them to shut up the compiler would break the
    787 //    program's portability.
    788 //
    789 //    Here we assume what is presently the case in all the GCC configurations
    790 //    we support: long long is always 64 bits, long is always word/address size,
    791 //    and int is always 32 bits.
    792 
    793 // No need to mark the typedef with __extension__.
    794 // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
    795 //    Copyright (C) 2011-2020 Free Software Foundation, Inc.
    796 //    This file is part of the GNU C Library.
    797 //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
    798 //
    799 //    The GNU C Library is free software; you can redistribute it and/or
    800 //    modify it under the terms of the GNU Lesser General Public
    801 //    License as published by the Free Software Foundation; either
    802 //    version 2.1 of the License, or (at your option) any later version.
    803 //
    804 //    The GNU C Library is distributed in the hope that it will be useful,
    805 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    806 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    807 //    Lesser General Public License for more details.
    808 //
    809 //    You should have received a copy of the GNU Lesser General Public
    810 //    License along with the GNU C Library.  If not, see
    811 //    <https://www.gnu.org/licenses/>.
    812 
    813 // See <bits/types.h> for the meaning of these macros.  This file exists so
    814 //    that <bits/types.h> need not vary across different GNU platforms.
    815 
    816 // Tell the libc code that off_t and off64_t are actually the same type
    817 //    for all ABI purposes, even if possibly expressed as different base types
    818 //    for C type-checking purposes.
    819 
    820 // Same for ino_t and ino64_t.
    821 
    822 // And for __rlim_t and __rlim64_t.
    823 
    824 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
    825 // Number of descriptors that can fit in an `fd_set'.
    826 
    827 // bits/time64.h -- underlying types for __time64_t.  Generic version.
    828 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
    829 //    This file is part of the GNU C Library.
    830 //
    831 //    The GNU C Library is free software; you can redistribute it and/or
    832 //    modify it under the terms of the GNU Lesser General Public
    833 //    License as published by the Free Software Foundation; either
    834 //    version 2.1 of the License, or (at your option) any later version.
    835 //
    836 //    The GNU C Library is distributed in the hope that it will be useful,
    837 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    838 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    839 //    Lesser General Public License for more details.
    840 //
    841 //    You should have received a copy of the GNU Lesser General Public
    842 //    License along with the GNU C Library; if not, see
    843 //    <https://www.gnu.org/licenses/>.
    844 
    845 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
    846 
    847 // If we already have 64-bit time type then use it.
    848 
    849 type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
    850 type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
    851 type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
    852 type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
    853 type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
    854 type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
    855 type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
    856 type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
    857 type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
    858 type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
    859 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
    860 type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
    861 type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
    862 type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
    863 type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
    864 type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
    865 type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
    866 type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
    867 
    868 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
    869 type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
    870 
    871 // Clock ID used in clock and timer functions.
    872 type X__clockid_t = int32 /* types.h:168:29 */
    873 
    874 // Timer ID returned by `timer_create'.
    875 type X__timer_t = uintptr /* types.h:171:12 */
    876 
    877 // Type to represent block size.
    878 type X__blksize_t = int32 /* types.h:174:29 */
    879 
    880 // Types from the Large File Support interface.
    881 
    882 // Type to count number of disk blocks.
    883 type X__blkcnt_t = int64   /* types.h:179:28 */
    884 type X__blkcnt64_t = int64 /* types.h:180:30 */
    885 
    886 // Type to count file system blocks.
    887 type X__fsblkcnt_t = uint64   /* types.h:183:30 */
    888 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
    889 
    890 // Type to count file system nodes.
    891 type X__fsfilcnt_t = uint64   /* types.h:187:30 */
    892 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
    893 
    894 // Type of miscellaneous file system fields.
    895 type X__fsword_t = int64 /* types.h:191:28 */
    896 
    897 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
    898 
    899 // Signed long type used in system calls.
    900 type X__syscall_slong_t = int64 /* types.h:196:33 */
    901 // Unsigned long type used in system calls.
    902 type X__syscall_ulong_t = uint64 /* types.h:198:33 */
    903 
    904 // These few don't really vary by system, they always correspond
    905 //
    906 //	to one of the other defined types.
    907 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
    908 type X__caddr_t = uintptr   /* types.h:203:14 */
    909 
    910 // Duplicates info from stdint.h but this is used in unistd.h.
    911 type X__intptr_t = int64 /* types.h:206:25 */
    912 
    913 // Duplicate info from sys/socket.h.
    914 type X__socklen_t = uint32 /* types.h:209:23 */
    915 
    916 // C99: An integer type that can be accessed as an atomic entity,
    917 //
    918 //	even in the presence of asynchronous interrupts.
    919 //	It is not currently necessary for this to be machine-specific.
    920 type X__sig_atomic_t = int32 /* types.h:214:13 */
    921 
    922 // Seconds since the Epoch, visible to user code when time_t is too
    923 //    narrow only for consistency with the old way of widening too-narrow
    924 //    types.  User code should never use __time64_t.
    925 
    926 type U_char = X__u_char     /* types.h:33:18 */
    927 type U_short = X__u_short   /* types.h:34:19 */
    928 type U_int = X__u_int       /* types.h:35:17 */
    929 type U_long = X__u_long     /* types.h:36:18 */
    930 type Quad_t = X__quad_t     /* types.h:37:18 */
    931 type U_quad_t = X__u_quad_t /* types.h:38:20 */
    932 type Fsid_t = X__fsid_t     /* types.h:39:18 */
    933 type Loff_t = X__loff_t     /* types.h:42:18 */
    934 
    935 type Ino_t = X__ino64_t /* types.h:49:19 */
    936 
    937 type Dev_t = X__dev_t /* types.h:59:17 */
    938 
    939 type Gid_t = X__gid_t /* types.h:64:17 */
    940 
    941 type Mode_t = X__mode_t /* types.h:69:18 */
    942 
    943 type Nlink_t = X__nlink_t /* types.h:74:19 */
    944 
    945 type Uid_t = X__uid_t /* types.h:79:17 */
    946 
    947 type Off_t = X__off64_t /* types.h:87:19 */
    948 
    949 type Pid_t = X__pid_t /* types.h:97:17 */
    950 
    951 type Id_t = X__id_t /* types.h:103:16 */
    952 
    953 type Ssize_t = X__ssize_t /* types.h:108:19 */
    954 
    955 type Daddr_t = X__daddr_t /* types.h:114:19 */
    956 type Caddr_t = X__caddr_t /* types.h:115:19 */
    957 
    958 type Key_t = X__key_t /* types.h:121:17 */
    959 
    960 // bits/types.h -- definitions of __*_t types underlying *_t types.
    961 //    Copyright (C) 2002-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 //    <https://www.gnu.org/licenses/>.
    977 
    978 // Never include this file directly; use <sys/types.h> instead.
    979 
    980 // Returned by `clock'.
    981 type Clock_t = X__clock_t /* clock_t.h:7:19 */
    982 
    983 // bits/types.h -- definitions of __*_t types underlying *_t types.
    984 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    985 //    This file is part of the GNU C Library.
    986 //
    987 //    The GNU C Library is free software; you can redistribute it and/or
    988 //    modify it under the terms of the GNU Lesser General Public
    989 //    License as published by the Free Software Foundation; either
    990 //    version 2.1 of the License, or (at your option) any later version.
    991 //
    992 //    The GNU C Library is distributed in the hope that it will be useful,
    993 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    994 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    995 //    Lesser General Public License for more details.
    996 //
    997 //    You should have received a copy of the GNU Lesser General Public
    998 //    License along with the GNU C Library; if not, see
    999 //    <https://www.gnu.org/licenses/>.
   1000 
   1001 // Never include this file directly; use <sys/types.h> instead.
   1002 
   1003 // Clock ID used in clock and timer functions.
   1004 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   1005 
   1006 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1007 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1008 //    This file is part of the GNU C Library.
   1009 //
   1010 //    The GNU C Library is free software; you can redistribute it and/or
   1011 //    modify it under the terms of the GNU Lesser General Public
   1012 //    License as published by the Free Software Foundation; either
   1013 //    version 2.1 of the License, or (at your option) any later version.
   1014 //
   1015 //    The GNU C Library is distributed in the hope that it will be useful,
   1016 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1017 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1018 //    Lesser General Public License for more details.
   1019 //
   1020 //    You should have received a copy of the GNU Lesser General Public
   1021 //    License along with the GNU C Library; if not, see
   1022 //    <https://www.gnu.org/licenses/>.
   1023 
   1024 // Never include this file directly; use <sys/types.h> instead.
   1025 
   1026 // Returned by `time'.
   1027 type Time_t = X__time_t /* time_t.h:7:18 */
   1028 
   1029 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1030 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1031 //    This file is part of the GNU C Library.
   1032 //
   1033 //    The GNU C Library is free software; you can redistribute it and/or
   1034 //    modify it under the terms of the GNU Lesser General Public
   1035 //    License as published by the Free Software Foundation; either
   1036 //    version 2.1 of the License, or (at your option) any later version.
   1037 //
   1038 //    The GNU C Library is distributed in the hope that it will be useful,
   1039 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1040 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1041 //    Lesser General Public License for more details.
   1042 //
   1043 //    You should have received a copy of the GNU Lesser General Public
   1044 //    License along with the GNU C Library; if not, see
   1045 //    <https://www.gnu.org/licenses/>.
   1046 
   1047 // Never include this file directly; use <sys/types.h> instead.
   1048 
   1049 // Timer ID returned by `timer_create'.
   1050 type Timer_t = X__timer_t /* timer_t.h:7:19 */
   1051 
   1052 // Wide character type.
   1053 //    Locale-writers should change this as necessary to
   1054 //    be big enough to hold unique values not between 0 and 127,
   1055 //    and not (wchar_t) -1, for each defined multibyte character.
   1056 
   1057 // Define this type if we are doing the whole job,
   1058 //    or if we want this type in particular.
   1059 
   1060 // A null pointer constant.
   1061 
   1062 // Old compatibility names for C types.
   1063 type Ulong = uint64  /* types.h:148:27 */
   1064 type Ushort = uint16 /* types.h:149:28 */
   1065 type Uint = uint32   /* types.h:150:22 */
   1066 
   1067 // These size-specific names are used by some of the inet code.
   1068 
   1069 // Define intN_t types.
   1070 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1071 //    This file is part of the GNU C Library.
   1072 //
   1073 //    The GNU C Library is free software; you can redistribute it and/or
   1074 //    modify it under the terms of the GNU Lesser General Public
   1075 //    License as published by the Free Software Foundation; either
   1076 //    version 2.1 of the License, or (at your option) any later version.
   1077 //
   1078 //    The GNU C Library is distributed in the hope that it will be useful,
   1079 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1080 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1081 //    Lesser General Public License for more details.
   1082 //
   1083 //    You should have received a copy of the GNU Lesser General Public
   1084 //    License along with the GNU C Library; if not, see
   1085 //    <https://www.gnu.org/licenses/>.
   1086 
   1087 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1088 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1089 //    This file is part of the GNU C Library.
   1090 //
   1091 //    The GNU C Library is free software; you can redistribute it and/or
   1092 //    modify it under the terms of the GNU Lesser General Public
   1093 //    License as published by the Free Software Foundation; either
   1094 //    version 2.1 of the License, or (at your option) any later version.
   1095 //
   1096 //    The GNU C Library is distributed in the hope that it will be useful,
   1097 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1098 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1099 //    Lesser General Public License for more details.
   1100 //
   1101 //    You should have received a copy of the GNU Lesser General Public
   1102 //    License along with the GNU C Library; if not, see
   1103 //    <https://www.gnu.org/licenses/>.
   1104 
   1105 // Never include this file directly; use <sys/types.h> instead.
   1106 
   1107 type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
   1108 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
   1109 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
   1110 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
   1111 
   1112 // These were defined by ISO C without the first `_'.
   1113 type U_int8_t = X__uint8_t   /* types.h:158:19 */
   1114 type U_int16_t = X__uint16_t /* types.h:159:20 */
   1115 type U_int32_t = X__uint32_t /* types.h:160:20 */
   1116 type U_int64_t = X__uint64_t /* types.h:161:20 */
   1117 
   1118 type Register_t = int32 /* types.h:164:13 */
   1119 
   1120 // It also defines `fd_set' and the FD_* macros for `select'.
   1121 // `fd_set' type and related macros, and `select'/`pselect' declarations.
   1122 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1123 //    This file is part of the GNU C Library.
   1124 //
   1125 //    The GNU C Library is free software; you can redistribute it and/or
   1126 //    modify it under the terms of the GNU Lesser General Public
   1127 //    License as published by the Free Software Foundation; either
   1128 //    version 2.1 of the License, or (at your option) any later version.
   1129 //
   1130 //    The GNU C Library is distributed in the hope that it will be useful,
   1131 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1132 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1133 //    Lesser General Public License for more details.
   1134 //
   1135 //    You should have received a copy of the GNU Lesser General Public
   1136 //    License along with the GNU C Library; if not, see
   1137 //    <https://www.gnu.org/licenses/>.
   1138 
   1139 //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
   1140 
   1141 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1142 //    This file is part of the GNU C Library.
   1143 //
   1144 //    The GNU C Library is free software; you can redistribute it and/or
   1145 //    modify it under the terms of the GNU Lesser General Public
   1146 //    License as published by the Free Software Foundation; either
   1147 //    version 2.1 of the License, or (at your option) any later version.
   1148 //
   1149 //    The GNU C Library is distributed in the hope that it will be useful,
   1150 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1151 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1152 //    Lesser General Public License for more details.
   1153 //
   1154 //    You should have received a copy of the GNU Lesser General Public
   1155 //    License along with the GNU C Library; if not, see
   1156 //    <https://www.gnu.org/licenses/>.
   1157 
   1158 // Get definition of needed basic types.
   1159 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1160 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1161 //    This file is part of the GNU C Library.
   1162 //
   1163 //    The GNU C Library is free software; you can redistribute it and/or
   1164 //    modify it under the terms of the GNU Lesser General Public
   1165 //    License as published by the Free Software Foundation; either
   1166 //    version 2.1 of the License, or (at your option) any later version.
   1167 //
   1168 //    The GNU C Library is distributed in the hope that it will be useful,
   1169 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1170 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1171 //    Lesser General Public License for more details.
   1172 //
   1173 //    You should have received a copy of the GNU Lesser General Public
   1174 //    License along with the GNU C Library; if not, see
   1175 //    <https://www.gnu.org/licenses/>.
   1176 
   1177 // Never include this file directly; use <sys/types.h> instead.
   1178 
   1179 // Get __FD_* definitions.
   1180 // Copyright (C) 1997-2020 Free Software Foundation, Inc.
   1181 //    This file is part of the GNU C Library.
   1182 //
   1183 //    The GNU C Library is free software; you can redistribute it and/or
   1184 //    modify it under the terms of the GNU Lesser General Public
   1185 //    License as published by the Free Software Foundation; either
   1186 //    version 2.1 of the License, or (at your option) any later version.
   1187 //
   1188 //    The GNU C Library is distributed in the hope that it will be useful,
   1189 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1190 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1191 //    Lesser General Public License for more details.
   1192 //
   1193 //    You should have received a copy of the GNU Lesser General Public
   1194 //    License along with the GNU C Library; if not, see
   1195 //    <https://www.gnu.org/licenses/>.
   1196 
   1197 // We don't use `memset' because this would require a prototype and
   1198 //    the array isn't too big.
   1199 
   1200 // Get sigset_t.
   1201 
   1202 type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
   1203 
   1204 // A set of signals to be blocked, unblocked, or waited for.
   1205 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
   1206 
   1207 // Get definition of timer specification structures.
   1208 
   1209 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1210 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1211 //    This file is part of the GNU C Library.
   1212 //
   1213 //    The GNU C Library is free software; you can redistribute it and/or
   1214 //    modify it under the terms of the GNU Lesser General Public
   1215 //    License as published by the Free Software Foundation; either
   1216 //    version 2.1 of the License, or (at your option) any later version.
   1217 //
   1218 //    The GNU C Library is distributed in the hope that it will be useful,
   1219 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1220 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1221 //    Lesser General Public License for more details.
   1222 //
   1223 //    You should have received a copy of the GNU Lesser General Public
   1224 //    License along with the GNU C Library; if not, see
   1225 //    <https://www.gnu.org/licenses/>.
   1226 
   1227 // Never include this file directly; use <sys/types.h> instead.
   1228 
   1229 // A time value that is accurate to the nearest
   1230 //
   1231 //	microsecond but also has a range of years.
   1232 type Timeval = struct {
   1233 	Ftv_sec  X__time_t
   1234 	Ftv_usec X__suseconds_t
   1235 } /* struct_timeval.h:8:1 */
   1236 
   1237 // NB: Include guard matches what <linux/time.h> uses.
   1238 
   1239 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1240 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1241 //    This file is part of the GNU C Library.
   1242 //
   1243 //    The GNU C Library is free software; you can redistribute it and/or
   1244 //    modify it under the terms of the GNU Lesser General Public
   1245 //    License as published by the Free Software Foundation; either
   1246 //    version 2.1 of the License, or (at your option) any later version.
   1247 //
   1248 //    The GNU C Library is distributed in the hope that it will be useful,
   1249 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1250 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1251 //    Lesser General Public License for more details.
   1252 //
   1253 //    You should have received a copy of the GNU Lesser General Public
   1254 //    License along with the GNU C Library; if not, see
   1255 //    <https://www.gnu.org/licenses/>.
   1256 
   1257 // Never include this file directly; use <sys/types.h> instead.
   1258 
   1259 // Endian macros for string.h functions
   1260 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1261 //    This file is part of the GNU C Library.
   1262 //
   1263 //    The GNU C Library is free software; you can redistribute it and/or
   1264 //    modify it under the terms of the GNU Lesser General Public
   1265 //    License as published by the Free Software Foundation; either
   1266 //    version 2.1 of the License, or (at your option) any later version.
   1267 //
   1268 //    The GNU C Library is distributed in the hope that it will be useful,
   1269 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1270 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1271 //    Lesser General Public License for more details.
   1272 //
   1273 //    You should have received a copy of the GNU Lesser General Public
   1274 //    License along with the GNU C Library; if not, see
   1275 //    <http://www.gnu.org/licenses/>.
   1276 
   1277 // POSIX.1b structure for a time value.  This is like a `struct timeval' but
   1278 //
   1279 //	has nanoseconds instead of microseconds.
   1280 type Timespec = struct {
   1281 	Ftv_sec  X__time_t
   1282 	Ftv_nsec X__syscall_slong_t
   1283 } /* struct_timespec.h:10:1 */
   1284 
   1285 type Suseconds_t = X__suseconds_t /* select.h:43:23 */
   1286 
   1287 // The fd_set member is required to be an array of longs.
   1288 type X__fd_mask = int64 /* select.h:49:18 */
   1289 
   1290 // Some versions of <linux/posix_types.h> define this macros.
   1291 // It's easier to assume 8-bit bytes than to get CHAR_BIT.
   1292 
   1293 // fd_set for select and pselect.
   1294 type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
   1295 
   1296 // Maximum number of file descriptors in `fd_set'.
   1297 
   1298 // Sometimes the fd_set member is assumed to have this type.
   1299 type Fd_mask = X__fd_mask /* select.h:77:19 */
   1300 
   1301 // Define some inlines helping to catch common problems.
   1302 
   1303 type Blksize_t = X__blksize_t /* types.h:185:21 */
   1304 
   1305 // Types from the Large File Support interface.
   1306 type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
   1307 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
   1308 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
   1309 
   1310 // Now add the thread types.
   1311 // Declaration of common pthread types for all architectures.
   1312 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1313 //    This file is part of the GNU C Library.
   1314 //
   1315 //    The GNU C Library is free software; you can redistribute it and/or
   1316 //    modify it under the terms of the GNU Lesser General Public
   1317 //    License as published by the Free Software Foundation; either
   1318 //    version 2.1 of the License, or (at your option) any later version.
   1319 //
   1320 //    The GNU C Library is distributed in the hope that it will be useful,
   1321 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1322 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1323 //    Lesser General Public License for more details.
   1324 //
   1325 //    You should have received a copy of the GNU Lesser General Public
   1326 //    License along with the GNU C Library; if not, see
   1327 //    <https://www.gnu.org/licenses/>.
   1328 
   1329 // For internal mutex and condition variable definitions.
   1330 // Common threading primitives definitions for both POSIX and C11.
   1331 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1332 //    This file is part of the GNU C Library.
   1333 //
   1334 //    The GNU C Library is free software; you can redistribute it and/or
   1335 //    modify it under the terms of the GNU Lesser General Public
   1336 //    License as published by the Free Software Foundation; either
   1337 //    version 2.1 of the License, or (at your option) any later version.
   1338 //
   1339 //    The GNU C Library is distributed in the hope that it will be useful,
   1340 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1341 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1342 //    Lesser General Public License for more details.
   1343 //
   1344 //    You should have received a copy of the GNU Lesser General Public
   1345 //    License along with the GNU C Library; if not, see
   1346 //    <https://www.gnu.org/licenses/>.
   1347 
   1348 // Arch-specific definitions.  Each architecture must define the following
   1349 //    macros to define the expected sizes of pthread data types:
   1350 //
   1351 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   1352 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   1353 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   1354 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   1355 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   1356 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   1357 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   1358 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   1359 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   1360 //
   1361 //    The additional macro defines any constraint for the lock alignment
   1362 //    inside the thread structures:
   1363 //
   1364 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   1365 //
   1366 //    Same idea but for the once locking primitive:
   1367 //
   1368 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   1369 
   1370 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1371 //
   1372 //    This file is part of the GNU C Library.
   1373 //
   1374 //    The GNU C Library is free software; you can redistribute it and/or
   1375 //    modify it under the terms of the GNU Lesser General Public
   1376 //    License as published by the Free Software Foundation; either
   1377 //    version 2.1 of the License, or (at your option) any later version.
   1378 //
   1379 //    The GNU C Library is distributed in the hope that it will be useful,
   1380 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1381 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1382 //    Lesser General Public License for more details.
   1383 //
   1384 //    You should have received a copy of the GNU Lesser General Public
   1385 //    License along with the GNU C Library; if not, see
   1386 //    <https://www.gnu.org/licenses/>.
   1387 
   1388 // Endian macros for string.h functions
   1389 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1390 //    This file is part of the GNU C Library.
   1391 //
   1392 //    The GNU C Library is free software; you can redistribute it and/or
   1393 //    modify it under the terms of the GNU Lesser General Public
   1394 //    License as published by the Free Software Foundation; either
   1395 //    version 2.1 of the License, or (at your option) any later version.
   1396 //
   1397 //    The GNU C Library is distributed in the hope that it will be useful,
   1398 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1399 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1400 //    Lesser General Public License for more details.
   1401 //
   1402 //    You should have received a copy of the GNU Lesser General Public
   1403 //    License along with the GNU C Library; if not, see
   1404 //    <http://www.gnu.org/licenses/>.
   1405 
   1406 // Common definition of pthread_mutex_t.
   1407 
   1408 type X__pthread_internal_list = struct {
   1409 	F__prev uintptr
   1410 	F__next uintptr
   1411 } /* thread-shared-types.h:49:9 */
   1412 
   1413 // Type to count file system inodes.
   1414 
   1415 // Now add the thread types.
   1416 // Declaration of common pthread types for all architectures.
   1417 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1418 //    This file is part of the GNU C Library.
   1419 //
   1420 //    The GNU C Library is free software; you can redistribute it and/or
   1421 //    modify it under the terms of the GNU Lesser General Public
   1422 //    License as published by the Free Software Foundation; either
   1423 //    version 2.1 of the License, or (at your option) any later version.
   1424 //
   1425 //    The GNU C Library is distributed in the hope that it will be useful,
   1426 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1427 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1428 //    Lesser General Public License for more details.
   1429 //
   1430 //    You should have received a copy of the GNU Lesser General Public
   1431 //    License along with the GNU C Library; if not, see
   1432 //    <https://www.gnu.org/licenses/>.
   1433 
   1434 // For internal mutex and condition variable definitions.
   1435 // Common threading primitives definitions for both POSIX and C11.
   1436 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1437 //    This file is part of the GNU C Library.
   1438 //
   1439 //    The GNU C Library is free software; you can redistribute it and/or
   1440 //    modify it under the terms of the GNU Lesser General Public
   1441 //    License as published by the Free Software Foundation; either
   1442 //    version 2.1 of the License, or (at your option) any later version.
   1443 //
   1444 //    The GNU C Library is distributed in the hope that it will be useful,
   1445 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1446 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1447 //    Lesser General Public License for more details.
   1448 //
   1449 //    You should have received a copy of the GNU Lesser General Public
   1450 //    License along with the GNU C Library; if not, see
   1451 //    <https://www.gnu.org/licenses/>.
   1452 
   1453 // Arch-specific definitions.  Each architecture must define the following
   1454 //    macros to define the expected sizes of pthread data types:
   1455 //
   1456 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   1457 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   1458 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   1459 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   1460 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   1461 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   1462 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   1463 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   1464 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   1465 //
   1466 //    The additional macro defines any constraint for the lock alignment
   1467 //    inside the thread structures:
   1468 //
   1469 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   1470 //
   1471 //    Same idea but for the once locking primitive:
   1472 //
   1473 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   1474 
   1475 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1476 //
   1477 //    This file is part of the GNU C Library.
   1478 //
   1479 //    The GNU C Library is free software; you can redistribute it and/or
   1480 //    modify it under the terms of the GNU Lesser General Public
   1481 //    License as published by the Free Software Foundation; either
   1482 //    version 2.1 of the License, or (at your option) any later version.
   1483 //
   1484 //    The GNU C Library is distributed in the hope that it will be useful,
   1485 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1486 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1487 //    Lesser General Public License for more details.
   1488 //
   1489 //    You should have received a copy of the GNU Lesser General Public
   1490 //    License along with the GNU C Library; if not, see
   1491 //    <https://www.gnu.org/licenses/>.
   1492 
   1493 // Endian macros for string.h functions
   1494 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1495 //    This file is part of the GNU C Library.
   1496 //
   1497 //    The GNU C Library is free software; you can redistribute it and/or
   1498 //    modify it under the terms of the GNU Lesser General Public
   1499 //    License as published by the Free Software Foundation; either
   1500 //    version 2.1 of the License, or (at your option) any later version.
   1501 //
   1502 //    The GNU C Library is distributed in the hope that it will be useful,
   1503 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1504 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1505 //    Lesser General Public License for more details.
   1506 //
   1507 //    You should have received a copy of the GNU Lesser General Public
   1508 //    License along with the GNU C Library; if not, see
   1509 //    <http://www.gnu.org/licenses/>.
   1510 
   1511 // Common definition of pthread_mutex_t.
   1512 
   1513 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
   1514 
   1515 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
   1516 
   1517 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
   1518 
   1519 // Arch-specific mutex definitions.  A generic implementation is provided
   1520 //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
   1521 //    can override it by defining:
   1522 //
   1523 //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
   1524 //       definition).  It should contains at least the internal members
   1525 //       defined in the generic version.
   1526 //
   1527 //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
   1528 //       atomic operations.
   1529 //
   1530 //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
   1531 //       It should initialize the mutex internal flag.
   1532 
   1533 // Default mutex implementation struct definitions.
   1534 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   1535 //    This file is part of the GNU C Library.
   1536 //
   1537 //    The GNU C Library is free software; you can redistribute it and/or
   1538 //    modify it under the terms of the GNU Lesser General Public
   1539 //    License as published by the Free Software Foundation; either
   1540 //    version 2.1 of the License, or (at your option) any later version.
   1541 //
   1542 //    The GNU C Library is distributed in the hope that it will be useful,
   1543 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1544 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1545 //    Lesser General Public License for more details.
   1546 //
   1547 //    You should have received a copy of the GNU Lesser General Public
   1548 //    License along with the GNU C Library; if not, see
   1549 //    <http://www.gnu.org/licenses/>.
   1550 
   1551 // Generic struct for both POSIX and C11 mutexes.  New ports are expected
   1552 //    to use the default layout, however architecture can redefine it to
   1553 //    add arch-specific extension (such as lock-elision).  The struct have
   1554 //    a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
   1555 
   1556 type X__pthread_mutex_s = struct {
   1557 	F__lock   int32
   1558 	F__count  uint32
   1559 	F__owner  int32
   1560 	F__nusers uint32
   1561 	F__kind   int32
   1562 	F__spins  int32
   1563 	F__list   X__pthread_list_t
   1564 } /* struct_mutex.h:27:1 */
   1565 
   1566 // Arch-sepecific read-write lock definitions.  A generic implementation is
   1567 //    provided by struct_rwlock.h.  If required, an architecture can override it
   1568 //    by defining:
   1569 //
   1570 //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
   1571 //       It should contain at least the internal members defined in the
   1572 //       generic version.
   1573 //
   1574 //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
   1575 //       It should initialize the rwlock internal type.
   1576 
   1577 // AArch64 internal rwlock struct definitions.
   1578 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   1579 //
   1580 //    This file is part of the GNU C Library.
   1581 //
   1582 //    The GNU C Library is free software; you can redistribute it and/or
   1583 //    modify it under the terms of the GNU Lesser General Public
   1584 //    License as published by the Free Software Foundation; either
   1585 //    version 2.1 of the License, or (at your option) any later version.
   1586 //
   1587 //    The GNU C Library is distributed in the hope that it will be useful,
   1588 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1589 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1590 //    Lesser General Public License for more details.
   1591 //
   1592 //    You should have received a copy of the GNU Lesser General Public
   1593 //    License along with the GNU C Library; if not, see
   1594 //    <http://www.gnu.org/licenses/>.
   1595 
   1596 type X__pthread_rwlock_arch_t = struct {
   1597 	F__readers       uint32
   1598 	F__writers       uint32
   1599 	F__wrphase_futex uint32
   1600 	F__writers_futex uint32
   1601 	F__pad3          uint32
   1602 	F__pad4          uint32
   1603 	F__cur_writer    int32
   1604 	F__shared        int32
   1605 	F__pad1          uint64
   1606 	F__pad2          uint64
   1607 	F__flags         uint32
   1608 	F__ccgo_pad1     [4]byte
   1609 } /* struct_rwlock.h:23:1 */
   1610 
   1611 // Common definition of pthread_cond_t.
   1612 
   1613 type X__pthread_cond_s = struct {
   1614 	F__0            struct{ F__wseq uint64 }
   1615 	F__8            struct{ F__g1_start uint64 }
   1616 	F__g_refs       [2]uint32
   1617 	F__g_size       [2]uint32
   1618 	F__g1_orig_size uint32
   1619 	F__wrefs        uint32
   1620 	F__g_signals    [2]uint32
   1621 } /* thread-shared-types.h:92:1 */
   1622 
   1623 // Thread identifiers.  The structure of the attribute type is not
   1624 //
   1625 //	exposed on purpose.
   1626 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
   1627 
   1628 // Data structures for mutex handling.  The structure of the attribute
   1629 //
   1630 //	type is not exposed on purpose.
   1631 type Pthread_mutexattr_t = struct {
   1632 	F__ccgo_pad1 [0]uint32
   1633 	F__size      [8]uint8
   1634 } /* pthreadtypes.h:36:3 */
   1635 
   1636 // Data structure for condition variable handling.  The structure of
   1637 //
   1638 //	the attribute type is not exposed on purpose.
   1639 type Pthread_condattr_t = struct {
   1640 	F__ccgo_pad1 [0]uint32
   1641 	F__size      [8]uint8
   1642 } /* pthreadtypes.h:45:3 */
   1643 
   1644 // Keys for thread-specific data
   1645 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
   1646 
   1647 // Once-only execution
   1648 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
   1649 
   1650 type Pthread_attr_t1 = struct {
   1651 	F__ccgo_pad1 [0]uint64
   1652 	F__size      [64]uint8
   1653 } /* pthreadtypes.h:56:1 */
   1654 
   1655 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
   1656 
   1657 type Pthread_mutex_t = struct {
   1658 	F__data      X__pthread_mutex_s
   1659 	F__ccgo_pad1 [8]byte
   1660 } /* pthreadtypes.h:72:3 */
   1661 
   1662 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
   1663 
   1664 // Data structure for reader-writer lock variable handling.  The
   1665 //
   1666 //	structure of the attribute type is deliberately not exposed.
   1667 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
   1668 
   1669 type Pthread_rwlockattr_t = struct {
   1670 	F__ccgo_pad1 [0]uint64
   1671 	F__size      [8]uint8
   1672 } /* pthreadtypes.h:97:3 */
   1673 
   1674 // POSIX spinlock data type.
   1675 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
   1676 
   1677 // POSIX barriers data type.  The structure of the type is
   1678 //
   1679 //	deliberately not exposed.
   1680 type Pthread_barrier_t = struct {
   1681 	F__ccgo_pad1 [0]uint64
   1682 	F__size      [32]uint8
   1683 } /* pthreadtypes.h:112:3 */
   1684 
   1685 type Pthread_barrierattr_t = struct {
   1686 	F__ccgo_pad1 [0]uint32
   1687 	F__size      [8]uint8
   1688 } /* pthreadtypes.h:118:3 */
   1689 
   1690 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1691 //    This file is part of the GNU C Library.
   1692 //
   1693 //    The GNU C Library is free software; you can redistribute it and/or
   1694 //    modify it under the terms of the GNU Lesser General Public
   1695 //    License as published by the Free Software Foundation; either
   1696 //    version 2.1 of the License, or (at your option) any later version.
   1697 //
   1698 //    The GNU C Library is distributed in the hope that it will be useful,
   1699 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1700 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1701 //    Lesser General Public License for more details.
   1702 //
   1703 //    You should have received a copy of the GNU Lesser General Public
   1704 //    License along with the GNU C Library; if not, see
   1705 //    <https://www.gnu.org/licenses/>.
   1706 
   1707 //	POSIX Standard: 5.6 File Characteristics	<sys/stat.h>
   1708 
   1709 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1710 //    This file is part of the GNU C Library.
   1711 //
   1712 //    The GNU C Library is free software; you can redistribute it and/or
   1713 //    modify it under the terms of the GNU Lesser General Public
   1714 //    License as published by the Free Software Foundation; either
   1715 //    version 2.1 of the License, or (at your option) any later version.
   1716 //
   1717 //    The GNU C Library is distributed in the hope that it will be useful,
   1718 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1719 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1720 //    Lesser General Public License for more details.
   1721 //
   1722 //    You should have received a copy of the GNU Lesser General Public
   1723 //    License along with the GNU C Library; if not, see
   1724 //    <https://www.gnu.org/licenses/>.
   1725 
   1726 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1727 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1728 //    This file is part of the GNU C Library.
   1729 //
   1730 //    The GNU C Library is free software; you can redistribute it and/or
   1731 //    modify it under the terms of the GNU Lesser General Public
   1732 //    License as published by the Free Software Foundation; either
   1733 //    version 2.1 of the License, or (at your option) any later version.
   1734 //
   1735 //    The GNU C Library is distributed in the hope that it will be useful,
   1736 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1737 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1738 //    Lesser General Public License for more details.
   1739 //
   1740 //    You should have received a copy of the GNU Lesser General Public
   1741 //    License along with the GNU C Library; if not, see
   1742 //    <https://www.gnu.org/licenses/>.
   1743 
   1744 // Never include this file directly; use <sys/types.h> instead.
   1745 
   1746 // NB: Include guard matches what <linux/time.h> uses.
   1747 
   1748 // The Single Unix specification says that some more types are
   1749 //    available here.
   1750 
   1751 // Copyright (C) 2011-2020 Free Software Foundation, Inc.
   1752 //    This file is part of the GNU C Library.
   1753 //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
   1754 //
   1755 //    The GNU C Library is free software; you can redistribute it and/or
   1756 //    modify it under the terms of the GNU Lesser General Public
   1757 //    License as published by the Free Software Foundation; either
   1758 //    version 2.1 of the License, or (at your option) any later version.
   1759 //
   1760 //    The GNU C Library is distributed in the hope that it will be useful,
   1761 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1762 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1763 //    Lesser General Public License for more details.
   1764 //
   1765 //    You should have received a copy of the GNU Lesser General Public
   1766 //    License along with the GNU C Library.  If not, see
   1767 //    <https://www.gnu.org/licenses/>.
   1768 
   1769 // Endian macros for string.h functions
   1770 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1771 //    This file is part of the GNU C Library.
   1772 //
   1773 //    The GNU C Library is free software; you can redistribute it and/or
   1774 //    modify it under the terms of the GNU Lesser General Public
   1775 //    License as published by the Free Software Foundation; either
   1776 //    version 2.1 of the License, or (at your option) any later version.
   1777 //
   1778 //    The GNU C Library is distributed in the hope that it will be useful,
   1779 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1780 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1781 //    Lesser General Public License for more details.
   1782 //
   1783 //    You should have received a copy of the GNU Lesser General Public
   1784 //    License along with the GNU C Library; if not, see
   1785 //    <http://www.gnu.org/licenses/>.
   1786 
   1787 // Determine the wordsize from the preprocessor defines.
   1788 //
   1789 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   1790 //    This file is part of the GNU C Library.
   1791 //
   1792 //    The GNU C Library is free software; you can redistribute it and/or
   1793 //    modify it under the terms of the GNU Lesser General Public
   1794 //    License as published by the Free Software Foundation; either
   1795 //    version 2.1 of the License, or (at your option) any later version.
   1796 //
   1797 //    The GNU C Library is distributed in the hope that it will be useful,
   1798 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1799 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1800 //    Lesser General Public License for more details.
   1801 //
   1802 //    You should have received a copy of the GNU Lesser General Public
   1803 //    License along with the GNU C Library; if not, see
   1804 //    <https://www.gnu.org/licenses/>.
   1805 
   1806 // 64-bit libc uses the kernel's 'struct stat', accessed via the
   1807 //    stat() syscall; 32-bit libc uses the kernel's 'struct stat64'
   1808 //    and accesses it via the stat64() syscall.  All the various
   1809 //    APIs offered by libc use the kernel shape for their struct stat
   1810 //    structure; the only difference is that 32-bit programs not
   1811 //    using __USE_FILE_OFFSET64 only see the low 32 bits of some
   1812 //    of the fields (specifically st_ino, st_size, and st_blocks).
   1813 
   1814 // Versions of the `xmknod' interface.
   1815 
   1816 type Stat = struct {
   1817 	Fst_dev     X__dev_t
   1818 	Fst_ino     X__ino64_t
   1819 	Fst_mode    X__mode_t
   1820 	Fst_nlink   X__nlink_t
   1821 	Fst_uid     X__uid_t
   1822 	Fst_gid     X__gid_t
   1823 	Fst_rdev    X__dev_t
   1824 	F__pad1     X__dev_t
   1825 	Fst_size    X__off64_t
   1826 	Fst_blksize X__blksize_t
   1827 	F__pad2     int32
   1828 	Fst_blocks  X__blkcnt64_t
   1829 	Fst_atim    struct {
   1830 		Ftv_sec  X__time_t
   1831 		Ftv_nsec X__syscall_slong_t
   1832 	}
   1833 	Fst_mtim struct {
   1834 		Ftv_sec  X__time_t
   1835 		Ftv_nsec X__syscall_slong_t
   1836 	}
   1837 	Fst_ctim struct {
   1838 		Ftv_sec  X__time_t
   1839 		Ftv_nsec X__syscall_slong_t
   1840 	}
   1841 	F__glibc_reserved [2]int32
   1842 } /* stat.h:58:1 */
   1843 
   1844 // File tree traversal functions declarations.
   1845 //    Copyright (C) 1994-2020 Free Software Foundation, Inc.
   1846 //    This file is part of the GNU C Library.
   1847 //
   1848 //    The GNU C Library is free software; you can redistribute it and/or
   1849 //    modify it under the terms of the GNU Lesser General Public
   1850 //    License as published by the Free Software Foundation; either
   1851 //    version 2.1 of the License, or (at your option) any later version.
   1852 //
   1853 //    The GNU C Library is distributed in the hope that it will be useful,
   1854 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1855 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1856 //    Lesser General Public License for more details.
   1857 //
   1858 //    You should have received a copy of the GNU Lesser General Public
   1859 //    License along with the GNU C Library; if not, see
   1860 //    <https://www.gnu.org/licenses/>.
   1861 
   1862 // Copyright (c) 1989, 1993
   1863 //	The Regents of the University of California.  All rights reserved.
   1864 //
   1865 // Redistribution and use in source and binary forms, with or without
   1866 // modification, are permitted provided that the following conditions
   1867 // are met:
   1868 // 1. Redistributions of source code must retain the above copyright
   1869 //    notice, this list of conditions and the following disclaimer.
   1870 // 2. Redistributions in binary form must reproduce the above copyright
   1871 //    notice, this list of conditions and the following disclaimer in the
   1872 //    documentation and/or other materials provided with the distribution.
   1873 // 4. Neither the name of the University nor the names of its contributors
   1874 //    may be used to endorse or promote products derived from this software
   1875 //    without specific prior written permission.
   1876 //
   1877 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1878 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1879 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1880 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1881 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1882 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1883 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1884 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1885 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1886 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1887 // SUCH DAMAGE.
   1888 //
   1889 //	@(#)fts.h	8.3 (Berkeley) 8/14/94
   1890 
   1891 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1892 //    This file is part of the GNU C Library.
   1893 //
   1894 //    The GNU C Library is free software; you can redistribute it and/or
   1895 //    modify it under the terms of the GNU Lesser General Public
   1896 //    License as published by the Free Software Foundation; either
   1897 //    version 2.1 of the License, or (at your option) any later version.
   1898 //
   1899 //    The GNU C Library is distributed in the hope that it will be useful,
   1900 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1901 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1902 //    Lesser General Public License for more details.
   1903 //
   1904 //    You should have received a copy of the GNU Lesser General Public
   1905 //    License along with the GNU C Library; if not, see
   1906 //    <https://www.gnu.org/licenses/>.
   1907 
   1908 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1909 //    This file is part of the GNU C Library.
   1910 //
   1911 //    The GNU C Library is free software; you can redistribute it and/or
   1912 //    modify it under the terms of the GNU Lesser General Public
   1913 //    License as published by the Free Software Foundation; either
   1914 //    version 2.1 of the License, or (at your option) any later version.
   1915 //
   1916 //    The GNU C Library is distributed in the hope that it will be useful,
   1917 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1918 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1919 //    Lesser General Public License for more details.
   1920 //
   1921 //    You should have received a copy of the GNU Lesser General Public
   1922 //    License along with the GNU C Library; if not, see
   1923 //    <https://www.gnu.org/licenses/>.
   1924 
   1925 //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   1926 
   1927 type X_ftsent = struct {
   1928 	Ffts_cycle   uintptr
   1929 	Ffts_parent  uintptr
   1930 	Ffts_link    uintptr
   1931 	Ffts_number  int64
   1932 	Ffts_pointer uintptr
   1933 	Ffts_accpath uintptr
   1934 	Ffts_path    uintptr
   1935 	Ffts_errno   int32
   1936 	Ffts_symfd   int32
   1937 	Ffts_pathlen uint16
   1938 	Ffts_namelen uint16
   1939 	F__ccgo_pad1 [4]byte
   1940 	Ffts_ino     Ino_t
   1941 	Ffts_dev     Dev_t
   1942 	Ffts_nlink   Nlink_t
   1943 	Ffts_level   int16
   1944 	Ffts_info    uint16
   1945 	Ffts_flags   uint16
   1946 	Ffts_instr   uint16
   1947 	F__ccgo_pad2 [4]byte
   1948 	Ffts_statp   uintptr
   1949 	Ffts_name    [1]uint8
   1950 	F__ccgo_pad3 [7]byte
   1951 } /* fts.h:58:2 */
   1952 
   1953 // File tree traversal functions declarations.
   1954 //    Copyright (C) 1994-2020 Free Software Foundation, Inc.
   1955 //    This file is part of the GNU C Library.
   1956 //
   1957 //    The GNU C Library is free software; you can redistribute it and/or
   1958 //    modify it under the terms of the GNU Lesser General Public
   1959 //    License as published by the Free Software Foundation; either
   1960 //    version 2.1 of the License, or (at your option) any later version.
   1961 //
   1962 //    The GNU C Library is distributed in the hope that it will be useful,
   1963 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1964 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1965 //    Lesser General Public License for more details.
   1966 //
   1967 //    You should have received a copy of the GNU Lesser General Public
   1968 //    License along with the GNU C Library; if not, see
   1969 //    <https://www.gnu.org/licenses/>.
   1970 
   1971 // Copyright (c) 1989, 1993
   1972 //	The Regents of the University of California.  All rights reserved.
   1973 //
   1974 // Redistribution and use in source and binary forms, with or without
   1975 // modification, are permitted provided that the following conditions
   1976 // are met:
   1977 // 1. Redistributions of source code must retain the above copyright
   1978 //    notice, this list of conditions and the following disclaimer.
   1979 // 2. Redistributions in binary form must reproduce the above copyright
   1980 //    notice, this list of conditions and the following disclaimer in the
   1981 //    documentation and/or other materials provided with the distribution.
   1982 // 4. Neither the name of the University nor the names of its contributors
   1983 //    may be used to endorse or promote products derived from this software
   1984 //    without specific prior written permission.
   1985 //
   1986 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1987 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1988 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1989 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1990 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1991 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1992 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1993 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1994 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1995 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1996 // SUCH DAMAGE.
   1997 //
   1998 //	@(#)fts.h	8.3 (Berkeley) 8/14/94
   1999 
   2000 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   2001 //    This file is part of the GNU C Library.
   2002 //
   2003 //    The GNU C Library is free software; you can redistribute it and/or
   2004 //    modify it under the terms of the GNU Lesser General Public
   2005 //    License as published by the Free Software Foundation; either
   2006 //    version 2.1 of the License, or (at your option) any later version.
   2007 //
   2008 //    The GNU C Library is distributed in the hope that it will be useful,
   2009 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2010 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2011 //    Lesser General Public License for more details.
   2012 //
   2013 //    You should have received a copy of the GNU Lesser General Public
   2014 //    License along with the GNU C Library; if not, see
   2015 //    <https://www.gnu.org/licenses/>.
   2016 
   2017 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   2018 //    This file is part of the GNU C Library.
   2019 //
   2020 //    The GNU C Library is free software; you can redistribute it and/or
   2021 //    modify it under the terms of the GNU Lesser General Public
   2022 //    License as published by the Free Software Foundation; either
   2023 //    version 2.1 of the License, or (at your option) any later version.
   2024 //
   2025 //    The GNU C Library is distributed in the hope that it will be useful,
   2026 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   2027 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   2028 //    Lesser General Public License for more details.
   2029 //
   2030 //    You should have received a copy of the GNU Lesser General Public
   2031 //    License along with the GNU C Library; if not, see
   2032 //    <https://www.gnu.org/licenses/>.
   2033 
   2034 //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   2035 
   2036 type FTS = struct {
   2037 	Ffts_cur     uintptr
   2038 	Ffts_child   uintptr
   2039 	Ffts_array   uintptr
   2040 	Ffts_dev     Dev_t
   2041 	Ffts_path    uintptr
   2042 	Ffts_rfd     int32
   2043 	Ffts_pathlen int32
   2044 	Ffts_nitems  int32
   2045 	F__ccgo_pad1 [4]byte
   2046 	Ffts_compar  uintptr
   2047 	Ffts_options int32
   2048 	F__ccgo_pad2 [4]byte
   2049 } /* fts.h:81:3 */
   2050 
   2051 type FTSENT = X_ftsent /* fts.h:147:3 */
   2052 
   2053 var _ uint8 /* gen.c:5:13: */