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