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