github.com/afumu/libc@v0.0.6/pwd/pwd_linux_loong64.go (about)

     1  // Code generated by 'ccgo pwd/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 pwd/pwd_linux_loong64.go -pkgname pwd', DO NOT EDIT.
     2  
     3  package pwd
     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  	NSS_BUFLEN_PASSWD     = 1024
    19  	X_ATFILE_SOURCE       = 1
    20  	X_BITS_TIME64_H       = 1
    21  	X_BITS_TYPESIZES_H    = 1
    22  	X_BITS_TYPES_H        = 1
    23  	X_BSD_SIZE_T_         = 0
    24  	X_BSD_SIZE_T_DEFINED_ = 0
    25  	X_DEFAULT_SOURCE      = 1
    26  	X_FEATURES_H          = 1
    27  	X_FILE_OFFSET_BITS    = 64
    28  	X_GCC_SIZE_T          = 0
    29  	X_LP64                = 1
    30  	X_POSIX_C_SOURCE      = 200809
    31  	X_POSIX_SOURCE        = 1
    32  	X_PWD_H               = 1
    33  	X_SIZET_              = 0
    34  	X_SIZE_T              = 0
    35  	X_SIZE_T_             = 0
    36  	X_SIZE_T_DECLARED     = 0
    37  	X_SIZE_T_DEFINED      = 0
    38  	X_SIZE_T_DEFINED_     = 0
    39  	X_STDC_PREDEF_H       = 1
    40  	X_SYS_CDEFS_H         = 1
    41  	X_SYS_SIZE_T_H        = 0
    42  	X_T_SIZE              = 0
    43  	X_T_SIZE_             = 0
    44  	Linux                 = 1
    45  	Unix                  = 1
    46  )
    47  
    48  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    49  
    50  type Size_t = uint64 /* <builtin>:9:23 */
    51  
    52  type Wchar_t = uint32 /* <builtin>:15:24 */
    53  
    54  type X__int128_t = struct {
    55  	Flo int64
    56  	Fhi int64
    57  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    58  type X__uint128_t = struct {
    59  	Flo uint64
    60  	Fhi uint64
    61  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    62  
    63  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    64  type X__float128 = float64        /* <builtin>:47:21 */
    65  
    66  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    67  //    This file is part of the GNU C Library.
    68  //
    69  //    The GNU C Library is free software; you can redistribute it and/or
    70  //    modify it under the terms of the GNU Lesser General Public
    71  //    License as published by the Free Software Foundation; either
    72  //    version 2.1 of the License, or (at your option) any later version.
    73  //
    74  //    The GNU C Library is distributed in the hope that it will be useful,
    75  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    76  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    77  //    Lesser General Public License for more details.
    78  //
    79  //    You should have received a copy of the GNU Lesser General Public
    80  //    License along with the GNU C Library; if not, see
    81  //    <https://www.gnu.org/licenses/>.
    82  
    83  //	POSIX Standard: 9.2.2 User Database Access	<pwd.h>
    84  
    85  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    86  //    This file is part of the GNU C Library.
    87  //
    88  //    The GNU C Library is free software; you can redistribute it and/or
    89  //    modify it under the terms of the GNU Lesser General Public
    90  //    License as published by the Free Software Foundation; either
    91  //    version 2.1 of the License, or (at your option) any later version.
    92  //
    93  //    The GNU C Library is distributed in the hope that it will be useful,
    94  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    95  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    96  //    Lesser General Public License for more details.
    97  //
    98  //    You should have received a copy of the GNU Lesser General Public
    99  //    License along with the GNU C Library; if not, see
   100  //    <https://www.gnu.org/licenses/>.
   101  
   102  // These are defined by the user (or the compiler)
   103  //    to specify the desired environment:
   104  //
   105  //    __STRICT_ANSI__	ISO Standard C.
   106  //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
   107  //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
   108  //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
   109  //    __STDC_WANT_LIB_EXT2__
   110  // 			Extensions to ISO C99 from TR 27431-2:2010.
   111  //    __STDC_WANT_IEC_60559_BFP_EXT__
   112  // 			Extensions to ISO C11 from TS 18661-1:2014.
   113  //    __STDC_WANT_IEC_60559_FUNCS_EXT__
   114  // 			Extensions to ISO C11 from TS 18661-4:2015.
   115  //    __STDC_WANT_IEC_60559_TYPES_EXT__
   116  // 			Extensions to ISO C11 from TS 18661-3:2015.
   117  //
   118  //    _POSIX_SOURCE	IEEE Std 1003.1.
   119  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   120  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   121  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   122  // 			if >=200112L, all of IEEE 1003.1-2004
   123  // 			if >=200809L, all of IEEE 1003.1-2008
   124  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   125  // 			Single Unix conformance is wanted, to 600 for the
   126  // 			sixth revision, to 700 for the seventh revision.
   127  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   128  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   129  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   130  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   131  //    _ATFILE_SOURCE	Additional *at interfaces.
   132  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   133  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   134  // 			__STRICT_ANSI__).
   135  //
   136  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   137  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   138  //
   139  //    _REENTRANT, _THREAD_SAFE
   140  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   141  //
   142  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   143  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   144  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   145  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   146  //    200809L, as well as enabling miscellaneous functions from BSD and
   147  //    SVID.  If more than one of these are defined, they accumulate.  For
   148  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   149  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   150  //
   151  //    These are defined by this file and are used by the
   152  //    header files to decide what to declare or define:
   153  //
   154  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   155  // 			to 1 or 0; the subsequent macros are either defined
   156  // 			or undefined, and those tests should be moved to
   157  // 			__GLIBC_USE.
   158  //    __USE_ISOC11		Define ISO C11 things.
   159  //    __USE_ISOC99		Define ISO C99 things.
   160  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   161  //    __USE_ISOCXX11	Define ISO C++11 things.
   162  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   163  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   164  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   165  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   166  //    __USE_XOPEN		Define XPG things.
   167  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   168  //    __USE_UNIX98		Define Single Unix V2 things.
   169  //    __USE_XOPEN2K        Define XPG6 things.
   170  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   171  //    __USE_XOPEN2K8       Define XPG7 things.
   172  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   173  //    __USE_LARGEFILE	Define correct standard I/O things.
   174  //    __USE_LARGEFILE64	Define LFS things with separate names.
   175  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   176  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   177  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   178  //    __USE_GNU		Define GNU extensions.
   179  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   180  //
   181  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   182  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   183  //    only for compatibility.  All new code should use the other symbols
   184  //    to test for features.
   185  //
   186  //    All macros listed above as possibly being defined by this file are
   187  //    explicitly undefined if they are not explicitly defined.
   188  //    Feature-test macros that are not defined by the user or compiler
   189  //    but are implied by the other feature-test macros defined (or by the
   190  //    lack of any definitions) are defined by the file.
   191  //
   192  //    ISO C feature test macros depend on the definition of the macro
   193  //    when an affected header is included, not when the first system
   194  //    header is included, and so they are handled in
   195  //    <bits/libc-header-start.h>, which does not have a multiple include
   196  //    guard.  Feature test macros that can be handled from the first
   197  //    system header included are handled here.
   198  
   199  // Undefine everything, so we get a clean slate.
   200  
   201  // Suppress kernel-name space pollution unless user expressedly asks
   202  //    for it.
   203  
   204  // Convenience macro to test the version of gcc.
   205  //    Use like this:
   206  //    #if __GNUC_PREREQ (2,8)
   207  //    ... code requiring gcc 2.8 or later ...
   208  //    #endif
   209  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   210  //    added in 2.0.
   211  
   212  // Similarly for clang.  Features added to GCC after version 4.2 may
   213  //    or may not also be available in clang, and clang's definitions of
   214  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   215  //    features can be queried via __has_extension/__has_feature.
   216  
   217  // Whether to use feature set F.
   218  
   219  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   220  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   221  //    issue a warning; the expectation is that the source is being
   222  //    transitioned to use the new macro.
   223  
   224  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   225  
   226  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   227  //    define _DEFAULT_SOURCE.
   228  
   229  // This is to enable the ISO C2X extension.
   230  
   231  // This is to enable the ISO C11 extension.
   232  
   233  // This is to enable the ISO C99 extension.
   234  
   235  // This is to enable the ISO C90 Amendment 1:1995 extension.
   236  
   237  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   238  //    is defined, use POSIX.1-2008 (or another version depending on
   239  //    _XOPEN_SOURCE).
   240  
   241  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   242  //    defined in all multithreaded code.  GNU libc has not required this
   243  //    for many years.  We now treat them as compatibility synonyms for
   244  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   245  //    comprehensive support for multithreaded code.  Using them never
   246  //    lowers the selected level of POSIX conformance, only raises it.
   247  
   248  // The function 'gets' existed in C89, but is impossible to use
   249  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   250  //    compatibility with various implementations of <cstdio>, this test
   251  //    must consider only the value of __cplusplus when compiling C++.
   252  
   253  // GNU formerly extended the scanf functions with modified format
   254  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   255  //    input using malloc.  This extension conflicts with ISO C99, which
   256  //    defines %a as a standalone format specifier that reads a floating-
   257  //    point number; moreover, POSIX.1-2008 provides the same feature
   258  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   259  //
   260  //    We now follow C99 unless GNU extensions are active and the compiler
   261  //    is specifically in C89 or C++98 mode (strict or not).  For
   262  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   263  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   264  //    old extension.
   265  
   266  // Get definitions of __STDC_* predefined macros, if the compiler has
   267  //    not preincluded this header automatically.
   268  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   269  //    This file is part of the GNU C Library.
   270  //
   271  //    The GNU C Library is free software; you can redistribute it and/or
   272  //    modify it under the terms of the GNU Lesser General Public
   273  //    License as published by the Free Software Foundation; either
   274  //    version 2.1 of the License, or (at your option) any later version.
   275  //
   276  //    The GNU C Library is distributed in the hope that it will be useful,
   277  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   278  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   279  //    Lesser General Public License for more details.
   280  //
   281  //    You should have received a copy of the GNU Lesser General Public
   282  //    License along with the GNU C Library; if not, see
   283  //    <https://www.gnu.org/licenses/>.
   284  
   285  // This macro indicates that the installed library is the GNU C Library.
   286  //    For historic reasons the value now is 6 and this will stay from now
   287  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   288  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   289  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   290  //    the sonames of the shared libraries.
   291  
   292  // Major and minor version number of the GNU C library package.  Use
   293  //    these macros to test for features in specific releases.
   294  
   295  // This is here only because every header file already includes this one.
   296  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   297  //    This file is part of the GNU C Library.
   298  //
   299  //    The GNU C Library is free software; you can redistribute it and/or
   300  //    modify it under the terms of the GNU Lesser General Public
   301  //    License as published by the Free Software Foundation; either
   302  //    version 2.1 of the License, or (at your option) any later version.
   303  //
   304  //    The GNU C Library is distributed in the hope that it will be useful,
   305  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   306  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   307  //    Lesser General Public License for more details.
   308  //
   309  //    You should have received a copy of the GNU Lesser General Public
   310  //    License along with the GNU C Library; if not, see
   311  //    <https://www.gnu.org/licenses/>.
   312  
   313  // We are almost always included from features.h.
   314  
   315  // The GNU libc does not support any K&R compilers or the traditional mode
   316  //    of ISO C compilers anymore.  Check for some of the combinations not
   317  //    anymore supported.
   318  
   319  // Some user header file might have defined this before.
   320  
   321  // All functions, except those with callbacks or those that
   322  //    synchronize memory, are leaf functions.
   323  
   324  // GCC can always grok prototypes.  For C++ programs we add throw()
   325  //    to help it optimize the function calls.  But this works only with
   326  //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
   327  //    as non-throwing using a function attribute since programs can use
   328  //    the -fexceptions options for C code as well.
   329  
   330  // Compilers that are not clang may object to
   331  //        #if defined __clang__ && __has_extension(...)
   332  //    even though they do not need to evaluate the right-hand side of the &&.
   333  
   334  // These two macros are not used in glibc anymore.  They are kept here
   335  //    only because some other projects expect the macros to be defined.
   336  
   337  // For these things, GCC behaves the ANSI way normally,
   338  //    and the non-ANSI way under -traditional.
   339  
   340  // This is not a typedef so `const __ptr_t' does the right thing.
   341  
   342  // C++ needs to know that types and declarations are C, not C++.
   343  
   344  // Fortify support.
   345  
   346  // Support for flexible arrays.
   347  //    Headers that should use flexible arrays only if they're "real"
   348  //    (e.g. only if they won't affect sizeof()) should test
   349  //    #if __glibc_c99_flexarr_available.
   350  
   351  // __asm__ ("xyz") is used throughout the headers to rename functions
   352  //    at the assembly language level.  This is wrapped by the __REDIRECT
   353  //    macro, in order to support compilers that can do this some other
   354  //    way.  When compilers don't support asm-names at all, we have to do
   355  //    preprocessor tricks instead (which don't have exactly the right
   356  //    semantics, but it's the best we can do).
   357  //
   358  //    Example:
   359  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   360  
   361  //
   362  // #elif __SOME_OTHER_COMPILER__
   363  //
   364  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   365  
   366  // GCC has various useful declarations that can be made with the
   367  //    `__attribute__' syntax.  All of the ways we use this do fine if
   368  //    they are omitted for compilers that don't understand it.
   369  
   370  // At some point during the gcc 2.96 development the `malloc' attribute
   371  //    for functions was introduced.  We don't want to use it unconditionally
   372  //    (although this would be possible) since it generates warnings.
   373  
   374  // Tell the compiler which arguments to an allocation function
   375  //    indicate the size of the allocation.
   376  
   377  // At some point during the gcc 2.96 development the `pure' attribute
   378  //    for functions was introduced.  We don't want to use it unconditionally
   379  //    (although this would be possible) since it generates warnings.
   380  
   381  // This declaration tells the compiler that the value is constant.
   382  
   383  // At some point during the gcc 3.1 development the `used' attribute
   384  //    for functions was introduced.  We don't want to use it unconditionally
   385  //    (although this would be possible) since it generates warnings.
   386  
   387  // Since version 3.2, gcc allows marking deprecated functions.
   388  
   389  // Since version 4.5, gcc also allows one to specify the message printed
   390  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   391  //    may also support this feature.
   392  
   393  // At some point during the gcc 2.8 development the `format_arg' attribute
   394  //    for functions was introduced.  We don't want to use it unconditionally
   395  //    (although this would be possible) since it generates warnings.
   396  //    If several `format_arg' attributes are given for the same function, in
   397  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   398  //    all designated arguments are considered.
   399  
   400  // At some point during the gcc 2.97 development the `strfmon' format
   401  //    attribute for functions was introduced.  We don't want to use it
   402  //    unconditionally (although this would be possible) since it
   403  //    generates warnings.
   404  
   405  // The nonull function attribute allows to mark pointer parameters which
   406  //    must not be NULL.
   407  
   408  // If fortification mode, we warn about unused results of certain
   409  //    function calls which can lead to problems.
   410  
   411  // Forces a function to be always inlined.
   412  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   413  //    it conflicts with this definition.  Therefore undefine it first to
   414  //    allow either header to be included first.
   415  
   416  // Associate error messages with the source location of the call site rather
   417  //    than with the source location inside the function.
   418  
   419  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   420  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   421  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   422  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   423  //    semantics.
   424  //
   425  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   426  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   427  //    __GNUC_GNU_INLINE__ macro definitions.
   428  
   429  // GCC 4.3 and above allow passing all anonymous arguments of an
   430  //    __extern_always_inline function to some other vararg function.
   431  
   432  // It is possible to compile containing GCC extensions even if GCC is
   433  //    run in pedantic mode if the uses are carefully marked using the
   434  //    `__extension__' keyword.  But this is not generally available before
   435  //    version 2.8.
   436  
   437  // __restrict is known in EGCS 1.2 and above.
   438  
   439  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
   440  //      array_name[restrict]
   441  //    GCC 3.1 supports this.
   442  
   443  // Describes a char array whose address can safely be passed as the first
   444  //    argument to strncpy and strncat, as the char array is not necessarily
   445  //    a NUL-terminated string.
   446  
   447  // Undefine (also defined in libc-symbols.h).
   448  // Copies attributes from the declaration or type referenced by
   449  //    the argument.
   450  
   451  // Determine the wordsize from the preprocessor defines.
   452  //
   453  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   454  //    This file is part of the GNU C Library.
   455  //
   456  //    The GNU C Library is free software; you can redistribute it and/or
   457  //    modify it under the terms of the GNU Lesser General Public
   458  //    License as published by the Free Software Foundation; either
   459  //    version 2.1 of the License, or (at your option) any later version.
   460  //
   461  //    The GNU C Library is distributed in the hope that it will be useful,
   462  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   463  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   464  //    Lesser General Public License for more details.
   465  //
   466  //    You should have received a copy of the GNU Lesser General Public
   467  //    License along with the GNU C Library; if not, see
   468  //    <https://www.gnu.org/licenses/>.
   469  
   470  // Properties of long double type.  ldbl-128 version.
   471  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   472  //    This file is part of the GNU C Library.
   473  //
   474  //    The GNU C Library is free software; you can redistribute it and/or
   475  //    modify it under the terms of the GNU Lesser General Public
   476  //    License  published by the Free Software Foundation; either
   477  //    version 2.1 of the License, or (at your option) any later version.
   478  //
   479  //    The GNU C Library is distributed in the hope that it will be useful,
   480  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   481  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   482  //    Lesser General Public License for more details.
   483  //
   484  //    You should have received a copy of the GNU Lesser General Public
   485  //    License along with the GNU C Library; if not, see
   486  //    <https://www.gnu.org/licenses/>.
   487  
   488  // long double is distinct from double, so there is nothing to
   489  //    define here.
   490  
   491  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   492  //    intended for use in preprocessor macros.
   493  //
   494  //    Note: MESSAGE must be a _single_ string; concatenation of string
   495  //    literals is not supported.
   496  
   497  // Generic selection (ISO C11) is a C-only feature, available in GCC
   498  //    since version 4.9.  Previous versions do not provide generic
   499  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   500  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   501  //    when testing __STDC_VERSION__ for generic selection support.
   502  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   503  //    check is required to enable the use of generic selection.
   504  
   505  // If we don't have __REDIRECT, prototypes will be missing if
   506  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   507  
   508  // Decide whether we can define 'extern inline' functions in headers.
   509  
   510  // This is here only because every header file already includes this one.
   511  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   512  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   513  //    that will always return failure (and set errno to ENOSYS).
   514  // This file is automatically generated.
   515  //    This file selects the right generated file of `__stub_FUNCTION' macros
   516  //    based on the architecture being compiled for.
   517  
   518  // Determine the wordsize from the preprocessor defines.
   519  //
   520  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   521  //    This file is part of the GNU C Library.
   522  //
   523  //    The GNU C Library is free software; you can redistribute it and/or
   524  //    modify it under the terms of the GNU Lesser General Public
   525  //    License as published by the Free Software Foundation; either
   526  //    version 2.1 of the License, or (at your option) any later version.
   527  //
   528  //    The GNU C Library is distributed in the hope that it will be useful,
   529  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   530  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   531  //    Lesser General Public License for more details.
   532  //
   533  //    You should have received a copy of the GNU Lesser General Public
   534  //    License along with the GNU C Library; if not, see
   535  //    <https://www.gnu.org/licenses/>.
   536  
   537  // This file is automatically generated.
   538  //    It defines a symbol `__stub_FUNCTION' for each function
   539  //    in the C library which is a stub, meaning it will fail
   540  //    every time called, usually setting errno to ENOSYS.
   541  
   542  // bits/types.h -- definitions of __*_t types underlying *_t types.
   543  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   544  //    This file is part of the GNU C Library.
   545  //
   546  //    The GNU C Library is free software; you can redistribute it and/or
   547  //    modify it under the terms of the GNU Lesser General Public
   548  //    License as published by the Free Software Foundation; either
   549  //    version 2.1 of the License, or (at your option) any later version.
   550  //
   551  //    The GNU C Library is distributed in the hope that it will be useful,
   552  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   553  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   554  //    Lesser General Public License for more details.
   555  //
   556  //    You should have received a copy of the GNU Lesser General Public
   557  //    License along with the GNU C Library; if not, see
   558  //    <https://www.gnu.org/licenses/>.
   559  
   560  // Never include this file directly; use <sys/types.h> instead.
   561  
   562  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   563  //    This file is part of the GNU C Library.
   564  //
   565  //    The GNU C Library is free software; you can redistribute it and/or
   566  //    modify it under the terms of the GNU Lesser General Public
   567  //    License as published by the Free Software Foundation; either
   568  //    version 2.1 of the License, or (at your option) any later version.
   569  //
   570  //    The GNU C Library is distributed in the hope that it will be useful,
   571  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   572  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   573  //    Lesser General Public License for more details.
   574  //
   575  //    You should have received a copy of the GNU Lesser General Public
   576  //    License along with the GNU C Library; if not, see
   577  //    <https://www.gnu.org/licenses/>.
   578  
   579  // Determine the wordsize from the preprocessor defines.
   580  //
   581  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   582  //    This file is part of the GNU C Library.
   583  //
   584  //    The GNU C Library is free software; you can redistribute it and/or
   585  //    modify it under the terms of the GNU Lesser General Public
   586  //    License as published by the Free Software Foundation; either
   587  //    version 2.1 of the License, or (at your option) any later version.
   588  //
   589  //    The GNU C Library is distributed in the hope that it will be useful,
   590  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   591  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   592  //    Lesser General Public License for more details.
   593  //
   594  //    You should have received a copy of the GNU Lesser General Public
   595  //    License along with the GNU C Library; if not, see
   596  //    <https://www.gnu.org/licenses/>.
   597  
   598  // Bit size of the time_t type at glibc build time, general case.
   599  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   600  //    This file is part of the GNU C Library.
   601  //
   602  //    The GNU C Library is free software; you can redistribute it and/or
   603  //    modify it under the terms of the GNU Lesser General Public
   604  //    License as published by the Free Software Foundation; either
   605  //    version 2.1 of the License, or (at your option) any later version.
   606  //
   607  //    The GNU C Library is distributed in the hope that it will be useful,
   608  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   609  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   610  //    Lesser General Public License for more details.
   611  //
   612  //    You should have received a copy of the GNU Lesser General Public
   613  //    License along with the GNU C Library; if not, see
   614  //    <https://www.gnu.org/licenses/>.
   615  
   616  // Determine the wordsize from the preprocessor defines.
   617  //
   618  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   619  //    This file is part of the GNU C Library.
   620  //
   621  //    The GNU C Library is free software; you can redistribute it and/or
   622  //    modify it under the terms of the GNU Lesser General Public
   623  //    License as published by the Free Software Foundation; either
   624  //    version 2.1 of the License, or (at your option) any later version.
   625  //
   626  //    The GNU C Library is distributed in the hope that it will be useful,
   627  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   628  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   629  //    Lesser General Public License for more details.
   630  //
   631  //    You should have received a copy of the GNU Lesser General Public
   632  //    License along with the GNU C Library; if not, see
   633  //    <https://www.gnu.org/licenses/>.
   634  
   635  // Size in bits of the 'time_t' type of the default ABI.
   636  
   637  // Convenience types.
   638  type X__u_char = uint8   /* types.h:31:23 */
   639  type X__u_short = uint16 /* types.h:32:28 */
   640  type X__u_int = uint32   /* types.h:33:22 */
   641  type X__u_long = uint64  /* types.h:34:27 */
   642  
   643  // Fixed-size types, underlying types depend on word size and compiler.
   644  type X__int8_t = int8     /* types.h:37:21 */
   645  type X__uint8_t = uint8   /* types.h:38:23 */
   646  type X__int16_t = int16   /* types.h:39:26 */
   647  type X__uint16_t = uint16 /* types.h:40:28 */
   648  type X__int32_t = int32   /* types.h:41:20 */
   649  type X__uint32_t = uint32 /* types.h:42:22 */
   650  type X__int64_t = int64   /* types.h:44:25 */
   651  type X__uint64_t = uint64 /* types.h:45:27 */
   652  
   653  // Smallest types with at least a given width.
   654  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   655  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   656  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   657  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   658  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   659  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   660  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   661  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   662  
   663  // quad_t is also 64 bits.
   664  type X__quad_t = int64    /* types.h:63:18 */
   665  type X__u_quad_t = uint64 /* types.h:64:27 */
   666  
   667  // Largest integral types.
   668  type X__intmax_t = int64   /* types.h:72:18 */
   669  type X__uintmax_t = uint64 /* types.h:73:27 */
   670  
   671  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   672  //    macros for each of the OS types we define below.  The definitions
   673  //    of those macros must use the following macros for underlying types.
   674  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   675  //    variants of each of the following integer types on this machine.
   676  //
   677  // 	16		-- "natural" 16-bit type (always short)
   678  // 	32		-- "natural" 32-bit type (always int)
   679  // 	64		-- "natural" 64-bit type (long or long long)
   680  // 	LONG32		-- 32-bit type, traditionally long
   681  // 	QUAD		-- 64-bit type, traditionally long long
   682  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   683  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   684  //
   685  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   686  //    conventional uses of `long' or `long long' type modifiers match the
   687  //    types we define, even when a less-adorned type would be the same size.
   688  //    This matters for (somewhat) portably writing printf/scanf formats for
   689  //    these types, where using the appropriate l or ll format modifiers can
   690  //    make the typedefs and the formats match up across all GNU platforms.  If
   691  //    we used `long' when it's 64 bits where `long long' is expected, then the
   692  //    compiler would warn about the formats not matching the argument types,
   693  //    and the programmer changing them to shut up the compiler would break the
   694  //    program's portability.
   695  //
   696  //    Here we assume what is presently the case in all the GCC configurations
   697  //    we support: long long is always 64 bits, long is always word/address size,
   698  //    and int is always 32 bits.
   699  
   700  // No need to mark the typedef with __extension__.
   701  // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
   702  //    Copyright (C) 2011-2020 Free Software Foundation, Inc.
   703  //    This file is part of the GNU C Library.
   704  //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
   705  //
   706  //    The GNU C Library is free software; you can redistribute it and/or
   707  //    modify it under the terms of the GNU Lesser General Public
   708  //    License as published by the Free Software Foundation; either
   709  //    version 2.1 of the License, or (at your option) any later version.
   710  //
   711  //    The GNU C Library is distributed in the hope that it will be useful,
   712  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   713  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   714  //    Lesser General Public License for more details.
   715  //
   716  //    You should have received a copy of the GNU Lesser General Public
   717  //    License along with the GNU C Library.  If not, see
   718  //    <https://www.gnu.org/licenses/>.
   719  
   720  // See <bits/types.h> for the meaning of these macros.  This file exists so
   721  //    that <bits/types.h> need not vary across different GNU platforms.
   722  
   723  // Tell the libc code that off_t and off64_t are actually the same type
   724  //    for all ABI purposes, even if possibly expressed as different base types
   725  //    for C type-checking purposes.
   726  
   727  // Same for ino_t and ino64_t.
   728  
   729  // And for __rlim_t and __rlim64_t.
   730  
   731  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   732  // Number of descriptors that can fit in an `fd_set'.
   733  
   734  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   735  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   736  //    This file is part of the GNU C Library.
   737  //
   738  //    The GNU C Library is free software; you can redistribute it and/or
   739  //    modify it under the terms of the GNU Lesser General Public
   740  //    License as published by the Free Software Foundation; either
   741  //    version 2.1 of the License, or (at your option) any later version.
   742  //
   743  //    The GNU C Library is distributed in the hope that it will be useful,
   744  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   745  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   746  //    Lesser General Public License for more details.
   747  //
   748  //    You should have received a copy of the GNU Lesser General Public
   749  //    License along with the GNU C Library; if not, see
   750  //    <https://www.gnu.org/licenses/>.
   751  
   752  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   753  
   754  // If we already have 64-bit time type then use it.
   755  
   756  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   757  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   758  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   759  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   760  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   761  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   762  type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
   763  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   764  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   765  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   766  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   767  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   768  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   769  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   770  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   771  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   772  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   773  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   774  
   775  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   776  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   777  
   778  // Clock ID used in clock and timer functions.
   779  type X__clockid_t = int32 /* types.h:168:29 */
   780  
   781  // Timer ID returned by `timer_create'.
   782  type X__timer_t = uintptr /* types.h:171:12 */
   783  
   784  // Type to represent block size.
   785  type X__blksize_t = int32 /* types.h:174:29 */
   786  
   787  // Types from the Large File Support interface.
   788  
   789  // Type to count number of disk blocks.
   790  type X__blkcnt_t = int64   /* types.h:179:28 */
   791  type X__blkcnt64_t = int64 /* types.h:180:30 */
   792  
   793  // Type to count file system blocks.
   794  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   795  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   796  
   797  // Type to count file system nodes.
   798  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   799  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   800  
   801  // Type of miscellaneous file system fields.
   802  type X__fsword_t = int64 /* types.h:191:28 */
   803  
   804  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   805  
   806  // Signed long type used in system calls.
   807  type X__syscall_slong_t = int64 /* types.h:196:33 */
   808  // Unsigned long type used in system calls.
   809  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   810  
   811  // These few don't really vary by system, they always correspond
   812  //
   813  //	to one of the other defined types.
   814  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   815  type X__caddr_t = uintptr   /* types.h:203:14 */
   816  
   817  // Duplicates info from stdint.h but this is used in unistd.h.
   818  type X__intptr_t = int64 /* types.h:206:25 */
   819  
   820  // Duplicate info from sys/socket.h.
   821  type X__socklen_t = uint32 /* types.h:209:23 */
   822  
   823  // C99: An integer type that can be accessed as an atomic entity,
   824  //
   825  //	even in the presence of asynchronous interrupts.
   826  //	It is not currently necessary for this to be machine-specific.
   827  type X__sig_atomic_t = int32 /* types.h:214:13 */
   828  
   829  // Wide character type.
   830  //    Locale-writers should change this as necessary to
   831  //    be big enough to hold unique values not between 0 and 127,
   832  //    and not (wchar_t) -1, for each defined multibyte character.
   833  
   834  // Define this type if we are doing the whole job,
   835  //    or if we want this type in particular.
   836  
   837  // A null pointer constant.
   838  
   839  // The Single Unix specification says that some more types are
   840  //
   841  //	available here.
   842  type Gid_t = X__gid_t /* pwd.h:38:17 */
   843  
   844  type Uid_t = X__uid_t /* pwd.h:43:17 */
   845  
   846  // A record in the user database.
   847  type Passwd = struct {
   848  	Fpw_name   uintptr
   849  	Fpw_passwd uintptr
   850  	Fpw_uid    X__uid_t
   851  	Fpw_gid    X__gid_t
   852  	Fpw_gecos  uintptr
   853  	Fpw_dir    uintptr
   854  	Fpw_shell  uintptr
   855  } /* pwd.h:49:1 */
   856  
   857  var _ uint8 /* gen.c:2:13: */