gtsocial-umbx

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

fts_linux_riscv64.go (95451B)


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