github.com/afumu/libc@v0.0.6/sys/random/random_linux_arm64.go (about)

     1  // Code generated by 'ccgo sys/random/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 sys/random/random_linux_arm64.go -pkgname random', DO NOT EDIT.
     2  
     3  package random
     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  	FD_SETSIZE                   = 1024
    21  	GRND_NONBLOCK                = 0x01
    22  	GRND_RANDOM                  = 0x02
    23  	LITTLE_ENDIAN                = 1234
    24  	PDP_ENDIAN                   = 3412
    25  	X_ATFILE_SOURCE              = 1
    26  	X_BITS_BYTESWAP_H            = 1
    27  	X_BITS_ENDIANNESS_H          = 1
    28  	X_BITS_ENDIAN_H              = 1
    29  	X_BITS_PTHREADTYPES_ARCH_H   = 1
    30  	X_BITS_PTHREADTYPES_COMMON_H = 1
    31  	X_BITS_STDINT_INTN_H         = 1
    32  	X_BITS_TIME64_H              = 1
    33  	X_BITS_TYPESIZES_H           = 1
    34  	X_BITS_TYPES_H               = 1
    35  	X_BITS_UINTN_IDENTITY_H      = 1
    36  	X_BSD_SIZE_T_                = 0
    37  	X_BSD_SIZE_T_DEFINED_        = 0
    38  	X_DEFAULT_SOURCE             = 1
    39  	X_ENDIAN_H                   = 1
    40  	X_FEATURES_H                 = 1
    41  	X_FILE_OFFSET_BITS           = 64
    42  	X_GCC_SIZE_T                 = 0
    43  	X_LP64                       = 1
    44  	X_POSIX_C_SOURCE             = 200809
    45  	X_POSIX_SOURCE               = 1
    46  	X_RWLOCK_INTERNAL_H          = 0
    47  	X_SIZET_                     = 0
    48  	X_SIZE_T                     = 0
    49  	X_SIZE_T_                    = 0
    50  	X_SIZE_T_DECLARED            = 0
    51  	X_SIZE_T_DEFINED             = 0
    52  	X_SIZE_T_DEFINED_            = 0
    53  	X_STDC_PREDEF_H              = 1
    54  	X_STRUCT_TIMESPEC            = 1
    55  	X_SYS_CDEFS_H                = 1
    56  	X_SYS_RANDOM_H               = 1
    57  	X_SYS_SELECT_H               = 1
    58  	X_SYS_SIZE_T_H               = 0
    59  	X_SYS_TYPES_H                = 1
    60  	X_THREAD_MUTEX_INTERNAL_H    = 1
    61  	X_THREAD_SHARED_TYPES_H      = 1
    62  	X_T_SIZE                     = 0
    63  	X_T_SIZE_                    = 0
    64  	Linux                        = 1
    65  	Unix                         = 1
    66  )
    67  
    68  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    69  
    70  type Size_t = uint64 /* <builtin>:9:23 */
    71  
    72  type Wchar_t = uint32 /* <builtin>:15:24 */
    73  
    74  type X__int128_t = struct {
    75  	Flo int64
    76  	Fhi int64
    77  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    78  type X__uint128_t = struct {
    79  	Flo uint64
    80  	Fhi uint64
    81  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    82  
    83  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    84  type X__float128 = float64        /* <builtin>:47:21 */
    85  
    86  // Interfaces for obtaining random bytes.
    87  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    88  //    This file is part of the GNU C Library.
    89  //
    90  //    The GNU C Library is free software; you can redistribute it and/or
    91  //    modify it under the terms of the GNU Lesser General Public
    92  //    License as published by the Free Software Foundation; either
    93  //    version 2.1 of the License, or (at your option) any later version.
    94  //
    95  //    The GNU C Library is distributed in the hope that it will be useful,
    96  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    97  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    98  //    Lesser General Public License for more details.
    99  //
   100  //    You should have received a copy of the GNU Lesser General Public
   101  //    License along with the GNU C Library; if not, see
   102  //    <https://www.gnu.org/licenses/>.
   103  
   104  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   105  //    This file is part of the GNU C Library.
   106  //
   107  //    The GNU C Library is free software; you can redistribute it and/or
   108  //    modify it under the terms of the GNU Lesser General Public
   109  //    License as published by the Free Software Foundation; either
   110  //    version 2.1 of the License, or (at your option) any later version.
   111  //
   112  //    The GNU C Library is distributed in the hope that it will be useful,
   113  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   114  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   115  //    Lesser General Public License for more details.
   116  //
   117  //    You should have received a copy of the GNU Lesser General Public
   118  //    License along with the GNU C Library; if not, see
   119  //    <https://www.gnu.org/licenses/>.
   120  
   121  // These are defined by the user (or the compiler)
   122  //    to specify the desired environment:
   123  //
   124  //    __STRICT_ANSI__	ISO Standard C.
   125  //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
   126  //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
   127  //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
   128  //    __STDC_WANT_LIB_EXT2__
   129  // 			Extensions to ISO C99 from TR 27431-2:2010.
   130  //    __STDC_WANT_IEC_60559_BFP_EXT__
   131  // 			Extensions to ISO C11 from TS 18661-1:2014.
   132  //    __STDC_WANT_IEC_60559_FUNCS_EXT__
   133  // 			Extensions to ISO C11 from TS 18661-4:2015.
   134  //    __STDC_WANT_IEC_60559_TYPES_EXT__
   135  // 			Extensions to ISO C11 from TS 18661-3:2015.
   136  //
   137  //    _POSIX_SOURCE	IEEE Std 1003.1.
   138  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   139  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   140  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   141  // 			if >=200112L, all of IEEE 1003.1-2004
   142  // 			if >=200809L, all of IEEE 1003.1-2008
   143  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   144  // 			Single Unix conformance is wanted, to 600 for the
   145  // 			sixth revision, to 700 for the seventh revision.
   146  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   147  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   148  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   149  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   150  //    _ATFILE_SOURCE	Additional *at interfaces.
   151  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   152  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   153  // 			__STRICT_ANSI__).
   154  //
   155  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   156  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   157  //
   158  //    _REENTRANT, _THREAD_SAFE
   159  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   160  //
   161  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   162  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   163  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   164  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   165  //    200809L, as well as enabling miscellaneous functions from BSD and
   166  //    SVID.  If more than one of these are defined, they accumulate.  For
   167  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   168  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   169  //
   170  //    These are defined by this file and are used by the
   171  //    header files to decide what to declare or define:
   172  //
   173  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   174  // 			to 1 or 0; the subsequent macros are either defined
   175  // 			or undefined, and those tests should be moved to
   176  // 			__GLIBC_USE.
   177  //    __USE_ISOC11		Define ISO C11 things.
   178  //    __USE_ISOC99		Define ISO C99 things.
   179  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   180  //    __USE_ISOCXX11	Define ISO C++11 things.
   181  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   182  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   183  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   184  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   185  //    __USE_XOPEN		Define XPG things.
   186  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   187  //    __USE_UNIX98		Define Single Unix V2 things.
   188  //    __USE_XOPEN2K        Define XPG6 things.
   189  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   190  //    __USE_XOPEN2K8       Define XPG7 things.
   191  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   192  //    __USE_LARGEFILE	Define correct standard I/O things.
   193  //    __USE_LARGEFILE64	Define LFS things with separate names.
   194  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   195  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   196  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   197  //    __USE_GNU		Define GNU extensions.
   198  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   199  //
   200  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   201  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   202  //    only for compatibility.  All new code should use the other symbols
   203  //    to test for features.
   204  //
   205  //    All macros listed above as possibly being defined by this file are
   206  //    explicitly undefined if they are not explicitly defined.
   207  //    Feature-test macros that are not defined by the user or compiler
   208  //    but are implied by the other feature-test macros defined (or by the
   209  //    lack of any definitions) are defined by the file.
   210  //
   211  //    ISO C feature test macros depend on the definition of the macro
   212  //    when an affected header is included, not when the first system
   213  //    header is included, and so they are handled in
   214  //    <bits/libc-header-start.h>, which does not have a multiple include
   215  //    guard.  Feature test macros that can be handled from the first
   216  //    system header included are handled here.
   217  
   218  // Undefine everything, so we get a clean slate.
   219  
   220  // Suppress kernel-name space pollution unless user expressedly asks
   221  //    for it.
   222  
   223  // Convenience macro to test the version of gcc.
   224  //    Use like this:
   225  //    #if __GNUC_PREREQ (2,8)
   226  //    ... code requiring gcc 2.8 or later ...
   227  //    #endif
   228  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   229  //    added in 2.0.
   230  
   231  // Similarly for clang.  Features added to GCC after version 4.2 may
   232  //    or may not also be available in clang, and clang's definitions of
   233  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   234  //    features can be queried via __has_extension/__has_feature.
   235  
   236  // Whether to use feature set F.
   237  
   238  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   239  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   240  //    issue a warning; the expectation is that the source is being
   241  //    transitioned to use the new macro.
   242  
   243  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   244  
   245  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   246  //    define _DEFAULT_SOURCE.
   247  
   248  // This is to enable the ISO C2X extension.
   249  
   250  // This is to enable the ISO C11 extension.
   251  
   252  // This is to enable the ISO C99 extension.
   253  
   254  // This is to enable the ISO C90 Amendment 1:1995 extension.
   255  
   256  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   257  //    is defined, use POSIX.1-2008 (or another version depending on
   258  //    _XOPEN_SOURCE).
   259  
   260  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   261  //    defined in all multithreaded code.  GNU libc has not required this
   262  //    for many years.  We now treat them as compatibility synonyms for
   263  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   264  //    comprehensive support for multithreaded code.  Using them never
   265  //    lowers the selected level of POSIX conformance, only raises it.
   266  
   267  // The function 'gets' existed in C89, but is impossible to use
   268  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   269  //    compatibility with various implementations of <cstdio>, this test
   270  //    must consider only the value of __cplusplus when compiling C++.
   271  
   272  // GNU formerly extended the scanf functions with modified format
   273  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   274  //    input using malloc.  This extension conflicts with ISO C99, which
   275  //    defines %a as a standalone format specifier that reads a floating-
   276  //    point number; moreover, POSIX.1-2008 provides the same feature
   277  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   278  //
   279  //    We now follow C99 unless GNU extensions are active and the compiler
   280  //    is specifically in C89 or C++98 mode (strict or not).  For
   281  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   282  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   283  //    old extension.
   284  
   285  // Get definitions of __STDC_* predefined macros, if the compiler has
   286  //    not preincluded this header automatically.
   287  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   288  //    This file is part of the GNU C Library.
   289  //
   290  //    The GNU C Library is free software; you can redistribute it and/or
   291  //    modify it under the terms of the GNU Lesser General Public
   292  //    License as published by the Free Software Foundation; either
   293  //    version 2.1 of the License, or (at your option) any later version.
   294  //
   295  //    The GNU C Library is distributed in the hope that it will be useful,
   296  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   297  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   298  //    Lesser General Public License for more details.
   299  //
   300  //    You should have received a copy of the GNU Lesser General Public
   301  //    License along with the GNU C Library; if not, see
   302  //    <https://www.gnu.org/licenses/>.
   303  
   304  // This macro indicates that the installed library is the GNU C Library.
   305  //    For historic reasons the value now is 6 and this will stay from now
   306  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   307  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   308  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   309  //    the sonames of the shared libraries.
   310  
   311  // Major and minor version number of the GNU C library package.  Use
   312  //    these macros to test for features in specific releases.
   313  
   314  // This is here only because every header file already includes this one.
   315  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   316  //    This file is part of the GNU C Library.
   317  //
   318  //    The GNU C Library is free software; you can redistribute it and/or
   319  //    modify it under the terms of the GNU Lesser General Public
   320  //    License as published by the Free Software Foundation; either
   321  //    version 2.1 of the License, or (at your option) any later version.
   322  //
   323  //    The GNU C Library is distributed in the hope that it will be useful,
   324  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   325  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   326  //    Lesser General Public License for more details.
   327  //
   328  //    You should have received a copy of the GNU Lesser General Public
   329  //    License along with the GNU C Library; if not, see
   330  //    <https://www.gnu.org/licenses/>.
   331  
   332  // We are almost always included from features.h.
   333  
   334  // The GNU libc does not support any K&R compilers or the traditional mode
   335  //    of ISO C compilers anymore.  Check for some of the combinations not
   336  //    anymore supported.
   337  
   338  // Some user header file might have defined this before.
   339  
   340  // All functions, except those with callbacks or those that
   341  //    synchronize memory, are leaf functions.
   342  
   343  // GCC can always grok prototypes.  For C++ programs we add throw()
   344  //    to help it optimize the function calls.  But this works only with
   345  //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
   346  //    as non-throwing using a function attribute since programs can use
   347  //    the -fexceptions options for C code as well.
   348  
   349  // Compilers that are not clang may object to
   350  //        #if defined __clang__ && __has_extension(...)
   351  //    even though they do not need to evaluate the right-hand side of the &&.
   352  
   353  // These two macros are not used in glibc anymore.  They are kept here
   354  //    only because some other projects expect the macros to be defined.
   355  
   356  // For these things, GCC behaves the ANSI way normally,
   357  //    and the non-ANSI way under -traditional.
   358  
   359  // This is not a typedef so `const __ptr_t' does the right thing.
   360  
   361  // C++ needs to know that types and declarations are C, not C++.
   362  
   363  // Fortify support.
   364  
   365  // Support for flexible arrays.
   366  //    Headers that should use flexible arrays only if they're "real"
   367  //    (e.g. only if they won't affect sizeof()) should test
   368  //    #if __glibc_c99_flexarr_available.
   369  
   370  // __asm__ ("xyz") is used throughout the headers to rename functions
   371  //    at the assembly language level.  This is wrapped by the __REDIRECT
   372  //    macro, in order to support compilers that can do this some other
   373  //    way.  When compilers don't support asm-names at all, we have to do
   374  //    preprocessor tricks instead (which don't have exactly the right
   375  //    semantics, but it's the best we can do).
   376  //
   377  //    Example:
   378  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   379  
   380  //
   381  // #elif __SOME_OTHER_COMPILER__
   382  //
   383  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   384  
   385  // GCC has various useful declarations that can be made with the
   386  //    `__attribute__' syntax.  All of the ways we use this do fine if
   387  //    they are omitted for compilers that don't understand it.
   388  
   389  // At some point during the gcc 2.96 development the `malloc' attribute
   390  //    for functions was introduced.  We don't want to use it unconditionally
   391  //    (although this would be possible) since it generates warnings.
   392  
   393  // Tell the compiler which arguments to an allocation function
   394  //    indicate the size of the allocation.
   395  
   396  // At some point during the gcc 2.96 development the `pure' attribute
   397  //    for functions was introduced.  We don't want to use it unconditionally
   398  //    (although this would be possible) since it generates warnings.
   399  
   400  // This declaration tells the compiler that the value is constant.
   401  
   402  // At some point during the gcc 3.1 development the `used' attribute
   403  //    for functions was introduced.  We don't want to use it unconditionally
   404  //    (although this would be possible) since it generates warnings.
   405  
   406  // Since version 3.2, gcc allows marking deprecated functions.
   407  
   408  // Since version 4.5, gcc also allows one to specify the message printed
   409  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   410  //    may also support this feature.
   411  
   412  // At some point during the gcc 2.8 development the `format_arg' attribute
   413  //    for functions was introduced.  We don't want to use it unconditionally
   414  //    (although this would be possible) since it generates warnings.
   415  //    If several `format_arg' attributes are given for the same function, in
   416  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   417  //    all designated arguments are considered.
   418  
   419  // At some point during the gcc 2.97 development the `strfmon' format
   420  //    attribute for functions was introduced.  We don't want to use it
   421  //    unconditionally (although this would be possible) since it
   422  //    generates warnings.
   423  
   424  // The nonull function attribute allows to mark pointer parameters which
   425  //    must not be NULL.
   426  
   427  // If fortification mode, we warn about unused results of certain
   428  //    function calls which can lead to problems.
   429  
   430  // Forces a function to be always inlined.
   431  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   432  //    it conflicts with this definition.  Therefore undefine it first to
   433  //    allow either header to be included first.
   434  
   435  // Associate error messages with the source location of the call site rather
   436  //    than with the source location inside the function.
   437  
   438  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   439  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   440  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   441  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   442  //    semantics.
   443  //
   444  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   445  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   446  //    __GNUC_GNU_INLINE__ macro definitions.
   447  
   448  // GCC 4.3 and above allow passing all anonymous arguments of an
   449  //    __extern_always_inline function to some other vararg function.
   450  
   451  // It is possible to compile containing GCC extensions even if GCC is
   452  //    run in pedantic mode if the uses are carefully marked using the
   453  //    `__extension__' keyword.  But this is not generally available before
   454  //    version 2.8.
   455  
   456  // __restrict is known in EGCS 1.2 and above.
   457  
   458  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
   459  //      array_name[restrict]
   460  //    GCC 3.1 supports this.
   461  
   462  // Describes a char array whose address can safely be passed as the first
   463  //    argument to strncpy and strncat, as the char array is not necessarily
   464  //    a NUL-terminated string.
   465  
   466  // Undefine (also defined in libc-symbols.h).
   467  // Copies attributes from the declaration or type referenced by
   468  //    the argument.
   469  
   470  // Determine the wordsize from the preprocessor defines.
   471  //
   472  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   473  //    This file is part of the GNU C Library.
   474  //
   475  //    The GNU C Library is free software; you can redistribute it and/or
   476  //    modify it under the terms of the GNU Lesser General Public
   477  //    License as published by the Free Software Foundation; either
   478  //    version 2.1 of the License, or (at your option) any later version.
   479  //
   480  //    The GNU C Library is distributed in the hope that it will be useful,
   481  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   482  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   483  //    Lesser General Public License for more details.
   484  //
   485  //    You should have received a copy of the GNU Lesser General Public
   486  //    License along with the GNU C Library; if not, see
   487  //    <https://www.gnu.org/licenses/>.
   488  
   489  // Properties of long double type.  ldbl-128 version.
   490  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   491  //    This file is part of the GNU C Library.
   492  //
   493  //    The GNU C Library is free software; you can redistribute it and/or
   494  //    modify it under the terms of the GNU Lesser General Public
   495  //    License  published by the Free Software Foundation; either
   496  //    version 2.1 of the License, or (at your option) any later version.
   497  //
   498  //    The GNU C Library is distributed in the hope that it will be useful,
   499  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   500  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   501  //    Lesser General Public License for more details.
   502  //
   503  //    You should have received a copy of the GNU Lesser General Public
   504  //    License along with the GNU C Library; if not, see
   505  //    <https://www.gnu.org/licenses/>.
   506  
   507  // long double is distinct from double, so there is nothing to
   508  //    define here.
   509  
   510  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   511  //    intended for use in preprocessor macros.
   512  //
   513  //    Note: MESSAGE must be a _single_ string; concatenation of string
   514  //    literals is not supported.
   515  
   516  // Generic selection (ISO C11) is a C-only feature, available in GCC
   517  //    since version 4.9.  Previous versions do not provide generic
   518  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   519  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   520  //    when testing __STDC_VERSION__ for generic selection support.
   521  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   522  //    check is required to enable the use of generic selection.
   523  
   524  // If we don't have __REDIRECT, prototypes will be missing if
   525  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   526  
   527  // Decide whether we can define 'extern inline' functions in headers.
   528  
   529  // This is here only because every header file already includes this one.
   530  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   531  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   532  //    that will always return failure (and set errno to ENOSYS).
   533  // This file is automatically generated.
   534  //    This file selects the right generated file of `__stub_FUNCTION' macros
   535  //    based on the architecture being compiled for.
   536  
   537  // Determine the wordsize from the preprocessor defines.
   538  //
   539  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   540  //    This file is part of the GNU C Library.
   541  //
   542  //    The GNU C Library is free software; you can redistribute it and/or
   543  //    modify it under the terms of the GNU Lesser General Public
   544  //    License as published by the Free Software Foundation; either
   545  //    version 2.1 of the License, or (at your option) any later version.
   546  //
   547  //    The GNU C Library is distributed in the hope that it will be useful,
   548  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   549  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   550  //    Lesser General Public License for more details.
   551  //
   552  //    You should have received a copy of the GNU Lesser General Public
   553  //    License along with the GNU C Library; if not, see
   554  //    <https://www.gnu.org/licenses/>.
   555  
   556  // This file is automatically generated.
   557  //    It defines a symbol `__stub_FUNCTION' for each function
   558  //    in the C library which is a stub, meaning it will fail
   559  //    every time called, usually setting errno to ENOSYS.
   560  
   561  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   562  //    This file is part of the GNU C Library.
   563  //
   564  //    The GNU C Library is free software; you can redistribute it and/or
   565  //    modify it under the terms of the GNU Lesser General Public
   566  //    License as published by the Free Software Foundation; either
   567  //    version 2.1 of the License, or (at your option) any later version.
   568  //
   569  //    The GNU C Library is distributed in the hope that it will be useful,
   570  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   571  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   572  //    Lesser General Public License for more details.
   573  //
   574  //    You should have received a copy of the GNU Lesser General Public
   575  //    License along with the GNU C Library; if not, see
   576  //    <https://www.gnu.org/licenses/>.
   577  
   578  //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   579  
   580  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   581  //    This file is part of the GNU C Library.
   582  //
   583  //    The GNU C Library is free software; you can redistribute it and/or
   584  //    modify it under the terms of the GNU Lesser General Public
   585  //    License as published by the Free Software Foundation; either
   586  //    version 2.1 of the License, or (at your option) any later version.
   587  //
   588  //    The GNU C Library is distributed in the hope that it will be useful,
   589  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   590  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   591  //    Lesser General Public License for more details.
   592  //
   593  //    You should have received a copy of the GNU Lesser General Public
   594  //    License along with the GNU C Library; if not, see
   595  //    <https://www.gnu.org/licenses/>.
   596  
   597  // bits/types.h -- definitions of __*_t types underlying *_t types.
   598  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   599  //    This file is part of the GNU C Library.
   600  //
   601  //    The GNU C Library is free software; you can redistribute it and/or
   602  //    modify it under the terms of the GNU Lesser General Public
   603  //    License as published by the Free Software Foundation; either
   604  //    version 2.1 of the License, or (at your option) any later version.
   605  //
   606  //    The GNU C Library is distributed in the hope that it will be useful,
   607  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   608  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   609  //    Lesser General Public License for more details.
   610  //
   611  //    You should have received a copy of the GNU Lesser General Public
   612  //    License along with the GNU C Library; if not, see
   613  //    <https://www.gnu.org/licenses/>.
   614  
   615  // Never include this file directly; use <sys/types.h> instead.
   616  
   617  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   618  //    This file is part of the GNU C Library.
   619  //
   620  //    The GNU C Library is free software; you can redistribute it and/or
   621  //    modify it under the terms of the GNU Lesser General Public
   622  //    License as published by the Free Software Foundation; either
   623  //    version 2.1 of the License, or (at your option) any later version.
   624  //
   625  //    The GNU C Library is distributed in the hope that it will be useful,
   626  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   627  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   628  //    Lesser General Public License for more details.
   629  //
   630  //    You should have received a copy of the GNU Lesser General Public
   631  //    License along with the GNU C Library; if not, see
   632  //    <https://www.gnu.org/licenses/>.
   633  
   634  // Determine the wordsize from the preprocessor defines.
   635  //
   636  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   637  //    This file is part of the GNU C Library.
   638  //
   639  //    The GNU C Library is free software; you can redistribute it and/or
   640  //    modify it under the terms of the GNU Lesser General Public
   641  //    License as published by the Free Software Foundation; either
   642  //    version 2.1 of the License, or (at your option) any later version.
   643  //
   644  //    The GNU C Library is distributed in the hope that it will be useful,
   645  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   646  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   647  //    Lesser General Public License for more details.
   648  //
   649  //    You should have received a copy of the GNU Lesser General Public
   650  //    License along with the GNU C Library; if not, see
   651  //    <https://www.gnu.org/licenses/>.
   652  
   653  // Bit size of the time_t type at glibc build time, general case.
   654  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   655  //    This file is part of the GNU C Library.
   656  //
   657  //    The GNU C Library is free software; you can redistribute it and/or
   658  //    modify it under the terms of the GNU Lesser General Public
   659  //    License as published by the Free Software Foundation; either
   660  //    version 2.1 of the License, or (at your option) any later version.
   661  //
   662  //    The GNU C Library is distributed in the hope that it will be useful,
   663  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   664  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   665  //    Lesser General Public License for more details.
   666  //
   667  //    You should have received a copy of the GNU Lesser General Public
   668  //    License along with the GNU C Library; if not, see
   669  //    <https://www.gnu.org/licenses/>.
   670  
   671  // Determine the wordsize from the preprocessor defines.
   672  //
   673  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   674  //    This file is part of the GNU C Library.
   675  //
   676  //    The GNU C Library is free software; you can redistribute it and/or
   677  //    modify it under the terms of the GNU Lesser General Public
   678  //    License as published by the Free Software Foundation; either
   679  //    version 2.1 of the License, or (at your option) any later version.
   680  //
   681  //    The GNU C Library is distributed in the hope that it will be useful,
   682  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   683  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   684  //    Lesser General Public License for more details.
   685  //
   686  //    You should have received a copy of the GNU Lesser General Public
   687  //    License along with the GNU C Library; if not, see
   688  //    <https://www.gnu.org/licenses/>.
   689  
   690  // Size in bits of the 'time_t' type of the default ABI.
   691  
   692  // Convenience types.
   693  type X__u_char = uint8   /* types.h:31:23 */
   694  type X__u_short = uint16 /* types.h:32:28 */
   695  type X__u_int = uint32   /* types.h:33:22 */
   696  type X__u_long = uint64  /* types.h:34:27 */
   697  
   698  // Fixed-size types, underlying types depend on word size and compiler.
   699  type X__int8_t = int8     /* types.h:37:21 */
   700  type X__uint8_t = uint8   /* types.h:38:23 */
   701  type X__int16_t = int16   /* types.h:39:26 */
   702  type X__uint16_t = uint16 /* types.h:40:28 */
   703  type X__int32_t = int32   /* types.h:41:20 */
   704  type X__uint32_t = uint32 /* types.h:42:22 */
   705  type X__int64_t = int64   /* types.h:44:25 */
   706  type X__uint64_t = uint64 /* types.h:45:27 */
   707  
   708  // Smallest types with at least a given width.
   709  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   710  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   711  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   712  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   713  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   714  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   715  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   716  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   717  
   718  // quad_t is also 64 bits.
   719  type X__quad_t = int64    /* types.h:63:18 */
   720  type X__u_quad_t = uint64 /* types.h:64:27 */
   721  
   722  // Largest integral types.
   723  type X__intmax_t = int64   /* types.h:72:18 */
   724  type X__uintmax_t = uint64 /* types.h:73:27 */
   725  
   726  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   727  //    macros for each of the OS types we define below.  The definitions
   728  //    of those macros must use the following macros for underlying types.
   729  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   730  //    variants of each of the following integer types on this machine.
   731  //
   732  // 	16		-- "natural" 16-bit type (always short)
   733  // 	32		-- "natural" 32-bit type (always int)
   734  // 	64		-- "natural" 64-bit type (long or long long)
   735  // 	LONG32		-- 32-bit type, traditionally long
   736  // 	QUAD		-- 64-bit type, traditionally long long
   737  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   738  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   739  //
   740  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   741  //    conventional uses of `long' or `long long' type modifiers match the
   742  //    types we define, even when a less-adorned type would be the same size.
   743  //    This matters for (somewhat) portably writing printf/scanf formats for
   744  //    these types, where using the appropriate l or ll format modifiers can
   745  //    make the typedefs and the formats match up across all GNU platforms.  If
   746  //    we used `long' when it's 64 bits where `long long' is expected, then the
   747  //    compiler would warn about the formats not matching the argument types,
   748  //    and the programmer changing them to shut up the compiler would break the
   749  //    program's portability.
   750  //
   751  //    Here we assume what is presently the case in all the GCC configurations
   752  //    we support: long long is always 64 bits, long is always word/address size,
   753  //    and int is always 32 bits.
   754  
   755  // No need to mark the typedef with __extension__.
   756  // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
   757  //    Copyright (C) 2011-2020 Free Software Foundation, Inc.
   758  //    This file is part of the GNU C Library.
   759  //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
   760  //
   761  //    The GNU C Library is free software; you can redistribute it and/or
   762  //    modify it under the terms of the GNU Lesser General Public
   763  //    License as published by the Free Software Foundation; either
   764  //    version 2.1 of the License, or (at your option) any later version.
   765  //
   766  //    The GNU C Library is distributed in the hope that it will be useful,
   767  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   768  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   769  //    Lesser General Public License for more details.
   770  //
   771  //    You should have received a copy of the GNU Lesser General Public
   772  //    License along with the GNU C Library.  If not, see
   773  //    <https://www.gnu.org/licenses/>.
   774  
   775  // See <bits/types.h> for the meaning of these macros.  This file exists so
   776  //    that <bits/types.h> need not vary across different GNU platforms.
   777  
   778  // Tell the libc code that off_t and off64_t are actually the same type
   779  //    for all ABI purposes, even if possibly expressed as different base types
   780  //    for C type-checking purposes.
   781  
   782  // Same for ino_t and ino64_t.
   783  
   784  // And for __rlim_t and __rlim64_t.
   785  
   786  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   787  // Number of descriptors that can fit in an `fd_set'.
   788  
   789  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   790  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   791  //    This file is part of the GNU C Library.
   792  //
   793  //    The GNU C Library is free software; you can redistribute it and/or
   794  //    modify it under the terms of the GNU Lesser General Public
   795  //    License as published by the Free Software Foundation; either
   796  //    version 2.1 of the License, or (at your option) any later version.
   797  //
   798  //    The GNU C Library is distributed in the hope that it will be useful,
   799  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   800  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   801  //    Lesser General Public License for more details.
   802  //
   803  //    You should have received a copy of the GNU Lesser General Public
   804  //    License along with the GNU C Library; if not, see
   805  //    <https://www.gnu.org/licenses/>.
   806  
   807  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   808  
   809  // If we already have 64-bit time type then use it.
   810  
   811  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   812  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   813  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   814  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   815  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   816  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   817  type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
   818  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   819  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   820  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   821  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   822  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   823  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   824  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   825  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   826  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   827  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   828  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   829  
   830  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   831  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   832  
   833  // Clock ID used in clock and timer functions.
   834  type X__clockid_t = int32 /* types.h:168:29 */
   835  
   836  // Timer ID returned by `timer_create'.
   837  type X__timer_t = uintptr /* types.h:171:12 */
   838  
   839  // Type to represent block size.
   840  type X__blksize_t = int32 /* types.h:174:29 */
   841  
   842  // Types from the Large File Support interface.
   843  
   844  // Type to count number of disk blocks.
   845  type X__blkcnt_t = int64   /* types.h:179:28 */
   846  type X__blkcnt64_t = int64 /* types.h:180:30 */
   847  
   848  // Type to count file system blocks.
   849  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   850  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   851  
   852  // Type to count file system nodes.
   853  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   854  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   855  
   856  // Type of miscellaneous file system fields.
   857  type X__fsword_t = int64 /* types.h:191:28 */
   858  
   859  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   860  
   861  // Signed long type used in system calls.
   862  type X__syscall_slong_t = int64 /* types.h:196:33 */
   863  // Unsigned long type used in system calls.
   864  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   865  
   866  // These few don't really vary by system, they always correspond
   867  //
   868  //	to one of the other defined types.
   869  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   870  type X__caddr_t = uintptr   /* types.h:203:14 */
   871  
   872  // Duplicates info from stdint.h but this is used in unistd.h.
   873  type X__intptr_t = int64 /* types.h:206:25 */
   874  
   875  // Duplicate info from sys/socket.h.
   876  type X__socklen_t = uint32 /* types.h:209:23 */
   877  
   878  // C99: An integer type that can be accessed as an atomic entity,
   879  //
   880  //	even in the presence of asynchronous interrupts.
   881  //	It is not currently necessary for this to be machine-specific.
   882  type X__sig_atomic_t = int32 /* types.h:214:13 */
   883  
   884  // Seconds since the Epoch, visible to user code when time_t is too
   885  //    narrow only for consistency with the old way of widening too-narrow
   886  //    types.  User code should never use __time64_t.
   887  
   888  type U_char = X__u_char     /* types.h:33:18 */
   889  type U_short = X__u_short   /* types.h:34:19 */
   890  type U_int = X__u_int       /* types.h:35:17 */
   891  type U_long = X__u_long     /* types.h:36:18 */
   892  type Quad_t = X__quad_t     /* types.h:37:18 */
   893  type U_quad_t = X__u_quad_t /* types.h:38:20 */
   894  type Fsid_t = X__fsid_t     /* types.h:39:18 */
   895  type Loff_t = X__loff_t     /* types.h:42:18 */
   896  
   897  type Ino_t = X__ino64_t /* types.h:49:19 */
   898  
   899  type Dev_t = X__dev_t /* types.h:59:17 */
   900  
   901  type Gid_t = X__gid_t /* types.h:64:17 */
   902  
   903  type Mode_t = X__mode_t /* types.h:69:18 */
   904  
   905  type Nlink_t = X__nlink_t /* types.h:74:19 */
   906  
   907  type Uid_t = X__uid_t /* types.h:79:17 */
   908  
   909  type Off_t = X__off64_t /* types.h:87:19 */
   910  
   911  type Pid_t = X__pid_t /* types.h:97:17 */
   912  
   913  type Id_t = X__id_t /* types.h:103:16 */
   914  
   915  type Ssize_t = X__ssize_t /* types.h:108:19 */
   916  
   917  type Daddr_t = X__daddr_t /* types.h:114:19 */
   918  type Caddr_t = X__caddr_t /* types.h:115:19 */
   919  
   920  type Key_t = X__key_t /* types.h:121:17 */
   921  
   922  // bits/types.h -- definitions of __*_t types underlying *_t types.
   923  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   924  //    This file is part of the GNU C Library.
   925  //
   926  //    The GNU C Library is free software; you can redistribute it and/or
   927  //    modify it under the terms of the GNU Lesser General Public
   928  //    License as published by the Free Software Foundation; either
   929  //    version 2.1 of the License, or (at your option) any later version.
   930  //
   931  //    The GNU C Library is distributed in the hope that it will be useful,
   932  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   933  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   934  //    Lesser General Public License for more details.
   935  //
   936  //    You should have received a copy of the GNU Lesser General Public
   937  //    License along with the GNU C Library; if not, see
   938  //    <https://www.gnu.org/licenses/>.
   939  
   940  // Never include this file directly; use <sys/types.h> instead.
   941  
   942  // Returned by `clock'.
   943  type Clock_t = X__clock_t /* clock_t.h:7:19 */
   944  
   945  // bits/types.h -- definitions of __*_t types underlying *_t types.
   946  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   947  //    This file is part of the GNU C Library.
   948  //
   949  //    The GNU C Library is free software; you can redistribute it and/or
   950  //    modify it under the terms of the GNU Lesser General Public
   951  //    License as published by the Free Software Foundation; either
   952  //    version 2.1 of the License, or (at your option) any later version.
   953  //
   954  //    The GNU C Library is distributed in the hope that it will be useful,
   955  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   956  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   957  //    Lesser General Public License for more details.
   958  //
   959  //    You should have received a copy of the GNU Lesser General Public
   960  //    License along with the GNU C Library; if not, see
   961  //    <https://www.gnu.org/licenses/>.
   962  
   963  // Never include this file directly; use <sys/types.h> instead.
   964  
   965  // Clock ID used in clock and timer functions.
   966  type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   967  
   968  // bits/types.h -- definitions of __*_t types underlying *_t types.
   969  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   970  //    This file is part of the GNU C Library.
   971  //
   972  //    The GNU C Library is free software; you can redistribute it and/or
   973  //    modify it under the terms of the GNU Lesser General Public
   974  //    License as published by the Free Software Foundation; either
   975  //    version 2.1 of the License, or (at your option) any later version.
   976  //
   977  //    The GNU C Library is distributed in the hope that it will be useful,
   978  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   979  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   980  //    Lesser General Public License for more details.
   981  //
   982  //    You should have received a copy of the GNU Lesser General Public
   983  //    License along with the GNU C Library; if not, see
   984  //    <https://www.gnu.org/licenses/>.
   985  
   986  // Never include this file directly; use <sys/types.h> instead.
   987  
   988  // Returned by `time'.
   989  type Time_t = X__time_t /* time_t.h:7:18 */
   990  
   991  // bits/types.h -- definitions of __*_t types underlying *_t types.
   992  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   993  //    This file is part of the GNU C Library.
   994  //
   995  //    The GNU C Library is free software; you can redistribute it and/or
   996  //    modify it under the terms of the GNU Lesser General Public
   997  //    License as published by the Free Software Foundation; either
   998  //    version 2.1 of the License, or (at your option) any later version.
   999  //
  1000  //    The GNU C Library is distributed in the hope that it will be useful,
  1001  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1002  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1003  //    Lesser General Public License for more details.
  1004  //
  1005  //    You should have received a copy of the GNU Lesser General Public
  1006  //    License along with the GNU C Library; if not, see
  1007  //    <https://www.gnu.org/licenses/>.
  1008  
  1009  // Never include this file directly; use <sys/types.h> instead.
  1010  
  1011  // Timer ID returned by `timer_create'.
  1012  type Timer_t = X__timer_t /* timer_t.h:7:19 */
  1013  
  1014  // Wide character type.
  1015  //    Locale-writers should change this as necessary to
  1016  //    be big enough to hold unique values not between 0 and 127,
  1017  //    and not (wchar_t) -1, for each defined multibyte character.
  1018  
  1019  // Define this type if we are doing the whole job,
  1020  //    or if we want this type in particular.
  1021  
  1022  // A null pointer constant.
  1023  
  1024  // Old compatibility names for C types.
  1025  type Ulong = uint64  /* types.h:148:27 */
  1026  type Ushort = uint16 /* types.h:149:28 */
  1027  type Uint = uint32   /* types.h:150:22 */
  1028  
  1029  // These size-specific names are used by some of the inet code.
  1030  
  1031  // Define intN_t types.
  1032  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1033  //    This file is part of the GNU C Library.
  1034  //
  1035  //    The GNU C Library is free software; you can redistribute it and/or
  1036  //    modify it under the terms of the GNU Lesser General Public
  1037  //    License as published by the Free Software Foundation; either
  1038  //    version 2.1 of the License, or (at your option) any later version.
  1039  //
  1040  //    The GNU C Library is distributed in the hope that it will be useful,
  1041  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1042  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1043  //    Lesser General Public License for more details.
  1044  //
  1045  //    You should have received a copy of the GNU Lesser General Public
  1046  //    License along with the GNU C Library; if not, see
  1047  //    <https://www.gnu.org/licenses/>.
  1048  
  1049  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1050  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1051  //    This file is part of the GNU C Library.
  1052  //
  1053  //    The GNU C Library is free software; you can redistribute it and/or
  1054  //    modify it under the terms of the GNU Lesser General Public
  1055  //    License as published by the Free Software Foundation; either
  1056  //    version 2.1 of the License, or (at your option) any later version.
  1057  //
  1058  //    The GNU C Library is distributed in the hope that it will be useful,
  1059  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1060  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1061  //    Lesser General Public License for more details.
  1062  //
  1063  //    You should have received a copy of the GNU Lesser General Public
  1064  //    License along with the GNU C Library; if not, see
  1065  //    <https://www.gnu.org/licenses/>.
  1066  
  1067  // Never include this file directly; use <sys/types.h> instead.
  1068  
  1069  type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
  1070  type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  1071  type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  1072  type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  1073  
  1074  // These were defined by ISO C without the first `_'.
  1075  type U_int8_t = X__uint8_t   /* types.h:158:19 */
  1076  type U_int16_t = X__uint16_t /* types.h:159:20 */
  1077  type U_int32_t = X__uint32_t /* types.h:160:20 */
  1078  type U_int64_t = X__uint64_t /* types.h:161:20 */
  1079  
  1080  type Register_t = int32 /* types.h:164:13 */
  1081  
  1082  // It also defines `fd_set' and the FD_* macros for `select'.
  1083  // `fd_set' type and related macros, and `select'/`pselect' declarations.
  1084  //    Copyright (C) 1996-2020 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  //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  1102  
  1103  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1104  //    This file is part of the GNU C Library.
  1105  //
  1106  //    The GNU C Library is free software; you can redistribute it and/or
  1107  //    modify it under the terms of the GNU Lesser General Public
  1108  //    License as published by the Free Software Foundation; either
  1109  //    version 2.1 of the License, or (at your option) any later version.
  1110  //
  1111  //    The GNU C Library is distributed in the hope that it will be useful,
  1112  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1113  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1114  //    Lesser General Public License for more details.
  1115  //
  1116  //    You should have received a copy of the GNU Lesser General Public
  1117  //    License along with the GNU C Library; if not, see
  1118  //    <https://www.gnu.org/licenses/>.
  1119  
  1120  // Get definition of needed basic types.
  1121  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1122  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1123  //    This file is part of the GNU C Library.
  1124  //
  1125  //    The GNU C Library is free software; you can redistribute it and/or
  1126  //    modify it under the terms of the GNU Lesser General Public
  1127  //    License as published by the Free Software Foundation; either
  1128  //    version 2.1 of the License, or (at your option) any later version.
  1129  //
  1130  //    The GNU C Library is distributed in the hope that it will be useful,
  1131  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1132  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1133  //    Lesser General Public License for more details.
  1134  //
  1135  //    You should have received a copy of the GNU Lesser General Public
  1136  //    License along with the GNU C Library; if not, see
  1137  //    <https://www.gnu.org/licenses/>.
  1138  
  1139  // Never include this file directly; use <sys/types.h> instead.
  1140  
  1141  // Get __FD_* definitions.
  1142  // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1143  //    This file is part of the GNU C Library.
  1144  //
  1145  //    The GNU C Library is free software; you can redistribute it and/or
  1146  //    modify it under the terms of the GNU Lesser General Public
  1147  //    License as published by the Free Software Foundation; either
  1148  //    version 2.1 of the License, or (at your option) any later version.
  1149  //
  1150  //    The GNU C Library is distributed in the hope that it will be useful,
  1151  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1152  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1153  //    Lesser General Public License for more details.
  1154  //
  1155  //    You should have received a copy of the GNU Lesser General Public
  1156  //    License along with the GNU C Library; if not, see
  1157  //    <https://www.gnu.org/licenses/>.
  1158  
  1159  // We don't use `memset' because this would require a prototype and
  1160  //    the array isn't too big.
  1161  
  1162  // Get sigset_t.
  1163  
  1164  type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  1165  
  1166  // A set of signals to be blocked, unblocked, or waited for.
  1167  type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  1168  
  1169  // Get definition of timer specification structures.
  1170  
  1171  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1172  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1173  //    This file is part of the GNU C Library.
  1174  //
  1175  //    The GNU C Library is free software; you can redistribute it and/or
  1176  //    modify it under the terms of the GNU Lesser General Public
  1177  //    License as published by the Free Software Foundation; either
  1178  //    version 2.1 of the License, or (at your option) any later version.
  1179  //
  1180  //    The GNU C Library is distributed in the hope that it will be useful,
  1181  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1182  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1183  //    Lesser General Public License for more details.
  1184  //
  1185  //    You should have received a copy of the GNU Lesser General Public
  1186  //    License along with the GNU C Library; if not, see
  1187  //    <https://www.gnu.org/licenses/>.
  1188  
  1189  // Never include this file directly; use <sys/types.h> instead.
  1190  
  1191  // A time value that is accurate to the nearest
  1192  //
  1193  //	microsecond but also has a range of years.
  1194  type Timeval = struct {
  1195  	Ftv_sec  X__time_t
  1196  	Ftv_usec X__suseconds_t
  1197  } /* struct_timeval.h:8:1 */
  1198  
  1199  // NB: Include guard matches what <linux/time.h> uses.
  1200  
  1201  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1202  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1203  //    This file is part of the GNU C Library.
  1204  //
  1205  //    The GNU C Library is free software; you can redistribute it and/or
  1206  //    modify it under the terms of the GNU Lesser General Public
  1207  //    License as published by the Free Software Foundation; either
  1208  //    version 2.1 of the License, or (at your option) any later version.
  1209  //
  1210  //    The GNU C Library is distributed in the hope that it will be useful,
  1211  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1212  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1213  //    Lesser General Public License for more details.
  1214  //
  1215  //    You should have received a copy of the GNU Lesser General Public
  1216  //    License along with the GNU C Library; if not, see
  1217  //    <https://www.gnu.org/licenses/>.
  1218  
  1219  // Never include this file directly; use <sys/types.h> instead.
  1220  
  1221  // Endian macros for string.h functions
  1222  //    Copyright (C) 1992-2020 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  //    <http://www.gnu.org/licenses/>.
  1238  
  1239  // POSIX.1b structure for a time value.  This is like a `struct timeval' but
  1240  //
  1241  //	has nanoseconds instead of microseconds.
  1242  type Timespec = struct {
  1243  	Ftv_sec  X__time_t
  1244  	Ftv_nsec X__syscall_slong_t
  1245  } /* struct_timespec.h:10:1 */
  1246  
  1247  type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  1248  
  1249  // The fd_set member is required to be an array of longs.
  1250  type X__fd_mask = int64 /* select.h:49:18 */
  1251  
  1252  // Some versions of <linux/posix_types.h> define this macros.
  1253  // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  1254  
  1255  // fd_set for select and pselect.
  1256  type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  1257  
  1258  // Maximum number of file descriptors in `fd_set'.
  1259  
  1260  // Sometimes the fd_set member is assumed to have this type.
  1261  type Fd_mask = X__fd_mask /* select.h:77:19 */
  1262  
  1263  // Define some inlines helping to catch common problems.
  1264  
  1265  type Blksize_t = X__blksize_t /* types.h:185:21 */
  1266  
  1267  // Types from the Large File Support interface.
  1268  type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
  1269  type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1270  type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1271  
  1272  // Now add the thread types.
  1273  // Declaration of common pthread types for all architectures.
  1274  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1275  //    This file is part of the GNU C Library.
  1276  //
  1277  //    The GNU C Library is free software; you can redistribute it and/or
  1278  //    modify it under the terms of the GNU Lesser General Public
  1279  //    License as published by the Free Software Foundation; either
  1280  //    version 2.1 of the License, or (at your option) any later version.
  1281  //
  1282  //    The GNU C Library is distributed in the hope that it will be useful,
  1283  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1284  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1285  //    Lesser General Public License for more details.
  1286  //
  1287  //    You should have received a copy of the GNU Lesser General Public
  1288  //    License along with the GNU C Library; if not, see
  1289  //    <https://www.gnu.org/licenses/>.
  1290  
  1291  // For internal mutex and condition variable definitions.
  1292  // Common threading primitives definitions for both POSIX and C11.
  1293  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1294  //    This file is part of the GNU C Library.
  1295  //
  1296  //    The GNU C Library is free software; you can redistribute it and/or
  1297  //    modify it under the terms of the GNU Lesser General Public
  1298  //    License as published by the Free Software Foundation; either
  1299  //    version 2.1 of the License, or (at your option) any later version.
  1300  //
  1301  //    The GNU C Library is distributed in the hope that it will be useful,
  1302  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1303  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1304  //    Lesser General Public License for more details.
  1305  //
  1306  //    You should have received a copy of the GNU Lesser General Public
  1307  //    License along with the GNU C Library; if not, see
  1308  //    <https://www.gnu.org/licenses/>.
  1309  
  1310  // Arch-specific definitions.  Each architecture must define the following
  1311  //    macros to define the expected sizes of pthread data types:
  1312  //
  1313  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1314  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1315  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1316  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1317  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1318  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1319  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1320  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1321  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1322  //
  1323  //    The additional macro defines any constraint for the lock alignment
  1324  //    inside the thread structures:
  1325  //
  1326  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1327  //
  1328  //    Same idea but for the once locking primitive:
  1329  //
  1330  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1331  
  1332  // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1333  //
  1334  //    This file is part of the GNU C Library.
  1335  //
  1336  //    The GNU C Library is free software; you can redistribute it and/or
  1337  //    modify it under the terms of the GNU Lesser General Public
  1338  //    License as published by the Free Software Foundation; either
  1339  //    version 2.1 of the License, or (at your option) any later version.
  1340  //
  1341  //    The GNU C Library is distributed in the hope that it will be useful,
  1342  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1343  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1344  //    Lesser General Public License for more details.
  1345  //
  1346  //    You should have received a copy of the GNU Lesser General Public
  1347  //    License along with the GNU C Library; if not, see
  1348  //    <https://www.gnu.org/licenses/>.
  1349  
  1350  // Endian macros for string.h functions
  1351  //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1352  //    This file is part of the GNU C Library.
  1353  //
  1354  //    The GNU C Library is free software; you can redistribute it and/or
  1355  //    modify it under the terms of the GNU Lesser General Public
  1356  //    License as published by the Free Software Foundation; either
  1357  //    version 2.1 of the License, or (at your option) any later version.
  1358  //
  1359  //    The GNU C Library is distributed in the hope that it will be useful,
  1360  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1361  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1362  //    Lesser General Public License for more details.
  1363  //
  1364  //    You should have received a copy of the GNU Lesser General Public
  1365  //    License along with the GNU C Library; if not, see
  1366  //    <http://www.gnu.org/licenses/>.
  1367  
  1368  // Common definition of pthread_mutex_t.
  1369  
  1370  type X__pthread_internal_list = struct {
  1371  	F__prev uintptr
  1372  	F__next uintptr
  1373  } /* thread-shared-types.h:49:9 */
  1374  
  1375  // Type to count file system inodes.
  1376  
  1377  // Now add the thread types.
  1378  // Declaration of common pthread types for all architectures.
  1379  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1380  //    This file is part of the GNU C Library.
  1381  //
  1382  //    The GNU C Library is free software; you can redistribute it and/or
  1383  //    modify it under the terms of the GNU Lesser General Public
  1384  //    License as published by the Free Software Foundation; either
  1385  //    version 2.1 of the License, or (at your option) any later version.
  1386  //
  1387  //    The GNU C Library is distributed in the hope that it will be useful,
  1388  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1389  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1390  //    Lesser General Public License for more details.
  1391  //
  1392  //    You should have received a copy of the GNU Lesser General Public
  1393  //    License along with the GNU C Library; if not, see
  1394  //    <https://www.gnu.org/licenses/>.
  1395  
  1396  // For internal mutex and condition variable definitions.
  1397  // Common threading primitives definitions for both POSIX and C11.
  1398  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1399  //    This file is part of the GNU C Library.
  1400  //
  1401  //    The GNU C Library is free software; you can redistribute it and/or
  1402  //    modify it under the terms of the GNU Lesser General Public
  1403  //    License as published by the Free Software Foundation; either
  1404  //    version 2.1 of the License, or (at your option) any later version.
  1405  //
  1406  //    The GNU C Library is distributed in the hope that it will be useful,
  1407  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1408  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1409  //    Lesser General Public License for more details.
  1410  //
  1411  //    You should have received a copy of the GNU Lesser General Public
  1412  //    License along with the GNU C Library; if not, see
  1413  //    <https://www.gnu.org/licenses/>.
  1414  
  1415  // Arch-specific definitions.  Each architecture must define the following
  1416  //    macros to define the expected sizes of pthread data types:
  1417  //
  1418  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1419  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1420  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1421  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1422  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1423  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1424  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1425  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1426  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1427  //
  1428  //    The additional macro defines any constraint for the lock alignment
  1429  //    inside the thread structures:
  1430  //
  1431  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1432  //
  1433  //    Same idea but for the once locking primitive:
  1434  //
  1435  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1436  
  1437  // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1438  //
  1439  //    This file is part of the GNU C Library.
  1440  //
  1441  //    The GNU C Library is free software; you can redistribute it and/or
  1442  //    modify it under the terms of the GNU Lesser General Public
  1443  //    License as published by the Free Software Foundation; either
  1444  //    version 2.1 of the License, or (at your option) any later version.
  1445  //
  1446  //    The GNU C Library is distributed in the hope that it will be useful,
  1447  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1448  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1449  //    Lesser General Public License for more details.
  1450  //
  1451  //    You should have received a copy of the GNU Lesser General Public
  1452  //    License along with the GNU C Library; if not, see
  1453  //    <https://www.gnu.org/licenses/>.
  1454  
  1455  // Endian macros for string.h functions
  1456  //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
  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  // Common definition of pthread_mutex_t.
  1474  
  1475  type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1476  
  1477  type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1478  
  1479  type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1480  
  1481  // Arch-specific mutex definitions.  A generic implementation is provided
  1482  //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
  1483  //    can override it by defining:
  1484  //
  1485  //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1486  //       definition).  It should contains at least the internal members
  1487  //       defined in the generic version.
  1488  //
  1489  //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1490  //       atomic operations.
  1491  //
  1492  //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1493  //       It should initialize the mutex internal flag.
  1494  
  1495  // Default mutex implementation struct definitions.
  1496  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1497  //    This file is part of the GNU C Library.
  1498  //
  1499  //    The GNU C Library is free software; you can redistribute it and/or
  1500  //    modify it under the terms of the GNU Lesser General Public
  1501  //    License as published by the Free Software Foundation; either
  1502  //    version 2.1 of the License, or (at your option) any later version.
  1503  //
  1504  //    The GNU C Library is distributed in the hope that it will be useful,
  1505  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1506  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1507  //    Lesser General Public License for more details.
  1508  //
  1509  //    You should have received a copy of the GNU Lesser General Public
  1510  //    License along with the GNU C Library; if not, see
  1511  //    <http://www.gnu.org/licenses/>.
  1512  
  1513  // Generic struct for both POSIX and C11 mutexes.  New ports are expected
  1514  //    to use the default layout, however architecture can redefine it to
  1515  //    add arch-specific extension (such as lock-elision).  The struct have
  1516  //    a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
  1517  
  1518  type X__pthread_mutex_s = struct {
  1519  	F__lock   int32
  1520  	F__count  uint32
  1521  	F__owner  int32
  1522  	F__nusers uint32
  1523  	F__kind   int32
  1524  	F__spins  int32
  1525  	F__list   X__pthread_list_t
  1526  } /* struct_mutex.h:27:1 */
  1527  
  1528  // Arch-sepecific read-write lock definitions.  A generic implementation is
  1529  //    provided by struct_rwlock.h.  If required, an architecture can override it
  1530  //    by defining:
  1531  //
  1532  //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1533  //       It should contain at least the internal members defined in the
  1534  //       generic version.
  1535  //
  1536  //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1537  //       It should initialize the rwlock internal type.
  1538  
  1539  // AArch64 internal rwlock struct definitions.
  1540  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1541  //
  1542  //    This file is part of the GNU C Library.
  1543  //
  1544  //    The GNU C Library is free software; you can redistribute it and/or
  1545  //    modify it under the terms of the GNU Lesser General Public
  1546  //    License as published by the Free Software Foundation; either
  1547  //    version 2.1 of the License, or (at your option) any later version.
  1548  //
  1549  //    The GNU C Library is distributed in the hope that it will be useful,
  1550  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1551  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1552  //    Lesser General Public License for more details.
  1553  //
  1554  //    You should have received a copy of the GNU Lesser General Public
  1555  //    License along with the GNU C Library; if not, see
  1556  //    <http://www.gnu.org/licenses/>.
  1557  
  1558  type X__pthread_rwlock_arch_t = struct {
  1559  	F__readers       uint32
  1560  	F__writers       uint32
  1561  	F__wrphase_futex uint32
  1562  	F__writers_futex uint32
  1563  	F__pad3          uint32
  1564  	F__pad4          uint32
  1565  	F__cur_writer    int32
  1566  	F__shared        int32
  1567  	F__pad1          uint64
  1568  	F__pad2          uint64
  1569  	F__flags         uint32
  1570  	F__ccgo_pad1     [4]byte
  1571  } /* struct_rwlock.h:23:1 */
  1572  
  1573  // Common definition of pthread_cond_t.
  1574  
  1575  type X__pthread_cond_s = struct {
  1576  	F__0            struct{ F__wseq uint64 }
  1577  	F__8            struct{ F__g1_start uint64 }
  1578  	F__g_refs       [2]uint32
  1579  	F__g_size       [2]uint32
  1580  	F__g1_orig_size uint32
  1581  	F__wrefs        uint32
  1582  	F__g_signals    [2]uint32
  1583  } /* thread-shared-types.h:92:1 */
  1584  
  1585  // Thread identifiers.  The structure of the attribute type is not
  1586  //
  1587  //	exposed on purpose.
  1588  type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1589  
  1590  // Data structures for mutex handling.  The structure of the attribute
  1591  //
  1592  //	type is not exposed on purpose.
  1593  type Pthread_mutexattr_t = struct {
  1594  	F__ccgo_pad1 [0]uint32
  1595  	F__size      [8]uint8
  1596  } /* pthreadtypes.h:36:3 */
  1597  
  1598  // Data structure for condition variable handling.  The structure of
  1599  //
  1600  //	the attribute type is not exposed on purpose.
  1601  type Pthread_condattr_t = struct {
  1602  	F__ccgo_pad1 [0]uint32
  1603  	F__size      [8]uint8
  1604  } /* pthreadtypes.h:45:3 */
  1605  
  1606  // Keys for thread-specific data
  1607  type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1608  
  1609  // Once-only execution
  1610  type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1611  
  1612  type Pthread_attr_t1 = struct {
  1613  	F__ccgo_pad1 [0]uint64
  1614  	F__size      [64]uint8
  1615  } /* pthreadtypes.h:56:1 */
  1616  
  1617  type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1618  
  1619  type Pthread_mutex_t = struct {
  1620  	F__data      X__pthread_mutex_s
  1621  	F__ccgo_pad1 [8]byte
  1622  } /* pthreadtypes.h:72:3 */
  1623  
  1624  type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1625  
  1626  // Data structure for reader-writer lock variable handling.  The
  1627  //
  1628  //	structure of the attribute type is deliberately not exposed.
  1629  type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1630  
  1631  type Pthread_rwlockattr_t = struct {
  1632  	F__ccgo_pad1 [0]uint64
  1633  	F__size      [8]uint8
  1634  } /* pthreadtypes.h:97:3 */
  1635  
  1636  // POSIX spinlock data type.
  1637  type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1638  
  1639  // POSIX barriers data type.  The structure of the type is
  1640  //
  1641  //	deliberately not exposed.
  1642  type Pthread_barrier_t = struct {
  1643  	F__ccgo_pad1 [0]uint64
  1644  	F__size      [32]uint8
  1645  } /* pthreadtypes.h:112:3 */
  1646  
  1647  type Pthread_barrierattr_t = struct {
  1648  	F__ccgo_pad1 [0]uint32
  1649  	F__size      [8]uint8
  1650  } /* pthreadtypes.h:118:3 */
  1651  
  1652  var _ uint8 /* gen.c:2:13: */