github.com/afumu/libc@v0.0.6/sys/random/random_linux_s390x.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_s390x.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                   = 4321
    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 = int32 /* <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  // Properties of long double type.  ldbl-opt version.
   473  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   474  //    This file is part of the GNU C Library.
   475  //
   476  //    The GNU C Library is free software; you can redistribute it and/or
   477  //    modify it under the terms of the GNU Lesser General Public
   478  //    License  published by the Free Software Foundation; either
   479  //    version 2.1 of the License, or (at your option) any later version.
   480  //
   481  //    The GNU C Library is distributed in the hope that it will be useful,
   482  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   483  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   484  //    Lesser General Public License for more details.
   485  //
   486  //    You should have received a copy of the GNU Lesser General Public
   487  //    License along with the GNU C Library; if not, see
   488  //    <https://www.gnu.org/licenses/>.
   489  
   490  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   491  //    intended for use in preprocessor macros.
   492  //
   493  //    Note: MESSAGE must be a _single_ string; concatenation of string
   494  //    literals is not supported.
   495  
   496  // Generic selection (ISO C11) is a C-only feature, available in GCC
   497  //    since version 4.9.  Previous versions do not provide generic
   498  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   499  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   500  //    when testing __STDC_VERSION__ for generic selection support.
   501  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   502  //    check is required to enable the use of generic selection.
   503  
   504  // If we don't have __REDIRECT, prototypes will be missing if
   505  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   506  
   507  // Decide whether we can define 'extern inline' functions in headers.
   508  
   509  // This is here only because every header file already includes this one.
   510  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   511  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   512  //    that will always return failure (and set errno to ENOSYS).
   513  // This file is automatically generated.
   514  //    This file selects the right generated file of `__stub_FUNCTION' macros
   515  //    based on the architecture being compiled for.
   516  
   517  // Determine the wordsize from the preprocessor defines.
   518  
   519  // This file is automatically generated.
   520  //    It defines a symbol `__stub_FUNCTION' for each function
   521  //    in the C library which is a stub, meaning it will fail
   522  //    every time called, usually setting errno to ENOSYS.
   523  
   524  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   525  //    This file is part of the GNU C Library.
   526  //
   527  //    The GNU C Library is free software; you can redistribute it and/or
   528  //    modify it under the terms of the GNU Lesser General Public
   529  //    License as published by the Free Software Foundation; either
   530  //    version 2.1 of the License, or (at your option) any later version.
   531  //
   532  //    The GNU C Library is distributed in the hope that it will be useful,
   533  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   534  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   535  //    Lesser General Public License for more details.
   536  //
   537  //    You should have received a copy of the GNU Lesser General Public
   538  //    License along with the GNU C Library; if not, see
   539  //    <https://www.gnu.org/licenses/>.
   540  
   541  //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   542  
   543  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   544  //    This file is part of the GNU C Library.
   545  //
   546  //    The GNU C Library is free software; you can redistribute it and/or
   547  //    modify it under the terms of the GNU Lesser General Public
   548  //    License as published by the Free Software Foundation; either
   549  //    version 2.1 of the License, or (at your option) any later version.
   550  //
   551  //    The GNU C Library is distributed in the hope that it will be useful,
   552  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   553  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   554  //    Lesser General Public License for more details.
   555  //
   556  //    You should have received a copy of the GNU Lesser General Public
   557  //    License along with the GNU C Library; if not, see
   558  //    <https://www.gnu.org/licenses/>.
   559  
   560  // bits/types.h -- definitions of __*_t types underlying *_t types.
   561  //    Copyright (C) 2002-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  // Never include this file directly; use <sys/types.h> instead.
   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  // Determine the wordsize from the preprocessor defines.
   598  
   599  // Bit size of the time_t type at glibc build time, general case.
   600  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   601  //    This file is part of the GNU C Library.
   602  //
   603  //    The GNU C Library is free software; you can redistribute it and/or
   604  //    modify it under the terms of the GNU Lesser General Public
   605  //    License as published by the Free Software Foundation; either
   606  //    version 2.1 of the License, or (at your option) any later version.
   607  //
   608  //    The GNU C Library is distributed in the hope that it will be useful,
   609  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   610  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   611  //    Lesser General Public License for more details.
   612  //
   613  //    You should have received a copy of the GNU Lesser General Public
   614  //    License along with the GNU C Library; if not, see
   615  //    <https://www.gnu.org/licenses/>.
   616  
   617  // Determine the wordsize from the preprocessor defines.
   618  
   619  // Size in bits of the 'time_t' type of the default ABI.
   620  
   621  // Convenience types.
   622  type X__u_char = uint8   /* types.h:31:23 */
   623  type X__u_short = uint16 /* types.h:32:28 */
   624  type X__u_int = uint32   /* types.h:33:22 */
   625  type X__u_long = uint64  /* types.h:34:27 */
   626  
   627  // Fixed-size types, underlying types depend on word size and compiler.
   628  type X__int8_t = int8     /* types.h:37:21 */
   629  type X__uint8_t = uint8   /* types.h:38:23 */
   630  type X__int16_t = int16   /* types.h:39:26 */
   631  type X__uint16_t = uint16 /* types.h:40:28 */
   632  type X__int32_t = int32   /* types.h:41:20 */
   633  type X__uint32_t = uint32 /* types.h:42:22 */
   634  type X__int64_t = int64   /* types.h:44:25 */
   635  type X__uint64_t = uint64 /* types.h:45:27 */
   636  
   637  // Smallest types with at least a given width.
   638  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   639  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   640  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   641  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   642  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   643  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   644  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   645  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   646  
   647  // quad_t is also 64 bits.
   648  type X__quad_t = int64    /* types.h:63:18 */
   649  type X__u_quad_t = uint64 /* types.h:64:27 */
   650  
   651  // Largest integral types.
   652  type X__intmax_t = int64   /* types.h:72:18 */
   653  type X__uintmax_t = uint64 /* types.h:73:27 */
   654  
   655  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   656  //    macros for each of the OS types we define below.  The definitions
   657  //    of those macros must use the following macros for underlying types.
   658  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   659  //    variants of each of the following integer types on this machine.
   660  //
   661  // 	16		-- "natural" 16-bit type (always short)
   662  // 	32		-- "natural" 32-bit type (always int)
   663  // 	64		-- "natural" 64-bit type (long or long long)
   664  // 	LONG32		-- 32-bit type, traditionally long
   665  // 	QUAD		-- 64-bit type, traditionally long long
   666  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   667  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   668  //
   669  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   670  //    conventional uses of `long' or `long long' type modifiers match the
   671  //    types we define, even when a less-adorned type would be the same size.
   672  //    This matters for (somewhat) portably writing printf/scanf formats for
   673  //    these types, where using the appropriate l or ll format modifiers can
   674  //    make the typedefs and the formats match up across all GNU platforms.  If
   675  //    we used `long' when it's 64 bits where `long long' is expected, then the
   676  //    compiler would warn about the formats not matching the argument types,
   677  //    and the programmer changing them to shut up the compiler would break the
   678  //    program's portability.
   679  //
   680  //    Here we assume what is presently the case in all the GCC configurations
   681  //    we support: long long is always 64 bits, long is always word/address size,
   682  //    and int is always 32 bits.
   683  
   684  // No need to mark the typedef with __extension__.
   685  // bits/typesizes.h -- underlying types for *_t.  Linux/s390 version.
   686  //    Copyright (C) 2003-2020 Free Software Foundation, Inc.
   687  //    This file is part of the GNU C Library.
   688  //
   689  //    The GNU C Library is free software; you can redistribute it and/or
   690  //    modify it under the terms of the GNU Lesser General Public
   691  //    License as published by the Free Software Foundation; either
   692  //    version 2.1 of the License, or (at your option) any later version.
   693  //
   694  //    The GNU C Library is distributed in the hope that it will be useful,
   695  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   696  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   697  //    Lesser General Public License for more details.
   698  //
   699  //    You should have received a copy of the GNU Lesser General Public
   700  //    License along with the GNU C Library; if not, see
   701  //    <https://www.gnu.org/licenses/>.
   702  
   703  // See <bits/types.h> for the meaning of these macros.  This file exists so
   704  //    that <bits/types.h> need not vary across different GNU platforms.
   705  
   706  // size_t is unsigned long int on s390 -m31.
   707  
   708  // Tell the libc code that off_t and off64_t are actually the same type
   709  //    for all ABI purposes, even if possibly expressed as different base types
   710  //    for C type-checking purposes.
   711  
   712  // Same for ino_t and ino64_t.
   713  
   714  // And for __rlim_t and __rlim64_t.
   715  
   716  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   717  
   718  // Number of descriptors that can fit in an `fd_set'.
   719  
   720  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   721  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   722  //    This file is part of the GNU C Library.
   723  //
   724  //    The GNU C Library is free software; you can redistribute it and/or
   725  //    modify it under the terms of the GNU Lesser General Public
   726  //    License as published by the Free Software Foundation; either
   727  //    version 2.1 of the License, or (at your option) any later version.
   728  //
   729  //    The GNU C Library is distributed in the hope that it will be useful,
   730  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   731  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   732  //    Lesser General Public License for more details.
   733  //
   734  //    You should have received a copy of the GNU Lesser General Public
   735  //    License along with the GNU C Library; if not, see
   736  //    <https://www.gnu.org/licenses/>.
   737  
   738  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   739  
   740  // If we already have 64-bit time type then use it.
   741  
   742  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   743  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   744  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   745  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   746  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   747  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   748  type X__nlink_t = uint64                   /* types.h:151:27 */ // Type of file link counts.
   749  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   750  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   751  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   752  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   753  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   754  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   755  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   756  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   757  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   758  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   759  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   760  
   761  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   762  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   763  
   764  // Clock ID used in clock and timer functions.
   765  type X__clockid_t = int32 /* types.h:168:29 */
   766  
   767  // Timer ID returned by `timer_create'.
   768  type X__timer_t = uintptr /* types.h:171:12 */
   769  
   770  // Type to represent block size.
   771  type X__blksize_t = int64 /* types.h:174:29 */
   772  
   773  // Types from the Large File Support interface.
   774  
   775  // Type to count number of disk blocks.
   776  type X__blkcnt_t = int64   /* types.h:179:28 */
   777  type X__blkcnt64_t = int64 /* types.h:180:30 */
   778  
   779  // Type to count file system blocks.
   780  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   781  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   782  
   783  // Type to count file system nodes.
   784  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   785  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   786  
   787  // Type of miscellaneous file system fields.
   788  type X__fsword_t = int64 /* types.h:191:28 */
   789  
   790  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   791  
   792  // Signed long type used in system calls.
   793  type X__syscall_slong_t = int64 /* types.h:196:33 */
   794  // Unsigned long type used in system calls.
   795  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   796  
   797  // These few don't really vary by system, they always correspond
   798  //
   799  //	to one of the other defined types.
   800  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   801  type X__caddr_t = uintptr   /* types.h:203:14 */
   802  
   803  // Duplicates info from stdint.h but this is used in unistd.h.
   804  type X__intptr_t = int64 /* types.h:206:25 */
   805  
   806  // Duplicate info from sys/socket.h.
   807  type X__socklen_t = uint32 /* types.h:209:23 */
   808  
   809  // C99: An integer type that can be accessed as an atomic entity,
   810  //
   811  //	even in the presence of asynchronous interrupts.
   812  //	It is not currently necessary for this to be machine-specific.
   813  type X__sig_atomic_t = int32 /* types.h:214:13 */
   814  
   815  // Seconds since the Epoch, visible to user code when time_t is too
   816  //    narrow only for consistency with the old way of widening too-narrow
   817  //    types.  User code should never use __time64_t.
   818  
   819  type U_char = X__u_char     /* types.h:33:18 */
   820  type U_short = X__u_short   /* types.h:34:19 */
   821  type U_int = X__u_int       /* types.h:35:17 */
   822  type U_long = X__u_long     /* types.h:36:18 */
   823  type Quad_t = X__quad_t     /* types.h:37:18 */
   824  type U_quad_t = X__u_quad_t /* types.h:38:20 */
   825  type Fsid_t = X__fsid_t     /* types.h:39:18 */
   826  type Loff_t = X__loff_t     /* types.h:42:18 */
   827  
   828  type Ino_t = X__ino64_t /* types.h:49:19 */
   829  
   830  type Dev_t = X__dev_t /* types.h:59:17 */
   831  
   832  type Gid_t = X__gid_t /* types.h:64:17 */
   833  
   834  type Mode_t = X__mode_t /* types.h:69:18 */
   835  
   836  type Nlink_t = X__nlink_t /* types.h:74:19 */
   837  
   838  type Uid_t = X__uid_t /* types.h:79:17 */
   839  
   840  type Off_t = X__off64_t /* types.h:87:19 */
   841  
   842  type Pid_t = X__pid_t /* types.h:97:17 */
   843  
   844  type Id_t = X__id_t /* types.h:103:16 */
   845  
   846  type Ssize_t = X__ssize_t /* types.h:108:19 */
   847  
   848  type Daddr_t = X__daddr_t /* types.h:114:19 */
   849  type Caddr_t = X__caddr_t /* types.h:115:19 */
   850  
   851  type Key_t = X__key_t /* types.h:121:17 */
   852  
   853  // bits/types.h -- definitions of __*_t types underlying *_t types.
   854  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   855  //    This file is part of the GNU C Library.
   856  //
   857  //    The GNU C Library is free software; you can redistribute it and/or
   858  //    modify it under the terms of the GNU Lesser General Public
   859  //    License as published by the Free Software Foundation; either
   860  //    version 2.1 of the License, or (at your option) any later version.
   861  //
   862  //    The GNU C Library is distributed in the hope that it will be useful,
   863  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   864  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   865  //    Lesser General Public License for more details.
   866  //
   867  //    You should have received a copy of the GNU Lesser General Public
   868  //    License along with the GNU C Library; if not, see
   869  //    <https://www.gnu.org/licenses/>.
   870  
   871  // Never include this file directly; use <sys/types.h> instead.
   872  
   873  // Returned by `clock'.
   874  type Clock_t = X__clock_t /* clock_t.h:7:19 */
   875  
   876  // bits/types.h -- definitions of __*_t types underlying *_t types.
   877  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   878  //    This file is part of the GNU C Library.
   879  //
   880  //    The GNU C Library is free software; you can redistribute it and/or
   881  //    modify it under the terms of the GNU Lesser General Public
   882  //    License as published by the Free Software Foundation; either
   883  //    version 2.1 of the License, or (at your option) any later version.
   884  //
   885  //    The GNU C Library is distributed in the hope that it will be useful,
   886  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   887  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   888  //    Lesser General Public License for more details.
   889  //
   890  //    You should have received a copy of the GNU Lesser General Public
   891  //    License along with the GNU C Library; if not, see
   892  //    <https://www.gnu.org/licenses/>.
   893  
   894  // Never include this file directly; use <sys/types.h> instead.
   895  
   896  // Clock ID used in clock and timer functions.
   897  type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   898  
   899  // bits/types.h -- definitions of __*_t types underlying *_t types.
   900  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   901  //    This file is part of the GNU C Library.
   902  //
   903  //    The GNU C Library is free software; you can redistribute it and/or
   904  //    modify it under the terms of the GNU Lesser General Public
   905  //    License as published by the Free Software Foundation; either
   906  //    version 2.1 of the License, or (at your option) any later version.
   907  //
   908  //    The GNU C Library is distributed in the hope that it will be useful,
   909  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   910  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   911  //    Lesser General Public License for more details.
   912  //
   913  //    You should have received a copy of the GNU Lesser General Public
   914  //    License along with the GNU C Library; if not, see
   915  //    <https://www.gnu.org/licenses/>.
   916  
   917  // Never include this file directly; use <sys/types.h> instead.
   918  
   919  // Returned by `time'.
   920  type Time_t = X__time_t /* time_t.h:7:18 */
   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  // Timer ID returned by `timer_create'.
   943  type Timer_t = X__timer_t /* timer_t.h:7:19 */
   944  
   945  // Wide character type.
   946  //    Locale-writers should change this as necessary to
   947  //    be big enough to hold unique values not between 0 and 127,
   948  //    and not (wchar_t) -1, for each defined multibyte character.
   949  
   950  // Define this type if we are doing the whole job,
   951  //    or if we want this type in particular.
   952  
   953  // A null pointer constant.
   954  
   955  // Old compatibility names for C types.
   956  type Ulong = uint64  /* types.h:148:27 */
   957  type Ushort = uint16 /* types.h:149:28 */
   958  type Uint = uint32   /* types.h:150:22 */
   959  
   960  // These size-specific names are used by some of the inet code.
   961  
   962  // Define intN_t types.
   963  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
   964  //    This file is part of the GNU C Library.
   965  //
   966  //    The GNU C Library is free software; you can redistribute it and/or
   967  //    modify it under the terms of the GNU Lesser General Public
   968  //    License as published by the Free Software Foundation; either
   969  //    version 2.1 of the License, or (at your option) any later version.
   970  //
   971  //    The GNU C Library is distributed in the hope that it will be useful,
   972  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   973  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   974  //    Lesser General Public License for more details.
   975  //
   976  //    You should have received a copy of the GNU Lesser General Public
   977  //    License along with the GNU C Library; if not, see
   978  //    <https://www.gnu.org/licenses/>.
   979  
   980  // bits/types.h -- definitions of __*_t types underlying *_t types.
   981  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   982  //    This file is part of the GNU C Library.
   983  //
   984  //    The GNU C Library is free software; you can redistribute it and/or
   985  //    modify it under the terms of the GNU Lesser General Public
   986  //    License as published by the Free Software Foundation; either
   987  //    version 2.1 of the License, or (at your option) any later version.
   988  //
   989  //    The GNU C Library is distributed in the hope that it will be useful,
   990  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   991  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   992  //    Lesser General Public License for more details.
   993  //
   994  //    You should have received a copy of the GNU Lesser General Public
   995  //    License along with the GNU C Library; if not, see
   996  //    <https://www.gnu.org/licenses/>.
   997  
   998  // Never include this file directly; use <sys/types.h> instead.
   999  
  1000  type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
  1001  type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  1002  type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  1003  type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  1004  
  1005  // These were defined by ISO C without the first `_'.
  1006  type U_int8_t = X__uint8_t   /* types.h:158:19 */
  1007  type U_int16_t = X__uint16_t /* types.h:159:20 */
  1008  type U_int32_t = X__uint32_t /* types.h:160:20 */
  1009  type U_int64_t = X__uint64_t /* types.h:161:20 */
  1010  
  1011  type Register_t = int32 /* types.h:164:13 */
  1012  
  1013  // It also defines `fd_set' and the FD_* macros for `select'.
  1014  // `fd_set' type and related macros, and `select'/`pselect' declarations.
  1015  //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
  1016  //    This file is part of the GNU C Library.
  1017  //
  1018  //    The GNU C Library is free software; you can redistribute it and/or
  1019  //    modify it under the terms of the GNU Lesser General Public
  1020  //    License as published by the Free Software Foundation; either
  1021  //    version 2.1 of the License, or (at your option) any later version.
  1022  //
  1023  //    The GNU C Library is distributed in the hope that it will be useful,
  1024  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1025  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1026  //    Lesser General Public License for more details.
  1027  //
  1028  //    You should have received a copy of the GNU Lesser General Public
  1029  //    License along with the GNU C Library; if not, see
  1030  //    <https://www.gnu.org/licenses/>.
  1031  
  1032  //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  1033  
  1034  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1035  //    This file is part of the GNU C Library.
  1036  //
  1037  //    The GNU C Library is free software; you can redistribute it and/or
  1038  //    modify it under the terms of the GNU Lesser General Public
  1039  //    License as published by the Free Software Foundation; either
  1040  //    version 2.1 of the License, or (at your option) any later version.
  1041  //
  1042  //    The GNU C Library is distributed in the hope that it will be useful,
  1043  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1044  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1045  //    Lesser General Public License for more details.
  1046  //
  1047  //    You should have received a copy of the GNU Lesser General Public
  1048  //    License along with the GNU C Library; if not, see
  1049  //    <https://www.gnu.org/licenses/>.
  1050  
  1051  // Get definition of needed basic types.
  1052  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1053  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1054  //    This file is part of the GNU C Library.
  1055  //
  1056  //    The GNU C Library is free software; you can redistribute it and/or
  1057  //    modify it under the terms of the GNU Lesser General Public
  1058  //    License as published by the Free Software Foundation; either
  1059  //    version 2.1 of the License, or (at your option) any later version.
  1060  //
  1061  //    The GNU C Library is distributed in the hope that it will be useful,
  1062  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1063  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1064  //    Lesser General Public License for more details.
  1065  //
  1066  //    You should have received a copy of the GNU Lesser General Public
  1067  //    License along with the GNU C Library; if not, see
  1068  //    <https://www.gnu.org/licenses/>.
  1069  
  1070  // Never include this file directly; use <sys/types.h> instead.
  1071  
  1072  // Get __FD_* definitions.
  1073  // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1074  //    This file is part of the GNU C Library.
  1075  //
  1076  //    The GNU C Library is free software; you can redistribute it and/or
  1077  //    modify it under the terms of the GNU Lesser General Public
  1078  //    License as published by the Free Software Foundation; either
  1079  //    version 2.1 of the License, or (at your option) any later version.
  1080  //
  1081  //    The GNU C Library is distributed in the hope that it will be useful,
  1082  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1083  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1084  //    Lesser General Public License for more details.
  1085  //
  1086  //    You should have received a copy of the GNU Lesser General Public
  1087  //    License along with the GNU C Library; if not, see
  1088  //    <https://www.gnu.org/licenses/>.
  1089  
  1090  // We don't use `memset' because this would require a prototype and
  1091  //    the array isn't too big.
  1092  
  1093  // Get sigset_t.
  1094  
  1095  type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  1096  
  1097  // A set of signals to be blocked, unblocked, or waited for.
  1098  type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  1099  
  1100  // Get definition of timer specification structures.
  1101  
  1102  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1103  //    Copyright (C) 2002-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  // Never include this file directly; use <sys/types.h> instead.
  1121  
  1122  // A time value that is accurate to the nearest
  1123  //
  1124  //	microsecond but also has a range of years.
  1125  type Timeval = struct {
  1126  	Ftv_sec  X__time_t
  1127  	Ftv_usec X__suseconds_t
  1128  } /* struct_timeval.h:8:1 */
  1129  
  1130  // NB: Include guard matches what <linux/time.h> uses.
  1131  
  1132  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1133  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1134  //    This file is part of the GNU C Library.
  1135  //
  1136  //    The GNU C Library is free software; you can redistribute it and/or
  1137  //    modify it under the terms of the GNU Lesser General Public
  1138  //    License as published by the Free Software Foundation; either
  1139  //    version 2.1 of the License, or (at your option) any later version.
  1140  //
  1141  //    The GNU C Library is distributed in the hope that it will be useful,
  1142  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1143  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1144  //    Lesser General Public License for more details.
  1145  //
  1146  //    You should have received a copy of the GNU Lesser General Public
  1147  //    License along with the GNU C Library; if not, see
  1148  //    <https://www.gnu.org/licenses/>.
  1149  
  1150  // Never include this file directly; use <sys/types.h> instead.
  1151  
  1152  // Endian macros for string.h functions
  1153  //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1154  //    This file is part of the GNU C Library.
  1155  //
  1156  //    The GNU C Library is free software; you can redistribute it and/or
  1157  //    modify it under the terms of the GNU Lesser General Public
  1158  //    License as published by the Free Software Foundation; either
  1159  //    version 2.1 of the License, or (at your option) any later version.
  1160  //
  1161  //    The GNU C Library is distributed in the hope that it will be useful,
  1162  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1163  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1164  //    Lesser General Public License for more details.
  1165  //
  1166  //    You should have received a copy of the GNU Lesser General Public
  1167  //    License along with the GNU C Library; if not, see
  1168  //    <http://www.gnu.org/licenses/>.
  1169  
  1170  // POSIX.1b structure for a time value.  This is like a `struct timeval' but
  1171  //
  1172  //	has nanoseconds instead of microseconds.
  1173  type Timespec = struct {
  1174  	Ftv_sec  X__time_t
  1175  	Ftv_nsec X__syscall_slong_t
  1176  } /* struct_timespec.h:10:1 */
  1177  
  1178  type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  1179  
  1180  // The fd_set member is required to be an array of longs.
  1181  type X__fd_mask = int64 /* select.h:49:18 */
  1182  
  1183  // Some versions of <linux/posix_types.h> define this macros.
  1184  // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  1185  
  1186  // fd_set for select and pselect.
  1187  type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  1188  
  1189  // Maximum number of file descriptors in `fd_set'.
  1190  
  1191  // Sometimes the fd_set member is assumed to have this type.
  1192  type Fd_mask = X__fd_mask /* select.h:77:19 */
  1193  
  1194  // Define some inlines helping to catch common problems.
  1195  
  1196  type Blksize_t = X__blksize_t /* types.h:185:21 */
  1197  
  1198  // Types from the Large File Support interface.
  1199  type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
  1200  type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1201  type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1202  
  1203  // Now add the thread types.
  1204  // Declaration of common pthread types for all architectures.
  1205  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1206  //    This file is part of the GNU C Library.
  1207  //
  1208  //    The GNU C Library is free software; you can redistribute it and/or
  1209  //    modify it under the terms of the GNU Lesser General Public
  1210  //    License as published by the Free Software Foundation; either
  1211  //    version 2.1 of the License, or (at your option) any later version.
  1212  //
  1213  //    The GNU C Library is distributed in the hope that it will be useful,
  1214  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1215  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1216  //    Lesser General Public License for more details.
  1217  //
  1218  //    You should have received a copy of the GNU Lesser General Public
  1219  //    License along with the GNU C Library; if not, see
  1220  //    <https://www.gnu.org/licenses/>.
  1221  
  1222  // For internal mutex and condition variable definitions.
  1223  // Common threading primitives definitions for both POSIX and C11.
  1224  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1225  //    This file is part of the GNU C Library.
  1226  //
  1227  //    The GNU C Library is free software; you can redistribute it and/or
  1228  //    modify it under the terms of the GNU Lesser General Public
  1229  //    License as published by the Free Software Foundation; either
  1230  //    version 2.1 of the License, or (at your option) any later version.
  1231  //
  1232  //    The GNU C Library is distributed in the hope that it will be useful,
  1233  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1234  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1235  //    Lesser General Public License for more details.
  1236  //
  1237  //    You should have received a copy of the GNU Lesser General Public
  1238  //    License along with the GNU C Library; if not, see
  1239  //    <https://www.gnu.org/licenses/>.
  1240  
  1241  // Arch-specific definitions.  Each architecture must define the following
  1242  //    macros to define the expected sizes of pthread data types:
  1243  //
  1244  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1245  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1246  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1247  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1248  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1249  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1250  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1251  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1252  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1253  //
  1254  //    The additional macro defines any constraint for the lock alignment
  1255  //    inside the thread structures:
  1256  //
  1257  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1258  //
  1259  //    Same idea but for the once locking primitive:
  1260  //
  1261  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1262  
  1263  // Machine-specific pthread type layouts.  Generic version.
  1264  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1265  //
  1266  //    This file is part of the GNU C Library.
  1267  //
  1268  //    The GNU C Library is free software; you can redistribute it and/or
  1269  //    modify it under the terms of the GNU Lesser General Public
  1270  //    License as published by the Free Software Foundation; either
  1271  //    version 2.1 of the License, or (at your option) any later version.
  1272  //
  1273  //    The GNU C Library is distributed in the hope that it will be useful,
  1274  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1275  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1276  //    Lesser General Public License for more details.
  1277  //
  1278  //    You should have received a copy of the GNU Lesser General Public
  1279  //    License along with the GNU C Library; if not, see
  1280  //    <http://www.gnu.org/licenses/>.
  1281  
  1282  // Determine the wordsize from the preprocessor defines.
  1283  
  1284  // Common definition of pthread_mutex_t.
  1285  
  1286  type X__pthread_internal_list = struct {
  1287  	F__prev uintptr
  1288  	F__next uintptr
  1289  } /* thread-shared-types.h:49:9 */
  1290  
  1291  // Type to count file system inodes.
  1292  
  1293  // Now add the thread types.
  1294  // Declaration of common pthread types for all architectures.
  1295  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1296  //    This file is part of the GNU C Library.
  1297  //
  1298  //    The GNU C Library is free software; you can redistribute it and/or
  1299  //    modify it under the terms of the GNU Lesser General Public
  1300  //    License as published by the Free Software Foundation; either
  1301  //    version 2.1 of the License, or (at your option) any later version.
  1302  //
  1303  //    The GNU C Library is distributed in the hope that it will be useful,
  1304  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1305  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1306  //    Lesser General Public License for more details.
  1307  //
  1308  //    You should have received a copy of the GNU Lesser General Public
  1309  //    License along with the GNU C Library; if not, see
  1310  //    <https://www.gnu.org/licenses/>.
  1311  
  1312  // For internal mutex and condition variable definitions.
  1313  // Common threading primitives definitions for both POSIX and C11.
  1314  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1315  //    This file is part of the GNU C Library.
  1316  //
  1317  //    The GNU C Library is free software; you can redistribute it and/or
  1318  //    modify it under the terms of the GNU Lesser General Public
  1319  //    License as published by the Free Software Foundation; either
  1320  //    version 2.1 of the License, or (at your option) any later version.
  1321  //
  1322  //    The GNU C Library is distributed in the hope that it will be useful,
  1323  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1324  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1325  //    Lesser General Public License for more details.
  1326  //
  1327  //    You should have received a copy of the GNU Lesser General Public
  1328  //    License along with the GNU C Library; if not, see
  1329  //    <https://www.gnu.org/licenses/>.
  1330  
  1331  // Arch-specific definitions.  Each architecture must define the following
  1332  //    macros to define the expected sizes of pthread data types:
  1333  //
  1334  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1335  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1336  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1337  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1338  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1339  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1340  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1341  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1342  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1343  //
  1344  //    The additional macro defines any constraint for the lock alignment
  1345  //    inside the thread structures:
  1346  //
  1347  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1348  //
  1349  //    Same idea but for the once locking primitive:
  1350  //
  1351  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1352  
  1353  // Machine-specific pthread type layouts.  Generic version.
  1354  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1355  //
  1356  //    This file is part of the GNU C Library.
  1357  //
  1358  //    The GNU C Library is free software; you can redistribute it and/or
  1359  //    modify it under the terms of the GNU Lesser General Public
  1360  //    License as published by the Free Software Foundation; either
  1361  //    version 2.1 of the License, or (at your option) any later version.
  1362  //
  1363  //    The GNU C Library is distributed in the hope that it will be useful,
  1364  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1365  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1366  //    Lesser General Public License for more details.
  1367  //
  1368  //    You should have received a copy of the GNU Lesser General Public
  1369  //    License along with the GNU C Library; if not, see
  1370  //    <http://www.gnu.org/licenses/>.
  1371  
  1372  // Determine the wordsize from the preprocessor defines.
  1373  
  1374  // Common definition of pthread_mutex_t.
  1375  
  1376  type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1377  
  1378  type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1379  
  1380  type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1381  
  1382  // Arch-specific mutex definitions.  A generic implementation is provided
  1383  //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
  1384  //    can override it by defining:
  1385  //
  1386  //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1387  //       definition).  It should contains at least the internal members
  1388  //       defined in the generic version.
  1389  //
  1390  //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1391  //       atomic operations.
  1392  //
  1393  //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1394  //       It should initialize the mutex internal flag.
  1395  
  1396  // S390 internal mutex struct definitions.
  1397  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1398  //    This file is part of the GNU C Library.
  1399  //
  1400  //    The GNU C Library is free software; you can redistribute it and/or
  1401  //    modify it under the terms of the GNU Lesser General Public
  1402  //    License as published by the Free Software Foundation; either
  1403  //    version 2.1 of the License, or (at your option) any later version.
  1404  //
  1405  //    The GNU C Library is distributed in the hope that it will be useful,
  1406  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1407  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1408  //    Lesser General Public License for more details.
  1409  //
  1410  //    You should have received a copy of the GNU Lesser General Public
  1411  //    License along with the GNU C Library; if not, see
  1412  //    <http://www.gnu.org/licenses/>.
  1413  
  1414  type X__pthread_mutex_s = struct {
  1415  	F__lock    int32
  1416  	F__count   uint32
  1417  	F__owner   int32
  1418  	F__nusers  uint32
  1419  	F__kind    int32
  1420  	F__spins   int16
  1421  	F__elision int16
  1422  	F__list    X__pthread_list_t
  1423  } /* struct_mutex.h:22:1 */
  1424  
  1425  // Arch-sepecific read-write lock definitions.  A generic implementation is
  1426  //    provided by struct_rwlock.h.  If required, an architecture can override it
  1427  //    by defining:
  1428  //
  1429  //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1430  //       It should contain at least the internal members defined in the
  1431  //       generic version.
  1432  //
  1433  //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1434  //       It should initialize the rwlock internal type.
  1435  
  1436  // S390 internal rwlock struct definitions.
  1437  //    Copyright (C) 2019-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  //    <http://www.gnu.org/licenses/>.
  1454  
  1455  type X__pthread_rwlock_arch_t = struct {
  1456  	F__readers       uint32
  1457  	F__writers       uint32
  1458  	F__wrphase_futex uint32
  1459  	F__writers_futex uint32
  1460  	F__pad3          uint32
  1461  	F__pad4          uint32
  1462  	F__cur_writer    int32
  1463  	F__shared        int32
  1464  	F__pad1          uint64
  1465  	F__pad2          uint64
  1466  	F__flags         uint32
  1467  	F__ccgo_pad1     [4]byte
  1468  } /* struct_rwlock.h:23:1 */
  1469  
  1470  // Common definition of pthread_cond_t.
  1471  
  1472  type X__pthread_cond_s = struct {
  1473  	F__0            struct{ F__wseq uint64 }
  1474  	F__8            struct{ F__g1_start uint64 }
  1475  	F__g_refs       [2]uint32
  1476  	F__g_size       [2]uint32
  1477  	F__g1_orig_size uint32
  1478  	F__wrefs        uint32
  1479  	F__g_signals    [2]uint32
  1480  } /* thread-shared-types.h:92:1 */
  1481  
  1482  // Thread identifiers.  The structure of the attribute type is not
  1483  //
  1484  //	exposed on purpose.
  1485  type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1486  
  1487  // Data structures for mutex handling.  The structure of the attribute
  1488  //
  1489  //	type is not exposed on purpose.
  1490  type Pthread_mutexattr_t = struct {
  1491  	F__ccgo_pad1 [0]uint32
  1492  	F__size      [4]uint8
  1493  } /* pthreadtypes.h:36:3 */
  1494  
  1495  // Data structure for condition variable handling.  The structure of
  1496  //
  1497  //	the attribute type is not exposed on purpose.
  1498  type Pthread_condattr_t = struct {
  1499  	F__ccgo_pad1 [0]uint32
  1500  	F__size      [4]uint8
  1501  } /* pthreadtypes.h:45:3 */
  1502  
  1503  // Keys for thread-specific data
  1504  type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1505  
  1506  // Once-only execution
  1507  type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1508  
  1509  type Pthread_attr_t1 = struct {
  1510  	F__ccgo_pad1 [0]uint64
  1511  	F__size      [56]uint8
  1512  } /* pthreadtypes.h:56:1 */
  1513  
  1514  type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1515  
  1516  type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
  1517  
  1518  type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1519  
  1520  // Data structure for reader-writer lock variable handling.  The
  1521  //
  1522  //	structure of the attribute type is deliberately not exposed.
  1523  type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1524  
  1525  type Pthread_rwlockattr_t = struct {
  1526  	F__ccgo_pad1 [0]uint64
  1527  	F__size      [8]uint8
  1528  } /* pthreadtypes.h:97:3 */
  1529  
  1530  // POSIX spinlock data type.
  1531  type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1532  
  1533  // POSIX barriers data type.  The structure of the type is
  1534  //
  1535  //	deliberately not exposed.
  1536  type Pthread_barrier_t = struct {
  1537  	F__ccgo_pad1 [0]uint64
  1538  	F__size      [32]uint8
  1539  } /* pthreadtypes.h:112:3 */
  1540  
  1541  type Pthread_barrierattr_t = struct {
  1542  	F__ccgo_pad1 [0]uint32
  1543  	F__size      [4]uint8
  1544  } /* pthreadtypes.h:118:3 */
  1545  
  1546  var _ uint8 /* gen.c:2:13: */