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