github.com/afumu/libc@v0.0.6/dirent/dirent_linux_s390x.go (about)

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