github.com/afumu/libc@v0.0.6/sys/types/types_linux_ppc64le.go (about)

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