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