gtsocial-umbx

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

stdlib_linux_arm64.go (68825B)


      1 // Code generated by 'ccgo stdlib/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 stdlib/stdlib_linux_arm64.go -pkgname stdlib', DO NOT EDIT.
      2 
      3 package stdlib
      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 	BIG_ENDIAN                   = 4321
     19 	BYTE_ORDER                   = 1234
     20 	EXIT_FAILURE                 = 1
     21 	EXIT_SUCCESS                 = 0
     22 	FD_SETSIZE                   = 1024
     23 	LITTLE_ENDIAN                = 1234
     24 	PDP_ENDIAN                   = 3412
     25 	RAND_MAX                     = 2147483647
     26 	WCONTINUED                   = 8
     27 	WEXITED                      = 4
     28 	WNOHANG                      = 1
     29 	WNOWAIT                      = 0x01000000
     30 	WSTOPPED                     = 2
     31 	WUNTRACED                    = 2
     32 	X_ALLOCA_H                   = 1
     33 	X_ATFILE_SOURCE              = 1
     34 	X_BITS_BYTESWAP_H            = 1
     35 	X_BITS_ENDIANNESS_H          = 1
     36 	X_BITS_ENDIAN_H              = 1
     37 	X_BITS_FLOATN_COMMON_H       = 0
     38 	X_BITS_FLOATN_H              = 0
     39 	X_BITS_PTHREADTYPES_ARCH_H   = 1
     40 	X_BITS_PTHREADTYPES_COMMON_H = 1
     41 	X_BITS_STDINT_INTN_H         = 1
     42 	X_BITS_TIME64_H              = 1
     43 	X_BITS_TYPESIZES_H           = 1
     44 	X_BITS_TYPES_H               = 1
     45 	X_BITS_UINTN_IDENTITY_H      = 1
     46 	X_BSD_SIZE_T_                = 0
     47 	X_BSD_SIZE_T_DEFINED_        = 0
     48 	X_DEFAULT_SOURCE             = 1
     49 	X_ENDIAN_H                   = 1
     50 	X_FEATURES_H                 = 1
     51 	X_FILE_OFFSET_BITS           = 64
     52 	X_GCC_SIZE_T                 = 0
     53 	X_GCC_WCHAR_T                = 0
     54 	X_LP64                       = 1
     55 	X_POSIX_C_SOURCE             = 200809
     56 	X_POSIX_SOURCE               = 1
     57 	X_RWLOCK_INTERNAL_H          = 0
     58 	X_SIZET_                     = 0
     59 	X_SIZE_T                     = 0
     60 	X_SIZE_T_                    = 0
     61 	X_SIZE_T_DECLARED            = 0
     62 	X_SIZE_T_DEFINED             = 0
     63 	X_SIZE_T_DEFINED_            = 0
     64 	X_STDC_PREDEF_H              = 1
     65 	X_STDLIB_H                   = 1
     66 	X_STRUCT_TIMESPEC            = 1
     67 	X_SYS_CDEFS_H                = 1
     68 	X_SYS_SELECT_H               = 1
     69 	X_SYS_SIZE_T_H               = 0
     70 	X_SYS_TYPES_H                = 1
     71 	X_THREAD_MUTEX_INTERNAL_H    = 1
     72 	X_THREAD_SHARED_TYPES_H      = 1
     73 	X_T_SIZE                     = 0
     74 	X_T_SIZE_                    = 0
     75 	X_T_WCHAR                    = 0
     76 	X_T_WCHAR_                   = 0
     77 	X_WCHAR_T                    = 0
     78 	X_WCHAR_T_                   = 0
     79 	X_WCHAR_T_DECLARED           = 0
     80 	X_WCHAR_T_DEFINED            = 0
     81 	X_WCHAR_T_DEFINED_           = 0
     82 	X_WCHAR_T_H                  = 0
     83 	Linux                        = 1
     84 	Unix                         = 1
     85 )
     86 
     87 // A null pointer constant.
     88 
     89 // XPG requires a few symbols from <sys/wait.h> being defined.
     90 // Definitions of flag bits for `waitpid' et al.
     91 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
     92 //    This file is part of the GNU C Library.
     93 //
     94 //    The GNU C Library is free software; you can redistribute it and/or
     95 //    modify it under the terms of the GNU Lesser General Public
     96 //    License as published by the Free Software Foundation; either
     97 //    version 2.1 of the License, or (at your option) any later version.
     98 //
     99 //    The GNU C Library is distributed in the hope that it will be useful,
    100 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    101 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    102 //    Lesser General Public License for more details.
    103 //
    104 //    You should have received a copy of the GNU Lesser General Public
    105 //    License along with the GNU C Library; if not, see
    106 //    <https://www.gnu.org/licenses/>.
    107 
    108 // Bits in the third argument to `waitpid'.
    109 
    110 // Bits in the fourth argument to `waitid'.
    111 
    112 // The following values are used by the `waitid' function.
    113 
    114 // The Linux kernel defines these bare, rather than an enum,
    115 //    which causes a conflict if the include order is reversed.
    116 
    117 const ( /* waitflags.h:52:1: */
    118 	P_ALL  = 0 // Wait for any child.
    119 	P_PID  = 1 // Wait for specified process.
    120 	P_PGID = 2
    121 )
    122 
    123 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    124 
    125 type Size_t = uint64 /* <builtin>:9:23 */
    126 
    127 type Wchar_t = uint32 /* <builtin>:15:24 */
    128 
    129 type X__int128_t = struct {
    130 	Flo int64
    131 	Fhi int64
    132 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    133 type X__uint128_t = struct {
    134 	Flo uint64
    135 	Fhi uint64
    136 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    137 
    138 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    139 type X__float128 = float64        /* <builtin>:47:21 */
    140 
    141 // A null pointer constant.
    142 
    143 // XPG requires a few symbols from <sys/wait.h> being defined.
    144 // Definitions of flag bits for `waitpid' et al.
    145 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
    146 //    This file is part of the GNU C Library.
    147 //
    148 //    The GNU C Library is free software; you can redistribute it and/or
    149 //    modify it under the terms of the GNU Lesser General Public
    150 //    License as published by the Free Software Foundation; either
    151 //    version 2.1 of the License, or (at your option) any later version.
    152 //
    153 //    The GNU C Library is distributed in the hope that it will be useful,
    154 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    155 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    156 //    Lesser General Public License for more details.
    157 //
    158 //    You should have received a copy of the GNU Lesser General Public
    159 //    License along with the GNU C Library; if not, see
    160 //    <https://www.gnu.org/licenses/>.
    161 
    162 // Bits in the third argument to `waitpid'.
    163 
    164 // Bits in the fourth argument to `waitid'.
    165 
    166 // The following values are used by the `waitid' function.
    167 
    168 // The Linux kernel defines these bare, rather than an enum,
    169 //    which causes a conflict if the include order is reversed.
    170 
    171 type Idtype_t = uint32 /* waitflags.h:57:3 */
    172 // Definitions of status bits for `wait' et al.
    173 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
    174 //    This file is part of the GNU C Library.
    175 //
    176 //    The GNU C Library is free software; you can redistribute it and/or
    177 //    modify it under the terms of the GNU Lesser General Public
    178 //    License as published by the Free Software Foundation; either
    179 //    version 2.1 of the License, or (at your option) any later version.
    180 //
    181 //    The GNU C Library is distributed in the hope that it will be useful,
    182 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    183 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    184 //    Lesser General Public License for more details.
    185 //
    186 //    You should have received a copy of the GNU Lesser General Public
    187 //    License along with the GNU C Library; if not, see
    188 //    <https://www.gnu.org/licenses/>.
    189 
    190 // Everything extant so far uses these same bits.
    191 
    192 // If WIFEXITED(STATUS), the low-order 8 bits of the status.
    193 
    194 // If WIFSIGNALED(STATUS), the terminating signal.
    195 
    196 // If WIFSTOPPED(STATUS), the signal that stopped the child.
    197 
    198 // Nonzero if STATUS indicates normal termination.
    199 
    200 // Nonzero if STATUS indicates termination by a signal.
    201 
    202 // Nonzero if STATUS indicates the child is stopped.
    203 
    204 // Nonzero if STATUS indicates the child continued after a stop.  We only
    205 //    define this if <bits/waitflags.h> provides the WCONTINUED flag bit.
    206 
    207 // Nonzero if STATUS indicates the child dumped core.
    208 
    209 // Macros for constructing status values.
    210 
    211 // Define the macros <sys/wait.h> also would define this way.
    212 
    213 // _FloatN API tests for enablement.
    214 // Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
    215 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
    216 //    This file is part of the GNU C Library.
    217 //
    218 //    The GNU C Library is free software; you can redistribute it and/or
    219 //    modify it under the terms of the GNU Lesser General Public
    220 //    License as published by the Free Software Foundation; either
    221 //    version 2.1 of the License, or (at your option) any later version.
    222 //
    223 //    The GNU C Library is distributed in the hope that it will be useful,
    224 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    225 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    226 //    Lesser General Public License for more details.
    227 //
    228 //    You should have received a copy of the GNU Lesser General Public
    229 //    License along with the GNU C Library; if not, see
    230 //    <https://www.gnu.org/licenses/>.
    231 
    232 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    233 //    This file is part of the GNU C Library.
    234 //
    235 //    The GNU C Library is free software; you can redistribute it and/or
    236 //    modify it under the terms of the GNU Lesser General Public
    237 //    License as published by the Free Software Foundation; either
    238 //    version 2.1 of the License, or (at your option) any later version.
    239 //
    240 //    The GNU C Library is distributed in the hope that it will be useful,
    241 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    242 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    243 //    Lesser General Public License for more details.
    244 //
    245 //    You should have received a copy of the GNU Lesser General Public
    246 //    License along with the GNU C Library; if not, see
    247 //    <https://www.gnu.org/licenses/>.
    248 
    249 // Properties of long double type.  ldbl-128 version.
    250 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    251 //    This file is part of the GNU C Library.
    252 //
    253 //    The GNU C Library is free software; you can redistribute it and/or
    254 //    modify it under the terms of the GNU Lesser General Public
    255 //    License  published by the Free Software Foundation; either
    256 //    version 2.1 of the License, or (at your option) any later version.
    257 //
    258 //    The GNU C Library is distributed in the hope that it will be useful,
    259 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    260 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    261 //    Lesser General Public License for more details.
    262 //
    263 //    You should have received a copy of the GNU Lesser General Public
    264 //    License along with the GNU C Library; if not, see
    265 //    <https://www.gnu.org/licenses/>.
    266 
    267 // long double is distinct from double, so there is nothing to
    268 //    define here.
    269 
    270 // Defined to 1 if the current compiler invocation provides a
    271 //    floating-point type with the IEEE 754 binary128 format, and this
    272 //    glibc includes corresponding *f128 interfaces for it.
    273 
    274 // Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
    275 //    from the default float, double and long double types in this glibc.
    276 
    277 // Defined to 1 if the current compiler invocation provides a
    278 //    floating-point type with the right format for _Float64x, and this
    279 //    glibc includes corresponding *f64x interfaces for it.
    280 
    281 // Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
    282 //    of long double.  Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
    283 //    the format of _Float128, which must be different from that of long
    284 //    double.
    285 
    286 // Defined to concatenate the literal suffix to be used with _Float128
    287 //    types, if __HAVE_FLOAT128 is 1.
    288 
    289 // Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
    290 
    291 // The remaining of this file provides support for older compilers.
    292 
    293 // The type _Float128 exists only since GCC 7.0.
    294 
    295 // Various built-in functions do not exist before GCC 7.0.
    296 
    297 // Macros to control TS 18661-3 glibc features where the same
    298 //    definitions are appropriate for all platforms.
    299 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
    300 //    This file is part of the GNU C Library.
    301 //
    302 //    The GNU C Library is free software; you can redistribute it and/or
    303 //    modify it under the terms of the GNU Lesser General Public
    304 //    License as published by the Free Software Foundation; either
    305 //    version 2.1 of the License, or (at your option) any later version.
    306 //
    307 //    The GNU C Library is distributed in the hope that it will be useful,
    308 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    309 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    310 //    Lesser General Public License for more details.
    311 //
    312 //    You should have received a copy of the GNU Lesser General Public
    313 //    License along with the GNU C Library; if not, see
    314 //    <https://www.gnu.org/licenses/>.
    315 
    316 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    317 //    This file is part of the GNU C Library.
    318 //
    319 //    The GNU C Library is free software; you can redistribute it and/or
    320 //    modify it under the terms of the GNU Lesser General Public
    321 //    License as published by the Free Software Foundation; either
    322 //    version 2.1 of the License, or (at your option) any later version.
    323 //
    324 //    The GNU C Library is distributed in the hope that it will be useful,
    325 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    326 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    327 //    Lesser General Public License for more details.
    328 //
    329 //    You should have received a copy of the GNU Lesser General Public
    330 //    License along with the GNU C Library; if not, see
    331 //    <https://www.gnu.org/licenses/>.
    332 
    333 // Properties of long double type.  ldbl-128 version.
    334 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    335 //    This file is part of the GNU C Library.
    336 //
    337 //    The GNU C Library is free software; you can redistribute it and/or
    338 //    modify it under the terms of the GNU Lesser General Public
    339 //    License  published by the Free Software Foundation; either
    340 //    version 2.1 of the License, or (at your option) any later version.
    341 //
    342 //    The GNU C Library is distributed in the hope that it will be useful,
    343 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    344 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    345 //    Lesser General Public License for more details.
    346 //
    347 //    You should have received a copy of the GNU Lesser General Public
    348 //    License along with the GNU C Library; if not, see
    349 //    <https://www.gnu.org/licenses/>.
    350 
    351 // long double is distinct from double, so there is nothing to
    352 //    define here.
    353 
    354 // This header should be included at the bottom of each bits/floatn.h.
    355 //    It defines the following macros for each _FloatN and _FloatNx type,
    356 //    where the same definitions, or definitions based only on the macros
    357 //    in bits/floatn.h, are appropriate for all glibc configurations.
    358 
    359 // Defined to 1 if the current compiler invocation provides a
    360 //    floating-point type with the right format for this type, and this
    361 //    glibc includes corresponding *fN or *fNx interfaces for it.
    362 
    363 // Defined to 1 if the corresponding __HAVE_<type> macro is 1 and the
    364 //    type is the first with its format in the sequence of (the default
    365 //    choices for) float, double, long double, _Float16, _Float32,
    366 //    _Float64, _Float128, _Float32x, _Float64x, _Float128x for this
    367 //    glibc; that is, if functions present once per floating-point format
    368 //    rather than once per type are present for this type.
    369 //
    370 //    All configurations supported by glibc have _Float32 the same format
    371 //    as float, _Float64 and _Float32x the same format as double, the
    372 //    _Float64x the same format as either long double or _Float128.  No
    373 //    configurations support _Float128x or, as of GCC 7, have compiler
    374 //    support for a type meeting the requirements for _Float128x.
    375 
    376 // Defined to 1 if the corresponding _FloatN type is not binary compatible
    377 //    with the corresponding ISO C type in the current compilation unit as
    378 //    opposed to __HAVE_DISTINCT_FLOATN, which indicates the default types built
    379 //    in glibc.
    380 
    381 // Defined to 1 if any _FloatN or _FloatNx types that are not
    382 //    ABI-distinct are however distinct types at the C language level (so
    383 //    for the purposes of __builtin_types_compatible_p and _Generic).
    384 
    385 // Defined to concatenate the literal suffix to be used with _FloatN
    386 //    or _FloatNx types, if __HAVE_<type> is 1.  The corresponding
    387 //    literal suffixes exist since GCC 7, for C only.
    388 
    389 // Defined to a complex type if __HAVE_<type> is 1.
    390 
    391 // The remaining of this file provides support for older compilers.
    392 
    393 // If double, long double and _Float64 all have the same set of
    394 //    values, TS 18661-3 requires the usual arithmetic conversions on
    395 //    long double and _Float64 to produce _Float64.  For this to be the
    396 //    case when building with a compiler without a distinct _Float64
    397 //    type, _Float64 must be a typedef for long double, not for
    398 //    double.
    399 
    400 // Returned by `div'.
    401 type Div_t = struct {
    402 	Fquot int32
    403 	Frem  int32
    404 } /* stdlib.h:62:5 */
    405 
    406 // Returned by `ldiv'.
    407 type Ldiv_t = struct {
    408 	Fquot int64
    409 	Frem  int64
    410 } /* stdlib.h:70:5 */
    411 
    412 // Returned by `lldiv'.
    413 type Lldiv_t = struct {
    414 	Fquot int64
    415 	Frem  int64
    416 } /* stdlib.h:80:5 */
    417 
    418 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    419 //    This file is part of the GNU C Library.
    420 //
    421 //    The GNU C Library is free software; you can redistribute it and/or
    422 //    modify it under the terms of the GNU Lesser General Public
    423 //    License as published by the Free Software Foundation; either
    424 //    version 2.1 of the License, or (at your option) any later version.
    425 //
    426 //    The GNU C Library is distributed in the hope that it will be useful,
    427 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    428 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    429 //    Lesser General Public License for more details.
    430 //
    431 //    You should have received a copy of the GNU Lesser General Public
    432 //    License along with the GNU C Library; if not, see
    433 //    <https://www.gnu.org/licenses/>.
    434 
    435 //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
    436 
    437 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    438 //    This file is part of the GNU C Library.
    439 //
    440 //    The GNU C Library is free software; you can redistribute it and/or
    441 //    modify it under the terms of the GNU Lesser General Public
    442 //    License as published by the Free Software Foundation; either
    443 //    version 2.1 of the License, or (at your option) any later version.
    444 //
    445 //    The GNU C Library is distributed in the hope that it will be useful,
    446 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    447 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    448 //    Lesser General Public License for more details.
    449 //
    450 //    You should have received a copy of the GNU Lesser General Public
    451 //    License along with the GNU C Library; if not, see
    452 //    <https://www.gnu.org/licenses/>.
    453 
    454 // bits/types.h -- definitions of __*_t types underlying *_t types.
    455 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    456 //    This file is part of the GNU C Library.
    457 //
    458 //    The GNU C Library is free software; you can redistribute it and/or
    459 //    modify it under the terms of the GNU Lesser General Public
    460 //    License as published by the Free Software Foundation; either
    461 //    version 2.1 of the License, or (at your option) any later version.
    462 //
    463 //    The GNU C Library is distributed in the hope that it will be useful,
    464 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    465 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    466 //    Lesser General Public License for more details.
    467 //
    468 //    You should have received a copy of the GNU Lesser General Public
    469 //    License along with the GNU C Library; if not, see
    470 //    <https://www.gnu.org/licenses/>.
    471 
    472 // Never include this file directly; use <sys/types.h> instead.
    473 
    474 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    475 //    This file is part of the GNU C Library.
    476 //
    477 //    The GNU C Library is free software; you can redistribute it and/or
    478 //    modify it under the terms of the GNU Lesser General Public
    479 //    License as published by the Free Software Foundation; either
    480 //    version 2.1 of the License, or (at your option) any later version.
    481 //
    482 //    The GNU C Library is distributed in the hope that it will be useful,
    483 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    484 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    485 //    Lesser General Public License for more details.
    486 //
    487 //    You should have received a copy of the GNU Lesser General Public
    488 //    License along with the GNU C Library; if not, see
    489 //    <https://www.gnu.org/licenses/>.
    490 
    491 // Determine the wordsize from the preprocessor defines.
    492 //
    493 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    494 //    This file is part of the GNU C Library.
    495 //
    496 //    The GNU C Library is free software; you can redistribute it and/or
    497 //    modify it under the terms of the GNU Lesser General Public
    498 //    License as published by the Free Software Foundation; either
    499 //    version 2.1 of the License, or (at your option) any later version.
    500 //
    501 //    The GNU C Library is distributed in the hope that it will be useful,
    502 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    503 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    504 //    Lesser General Public License for more details.
    505 //
    506 //    You should have received a copy of the GNU Lesser General Public
    507 //    License along with the GNU C Library; if not, see
    508 //    <https://www.gnu.org/licenses/>.
    509 
    510 // Bit size of the time_t type at glibc build time, general case.
    511 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
    512 //    This file is part of the GNU C Library.
    513 //
    514 //    The GNU C Library is free software; you can redistribute it and/or
    515 //    modify it under the terms of the GNU Lesser General Public
    516 //    License as published by the Free Software Foundation; either
    517 //    version 2.1 of the License, or (at your option) any later version.
    518 //
    519 //    The GNU C Library is distributed in the hope that it will be useful,
    520 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    521 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    522 //    Lesser General Public License for more details.
    523 //
    524 //    You should have received a copy of the GNU Lesser General Public
    525 //    License along with the GNU C Library; if not, see
    526 //    <https://www.gnu.org/licenses/>.
    527 
    528 // Determine the wordsize from the preprocessor defines.
    529 //
    530 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    531 //    This file is part of the GNU C Library.
    532 //
    533 //    The GNU C Library is free software; you can redistribute it and/or
    534 //    modify it under the terms of the GNU Lesser General Public
    535 //    License as published by the Free Software Foundation; either
    536 //    version 2.1 of the License, or (at your option) any later version.
    537 //
    538 //    The GNU C Library is distributed in the hope that it will be useful,
    539 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    540 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    541 //    Lesser General Public License for more details.
    542 //
    543 //    You should have received a copy of the GNU Lesser General Public
    544 //    License along with the GNU C Library; if not, see
    545 //    <https://www.gnu.org/licenses/>.
    546 
    547 // Size in bits of the 'time_t' type of the default ABI.
    548 
    549 // Convenience types.
    550 type X__u_char = uint8   /* types.h:31:23 */
    551 type X__u_short = uint16 /* types.h:32:28 */
    552 type X__u_int = uint32   /* types.h:33:22 */
    553 type X__u_long = uint64  /* types.h:34:27 */
    554 
    555 // Fixed-size types, underlying types depend on word size and compiler.
    556 type X__int8_t = int8     /* types.h:37:21 */
    557 type X__uint8_t = uint8   /* types.h:38:23 */
    558 type X__int16_t = int16   /* types.h:39:26 */
    559 type X__uint16_t = uint16 /* types.h:40:28 */
    560 type X__int32_t = int32   /* types.h:41:20 */
    561 type X__uint32_t = uint32 /* types.h:42:22 */
    562 type X__int64_t = int64   /* types.h:44:25 */
    563 type X__uint64_t = uint64 /* types.h:45:27 */
    564 
    565 // Smallest types with at least a given width.
    566 type X__int_least8_t = X__int8_t     /* types.h:52:18 */
    567 type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
    568 type X__int_least16_t = X__int16_t   /* types.h:54:19 */
    569 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
    570 type X__int_least32_t = X__int32_t   /* types.h:56:19 */
    571 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
    572 type X__int_least64_t = X__int64_t   /* types.h:58:19 */
    573 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
    574 
    575 // quad_t is also 64 bits.
    576 type X__quad_t = int64    /* types.h:63:18 */
    577 type X__u_quad_t = uint64 /* types.h:64:27 */
    578 
    579 // Largest integral types.
    580 type X__intmax_t = int64   /* types.h:72:18 */
    581 type X__uintmax_t = uint64 /* types.h:73:27 */
    582 
    583 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
    584 //    macros for each of the OS types we define below.  The definitions
    585 //    of those macros must use the following macros for underlying types.
    586 //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
    587 //    variants of each of the following integer types on this machine.
    588 //
    589 // 	16		-- "natural" 16-bit type (always short)
    590 // 	32		-- "natural" 32-bit type (always int)
    591 // 	64		-- "natural" 64-bit type (long or long long)
    592 // 	LONG32		-- 32-bit type, traditionally long
    593 // 	QUAD		-- 64-bit type, traditionally long long
    594 // 	WORD		-- natural type of __WORDSIZE bits (int or long)
    595 // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
    596 //
    597 //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
    598 //    conventional uses of `long' or `long long' type modifiers match the
    599 //    types we define, even when a less-adorned type would be the same size.
    600 //    This matters for (somewhat) portably writing printf/scanf formats for
    601 //    these types, where using the appropriate l or ll format modifiers can
    602 //    make the typedefs and the formats match up across all GNU platforms.  If
    603 //    we used `long' when it's 64 bits where `long long' is expected, then the
    604 //    compiler would warn about the formats not matching the argument types,
    605 //    and the programmer changing them to shut up the compiler would break the
    606 //    program's portability.
    607 //
    608 //    Here we assume what is presently the case in all the GCC configurations
    609 //    we support: long long is always 64 bits, long is always word/address size,
    610 //    and int is always 32 bits.
    611 
    612 // No need to mark the typedef with __extension__.
    613 // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
    614 //    Copyright (C) 2011-2020 Free Software Foundation, Inc.
    615 //    This file is part of the GNU C Library.
    616 //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
    617 //
    618 //    The GNU C Library is free software; you can redistribute it and/or
    619 //    modify it under the terms of the GNU Lesser General Public
    620 //    License as published by the Free Software Foundation; either
    621 //    version 2.1 of the License, or (at your option) any later version.
    622 //
    623 //    The GNU C Library is distributed in the hope that it will be useful,
    624 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    625 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    626 //    Lesser General Public License for more details.
    627 //
    628 //    You should have received a copy of the GNU Lesser General Public
    629 //    License along with the GNU C Library.  If not, see
    630 //    <https://www.gnu.org/licenses/>.
    631 
    632 // See <bits/types.h> for the meaning of these macros.  This file exists so
    633 //    that <bits/types.h> need not vary across different GNU platforms.
    634 
    635 // Tell the libc code that off_t and off64_t are actually the same type
    636 //    for all ABI purposes, even if possibly expressed as different base types
    637 //    for C type-checking purposes.
    638 
    639 // Same for ino_t and ino64_t.
    640 
    641 // And for __rlim_t and __rlim64_t.
    642 
    643 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
    644 // Number of descriptors that can fit in an `fd_set'.
    645 
    646 // bits/time64.h -- underlying types for __time64_t.  Generic version.
    647 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
    648 //    This file is part of the GNU C Library.
    649 //
    650 //    The GNU C Library is free software; you can redistribute it and/or
    651 //    modify it under the terms of the GNU Lesser General Public
    652 //    License as published by the Free Software Foundation; either
    653 //    version 2.1 of the License, or (at your option) any later version.
    654 //
    655 //    The GNU C Library is distributed in the hope that it will be useful,
    656 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    657 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    658 //    Lesser General Public License for more details.
    659 //
    660 //    You should have received a copy of the GNU Lesser General Public
    661 //    License along with the GNU C Library; if not, see
    662 //    <https://www.gnu.org/licenses/>.
    663 
    664 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
    665 
    666 // If we already have 64-bit time type then use it.
    667 
    668 type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
    669 type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
    670 type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
    671 type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
    672 type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
    673 type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
    674 type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
    675 type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
    676 type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
    677 type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
    678 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
    679 type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
    680 type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
    681 type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
    682 type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
    683 type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
    684 type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
    685 type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
    686 
    687 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
    688 type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
    689 
    690 // Clock ID used in clock and timer functions.
    691 type X__clockid_t = int32 /* types.h:168:29 */
    692 
    693 // Timer ID returned by `timer_create'.
    694 type X__timer_t = uintptr /* types.h:171:12 */
    695 
    696 // Type to represent block size.
    697 type X__blksize_t = int32 /* types.h:174:29 */
    698 
    699 // Types from the Large File Support interface.
    700 
    701 // Type to count number of disk blocks.
    702 type X__blkcnt_t = int64   /* types.h:179:28 */
    703 type X__blkcnt64_t = int64 /* types.h:180:30 */
    704 
    705 // Type to count file system blocks.
    706 type X__fsblkcnt_t = uint64   /* types.h:183:30 */
    707 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
    708 
    709 // Type to count file system nodes.
    710 type X__fsfilcnt_t = uint64   /* types.h:187:30 */
    711 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
    712 
    713 // Type of miscellaneous file system fields.
    714 type X__fsword_t = int64 /* types.h:191:28 */
    715 
    716 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
    717 
    718 // Signed long type used in system calls.
    719 type X__syscall_slong_t = int64 /* types.h:196:33 */
    720 // Unsigned long type used in system calls.
    721 type X__syscall_ulong_t = uint64 /* types.h:198:33 */
    722 
    723 // These few don't really vary by system, they always correspond
    724 //
    725 //	to one of the other defined types.
    726 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
    727 type X__caddr_t = uintptr   /* types.h:203:14 */
    728 
    729 // Duplicates info from stdint.h but this is used in unistd.h.
    730 type X__intptr_t = int64 /* types.h:206:25 */
    731 
    732 // Duplicate info from sys/socket.h.
    733 type X__socklen_t = uint32 /* types.h:209:23 */
    734 
    735 // C99: An integer type that can be accessed as an atomic entity,
    736 //
    737 //	even in the presence of asynchronous interrupts.
    738 //	It is not currently necessary for this to be machine-specific.
    739 type X__sig_atomic_t = int32 /* types.h:214:13 */
    740 
    741 // Seconds since the Epoch, visible to user code when time_t is too
    742 //    narrow only for consistency with the old way of widening too-narrow
    743 //    types.  User code should never use __time64_t.
    744 
    745 type U_char = X__u_char     /* types.h:33:18 */
    746 type U_short = X__u_short   /* types.h:34:19 */
    747 type U_int = X__u_int       /* types.h:35:17 */
    748 type U_long = X__u_long     /* types.h:36:18 */
    749 type Quad_t = X__quad_t     /* types.h:37:18 */
    750 type U_quad_t = X__u_quad_t /* types.h:38:20 */
    751 type Fsid_t = X__fsid_t     /* types.h:39:18 */
    752 type Loff_t = X__loff_t     /* types.h:42:18 */
    753 
    754 type Ino_t = X__ino64_t /* types.h:49:19 */
    755 
    756 type Dev_t = X__dev_t /* types.h:59:17 */
    757 
    758 type Gid_t = X__gid_t /* types.h:64:17 */
    759 
    760 type Mode_t = X__mode_t /* types.h:69:18 */
    761 
    762 type Nlink_t = X__nlink_t /* types.h:74:19 */
    763 
    764 type Uid_t = X__uid_t /* types.h:79:17 */
    765 
    766 type Off_t = X__off64_t /* types.h:87:19 */
    767 
    768 type Pid_t = X__pid_t /* types.h:97:17 */
    769 
    770 type Id_t = X__id_t /* types.h:103:16 */
    771 
    772 type Ssize_t = X__ssize_t /* types.h:108:19 */
    773 
    774 type Daddr_t = X__daddr_t /* types.h:114:19 */
    775 type Caddr_t = X__caddr_t /* types.h:115:19 */
    776 
    777 type Key_t = X__key_t /* types.h:121:17 */
    778 
    779 // bits/types.h -- definitions of __*_t types underlying *_t types.
    780 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    781 //    This file is part of the GNU C Library.
    782 //
    783 //    The GNU C Library is free software; you can redistribute it and/or
    784 //    modify it under the terms of the GNU Lesser General Public
    785 //    License as published by the Free Software Foundation; either
    786 //    version 2.1 of the License, or (at your option) any later version.
    787 //
    788 //    The GNU C Library is distributed in the hope that it will be useful,
    789 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    790 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    791 //    Lesser General Public License for more details.
    792 //
    793 //    You should have received a copy of the GNU Lesser General Public
    794 //    License along with the GNU C Library; if not, see
    795 //    <https://www.gnu.org/licenses/>.
    796 
    797 // Never include this file directly; use <sys/types.h> instead.
    798 
    799 // Returned by `clock'.
    800 type Clock_t = X__clock_t /* clock_t.h:7:19 */
    801 
    802 // bits/types.h -- definitions of __*_t types underlying *_t types.
    803 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    804 //    This file is part of the GNU C Library.
    805 //
    806 //    The GNU C Library is free software; you can redistribute it and/or
    807 //    modify it under the terms of the GNU Lesser General Public
    808 //    License as published by the Free Software Foundation; either
    809 //    version 2.1 of the License, or (at your option) any later version.
    810 //
    811 //    The GNU C Library is distributed in the hope that it will be useful,
    812 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    813 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    814 //    Lesser General Public License for more details.
    815 //
    816 //    You should have received a copy of the GNU Lesser General Public
    817 //    License along with the GNU C Library; if not, see
    818 //    <https://www.gnu.org/licenses/>.
    819 
    820 // Never include this file directly; use <sys/types.h> instead.
    821 
    822 // Clock ID used in clock and timer functions.
    823 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
    824 
    825 // bits/types.h -- definitions of __*_t types underlying *_t types.
    826 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    827 //    This file is part of the GNU C Library.
    828 //
    829 //    The GNU C Library is free software; you can redistribute it and/or
    830 //    modify it under the terms of the GNU Lesser General Public
    831 //    License as published by the Free Software Foundation; either
    832 //    version 2.1 of the License, or (at your option) any later version.
    833 //
    834 //    The GNU C Library is distributed in the hope that it will be useful,
    835 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    836 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    837 //    Lesser General Public License for more details.
    838 //
    839 //    You should have received a copy of the GNU Lesser General Public
    840 //    License along with the GNU C Library; if not, see
    841 //    <https://www.gnu.org/licenses/>.
    842 
    843 // Never include this file directly; use <sys/types.h> instead.
    844 
    845 // Returned by `time'.
    846 type Time_t = X__time_t /* time_t.h:7:18 */
    847 
    848 // bits/types.h -- definitions of __*_t types underlying *_t types.
    849 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    850 //    This file is part of the GNU C Library.
    851 //
    852 //    The GNU C Library is free software; you can redistribute it and/or
    853 //    modify it under the terms of the GNU Lesser General Public
    854 //    License as published by the Free Software Foundation; either
    855 //    version 2.1 of the License, or (at your option) any later version.
    856 //
    857 //    The GNU C Library is distributed in the hope that it will be useful,
    858 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    859 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    860 //    Lesser General Public License for more details.
    861 //
    862 //    You should have received a copy of the GNU Lesser General Public
    863 //    License along with the GNU C Library; if not, see
    864 //    <https://www.gnu.org/licenses/>.
    865 
    866 // Never include this file directly; use <sys/types.h> instead.
    867 
    868 // Timer ID returned by `timer_create'.
    869 type Timer_t = X__timer_t /* timer_t.h:7:19 */
    870 
    871 // Copyright (C) 1989-2020 Free Software Foundation, Inc.
    872 //
    873 // This file is part of GCC.
    874 //
    875 // GCC is free software; you can redistribute it and/or modify
    876 // it under the terms of the GNU General Public License as published by
    877 // the Free Software Foundation; either version 3, or (at your option)
    878 // any later version.
    879 //
    880 // GCC is distributed in the hope that it will be useful,
    881 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    882 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    883 // GNU General Public License for more details.
    884 //
    885 // Under Section 7 of GPL version 3, you are granted additional
    886 // permissions described in the GCC Runtime Library Exception, version
    887 // 3.1, as published by the Free Software Foundation.
    888 //
    889 // You should have received a copy of the GNU General Public License and
    890 // a copy of the GCC Runtime Library Exception along with this program;
    891 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    892 // <http://www.gnu.org/licenses/>.
    893 
    894 // ISO C Standard:  7.17  Common definitions  <stddef.h>
    895 
    896 // Any one of these symbols __need_* means that GNU libc
    897 //    wants us just to define one data type.  So don't define
    898 //    the symbols that indicate this file's entire job has been done.
    899 
    900 // This avoids lossage on SunOS but only if stdtypes.h comes first.
    901 //    There's no way to win with the other order!  Sun lossage.
    902 
    903 // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
    904 //    Just ignore it.
    905 
    906 // On VxWorks, <type/vxTypesBase.h> may have defined macros like
    907 //    _TYPE_size_t which will typedef size_t.  fixincludes patched the
    908 //    vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
    909 //    not defined, and so that defining this macro defines _GCC_SIZE_T.
    910 //    If we find that the macros are still defined at this point, we must
    911 //    invoke them so that the type is defined as expected.
    912 
    913 // In case nobody has defined these types, but we aren't running under
    914 //    GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
    915 //    __WCHAR_TYPE__ have reasonable values.  This can happen if the
    916 //    parts of GCC is compiled by an older compiler, that actually
    917 //    include gstddef.h, such as collect2.
    918 
    919 // Signed type of difference of two pointers.
    920 
    921 // Define this type if we are doing the whole job,
    922 //    or if we want this type in particular.
    923 
    924 // Unsigned type of `sizeof' something.
    925 
    926 // Define this type if we are doing the whole job,
    927 //    or if we want this type in particular.
    928 
    929 // Wide character type.
    930 //    Locale-writers should change this as necessary to
    931 //    be big enough to hold unique values not between 0 and 127,
    932 //    and not (wchar_t) -1, for each defined multibyte character.
    933 
    934 // Define this type if we are doing the whole job,
    935 //    or if we want this type in particular.
    936 
    937 // A null pointer constant.
    938 
    939 // Old compatibility names for C types.
    940 type Ulong = uint64  /* types.h:148:27 */
    941 type Ushort = uint16 /* types.h:149:28 */
    942 type Uint = uint32   /* types.h:150:22 */
    943 
    944 // These size-specific names are used by some of the inet code.
    945 
    946 // Define intN_t types.
    947 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
    948 //    This file is part of the GNU C Library.
    949 //
    950 //    The GNU C Library is free software; you can redistribute it and/or
    951 //    modify it under the terms of the GNU Lesser General Public
    952 //    License as published by the Free Software Foundation; either
    953 //    version 2.1 of the License, or (at your option) any later version.
    954 //
    955 //    The GNU C Library is distributed in the hope that it will be useful,
    956 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    957 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    958 //    Lesser General Public License for more details.
    959 //
    960 //    You should have received a copy of the GNU Lesser General Public
    961 //    License along with the GNU C Library; if not, see
    962 //    <https://www.gnu.org/licenses/>.
    963 
    964 // bits/types.h -- definitions of __*_t types underlying *_t types.
    965 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    966 //    This file is part of the GNU C Library.
    967 //
    968 //    The GNU C Library is free software; you can redistribute it and/or
    969 //    modify it under the terms of the GNU Lesser General Public
    970 //    License as published by the Free Software Foundation; either
    971 //    version 2.1 of the License, or (at your option) any later version.
    972 //
    973 //    The GNU C Library is distributed in the hope that it will be useful,
    974 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    975 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    976 //    Lesser General Public License for more details.
    977 //
    978 //    You should have received a copy of the GNU Lesser General Public
    979 //    License along with the GNU C Library; if not, see
    980 //    <https://www.gnu.org/licenses/>.
    981 
    982 // Never include this file directly; use <sys/types.h> instead.
    983 
    984 type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
    985 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
    986 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
    987 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
    988 
    989 // These were defined by ISO C without the first `_'.
    990 type U_int8_t = X__uint8_t   /* types.h:158:19 */
    991 type U_int16_t = X__uint16_t /* types.h:159:20 */
    992 type U_int32_t = X__uint32_t /* types.h:160:20 */
    993 type U_int64_t = X__uint64_t /* types.h:161:20 */
    994 
    995 type Register_t = int32 /* types.h:164:13 */
    996 
    997 // It also defines `fd_set' and the FD_* macros for `select'.
    998 // `fd_set' type and related macros, and `select'/`pselect' declarations.
    999 //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
   1000 //    This file is part of the GNU C Library.
   1001 //
   1002 //    The GNU C Library is free software; you can redistribute it and/or
   1003 //    modify it under the terms of the GNU Lesser General Public
   1004 //    License as published by the Free Software Foundation; either
   1005 //    version 2.1 of the License, or (at your option) any later version.
   1006 //
   1007 //    The GNU C Library is distributed in the hope that it will be useful,
   1008 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1009 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1010 //    Lesser General Public License for more details.
   1011 //
   1012 //    You should have received a copy of the GNU Lesser General Public
   1013 //    License along with the GNU C Library; if not, see
   1014 //    <https://www.gnu.org/licenses/>.
   1015 
   1016 //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
   1017 
   1018 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   1019 //    This file is part of the GNU C Library.
   1020 //
   1021 //    The GNU C Library is free software; you can redistribute it and/or
   1022 //    modify it under the terms of the GNU Lesser General Public
   1023 //    License as published by the Free Software Foundation; either
   1024 //    version 2.1 of the License, or (at your option) any later version.
   1025 //
   1026 //    The GNU C Library is distributed in the hope that it will be useful,
   1027 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1028 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1029 //    Lesser General Public License for more details.
   1030 //
   1031 //    You should have received a copy of the GNU Lesser General Public
   1032 //    License along with the GNU C Library; if not, see
   1033 //    <https://www.gnu.org/licenses/>.
   1034 
   1035 // Get definition of needed basic types.
   1036 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1037 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1038 //    This file is part of the GNU C Library.
   1039 //
   1040 //    The GNU C Library is free software; you can redistribute it and/or
   1041 //    modify it under the terms of the GNU Lesser General Public
   1042 //    License as published by the Free Software Foundation; either
   1043 //    version 2.1 of the License, or (at your option) any later version.
   1044 //
   1045 //    The GNU C Library is distributed in the hope that it will be useful,
   1046 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1047 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1048 //    Lesser General Public License for more details.
   1049 //
   1050 //    You should have received a copy of the GNU Lesser General Public
   1051 //    License along with the GNU C Library; if not, see
   1052 //    <https://www.gnu.org/licenses/>.
   1053 
   1054 // Never include this file directly; use <sys/types.h> instead.
   1055 
   1056 // Get __FD_* definitions.
   1057 // Copyright (C) 1997-2020 Free Software Foundation, Inc.
   1058 //    This file is part of the GNU C Library.
   1059 //
   1060 //    The GNU C Library is free software; you can redistribute it and/or
   1061 //    modify it under the terms of the GNU Lesser General Public
   1062 //    License as published by the Free Software Foundation; either
   1063 //    version 2.1 of the License, or (at your option) any later version.
   1064 //
   1065 //    The GNU C Library is distributed in the hope that it will be useful,
   1066 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1067 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1068 //    Lesser General Public License for more details.
   1069 //
   1070 //    You should have received a copy of the GNU Lesser General Public
   1071 //    License along with the GNU C Library; if not, see
   1072 //    <https://www.gnu.org/licenses/>.
   1073 
   1074 // We don't use `memset' because this would require a prototype and
   1075 //    the array isn't too big.
   1076 
   1077 // Get sigset_t.
   1078 
   1079 type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
   1080 
   1081 // A set of signals to be blocked, unblocked, or waited for.
   1082 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
   1083 
   1084 // Get definition of timer specification structures.
   1085 
   1086 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1087 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1088 //    This file is part of the GNU C Library.
   1089 //
   1090 //    The GNU C Library is free software; you can redistribute it and/or
   1091 //    modify it under the terms of the GNU Lesser General Public
   1092 //    License as published by the Free Software Foundation; either
   1093 //    version 2.1 of the License, or (at your option) any later version.
   1094 //
   1095 //    The GNU C Library is distributed in the hope that it will be useful,
   1096 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1097 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1098 //    Lesser General Public License for more details.
   1099 //
   1100 //    You should have received a copy of the GNU Lesser General Public
   1101 //    License along with the GNU C Library; if not, see
   1102 //    <https://www.gnu.org/licenses/>.
   1103 
   1104 // Never include this file directly; use <sys/types.h> instead.
   1105 
   1106 // A time value that is accurate to the nearest
   1107 //
   1108 //	microsecond but also has a range of years.
   1109 type Timeval = struct {
   1110 	Ftv_sec  X__time_t
   1111 	Ftv_usec X__suseconds_t
   1112 } /* struct_timeval.h:8:1 */
   1113 
   1114 // NB: Include guard matches what <linux/time.h> uses.
   1115 
   1116 // bits/types.h -- definitions of __*_t types underlying *_t types.
   1117 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1118 //    This file is part of the GNU C Library.
   1119 //
   1120 //    The GNU C Library is free software; you can redistribute it and/or
   1121 //    modify it under the terms of the GNU Lesser General Public
   1122 //    License as published by the Free Software Foundation; either
   1123 //    version 2.1 of the License, or (at your option) any later version.
   1124 //
   1125 //    The GNU C Library is distributed in the hope that it will be useful,
   1126 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1127 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1128 //    Lesser General Public License for more details.
   1129 //
   1130 //    You should have received a copy of the GNU Lesser General Public
   1131 //    License along with the GNU C Library; if not, see
   1132 //    <https://www.gnu.org/licenses/>.
   1133 
   1134 // Never include this file directly; use <sys/types.h> instead.
   1135 
   1136 // Endian macros for string.h functions
   1137 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1138 //    This file is part of the GNU C Library.
   1139 //
   1140 //    The GNU C Library is free software; you can redistribute it and/or
   1141 //    modify it under the terms of the GNU Lesser General Public
   1142 //    License as published by the Free Software Foundation; either
   1143 //    version 2.1 of the License, or (at your option) any later version.
   1144 //
   1145 //    The GNU C Library is distributed in the hope that it will be useful,
   1146 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1147 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1148 //    Lesser General Public License for more details.
   1149 //
   1150 //    You should have received a copy of the GNU Lesser General Public
   1151 //    License along with the GNU C Library; if not, see
   1152 //    <http://www.gnu.org/licenses/>.
   1153 
   1154 // POSIX.1b structure for a time value.  This is like a `struct timeval' but
   1155 //
   1156 //	has nanoseconds instead of microseconds.
   1157 type Timespec = struct {
   1158 	Ftv_sec  X__time_t
   1159 	Ftv_nsec X__syscall_slong_t
   1160 } /* struct_timespec.h:10:1 */
   1161 
   1162 type Suseconds_t = X__suseconds_t /* select.h:43:23 */
   1163 
   1164 // The fd_set member is required to be an array of longs.
   1165 type X__fd_mask = int64 /* select.h:49:18 */
   1166 
   1167 // Some versions of <linux/posix_types.h> define this macros.
   1168 // It's easier to assume 8-bit bytes than to get CHAR_BIT.
   1169 
   1170 // fd_set for select and pselect.
   1171 type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
   1172 
   1173 // Maximum number of file descriptors in `fd_set'.
   1174 
   1175 // Sometimes the fd_set member is assumed to have this type.
   1176 type Fd_mask = X__fd_mask /* select.h:77:19 */
   1177 
   1178 // Define some inlines helping to catch common problems.
   1179 
   1180 type Blksize_t = X__blksize_t /* types.h:185:21 */
   1181 
   1182 // Types from the Large File Support interface.
   1183 type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
   1184 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
   1185 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
   1186 
   1187 // Now add the thread types.
   1188 // Declaration of common pthread types for all architectures.
   1189 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1190 //    This file is part of the GNU C Library.
   1191 //
   1192 //    The GNU C Library is free software; you can redistribute it and/or
   1193 //    modify it under the terms of the GNU Lesser General Public
   1194 //    License as published by the Free Software Foundation; either
   1195 //    version 2.1 of the License, or (at your option) any later version.
   1196 //
   1197 //    The GNU C Library is distributed in the hope that it will be useful,
   1198 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1199 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1200 //    Lesser General Public License for more details.
   1201 //
   1202 //    You should have received a copy of the GNU Lesser General Public
   1203 //    License along with the GNU C Library; if not, see
   1204 //    <https://www.gnu.org/licenses/>.
   1205 
   1206 // For internal mutex and condition variable definitions.
   1207 // Common threading primitives definitions for both POSIX and C11.
   1208 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1209 //    This file is part of the GNU C Library.
   1210 //
   1211 //    The GNU C Library is free software; you can redistribute it and/or
   1212 //    modify it under the terms of the GNU Lesser General Public
   1213 //    License as published by the Free Software Foundation; either
   1214 //    version 2.1 of the License, or (at your option) any later version.
   1215 //
   1216 //    The GNU C Library is distributed in the hope that it will be useful,
   1217 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1218 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1219 //    Lesser General Public License for more details.
   1220 //
   1221 //    You should have received a copy of the GNU Lesser General Public
   1222 //    License along with the GNU C Library; if not, see
   1223 //    <https://www.gnu.org/licenses/>.
   1224 
   1225 // Arch-specific definitions.  Each architecture must define the following
   1226 //    macros to define the expected sizes of pthread data types:
   1227 //
   1228 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   1229 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   1230 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   1231 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   1232 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   1233 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   1234 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   1235 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   1236 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   1237 //
   1238 //    The additional macro defines any constraint for the lock alignment
   1239 //    inside the thread structures:
   1240 //
   1241 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   1242 //
   1243 //    Same idea but for the once locking primitive:
   1244 //
   1245 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   1246 
   1247 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1248 //
   1249 //    This file is part of the GNU C Library.
   1250 //
   1251 //    The GNU C Library is free software; you can redistribute it and/or
   1252 //    modify it under the terms of the GNU Lesser General Public
   1253 //    License as published by the Free Software Foundation; either
   1254 //    version 2.1 of the License, or (at your option) any later version.
   1255 //
   1256 //    The GNU C Library is distributed in the hope that it will be useful,
   1257 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1258 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1259 //    Lesser General Public License for more details.
   1260 //
   1261 //    You should have received a copy of the GNU Lesser General Public
   1262 //    License along with the GNU C Library; if not, see
   1263 //    <https://www.gnu.org/licenses/>.
   1264 
   1265 // Endian macros for string.h functions
   1266 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1267 //    This file is part of the GNU C Library.
   1268 //
   1269 //    The GNU C Library is free software; you can redistribute it and/or
   1270 //    modify it under the terms of the GNU Lesser General Public
   1271 //    License as published by the Free Software Foundation; either
   1272 //    version 2.1 of the License, or (at your option) any later version.
   1273 //
   1274 //    The GNU C Library is distributed in the hope that it will be useful,
   1275 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1276 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1277 //    Lesser General Public License for more details.
   1278 //
   1279 //    You should have received a copy of the GNU Lesser General Public
   1280 //    License along with the GNU C Library; if not, see
   1281 //    <http://www.gnu.org/licenses/>.
   1282 
   1283 // Common definition of pthread_mutex_t.
   1284 
   1285 type X__pthread_internal_list = struct {
   1286 	F__prev uintptr
   1287 	F__next uintptr
   1288 } /* thread-shared-types.h:49:9 */
   1289 
   1290 // Type to count file system inodes.
   1291 
   1292 // Now add the thread types.
   1293 // Declaration of common pthread types for all architectures.
   1294 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1295 //    This file is part of the GNU C Library.
   1296 //
   1297 //    The GNU C Library is free software; you can redistribute it and/or
   1298 //    modify it under the terms of the GNU Lesser General Public
   1299 //    License as published by the Free Software Foundation; either
   1300 //    version 2.1 of the License, or (at your option) any later version.
   1301 //
   1302 //    The GNU C Library is distributed in the hope that it will be useful,
   1303 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1304 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1305 //    Lesser General Public License for more details.
   1306 //
   1307 //    You should have received a copy of the GNU Lesser General Public
   1308 //    License along with the GNU C Library; if not, see
   1309 //    <https://www.gnu.org/licenses/>.
   1310 
   1311 // For internal mutex and condition variable definitions.
   1312 // Common threading primitives definitions for both POSIX and C11.
   1313 //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   1314 //    This file is part of the GNU C Library.
   1315 //
   1316 //    The GNU C Library is free software; you can redistribute it and/or
   1317 //    modify it under the terms of the GNU Lesser General Public
   1318 //    License as published by the Free Software Foundation; either
   1319 //    version 2.1 of the License, or (at your option) any later version.
   1320 //
   1321 //    The GNU C Library is distributed in the hope that it will be useful,
   1322 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1323 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1324 //    Lesser General Public License for more details.
   1325 //
   1326 //    You should have received a copy of the GNU Lesser General Public
   1327 //    License along with the GNU C Library; if not, see
   1328 //    <https://www.gnu.org/licenses/>.
   1329 
   1330 // Arch-specific definitions.  Each architecture must define the following
   1331 //    macros to define the expected sizes of pthread data types:
   1332 //
   1333 //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
   1334 //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
   1335 //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
   1336 //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
   1337 //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
   1338 //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
   1339 //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
   1340 //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
   1341 //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
   1342 //
   1343 //    The additional macro defines any constraint for the lock alignment
   1344 //    inside the thread structures:
   1345 //
   1346 //    __LOCK_ALIGNMENT - for internal lock/futex usage.
   1347 //
   1348 //    Same idea but for the once locking primitive:
   1349 //
   1350 //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
   1351 
   1352 // Copyright (C) 2002-2020 Free Software Foundation, Inc.
   1353 //
   1354 //    This file is part of the GNU C Library.
   1355 //
   1356 //    The GNU C Library is free software; you can redistribute it and/or
   1357 //    modify it under the terms of the GNU Lesser General Public
   1358 //    License as published by the Free Software Foundation; either
   1359 //    version 2.1 of the License, or (at your option) any later version.
   1360 //
   1361 //    The GNU C Library is distributed in the hope that it will be useful,
   1362 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1363 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1364 //    Lesser General Public License for more details.
   1365 //
   1366 //    You should have received a copy of the GNU Lesser General Public
   1367 //    License along with the GNU C Library; if not, see
   1368 //    <https://www.gnu.org/licenses/>.
   1369 
   1370 // Endian macros for string.h functions
   1371 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
   1372 //    This file is part of the GNU C Library.
   1373 //
   1374 //    The GNU C Library is free software; you can redistribute it and/or
   1375 //    modify it under the terms of the GNU Lesser General Public
   1376 //    License as published by the Free Software Foundation; either
   1377 //    version 2.1 of the License, or (at your option) any later version.
   1378 //
   1379 //    The GNU C Library is distributed in the hope that it will be useful,
   1380 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1381 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1382 //    Lesser General Public License for more details.
   1383 //
   1384 //    You should have received a copy of the GNU Lesser General Public
   1385 //    License along with the GNU C Library; if not, see
   1386 //    <http://www.gnu.org/licenses/>.
   1387 
   1388 // Common definition of pthread_mutex_t.
   1389 
   1390 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
   1391 
   1392 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
   1393 
   1394 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
   1395 
   1396 // Arch-specific mutex definitions.  A generic implementation is provided
   1397 //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
   1398 //    can override it by defining:
   1399 //
   1400 //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
   1401 //       definition).  It should contains at least the internal members
   1402 //       defined in the generic version.
   1403 //
   1404 //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
   1405 //       atomic operations.
   1406 //
   1407 //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
   1408 //       It should initialize the mutex internal flag.
   1409 
   1410 // Default mutex implementation struct definitions.
   1411 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   1412 //    This file is part of the GNU C Library.
   1413 //
   1414 //    The GNU C Library is free software; you can redistribute it and/or
   1415 //    modify it under the terms of the GNU Lesser General Public
   1416 //    License as published by the Free Software Foundation; either
   1417 //    version 2.1 of the License, or (at your option) any later version.
   1418 //
   1419 //    The GNU C Library is distributed in the hope that it will be useful,
   1420 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1421 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1422 //    Lesser General Public License for more details.
   1423 //
   1424 //    You should have received a copy of the GNU Lesser General Public
   1425 //    License along with the GNU C Library; if not, see
   1426 //    <http://www.gnu.org/licenses/>.
   1427 
   1428 // Generic struct for both POSIX and C11 mutexes.  New ports are expected
   1429 //    to use the default layout, however architecture can redefine it to
   1430 //    add arch-specific extension (such as lock-elision).  The struct have
   1431 //    a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
   1432 
   1433 type X__pthread_mutex_s = struct {
   1434 	F__lock   int32
   1435 	F__count  uint32
   1436 	F__owner  int32
   1437 	F__nusers uint32
   1438 	F__kind   int32
   1439 	F__spins  int32
   1440 	F__list   X__pthread_list_t
   1441 } /* struct_mutex.h:27:1 */
   1442 
   1443 // Arch-sepecific read-write lock definitions.  A generic implementation is
   1444 //    provided by struct_rwlock.h.  If required, an architecture can override it
   1445 //    by defining:
   1446 //
   1447 //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
   1448 //       It should contain at least the internal members defined in the
   1449 //       generic version.
   1450 //
   1451 //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
   1452 //       It should initialize the rwlock internal type.
   1453 
   1454 // AArch64 internal rwlock struct definitions.
   1455 //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
   1456 //
   1457 //    This file is part of the GNU C Library.
   1458 //
   1459 //    The GNU C Library is free software; you can redistribute it and/or
   1460 //    modify it under the terms of the GNU Lesser General Public
   1461 //    License as published by the Free Software Foundation; either
   1462 //    version 2.1 of the License, or (at your option) any later version.
   1463 //
   1464 //    The GNU C Library is distributed in the hope that it will be useful,
   1465 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1466 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1467 //    Lesser General Public License for more details.
   1468 //
   1469 //    You should have received a copy of the GNU Lesser General Public
   1470 //    License along with the GNU C Library; if not, see
   1471 //    <http://www.gnu.org/licenses/>.
   1472 
   1473 type X__pthread_rwlock_arch_t = struct {
   1474 	F__readers       uint32
   1475 	F__writers       uint32
   1476 	F__wrphase_futex uint32
   1477 	F__writers_futex uint32
   1478 	F__pad3          uint32
   1479 	F__pad4          uint32
   1480 	F__cur_writer    int32
   1481 	F__shared        int32
   1482 	F__pad1          uint64
   1483 	F__pad2          uint64
   1484 	F__flags         uint32
   1485 	F__ccgo_pad1     [4]byte
   1486 } /* struct_rwlock.h:23:1 */
   1487 
   1488 // Common definition of pthread_cond_t.
   1489 
   1490 type X__pthread_cond_s = struct {
   1491 	F__0            struct{ F__wseq uint64 }
   1492 	F__8            struct{ F__g1_start uint64 }
   1493 	F__g_refs       [2]uint32
   1494 	F__g_size       [2]uint32
   1495 	F__g1_orig_size uint32
   1496 	F__wrefs        uint32
   1497 	F__g_signals    [2]uint32
   1498 } /* thread-shared-types.h:92:1 */
   1499 
   1500 // Thread identifiers.  The structure of the attribute type is not
   1501 //
   1502 //	exposed on purpose.
   1503 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
   1504 
   1505 // Data structures for mutex handling.  The structure of the attribute
   1506 //
   1507 //	type is not exposed on purpose.
   1508 type Pthread_mutexattr_t = struct {
   1509 	F__ccgo_pad1 [0]uint32
   1510 	F__size      [8]uint8
   1511 } /* pthreadtypes.h:36:3 */
   1512 
   1513 // Data structure for condition variable handling.  The structure of
   1514 //
   1515 //	the attribute type is not exposed on purpose.
   1516 type Pthread_condattr_t = struct {
   1517 	F__ccgo_pad1 [0]uint32
   1518 	F__size      [8]uint8
   1519 } /* pthreadtypes.h:45:3 */
   1520 
   1521 // Keys for thread-specific data
   1522 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
   1523 
   1524 // Once-only execution
   1525 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
   1526 
   1527 type Pthread_attr_t1 = struct {
   1528 	F__ccgo_pad1 [0]uint64
   1529 	F__size      [64]uint8
   1530 } /* pthreadtypes.h:56:1 */
   1531 
   1532 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
   1533 
   1534 type Pthread_mutex_t = struct {
   1535 	F__data      X__pthread_mutex_s
   1536 	F__ccgo_pad1 [8]byte
   1537 } /* pthreadtypes.h:72:3 */
   1538 
   1539 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
   1540 
   1541 // Data structure for reader-writer lock variable handling.  The
   1542 //
   1543 //	structure of the attribute type is deliberately not exposed.
   1544 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
   1545 
   1546 type Pthread_rwlockattr_t = struct {
   1547 	F__ccgo_pad1 [0]uint64
   1548 	F__size      [8]uint8
   1549 } /* pthreadtypes.h:97:3 */
   1550 
   1551 // POSIX spinlock data type.
   1552 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
   1553 
   1554 // POSIX barriers data type.  The structure of the type is
   1555 //
   1556 //	deliberately not exposed.
   1557 type Pthread_barrier_t = struct {
   1558 	F__ccgo_pad1 [0]uint64
   1559 	F__size      [32]uint8
   1560 } /* pthreadtypes.h:112:3 */
   1561 
   1562 type Pthread_barrierattr_t = struct {
   1563 	F__ccgo_pad1 [0]uint32
   1564 	F__size      [8]uint8
   1565 } /* pthreadtypes.h:118:3 */
   1566 
   1567 // Reentrant versions of the `random' family of functions.
   1568 //    These functions all use the following data structure to contain
   1569 //    state, rather than global state variables.
   1570 
   1571 type Random_data = struct {
   1572 	Ffptr        uintptr
   1573 	Frptr        uintptr
   1574 	Fstate       uintptr
   1575 	Frand_type   int32
   1576 	Frand_deg    int32
   1577 	Frand_sep    int32
   1578 	F__ccgo_pad1 [4]byte
   1579 	Fend_ptr     uintptr
   1580 } /* stdlib.h:423:1 */
   1581 
   1582 // Data structure for communication with thread safe versions.  This
   1583 //
   1584 //	type is to be regarded as opaque.  It's only exported because users
   1585 //	have to allocate objects of this type.
   1586 type Drand48_data = struct {
   1587 	F__x     [3]uint16
   1588 	F__old_x [3]uint16
   1589 	F__c     uint16
   1590 	F__init  uint16
   1591 	F__a     uint64
   1592 } /* stdlib.h:490:1 */
   1593 
   1594 // Shorthand for type of comparison functions.
   1595 type X__compar_fn_t = uintptr /* stdlib.h:808:13 */
   1596 
   1597 // Floating-point inline functions for stdlib.h.
   1598 //    Copyright (C) 2012-2020 Free Software Foundation, Inc.
   1599 //    This file is part of the GNU C Library.
   1600 //
   1601 //    The GNU C Library is free software; you can redistribute it and/or
   1602 //    modify it under the terms of the GNU Lesser General Public
   1603 //    License as published by the Free Software Foundation; either
   1604 //    version 2.1 of the License, or (at your option) any later version.
   1605 //
   1606 //    The GNU C Library is distributed in the hope that it will be useful,
   1607 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1608 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1609 //    Lesser General Public License for more details.
   1610 //
   1611 //    You should have received a copy of the GNU Lesser General Public
   1612 //    License along with the GNU C Library; if not, see
   1613 //    <https://www.gnu.org/licenses/>.
   1614 
   1615 // Define some macros helping to catch buffer overflows.
   1616 
   1617 var _ uint8 /* gen.c:2:13: */