github.com/afumu/libc@v0.0.6/limits/limits_linux_loong64.go (about)

     1  // Code generated by 'ccgo limits/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 limits/limits_linux_loong64.go -pkgname limits', DO NOT EDIT.
     2  
     3  package limits
     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  	BC_BASE_MAX                          = 99
    20  	BC_DIM_MAX                           = 2048
    21  	BC_SCALE_MAX                         = 99
    22  	BC_STRING_MAX                        = 1000
    23  	CHARCLASS_NAME_MAX                   = 2048
    24  	CHAR_BIT                             = 8
    25  	CHAR_MAX                             = 255
    26  	CHAR_MIN                             = 0
    27  	COLL_WEIGHTS_MAX                     = 255
    28  	DELAYTIMER_MAX                       = 2147483647
    29  	EXPR_NEST_MAX                        = 32
    30  	HOST_NAME_MAX                        = 64
    31  	INT_MAX                              = 2147483647
    32  	INT_MIN                              = -2147483648
    33  	LINE_MAX                             = 2048
    34  	LLONG_MAX                            = 9223372036854775807
    35  	LLONG_MIN                            = -9223372036854775808
    36  	LOGIN_NAME_MAX                       = 256
    37  	LONG_MAX                             = 9223372036854775807
    38  	LONG_MIN                             = -9223372036854775808
    39  	MAX_CANON                            = 255
    40  	MAX_INPUT                            = 255
    41  	MB_LEN_MAX                           = 16
    42  	MQ_PRIO_MAX                          = 32768
    43  	NAME_MAX                             = 255
    44  	NGROUPS_MAX                          = 65536
    45  	PATH_MAX                             = 4096
    46  	PIPE_BUF                             = 4096
    47  	PTHREAD_DESTRUCTOR_ITERATIONS        = 4
    48  	PTHREAD_KEYS_MAX                     = 1024
    49  	PTHREAD_STACK_MIN                    = 131072
    50  	RE_DUP_MAX                           = 32767
    51  	RTSIG_MAX                            = 32
    52  	SCHAR_MAX                            = 127
    53  	SCHAR_MIN                            = -128
    54  	SEM_VALUE_MAX                        = 2147483647
    55  	SHRT_MAX                             = 32767
    56  	SHRT_MIN                             = -32768
    57  	SSIZE_MAX                            = 9223372036854775807
    58  	TTY_NAME_MAX                         = 32
    59  	UCHAR_MAX                            = 255
    60  	UINT_MAX                             = 4294967295
    61  	ULLONG_MAX                           = 18446744073709551615
    62  	ULONG_MAX                            = 18446744073709551615
    63  	USHRT_MAX                            = 65535
    64  	XATTR_LIST_MAX                       = 65536
    65  	XATTR_NAME_MAX                       = 255
    66  	XATTR_SIZE_MAX                       = 65536
    67  	X_ATFILE_SOURCE                      = 1
    68  	X_BITS_POSIX1_LIM_H                  = 1
    69  	X_BITS_POSIX2_LIM_H                  = 1
    70  	X_DEFAULT_SOURCE                     = 1
    71  	X_FEATURES_H                         = 1
    72  	X_FILE_OFFSET_BITS                   = 64
    73  	X_GCC_LIMITS_H_                      = 0
    74  	X_LIBC_LIMITS_H_                     = 1
    75  	X_LIMITS_H___                        = 0
    76  	X_LINUX_LIMITS_H                     = 0
    77  	X_LP64                               = 1
    78  	X_POSIX2_BC_BASE_MAX                 = 99
    79  	X_POSIX2_BC_DIM_MAX                  = 2048
    80  	X_POSIX2_BC_SCALE_MAX                = 99
    81  	X_POSIX2_BC_STRING_MAX               = 1000
    82  	X_POSIX2_CHARCLASS_NAME_MAX          = 14
    83  	X_POSIX2_COLL_WEIGHTS_MAX            = 2
    84  	X_POSIX2_EXPR_NEST_MAX               = 32
    85  	X_POSIX2_LINE_MAX                    = 2048
    86  	X_POSIX2_RE_DUP_MAX                  = 255
    87  	X_POSIX_AIO_LISTIO_MAX               = 2
    88  	X_POSIX_AIO_MAX                      = 1
    89  	X_POSIX_ARG_MAX                      = 4096
    90  	X_POSIX_CHILD_MAX                    = 25
    91  	X_POSIX_CLOCKRES_MIN                 = 20000000
    92  	X_POSIX_C_SOURCE                     = 200809
    93  	X_POSIX_DELAYTIMER_MAX               = 32
    94  	X_POSIX_HOST_NAME_MAX                = 255
    95  	X_POSIX_LINK_MAX                     = 8
    96  	X_POSIX_LOGIN_NAME_MAX               = 9
    97  	X_POSIX_MAX_CANON                    = 255
    98  	X_POSIX_MAX_INPUT                    = 255
    99  	X_POSIX_MQ_OPEN_MAX                  = 8
   100  	X_POSIX_MQ_PRIO_MAX                  = 32
   101  	X_POSIX_NAME_MAX                     = 14
   102  	X_POSIX_NGROUPS_MAX                  = 8
   103  	X_POSIX_OPEN_MAX                     = 20
   104  	X_POSIX_PATH_MAX                     = 256
   105  	X_POSIX_PIPE_BUF                     = 512
   106  	X_POSIX_RE_DUP_MAX                   = 255
   107  	X_POSIX_RTSIG_MAX                    = 8
   108  	X_POSIX_SEM_NSEMS_MAX                = 256
   109  	X_POSIX_SEM_VALUE_MAX                = 32767
   110  	X_POSIX_SIGQUEUE_MAX                 = 32
   111  	X_POSIX_SOURCE                       = 1
   112  	X_POSIX_SSIZE_MAX                    = 32767
   113  	X_POSIX_STREAM_MAX                   = 8
   114  	X_POSIX_SYMLINK_MAX                  = 255
   115  	X_POSIX_SYMLOOP_MAX                  = 8
   116  	X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
   117  	X_POSIX_THREAD_KEYS_MAX              = 128
   118  	X_POSIX_THREAD_THREADS_MAX           = 64
   119  	X_POSIX_TIMER_MAX                    = 32
   120  	X_POSIX_TTY_NAME_MAX                 = 9
   121  	X_POSIX_TZNAME_MAX                   = 6
   122  	X_STDC_PREDEF_H                      = 1
   123  	X_SYS_CDEFS_H                        = 1
   124  	Linux                                = 1
   125  	Unix                                 = 1
   126  )
   127  
   128  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   129  
   130  type Size_t = uint64 /* <builtin>:9:23 */
   131  
   132  type Wchar_t = uint32 /* <builtin>:15:24 */
   133  
   134  type X__int128_t = struct {
   135  	Flo int64
   136  	Fhi int64
   137  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   138  type X__uint128_t = struct {
   139  	Flo uint64
   140  	Fhi uint64
   141  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   142  
   143  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   144  type X__float128 = float64        /* <builtin>:47:21 */
   145  
   146  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   147  //
   148  // This file is part of GCC.
   149  //
   150  // GCC is free software; you can redistribute it and/or modify it under
   151  // the terms of the GNU General Public License as published by the Free
   152  // Software Foundation; either version 3, or (at your option) any later
   153  // version.
   154  //
   155  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
   156  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
   157  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   158  // for more details.
   159  //
   160  // Under Section 7 of GPL version 3, you are granted additional
   161  // permissions described in the GCC Runtime Library Exception, version
   162  // 3.1, as published by the Free Software Foundation.
   163  //
   164  // You should have received a copy of the GNU General Public License and
   165  // a copy of the GCC Runtime Library Exception along with this program;
   166  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   167  // <http://www.gnu.org/licenses/>.
   168  
   169  // This administrivia gets added to the beginning of limits.h
   170  //    if the system has its own version of limits.h.
   171  
   172  // We use _GCC_LIMITS_H_ because we want this not to match
   173  //    any macros that the system's limits.h uses for its own purposes.
   174  
   175  // Use "..." so that we find syslimits.h only in this same directory.
   176  // syslimits.h stands for the system's own limits.h file.
   177  //    If we can use it ok unmodified, then we install this text.
   178  //    If fixincludes fixes it, then the fixed version is installed
   179  //    instead of this text.
   180  
   181  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   182  //    This file is part of the GNU C Library.
   183  //
   184  //    The GNU C Library is free software; you can redistribute it and/or
   185  //    modify it under the terms of the GNU Lesser General Public
   186  //    License as published by the Free Software Foundation; either
   187  //    version 2.1 of the License, or (at your option) any later version.
   188  //
   189  //    The GNU C Library is distributed in the hope that it will be useful,
   190  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   191  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   192  //    Lesser General Public License for more details.
   193  //
   194  //    You should have received a copy of the GNU Lesser General Public
   195  //    License along with the GNU C Library; if not, see
   196  //    <https://www.gnu.org/licenses/>.
   197  
   198  //	ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types	<limits.h>
   199  
   200  // Handle feature test macros at the start of a header.
   201  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   202  //    This file is part of the GNU C Library.
   203  //
   204  //    The GNU C Library is free software; you can redistribute it and/or
   205  //    modify it under the terms of the GNU Lesser General Public
   206  //    License as published by the Free Software Foundation; either
   207  //    version 2.1 of the License, or (at your option) any later version.
   208  //
   209  //    The GNU C Library is distributed in the hope that it will be useful,
   210  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   211  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   212  //    Lesser General Public License for more details.
   213  //
   214  //    You should have received a copy of the GNU Lesser General Public
   215  //    License along with the GNU C Library; if not, see
   216  //    <https://www.gnu.org/licenses/>.
   217  
   218  // This header is internal to glibc and should not be included outside
   219  //    of glibc headers.  Headers including it must define
   220  //    __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION first.  This header
   221  //    cannot have multiple include guards because ISO C feature test
   222  //    macros depend on the definition of the macro when an affected
   223  //    header is included, not when the first system header is
   224  //    included.
   225  
   226  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   227  //    This file is part of the GNU C Library.
   228  //
   229  //    The GNU C Library is free software; you can redistribute it and/or
   230  //    modify it under the terms of the GNU Lesser General Public
   231  //    License as published by the Free Software Foundation; either
   232  //    version 2.1 of the License, or (at your option) any later version.
   233  //
   234  //    The GNU C Library is distributed in the hope that it will be useful,
   235  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   236  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   237  //    Lesser General Public License for more details.
   238  //
   239  //    You should have received a copy of the GNU Lesser General Public
   240  //    License along with the GNU C Library; if not, see
   241  //    <https://www.gnu.org/licenses/>.
   242  
   243  // These are defined by the user (or the compiler)
   244  //    to specify the desired environment:
   245  //
   246  //    __STRICT_ANSI__	ISO Standard C.
   247  //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
   248  //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
   249  //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
   250  //    __STDC_WANT_LIB_EXT2__
   251  // 			Extensions to ISO C99 from TR 27431-2:2010.
   252  //    __STDC_WANT_IEC_60559_BFP_EXT__
   253  // 			Extensions to ISO C11 from TS 18661-1:2014.
   254  //    __STDC_WANT_IEC_60559_FUNCS_EXT__
   255  // 			Extensions to ISO C11 from TS 18661-4:2015.
   256  //    __STDC_WANT_IEC_60559_TYPES_EXT__
   257  // 			Extensions to ISO C11 from TS 18661-3:2015.
   258  //
   259  //    _POSIX_SOURCE	IEEE Std 1003.1.
   260  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   261  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   262  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   263  // 			if >=200112L, all of IEEE 1003.1-2004
   264  // 			if >=200809L, all of IEEE 1003.1-2008
   265  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   266  // 			Single Unix conformance is wanted, to 600 for the
   267  // 			sixth revision, to 700 for the seventh revision.
   268  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   269  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   270  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   271  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   272  //    _ATFILE_SOURCE	Additional *at interfaces.
   273  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   274  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   275  // 			__STRICT_ANSI__).
   276  //
   277  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   278  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   279  //
   280  //    _REENTRANT, _THREAD_SAFE
   281  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   282  //
   283  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   284  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   285  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   286  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   287  //    200809L, as well as enabling miscellaneous functions from BSD and
   288  //    SVID.  If more than one of these are defined, they accumulate.  For
   289  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   290  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   291  //
   292  //    These are defined by this file and are used by the
   293  //    header files to decide what to declare or define:
   294  //
   295  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   296  // 			to 1 or 0; the subsequent macros are either defined
   297  // 			or undefined, and those tests should be moved to
   298  // 			__GLIBC_USE.
   299  //    __USE_ISOC11		Define ISO C11 things.
   300  //    __USE_ISOC99		Define ISO C99 things.
   301  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   302  //    __USE_ISOCXX11	Define ISO C++11 things.
   303  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   304  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   305  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   306  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   307  //    __USE_XOPEN		Define XPG things.
   308  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   309  //    __USE_UNIX98		Define Single Unix V2 things.
   310  //    __USE_XOPEN2K        Define XPG6 things.
   311  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   312  //    __USE_XOPEN2K8       Define XPG7 things.
   313  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   314  //    __USE_LARGEFILE	Define correct standard I/O things.
   315  //    __USE_LARGEFILE64	Define LFS things with separate names.
   316  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   317  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   318  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   319  //    __USE_GNU		Define GNU extensions.
   320  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   321  //
   322  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   323  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   324  //    only for compatibility.  All new code should use the other symbols
   325  //    to test for features.
   326  //
   327  //    All macros listed above as possibly being defined by this file are
   328  //    explicitly undefined if they are not explicitly defined.
   329  //    Feature-test macros that are not defined by the user or compiler
   330  //    but are implied by the other feature-test macros defined (or by the
   331  //    lack of any definitions) are defined by the file.
   332  //
   333  //    ISO C feature test macros depend on the definition of the macro
   334  //    when an affected header is included, not when the first system
   335  //    header is included, and so they are handled in
   336  //    <bits/libc-header-start.h>, which does not have a multiple include
   337  //    guard.  Feature test macros that can be handled from the first
   338  //    system header included are handled here.
   339  
   340  // Undefine everything, so we get a clean slate.
   341  
   342  // Suppress kernel-name space pollution unless user expressedly asks
   343  //    for it.
   344  
   345  // Convenience macro to test the version of gcc.
   346  //    Use like this:
   347  //    #if __GNUC_PREREQ (2,8)
   348  //    ... code requiring gcc 2.8 or later ...
   349  //    #endif
   350  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   351  //    added in 2.0.
   352  
   353  // Similarly for clang.  Features added to GCC after version 4.2 may
   354  //    or may not also be available in clang, and clang's definitions of
   355  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   356  //    features can be queried via __has_extension/__has_feature.
   357  
   358  // Whether to use feature set F.
   359  
   360  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   361  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   362  //    issue a warning; the expectation is that the source is being
   363  //    transitioned to use the new macro.
   364  
   365  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   366  
   367  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   368  //    define _DEFAULT_SOURCE.
   369  
   370  // This is to enable the ISO C2X extension.
   371  
   372  // This is to enable the ISO C11 extension.
   373  
   374  // This is to enable the ISO C99 extension.
   375  
   376  // This is to enable the ISO C90 Amendment 1:1995 extension.
   377  
   378  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   379  //    is defined, use POSIX.1-2008 (or another version depending on
   380  //    _XOPEN_SOURCE).
   381  
   382  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   383  //    defined in all multithreaded code.  GNU libc has not required this
   384  //    for many years.  We now treat them as compatibility synonyms for
   385  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   386  //    comprehensive support for multithreaded code.  Using them never
   387  //    lowers the selected level of POSIX conformance, only raises it.
   388  
   389  // The function 'gets' existed in C89, but is impossible to use
   390  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   391  //    compatibility with various implementations of <cstdio>, this test
   392  //    must consider only the value of __cplusplus when compiling C++.
   393  
   394  // GNU formerly extended the scanf functions with modified format
   395  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   396  //    input using malloc.  This extension conflicts with ISO C99, which
   397  //    defines %a as a standalone format specifier that reads a floating-
   398  //    point number; moreover, POSIX.1-2008 provides the same feature
   399  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   400  //
   401  //    We now follow C99 unless GNU extensions are active and the compiler
   402  //    is specifically in C89 or C++98 mode (strict or not).  For
   403  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   404  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   405  //    old extension.
   406  
   407  // Get definitions of __STDC_* predefined macros, if the compiler has
   408  //    not preincluded this header automatically.
   409  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   410  //    This file is part of the GNU C Library.
   411  //
   412  //    The GNU C Library is free software; you can redistribute it and/or
   413  //    modify it under the terms of the GNU Lesser General Public
   414  //    License as published by the Free Software Foundation; either
   415  //    version 2.1 of the License, or (at your option) any later version.
   416  //
   417  //    The GNU C Library is distributed in the hope that it will be useful,
   418  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   419  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   420  //    Lesser General Public License for more details.
   421  //
   422  //    You should have received a copy of the GNU Lesser General Public
   423  //    License along with the GNU C Library; if not, see
   424  //    <https://www.gnu.org/licenses/>.
   425  
   426  // This macro indicates that the installed library is the GNU C Library.
   427  //    For historic reasons the value now is 6 and this will stay from now
   428  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   429  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   430  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   431  //    the sonames of the shared libraries.
   432  
   433  // Major and minor version number of the GNU C library package.  Use
   434  //    these macros to test for features in specific releases.
   435  
   436  // This is here only because every header file already includes this one.
   437  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   438  //    This file is part of the GNU C Library.
   439  //
   440  //    The GNU C Library is free software; you can redistribute it and/or
   441  //    modify it under the terms of the GNU Lesser General Public
   442  //    License as published by the Free Software Foundation; either
   443  //    version 2.1 of the License, or (at your option) any later version.
   444  //
   445  //    The GNU C Library is distributed in the hope that it will be useful,
   446  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   447  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   448  //    Lesser General Public License for more details.
   449  //
   450  //    You should have received a copy of the GNU Lesser General Public
   451  //    License along with the GNU C Library; if not, see
   452  //    <https://www.gnu.org/licenses/>.
   453  
   454  // We are almost always included from features.h.
   455  
   456  // The GNU libc does not support any K&R compilers or the traditional mode
   457  //    of ISO C compilers anymore.  Check for some of the combinations not
   458  //    anymore supported.
   459  
   460  // Some user header file might have defined this before.
   461  
   462  // All functions, except those with callbacks or those that
   463  //    synchronize memory, are leaf functions.
   464  
   465  // GCC can always grok prototypes.  For C++ programs we add throw()
   466  //    to help it optimize the function calls.  But this works only with
   467  //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
   468  //    as non-throwing using a function attribute since programs can use
   469  //    the -fexceptions options for C code as well.
   470  
   471  // Compilers that are not clang may object to
   472  //        #if defined __clang__ && __has_extension(...)
   473  //    even though they do not need to evaluate the right-hand side of the &&.
   474  
   475  // These two macros are not used in glibc anymore.  They are kept here
   476  //    only because some other projects expect the macros to be defined.
   477  
   478  // For these things, GCC behaves the ANSI way normally,
   479  //    and the non-ANSI way under -traditional.
   480  
   481  // This is not a typedef so `const __ptr_t' does the right thing.
   482  
   483  // C++ needs to know that types and declarations are C, not C++.
   484  
   485  // Fortify support.
   486  
   487  // Support for flexible arrays.
   488  //    Headers that should use flexible arrays only if they're "real"
   489  //    (e.g. only if they won't affect sizeof()) should test
   490  //    #if __glibc_c99_flexarr_available.
   491  
   492  // __asm__ ("xyz") is used throughout the headers to rename functions
   493  //    at the assembly language level.  This is wrapped by the __REDIRECT
   494  //    macro, in order to support compilers that can do this some other
   495  //    way.  When compilers don't support asm-names at all, we have to do
   496  //    preprocessor tricks instead (which don't have exactly the right
   497  //    semantics, but it's the best we can do).
   498  //
   499  //    Example:
   500  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   501  
   502  //
   503  // #elif __SOME_OTHER_COMPILER__
   504  //
   505  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   506  
   507  // GCC has various useful declarations that can be made with the
   508  //    `__attribute__' syntax.  All of the ways we use this do fine if
   509  //    they are omitted for compilers that don't understand it.
   510  
   511  // At some point during the gcc 2.96 development the `malloc' attribute
   512  //    for functions was introduced.  We don't want to use it unconditionally
   513  //    (although this would be possible) since it generates warnings.
   514  
   515  // Tell the compiler which arguments to an allocation function
   516  //    indicate the size of the allocation.
   517  
   518  // At some point during the gcc 2.96 development the `pure' attribute
   519  //    for functions was introduced.  We don't want to use it unconditionally
   520  //    (although this would be possible) since it generates warnings.
   521  
   522  // This declaration tells the compiler that the value is constant.
   523  
   524  // At some point during the gcc 3.1 development the `used' attribute
   525  //    for functions was introduced.  We don't want to use it unconditionally
   526  //    (although this would be possible) since it generates warnings.
   527  
   528  // Since version 3.2, gcc allows marking deprecated functions.
   529  
   530  // Since version 4.5, gcc also allows one to specify the message printed
   531  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   532  //    may also support this feature.
   533  
   534  // At some point during the gcc 2.8 development the `format_arg' attribute
   535  //    for functions was introduced.  We don't want to use it unconditionally
   536  //    (although this would be possible) since it generates warnings.
   537  //    If several `format_arg' attributes are given for the same function, in
   538  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   539  //    all designated arguments are considered.
   540  
   541  // At some point during the gcc 2.97 development the `strfmon' format
   542  //    attribute for functions was introduced.  We don't want to use it
   543  //    unconditionally (although this would be possible) since it
   544  //    generates warnings.
   545  
   546  // The nonull function attribute allows to mark pointer parameters which
   547  //    must not be NULL.
   548  
   549  // If fortification mode, we warn about unused results of certain
   550  //    function calls which can lead to problems.
   551  
   552  // Forces a function to be always inlined.
   553  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   554  //    it conflicts with this definition.  Therefore undefine it first to
   555  //    allow either header to be included first.
   556  
   557  // Associate error messages with the source location of the call site rather
   558  //    than with the source location inside the function.
   559  
   560  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   561  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   562  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   563  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   564  //    semantics.
   565  //
   566  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   567  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   568  //    __GNUC_GNU_INLINE__ macro definitions.
   569  
   570  // GCC 4.3 and above allow passing all anonymous arguments of an
   571  //    __extern_always_inline function to some other vararg function.
   572  
   573  // It is possible to compile containing GCC extensions even if GCC is
   574  //    run in pedantic mode if the uses are carefully marked using the
   575  //    `__extension__' keyword.  But this is not generally available before
   576  //    version 2.8.
   577  
   578  // __restrict is known in EGCS 1.2 and above.
   579  
   580  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
   581  //      array_name[restrict]
   582  //    GCC 3.1 supports this.
   583  
   584  // Describes a char array whose address can safely be passed as the first
   585  //    argument to strncpy and strncat, as the char array is not necessarily
   586  //    a NUL-terminated string.
   587  
   588  // Undefine (also defined in libc-symbols.h).
   589  // Copies attributes from the declaration or type referenced by
   590  //    the argument.
   591  
   592  // Determine the wordsize from the preprocessor defines.
   593  //
   594  //    Copyright (C) 2016-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  // Properties of long double type.  ldbl-128 version.
   612  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   613  //    This file is part of the GNU C Library.
   614  //
   615  //    The GNU C Library is free software; you can redistribute it and/or
   616  //    modify it under the terms of the GNU Lesser General Public
   617  //    License  published by the Free Software Foundation; either
   618  //    version 2.1 of the License, or (at your option) any later version.
   619  //
   620  //    The GNU C Library is distributed in the hope that it will be useful,
   621  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   622  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   623  //    Lesser General Public License for more details.
   624  //
   625  //    You should have received a copy of the GNU Lesser General Public
   626  //    License along with the GNU C Library; if not, see
   627  //    <https://www.gnu.org/licenses/>.
   628  
   629  // long double is distinct from double, so there is nothing to
   630  //    define here.
   631  
   632  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   633  //    intended for use in preprocessor macros.
   634  //
   635  //    Note: MESSAGE must be a _single_ string; concatenation of string
   636  //    literals is not supported.
   637  
   638  // Generic selection (ISO C11) is a C-only feature, available in GCC
   639  //    since version 4.9.  Previous versions do not provide generic
   640  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   641  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   642  //    when testing __STDC_VERSION__ for generic selection support.
   643  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   644  //    check is required to enable the use of generic selection.
   645  
   646  // If we don't have __REDIRECT, prototypes will be missing if
   647  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   648  
   649  // Decide whether we can define 'extern inline' functions in headers.
   650  
   651  // This is here only because every header file already includes this one.
   652  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   653  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   654  //    that will always return failure (and set errno to ENOSYS).
   655  // This file is automatically generated.
   656  //    This file selects the right generated file of `__stub_FUNCTION' macros
   657  //    based on the architecture being compiled for.
   658  
   659  // Determine the wordsize from the preprocessor defines.
   660  //
   661  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   662  //    This file is part of the GNU C Library.
   663  //
   664  //    The GNU C Library is free software; you can redistribute it and/or
   665  //    modify it under the terms of the GNU Lesser General Public
   666  //    License as published by the Free Software Foundation; either
   667  //    version 2.1 of the License, or (at your option) any later version.
   668  //
   669  //    The GNU C Library is distributed in the hope that it will be useful,
   670  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   671  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   672  //    Lesser General Public License for more details.
   673  //
   674  //    You should have received a copy of the GNU Lesser General Public
   675  //    License along with the GNU C Library; if not, see
   676  //    <https://www.gnu.org/licenses/>.
   677  
   678  // This file is automatically generated.
   679  //    It defines a symbol `__stub_FUNCTION' for each function
   680  //    in the C library which is a stub, meaning it will fail
   681  //    every time called, usually setting errno to ENOSYS.
   682  
   683  // ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__
   684  //    macro.
   685  
   686  // ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__
   687  //    macro.  Most but not all symbols enabled by that macro in TS
   688  //    18661-1 are enabled unconditionally in C2X; the symbols in Annex F
   689  //    still require that macro in C2X.
   690  
   691  // ISO/IEC TS 18661-4:2015 defines the
   692  //    __STDC_WANT_IEC_60559_FUNCS_EXT__ macro.  Other than the reduction
   693  //    functions, the symbols from this TS are enabled unconditionally in
   694  //    C2X.
   695  
   696  // ISO/IEC TS 18661-3:2015 defines the
   697  //    __STDC_WANT_IEC_60559_TYPES_EXT__ macro.
   698  
   699  // Maximum length of any multibyte character in any locale.
   700  //    We define this value here since the gcc header does not define
   701  //    the correct value.
   702  
   703  // If we are not using GNU CC we have to define all the symbols ourself.
   704  //    Otherwise use gcc's definitions (see below).
   705  
   706  // Get the compiler's limits.h, which defines almost all the ISO constants.
   707  //
   708  //     We put this #include_next outside the double inclusion check because
   709  //     it should be possible to include this file more than once and still get
   710  //     the definitions from gcc's header.
   711  
   712  // The <limits.h> files in some gcc versions don't define LLONG_MIN,
   713  //    LLONG_MAX, and ULLONG_MAX.  Instead only the values gcc defined for
   714  //    ages are available.
   715  
   716  // The integer width macros are not defined by GCC's <limits.h> before
   717  //    GCC 7, or if _GNU_SOURCE rather than
   718  //    __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature.
   719  
   720  // POSIX adds things to <limits.h>.
   721  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   722  //    This file is part of the GNU C Library.
   723  //
   724  //    The GNU C Library is free software; you can redistribute it and/or
   725  //    modify it under the terms of the GNU Lesser General Public
   726  //    License as published by the Free Software Foundation; either
   727  //    version 2.1 of the License, or (at your option) any later version.
   728  //
   729  //    The GNU C Library is distributed in the hope that it will be useful,
   730  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   731  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   732  //    Lesser General Public License for more details.
   733  //
   734  //    You should have received a copy of the GNU Lesser General Public
   735  //    License along with the GNU C Library; if not, see
   736  //    <https://www.gnu.org/licenses/>.
   737  
   738  //	POSIX Standard: 2.9.2 Minimum Values	Added to <limits.h>
   739  //
   740  //	Never include this file directly; use <limits.h> instead.
   741  
   742  // Determine the wordsize from the preprocessor defines.
   743  //
   744  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   745  //    This file is part of the GNU C Library.
   746  //
   747  //    The GNU C Library is free software; you can redistribute it and/or
   748  //    modify it under the terms of the GNU Lesser General Public
   749  //    License as published by the Free Software Foundation; either
   750  //    version 2.1 of the License, or (at your option) any later version.
   751  //
   752  //    The GNU C Library is distributed in the hope that it will be useful,
   753  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   754  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   755  //    Lesser General Public License for more details.
   756  //
   757  //    You should have received a copy of the GNU Lesser General Public
   758  //    License along with the GNU C Library; if not, see
   759  //    <https://www.gnu.org/licenses/>.
   760  
   761  // These are the standard-mandated minimum values.
   762  
   763  // Minimum number of operations in one list I/O call.
   764  
   765  // Minimal number of outstanding asynchronous I/O operations.
   766  
   767  // Maximum length of arguments to `execve', including environment.
   768  
   769  // Maximum simultaneous processes per real user ID.
   770  
   771  // Minimal number of timer expiration overruns.
   772  
   773  // Maximum length of a host name (not including the terminating null)
   774  //    as returned from the GETHOSTNAME function.
   775  
   776  // Maximum link count of a file.
   777  
   778  // Maximum length of login name.
   779  
   780  // Number of bytes in a terminal canonical input queue.
   781  
   782  // Number of bytes for which space will be
   783  //    available in a terminal input queue.
   784  
   785  // Maximum number of message queues open for a process.
   786  
   787  // Maximum number of supported message priorities.
   788  
   789  // Number of bytes in a filename.
   790  
   791  // Number of simultaneous supplementary group IDs per process.
   792  
   793  // Number of files one process can have open at once.
   794  
   795  // Number of bytes in a pathname.
   796  
   797  // Number of bytes than can be written atomically to a pipe.
   798  
   799  // The number of repeated occurrences of a BRE permitted by the
   800  //    REGEXEC and REGCOMP functions when using the interval notation.
   801  
   802  // Minimal number of realtime signals reserved for the application.
   803  
   804  // Number of semaphores a process can have.
   805  
   806  // Maximal value of a semaphore.
   807  
   808  // Number of pending realtime signals.
   809  
   810  // Largest value of a `ssize_t'.
   811  
   812  // Number of streams a process can have open at once.
   813  
   814  // The number of bytes in a symbolic link.
   815  
   816  // The number of symbolic links that can be traversed in the
   817  //    resolution of a pathname in the absence of a loop.
   818  
   819  // Number of timer for a process.
   820  
   821  // Maximum number of characters in a tty name.
   822  
   823  // Maximum length of a timezone name (element of `tzname').
   824  
   825  // Maximum clock resolution in nanoseconds.
   826  
   827  // Get the implementation-specific values for the above.
   828  // Minimum guaranteed maximum values for system limits.  Linux version.
   829  //    Copyright (C) 1993-2020 Free Software Foundation, Inc.
   830  //
   831  //    This file is part of the GNU C Library.
   832  //
   833  //    The GNU C Library is free software; you can redistribute it and/or
   834  //    modify it under the terms of the GNU Lesser General Public License as
   835  //    published by the Free Software Foundation; either version 2.1 of the
   836  //    License, or (at your option) any later version.
   837  //
   838  //    The GNU C Library is distributed in the hope that it will be useful,
   839  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   840  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   841  //    Lesser General Public License for more details.
   842  //
   843  //    You should have received a copy of the GNU Lesser General Public
   844  //    License along with the GNU C Library.  If not, see
   845  //    <https://www.gnu.org/licenses/>.
   846  
   847  // The kernel header pollutes the namespace with the NR_OPEN symbol
   848  //    and defines LINK_MAX although filesystems have different maxima.  A
   849  //    similar thing is true for OPEN_MAX: the limit can be changed at
   850  //    runtime and therefore the macro must not be defined.  Remove this
   851  //    after including the header if necessary.
   852  
   853  // The kernel sources contain a file with all the needed information.
   854  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   855  
   856  // Have to remove NR_OPEN?
   857  // Have to remove LINK_MAX?
   858  // Have to remove OPEN_MAX?
   859  // Have to remove ARG_MAX?
   860  
   861  // The number of data keys per process.
   862  // This is the value this implementation supports.
   863  
   864  // Controlling the iterations of destructors for thread-specific data.
   865  // Number of iterations this implementation does.
   866  
   867  // The number of threads per process.
   868  // We have no predefined limit on the number of threads.
   869  
   870  // Maximum amount by which a process can descrease its asynchronous I/O
   871  //    priority level.
   872  
   873  // Minimum size for a thread.  At least two pages for systems with 64k
   874  //    pages.
   875  
   876  // Maximum number of timer expiration overruns.
   877  
   878  // Maximum tty name length.
   879  
   880  // Maximum login name length.  This is arbitrary.
   881  
   882  // Maximum host name length.
   883  
   884  // Maximum message queue priority level.
   885  
   886  // Maximum value the semaphore can have.
   887  
   888  // ssize_t is not formally required to be the signed type
   889  //    corresponding to size_t, but it is for all configurations supported
   890  //    by glibc.
   891  
   892  // This value is a guaranteed minimum maximum.
   893  //    The current maximum can be got from `sysconf'.
   894  
   895  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   896  //    This file is part of the GNU C Library.
   897  //
   898  //    The GNU C Library is free software; you can redistribute it and/or
   899  //    modify it under the terms of the GNU Lesser General Public
   900  //    License as published by the Free Software Foundation; either
   901  //    version 2.1 of the License, or (at your option) any later version.
   902  //
   903  //    The GNU C Library is distributed in the hope that it will be useful,
   904  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   905  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   906  //    Lesser General Public License for more details.
   907  //
   908  //    You should have received a copy of the GNU Lesser General Public
   909  //    License along with the GNU C Library; if not, see
   910  //    <https://www.gnu.org/licenses/>.
   911  
   912  // Never include this file directly; include <limits.h> instead.
   913  
   914  // The maximum `ibase' and `obase' values allowed by the `bc' utility.
   915  
   916  // The maximum number of elements allowed in an array by the `bc' utility.
   917  
   918  // The maximum `scale' value allowed by the `bc' utility.
   919  
   920  // The maximum length of a string constant accepted by the `bc' utility.
   921  
   922  // The maximum number of weights that can be assigned to an entry of
   923  //    the LC_COLLATE `order' keyword in the locale definition file.
   924  
   925  // The maximum number of expressions that can be nested
   926  //    within parentheses by the `expr' utility.
   927  
   928  // The maximum length, in bytes, of an input line.
   929  
   930  // The maximum number of repeated occurrences of a regular expression
   931  //    permitted when using the interval notation `\{M,N\}'.
   932  
   933  // The maximum number of bytes in a character class name.  We have no
   934  //    fixed limit, 2048 is a high number.
   935  
   936  // These values are implementation-specific,
   937  //    and may vary within the implementation.
   938  //    Their precise values can be obtained from sysconf.
   939  
   940  // This value is defined like this in regex.h.
   941  
   942  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   943  //
   944  // This file is part of GCC.
   945  //
   946  // GCC is free software; you can redistribute it and/or modify it under
   947  // the terms of the GNU General Public License as published by the Free
   948  // Software Foundation; either version 3, or (at your option) any later
   949  // version.
   950  //
   951  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
   952  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
   953  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   954  // for more details.
   955  //
   956  // Under Section 7 of GPL version 3, you are granted additional
   957  // permissions described in the GCC Runtime Library Exception, version
   958  // 3.1, as published by the Free Software Foundation.
   959  //
   960  // You should have received a copy of the GNU General Public License and
   961  // a copy of the GCC Runtime Library Exception along with this program;
   962  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   963  // <http://www.gnu.org/licenses/>.
   964  
   965  // Number of bits in a `char'.
   966  
   967  // Maximum length of a multibyte character.
   968  
   969  // Minimum and maximum values a `signed char' can hold.
   970  
   971  // Maximum value an `unsigned char' can hold.  (Minimum is 0).
   972  
   973  // Minimum and maximum values a `char' can hold.
   974  
   975  // Minimum and maximum values a `signed short int' can hold.
   976  
   977  // Maximum value an `unsigned short int' can hold.  (Minimum is 0).
   978  
   979  // Minimum and maximum values a `signed int' can hold.
   980  
   981  // Maximum value an `unsigned int' can hold.  (Minimum is 0).
   982  
   983  // Minimum and maximum values a `signed long int' can hold.
   984  //    (Same as `int').
   985  
   986  // Maximum value an `unsigned long int' can hold.  (Minimum is 0).
   987  
   988  // Minimum and maximum values a `signed long long int' can hold.
   989  
   990  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
   991  
   992  // This administrivia gets added to the end of limits.h
   993  //    if the system has its own version of limits.h.
   994  
   995  var _ uint8 /* gen.c:2:13: */