github.com/afumu/libc@v0.0.6/limits/limits_linux_riscv64.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_riscv64.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                    = 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                            = 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 = int32 /* <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-2021 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-2021 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-2021 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-2021 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  //    __STDC_WANT_IEC_60559_EXT__
   259  // 			ISO C2X interfaces defined only in Annex F.
   260  //
   261  //    _POSIX_SOURCE	IEEE Std 1003.1.
   262  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   263  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   264  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   265  // 			if >=200112L, all of IEEE 1003.1-2004
   266  // 			if >=200809L, all of IEEE 1003.1-2008
   267  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   268  // 			Single Unix conformance is wanted, to 600 for the
   269  // 			sixth revision, to 700 for the seventh revision.
   270  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   271  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   272  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   273  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   274  //    _ATFILE_SOURCE	Additional *at interfaces.
   275  //    _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
   276  // 			MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
   277  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   278  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   279  // 			__STRICT_ANSI__).
   280  //
   281  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   282  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   283  //
   284  //    _REENTRANT, _THREAD_SAFE
   285  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   286  //
   287  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   288  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   289  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   290  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   291  //    200809L, as well as enabling miscellaneous functions from BSD and
   292  //    SVID.  If more than one of these are defined, they accumulate.  For
   293  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   294  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   295  //
   296  //    These are defined by this file and are used by the
   297  //    header files to decide what to declare or define:
   298  //
   299  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   300  // 			to 1 or 0; the subsequent macros are either defined
   301  // 			or undefined, and those tests should be moved to
   302  // 			__GLIBC_USE.
   303  //    __USE_ISOC11		Define ISO C11 things.
   304  //    __USE_ISOC99		Define ISO C99 things.
   305  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   306  //    __USE_ISOCXX11	Define ISO C++11 things.
   307  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   308  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   309  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   310  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   311  //    __USE_XOPEN		Define XPG things.
   312  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   313  //    __USE_UNIX98		Define Single Unix V2 things.
   314  //    __USE_XOPEN2K        Define XPG6 things.
   315  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   316  //    __USE_XOPEN2K8       Define XPG7 things.
   317  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   318  //    __USE_LARGEFILE	Define correct standard I/O things.
   319  //    __USE_LARGEFILE64	Define LFS things with separate names.
   320  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   321  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   322  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   323  //    __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
   324  // 			MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
   325  //    __USE_GNU		Define GNU extensions.
   326  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   327  //
   328  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   329  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   330  //    only for compatibility.  All new code should use the other symbols
   331  //    to test for features.
   332  //
   333  //    All macros listed above as possibly being defined by this file are
   334  //    explicitly undefined if they are not explicitly defined.
   335  //    Feature-test macros that are not defined by the user or compiler
   336  //    but are implied by the other feature-test macros defined (or by the
   337  //    lack of any definitions) are defined by the file.
   338  //
   339  //    ISO C feature test macros depend on the definition of the macro
   340  //    when an affected header is included, not when the first system
   341  //    header is included, and so they are handled in
   342  //    <bits/libc-header-start.h>, which does not have a multiple include
   343  //    guard.  Feature test macros that can be handled from the first
   344  //    system header included are handled here.
   345  
   346  // Undefine everything, so we get a clean slate.
   347  
   348  // Suppress kernel-name space pollution unless user expressedly asks
   349  //    for it.
   350  
   351  // Convenience macro to test the version of gcc.
   352  //    Use like this:
   353  //    #if __GNUC_PREREQ (2,8)
   354  //    ... code requiring gcc 2.8 or later ...
   355  //    #endif
   356  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   357  //    added in 2.0.
   358  
   359  // Similarly for clang.  Features added to GCC after version 4.2 may
   360  //    or may not also be available in clang, and clang's definitions of
   361  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   362  //    features can be queried via __has_extension/__has_feature.
   363  
   364  // Whether to use feature set F.
   365  
   366  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   367  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   368  //    issue a warning; the expectation is that the source is being
   369  //    transitioned to use the new macro.
   370  
   371  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   372  
   373  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   374  //    define _DEFAULT_SOURCE.
   375  
   376  // This is to enable the ISO C2X extension.
   377  
   378  // This is to enable the ISO C11 extension.
   379  
   380  // This is to enable the ISO C99 extension.
   381  
   382  // This is to enable the ISO C90 Amendment 1:1995 extension.
   383  
   384  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   385  //    is defined, use POSIX.1-2008 (or another version depending on
   386  //    _XOPEN_SOURCE).
   387  
   388  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   389  //    defined in all multithreaded code.  GNU libc has not required this
   390  //    for many years.  We now treat them as compatibility synonyms for
   391  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   392  //    comprehensive support for multithreaded code.  Using them never
   393  //    lowers the selected level of POSIX conformance, only raises it.
   394  
   395  // Features part to handle 64-bit time_t support.
   396  //    Copyright (C) 2021 Free Software Foundation, Inc.
   397  //    This file is part of the GNU C Library.
   398  //
   399  //    The GNU C Library is free software; you can redistribute it and/or
   400  //    modify it under the terms of the GNU Lesser General Public
   401  //    License as published by the Free Software Foundation; either
   402  //    version 2.1 of the License, or (at your option) any later version.
   403  //
   404  //    The GNU C Library is distributed in the hope that it will be useful,
   405  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   406  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   407  //    Lesser General Public License for more details.
   408  //
   409  //    You should have received a copy of the GNU Lesser General Public
   410  //    License along with the GNU C Library; if not, see
   411  //    <https://www.gnu.org/licenses/>.
   412  
   413  // We need to know the word size in order to check the time size.
   414  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   415  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   416  //    This file is part of the GNU C Library.
   417  //
   418  //    The GNU C Library is free software; you can redistribute it and/or
   419  //    modify it under the terms of the GNU Lesser General Public
   420  //    License as published by the Free Software Foundation; either
   421  //    version 2.1 of the License, or (at your option) any later version.
   422  //
   423  //    The GNU C Library is distributed in the hope that it will be useful,
   424  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   425  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   426  //    Lesser General Public License for more details.
   427  //
   428  //    You should have received a copy of the GNU Lesser General Public
   429  //    License along with the GNU C Library.  If not, see
   430  //    <https://www.gnu.org/licenses/>.
   431  
   432  // Bit size of the time_t type at glibc build time, RISC-V case.
   433  //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
   434  //    This file is part of the GNU C Library.
   435  //
   436  //    The GNU C Library is free software; you can redistribute it and/or
   437  //    modify it under the terms of the GNU Lesser General Public
   438  //    License as published by the Free Software Foundation; either
   439  //    version 2.1 of the License, or (at your option) any later version.
   440  //
   441  //    The GNU C Library is distributed in the hope that it will be useful,
   442  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   443  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   444  //    Lesser General Public License for more details.
   445  //
   446  //    You should have received a copy of the GNU Lesser General Public
   447  //    License along with the GNU C Library; if not, see
   448  //    <https://www.gnu.org/licenses/>.
   449  
   450  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   451  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   452  //    This file is part of the GNU C Library.
   453  //
   454  //    The GNU C Library is free software; you can redistribute it and/or
   455  //    modify it under the terms of the GNU Lesser General Public
   456  //    License as published by the Free Software Foundation; either
   457  //    version 2.1 of the License, or (at your option) any later version.
   458  //
   459  //    The GNU C Library is distributed in the hope that it will be useful,
   460  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   461  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   462  //    Lesser General Public License for more details.
   463  //
   464  //    You should have received a copy of the GNU Lesser General Public
   465  //    License along with the GNU C Library.  If not, see
   466  //    <https://www.gnu.org/licenses/>.
   467  
   468  // RV32 and RV64 both use 64-bit time_t
   469  
   470  // The function 'gets' existed in C89, but is impossible to use
   471  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   472  //    compatibility with various implementations of <cstdio>, this test
   473  //    must consider only the value of __cplusplus when compiling C++.
   474  
   475  // GNU formerly extended the scanf functions with modified format
   476  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   477  //    input using malloc.  This extension conflicts with ISO C99, which
   478  //    defines %a as a standalone format specifier that reads a floating-
   479  //    point number; moreover, POSIX.1-2008 provides the same feature
   480  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   481  //
   482  //    We now follow C99 unless GNU extensions are active and the compiler
   483  //    is specifically in C89 or C++98 mode (strict or not).  For
   484  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   485  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   486  //    old extension.
   487  
   488  // Get definitions of __STDC_* predefined macros, if the compiler has
   489  //    not preincluded this header automatically.
   490  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
   491  //    This file is part of the GNU C Library.
   492  //
   493  //    The GNU C Library is free software; you can redistribute it and/or
   494  //    modify it under the terms of the GNU Lesser General Public
   495  //    License as published by the Free Software Foundation; either
   496  //    version 2.1 of the License, or (at your option) any later version.
   497  //
   498  //    The GNU C Library is distributed in the hope that it will be useful,
   499  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   500  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   501  //    Lesser General Public License for more details.
   502  //
   503  //    You should have received a copy of the GNU Lesser General Public
   504  //    License along with the GNU C Library; if not, see
   505  //    <https://www.gnu.org/licenses/>.
   506  
   507  // This macro indicates that the installed library is the GNU C Library.
   508  //    For historic reasons the value now is 6 and this will stay from now
   509  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   510  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   511  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   512  //    the sonames of the shared libraries.
   513  
   514  // Major and minor version number of the GNU C library package.  Use
   515  //    these macros to test for features in specific releases.
   516  
   517  // This is here only because every header file already includes this one.
   518  // Copyright (C) 1992-2021 Free Software Foundation, Inc.
   519  //    This file is part of the GNU C Library.
   520  //
   521  //    The GNU C Library is free software; you can redistribute it and/or
   522  //    modify it under the terms of the GNU Lesser General Public
   523  //    License as published by the Free Software Foundation; either
   524  //    version 2.1 of the License, or (at your option) any later version.
   525  //
   526  //    The GNU C Library is distributed in the hope that it will be useful,
   527  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   528  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   529  //    Lesser General Public License for more details.
   530  //
   531  //    You should have received a copy of the GNU Lesser General Public
   532  //    License along with the GNU C Library; if not, see
   533  //    <https://www.gnu.org/licenses/>.
   534  
   535  // We are almost always included from features.h.
   536  
   537  // The GNU libc does not support any K&R compilers or the traditional mode
   538  //    of ISO C compilers anymore.  Check for some of the combinations not
   539  //    supported anymore.
   540  
   541  // Some user header file might have defined this before.
   542  
   543  // Compilers that lack __has_attribute may object to
   544  //        #if defined __has_attribute && __has_attribute (...)
   545  //    even though they do not need to evaluate the right-hand side of the &&.
   546  //    Similarly for __has_builtin, etc.
   547  
   548  // All functions, except those with callbacks or those that
   549  //    synchronize memory, are leaf functions.
   550  
   551  // GCC can always grok prototypes.  For C++ programs we add throw()
   552  //    to help it optimize the function calls.  But this only works with
   553  //    gcc 2.8.x and egcs.  For gcc 3.4 and up we even mark C functions
   554  //    as non-throwing using a function attribute since programs can use
   555  //    the -fexceptions options for C code as well.
   556  
   557  // These two macros are not used in glibc anymore.  They are kept here
   558  //    only because some other projects expect the macros to be defined.
   559  
   560  // For these things, GCC behaves the ANSI way normally,
   561  //    and the non-ANSI way under -traditional.
   562  
   563  // This is not a typedef so `const __ptr_t' does the right thing.
   564  
   565  // C++ needs to know that types and declarations are C, not C++.
   566  
   567  // Fortify support.
   568  
   569  // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
   570  
   571  // Support for flexible arrays.
   572  //    Headers that should use flexible arrays only if they're "real"
   573  //    (e.g. only if they won't affect sizeof()) should test
   574  //    #if __glibc_c99_flexarr_available.
   575  
   576  // __asm__ ("xyz") is used throughout the headers to rename functions
   577  //    at the assembly language level.  This is wrapped by the __REDIRECT
   578  //    macro, in order to support compilers that can do this some other
   579  //    way.  When compilers don't support asm-names at all, we have to do
   580  //    preprocessor tricks instead (which don't have exactly the right
   581  //    semantics, but it's the best we can do).
   582  //
   583  //    Example:
   584  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   585  
   586  //
   587  // #elif __SOME_OTHER_COMPILER__
   588  //
   589  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   590  
   591  // GCC and clang have various useful declarations that can be made with
   592  //    the '__attribute__' syntax.  All of the ways we use this do fine if
   593  //    they are omitted for compilers that don't understand it.
   594  
   595  // At some point during the gcc 2.96 development the `malloc' attribute
   596  //    for functions was introduced.  We don't want to use it unconditionally
   597  //    (although this would be possible) since it generates warnings.
   598  
   599  // Tell the compiler which arguments to an allocation function
   600  //    indicate the size of the allocation.
   601  
   602  // At some point during the gcc 2.96 development the `pure' attribute
   603  //    for functions was introduced.  We don't want to use it unconditionally
   604  //    (although this would be possible) since it generates warnings.
   605  
   606  // This declaration tells the compiler that the value is constant.
   607  
   608  // At some point during the gcc 3.1 development the `used' attribute
   609  //    for functions was introduced.  We don't want to use it unconditionally
   610  //    (although this would be possible) since it generates warnings.
   611  
   612  // Since version 3.2, gcc allows marking deprecated functions.
   613  
   614  // Since version 4.5, gcc also allows one to specify the message printed
   615  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   616  //    may also support this feature.
   617  
   618  // At some point during the gcc 2.8 development the `format_arg' attribute
   619  //    for functions was introduced.  We don't want to use it unconditionally
   620  //    (although this would be possible) since it generates warnings.
   621  //    If several `format_arg' attributes are given for the same function, in
   622  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   623  //    all designated arguments are considered.
   624  
   625  // At some point during the gcc 2.97 development the `strfmon' format
   626  //    attribute for functions was introduced.  We don't want to use it
   627  //    unconditionally (although this would be possible) since it
   628  //    generates warnings.
   629  
   630  // The nonnull function attribute marks pointer parameters that
   631  //    must not be NULL.
   632  
   633  // The returns_nonnull function attribute marks the return type of the function
   634  //    as always being non-null.
   635  
   636  // If fortification mode, we warn about unused results of certain
   637  //    function calls which can lead to problems.
   638  
   639  // Forces a function to be always inlined.
   640  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   641  //    it conflicts with this definition.  Therefore undefine it first to
   642  //    allow either header to be included first.
   643  
   644  // Associate error messages with the source location of the call site rather
   645  //    than with the source location inside the function.
   646  
   647  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   648  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   649  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   650  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   651  //    semantics.
   652  //
   653  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   654  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   655  //    __GNUC_GNU_INLINE__ macro definitions.
   656  
   657  // GCC 4.3 and above allow passing all anonymous arguments of an
   658  //    __extern_always_inline function to some other vararg function.
   659  
   660  // It is possible to compile containing GCC extensions even if GCC is
   661  //    run in pedantic mode if the uses are carefully marked using the
   662  //    `__extension__' keyword.  But this is not generally available before
   663  //    version 2.8.
   664  
   665  // __restrict is known in EGCS 1.2 and above, and in clang.
   666  //    It works also in C++ mode (outside of arrays), but only when spelled
   667  //    as '__restrict', not 'restrict'.
   668  
   669  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
   670  //      array_name[restrict]
   671  //    GCC 3.1 and clang support this.
   672  //    This syntax is not usable in C++ mode.
   673  
   674  // Describes a char array whose address can safely be passed as the first
   675  //    argument to strncpy and strncat, as the char array is not necessarily
   676  //    a NUL-terminated string.
   677  
   678  // Undefine (also defined in libc-symbols.h).
   679  // Copies attributes from the declaration or type referenced by
   680  //    the argument.
   681  
   682  // The #ifndef lets Gnulib avoid including these on non-glibc
   683  //    platforms, where the includes typically do not exist.
   684  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   685  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   686  //    This file is part of the GNU C Library.
   687  //
   688  //    The GNU C Library is free software; you can redistribute it and/or
   689  //    modify it under the terms of the GNU Lesser General Public
   690  //    License as published by the Free Software Foundation; either
   691  //    version 2.1 of the License, or (at your option) any later version.
   692  //
   693  //    The GNU C Library is distributed in the hope that it will be useful,
   694  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   695  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   696  //    Lesser General Public License for more details.
   697  //
   698  //    You should have received a copy of the GNU Lesser General Public
   699  //    License along with the GNU C Library.  If not, see
   700  //    <https://www.gnu.org/licenses/>.
   701  
   702  // Properties of long double type.  ldbl-128 version.
   703  //    Copyright (C) 2016-2021 Free Software Foundation, Inc.
   704  //    This file is part of the GNU C Library.
   705  //
   706  //    The GNU C Library is free software; you can redistribute it and/or
   707  //    modify it under the terms of the GNU Lesser General Public
   708  //    License  published by the Free Software Foundation; either
   709  //    version 2.1 of the License, or (at your option) any later version.
   710  //
   711  //    The GNU C Library is distributed in the hope that it will be useful,
   712  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   713  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   714  //    Lesser General Public License for more details.
   715  //
   716  //    You should have received a copy of the GNU Lesser General Public
   717  //    License along with the GNU C Library; if not, see
   718  //    <https://www.gnu.org/licenses/>.
   719  
   720  // long double is distinct from double, so there is nothing to
   721  //    define here.
   722  
   723  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   724  //    intended for use in preprocessor macros.
   725  //
   726  //    Note: MESSAGE must be a _single_ string; concatenation of string
   727  //    literals is not supported.
   728  
   729  // Generic selection (ISO C11) is a C-only feature, available in GCC
   730  //    since version 4.9.  Previous versions do not provide generic
   731  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   732  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   733  //    when testing __STDC_VERSION__ for generic selection support.
   734  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   735  //    check is required to enable the use of generic selection.
   736  
   737  // Designates a 1-based positional argument ref-index of pointer type
   738  //    that can be used to access size-index elements of the pointed-to
   739  //    array according to access mode, or at least one element when
   740  //    size-index is not provided:
   741  //      access (access-mode, <ref-index> [, <size-index>])
   742  
   743  // Designates dealloc as a function to call to deallocate objects
   744  //    allocated by the declared function.
   745  
   746  // Specify that a function such as setjmp or vfork may return
   747  //    twice.
   748  
   749  // If we don't have __REDIRECT, prototypes will be missing if
   750  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   751  
   752  // Decide whether we can define 'extern inline' functions in headers.
   753  
   754  // This is here only because every header file already includes this one.
   755  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   756  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   757  //    that will always return failure (and set errno to ENOSYS).
   758  // This file is automatically generated.
   759  //    This file selects the right generated file of `__stub_FUNCTION' macros
   760  //    based on the architecture being compiled for.
   761  
   762  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   763  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   764  //    This file is part of the GNU C Library.
   765  //
   766  //    The GNU C Library is free software; you can redistribute it and/or
   767  //    modify it under the terms of the GNU Lesser General Public
   768  //    License as published by the Free Software Foundation; either
   769  //    version 2.1 of the License, or (at your option) any later version.
   770  //
   771  //    The GNU C Library is distributed in the hope that it will be useful,
   772  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   773  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   774  //    Lesser General Public License for more details.
   775  //
   776  //    You should have received a copy of the GNU Lesser General Public
   777  //    License along with the GNU C Library.  If not, see
   778  //    <https://www.gnu.org/licenses/>.
   779  
   780  // This file is automatically generated.
   781  //    It defines a symbol `__stub_FUNCTION' for each function
   782  //    in the C library which is a stub, meaning it will fail
   783  //    every time called, usually setting errno to ENOSYS.
   784  
   785  // ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__
   786  //    macro.
   787  
   788  // ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__
   789  //    macro.  Most but not all symbols enabled by that macro in TS
   790  //    18661-1 are enabled unconditionally in C2X.  In C2X, the symbols in
   791  //    Annex F still require a new feature test macro
   792  //    __STDC_WANT_IEC_60559_EXT__ instead (C2X does not define
   793  //    __STDC_WANT_IEC_60559_BFP_EXT__), while a few features from TS
   794  //    18661-1 are not included in C2X (and thus should depend on
   795  //    __STDC_WANT_IEC_60559_BFP_EXT__ even when C2X features are
   796  //    enabled).
   797  //
   798  //    __GLIBC_USE (IEC_60559_BFP_EXT) controls those features from TS
   799  //    18661-1 not included in C2X.
   800  //
   801  //    __GLIBC_USE (IEC_60559_BFP_EXT_C2X) controls those features from TS
   802  //    18661-1 that are also included in C2X (with no feature test macro
   803  //    required in C2X).
   804  //
   805  //    __GLIBC_USE (IEC_60559_EXT) controls those features from TS 18661-1
   806  //    that are included in C2X but conditional on
   807  //    __STDC_WANT_IEC_60559_EXT__.  (There are currently no features
   808  //    conditional on __STDC_WANT_IEC_60559_EXT__ that are not in TS
   809  //    18661-1.)
   810  
   811  // ISO/IEC TS 18661-4:2015 defines the
   812  //    __STDC_WANT_IEC_60559_FUNCS_EXT__ macro.  Other than the reduction
   813  //    functions, the symbols from this TS are enabled unconditionally in
   814  //    C2X.
   815  
   816  // ISO/IEC TS 18661-3:2015 defines the
   817  //    __STDC_WANT_IEC_60559_TYPES_EXT__ macro.
   818  
   819  // Maximum length of any multibyte character in any locale.
   820  //    We define this value here since the gcc header does not define
   821  //    the correct value.
   822  
   823  // If we are not using GNU CC we have to define all the symbols ourself.
   824  //    Otherwise use gcc's definitions (see below).
   825  
   826  // Get the compiler's limits.h, which defines almost all the ISO constants.
   827  //
   828  //     We put this #include_next outside the double inclusion check because
   829  //     it should be possible to include this file more than once and still get
   830  //     the definitions from gcc's header.
   831  
   832  // The <limits.h> files in some gcc versions don't define LLONG_MIN,
   833  //    LLONG_MAX, and ULLONG_MAX.  Instead only the values gcc defined for
   834  //    ages are available.
   835  
   836  // The integer width macros are not defined by GCC's <limits.h> before
   837  //    GCC 7, or if _GNU_SOURCE rather than
   838  //    __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature.
   839  
   840  // The macros for _Bool are not defined by GCC's <limits.h> before GCC
   841  //    11, or if _GNU_SOURCE is defined rather than enabling C2x support
   842  //    with -std.
   843  
   844  // POSIX adds things to <limits.h>.
   845  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
   846  //    This file is part of the GNU C Library.
   847  //
   848  //    The GNU C Library is free software; you can redistribute it and/or
   849  //    modify it under the terms of the GNU Lesser General Public
   850  //    License as published by the Free Software Foundation; either
   851  //    version 2.1 of the License, or (at your option) any later version.
   852  //
   853  //    The GNU C Library is distributed in the hope that it will be useful,
   854  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   855  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   856  //    Lesser General Public License for more details.
   857  //
   858  //    You should have received a copy of the GNU Lesser General Public
   859  //    License along with the GNU C Library; if not, see
   860  //    <https://www.gnu.org/licenses/>.
   861  
   862  //	POSIX Standard: 2.9.2 Minimum Values	Added to <limits.h>
   863  //
   864  //	Never include this file directly; use <limits.h> instead.
   865  
   866  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   867  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   868  //    This file is part of the GNU C Library.
   869  //
   870  //    The GNU C Library is free software; you can redistribute it and/or
   871  //    modify it under the terms of the GNU Lesser General Public
   872  //    License as published by the Free Software Foundation; either
   873  //    version 2.1 of the License, or (at your option) any later version.
   874  //
   875  //    The GNU C Library is distributed in the hope that it will be useful,
   876  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   877  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   878  //    Lesser General Public License for more details.
   879  //
   880  //    You should have received a copy of the GNU Lesser General Public
   881  //    License along with the GNU C Library.  If not, see
   882  //    <https://www.gnu.org/licenses/>.
   883  
   884  // These are the standard-mandated minimum values.
   885  
   886  // Minimum number of operations in one list I/O call.
   887  
   888  // Minimal number of outstanding asynchronous I/O operations.
   889  
   890  // Maximum length of arguments to `execve', including environment.
   891  
   892  // Maximum simultaneous processes per real user ID.
   893  
   894  // Minimal number of timer expiration overruns.
   895  
   896  // Maximum length of a host name (not including the terminating null)
   897  //    as returned from the GETHOSTNAME function.
   898  
   899  // Maximum link count of a file.
   900  
   901  // Maximum length of login name.
   902  
   903  // Number of bytes in a terminal canonical input queue.
   904  
   905  // Number of bytes for which space will be
   906  //    available in a terminal input queue.
   907  
   908  // Maximum number of message queues open for a process.
   909  
   910  // Maximum number of supported message priorities.
   911  
   912  // Number of bytes in a filename.
   913  
   914  // Number of simultaneous supplementary group IDs per process.
   915  
   916  // Number of files one process can have open at once.
   917  
   918  // Number of bytes in a pathname.
   919  
   920  // Number of bytes than can be written atomically to a pipe.
   921  
   922  // The number of repeated occurrences of a BRE permitted by the
   923  //    REGEXEC and REGCOMP functions when using the interval notation.
   924  
   925  // Minimal number of realtime signals reserved for the application.
   926  
   927  // Number of semaphores a process can have.
   928  
   929  // Maximal value of a semaphore.
   930  
   931  // Number of pending realtime signals.
   932  
   933  // Largest value of a `ssize_t'.
   934  
   935  // Number of streams a process can have open at once.
   936  
   937  // The number of bytes in a symbolic link.
   938  
   939  // The number of symbolic links that can be traversed in the
   940  //    resolution of a pathname in the absence of a loop.
   941  
   942  // Number of timer for a process.
   943  
   944  // Maximum number of characters in a tty name.
   945  
   946  // Maximum length of a timezone name (element of `tzname').
   947  
   948  // Maximum clock resolution in nanoseconds.
   949  
   950  // Get the implementation-specific values for the above.
   951  // Minimum guaranteed maximum values for system limits.  Linux version.
   952  //    Copyright (C) 1993-2021 Free Software Foundation, Inc.
   953  //    This file is part of the GNU C Library.
   954  //
   955  //    The GNU C Library is free software; you can redistribute it and/or
   956  //    modify it under the terms of the GNU Lesser General Public License as
   957  //    published by the Free Software Foundation; either version 2.1 of the
   958  //    License, or (at your option) any later version.
   959  //
   960  //    The GNU C Library is distributed in the hope that it will be useful,
   961  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   962  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   963  //    Lesser General Public License for more details.
   964  //
   965  //    You should have received a copy of the GNU Lesser General Public
   966  //    License along with the GNU C Library; see the file COPYING.LIB.  If
   967  //    not, see <https://www.gnu.org/licenses/>.
   968  
   969  // The kernel header pollutes the namespace with the NR_OPEN symbol
   970  //    and defines LINK_MAX although filesystems have different maxima.  A
   971  //    similar thing is true for OPEN_MAX: the limit can be changed at
   972  //    runtime and therefore the macro must not be defined.  Remove this
   973  //    after including the header if necessary.
   974  
   975  // The kernel sources contain a file with all the needed information.
   976  // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
   977  
   978  // Have to remove NR_OPEN?
   979  // Have to remove LINK_MAX?
   980  // Have to remove OPEN_MAX?
   981  // Have to remove ARG_MAX?
   982  
   983  // The number of data keys per process.
   984  // This is the value this implementation supports.
   985  
   986  // Controlling the iterations of destructors for thread-specific data.
   987  // Number of iterations this implementation does.
   988  
   989  // The number of threads per process.
   990  // We have no predefined limit on the number of threads.
   991  
   992  // Maximum amount by which a process can descrease its asynchronous I/O
   993  //    priority level.
   994  
   995  // Arrange for the definition of PTHREAD_STACK_MIN.
   996  // Definition of PTHREAD_STACK_MIN, possibly dynamic.
   997  //    Copyright (C) 2021 Free Software Foundation, Inc.
   998  //    This file is part of the GNU C Library.
   999  //
  1000  //    The GNU C Library is free software; you can redistribute it and/or
  1001  //    modify it under the terms of the GNU Lesser General Public
  1002  //    License as published by the Free Software Foundation; either
  1003  //    version 2.1 of the License, or (at your option) any later version.
  1004  //
  1005  //    The GNU C Library is distributed in the hope that it will be useful,
  1006  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1007  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1008  //    Lesser General Public License for more details.
  1009  //
  1010  //    You should have received a copy of the GNU Lesser General Public
  1011  //    License along with the GNU C Library; if not, see
  1012  //    <https://www.gnu.org/licenses/>.
  1013  
  1014  // Definition of PTHREAD_STACK_MIN.  Linux version.
  1015  //    Copyright (C) 2021 Free Software Foundation, Inc.
  1016  //    This file is part of the GNU C Library.
  1017  //
  1018  //    The GNU C Library is free software; you can redistribute it and/or
  1019  //    modify it under the terms of the GNU Lesser General Public
  1020  //    License as published by the Free Software Foundation; either
  1021  //    version 2.1 of the License, or (at your option) any later version.
  1022  //
  1023  //    The GNU C Library is distributed in the hope that it will be useful,
  1024  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1025  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1026  //    Lesser General Public License for more details.
  1027  //
  1028  //    You should have received a copy of the GNU Lesser General Public
  1029  //    License along with the GNU C Library; if not, see
  1030  //    <https://www.gnu.org/licenses/>.
  1031  
  1032  // Minimum size for a thread.  We are free to choose a reasonable value.
  1033  
  1034  // Maximum number of timer expiration overruns.
  1035  
  1036  // Maximum tty name length.
  1037  
  1038  // Maximum login name length.  This is arbitrary.
  1039  
  1040  // Maximum host name length.
  1041  
  1042  // Maximum message queue priority level.
  1043  
  1044  // Maximum value the semaphore can have.
  1045  
  1046  // ssize_t is not formally required to be the signed type
  1047  //    corresponding to size_t, but it is for all configurations supported
  1048  //    by glibc.
  1049  
  1050  // This value is a guaranteed minimum maximum.
  1051  //    The current maximum can be got from `sysconf'.
  1052  
  1053  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1054  //    This file is part of the GNU C Library.
  1055  //
  1056  //    The GNU C Library is free software; you can redistribute it and/or
  1057  //    modify it under the terms of the GNU Lesser General Public
  1058  //    License as published by the Free Software Foundation; either
  1059  //    version 2.1 of the License, or (at your option) any later version.
  1060  //
  1061  //    The GNU C Library is distributed in the hope that it will be useful,
  1062  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1063  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1064  //    Lesser General Public License for more details.
  1065  //
  1066  //    You should have received a copy of the GNU Lesser General Public
  1067  //    License along with the GNU C Library; if not, see
  1068  //    <https://www.gnu.org/licenses/>.
  1069  
  1070  // Never include this file directly; include <limits.h> instead.
  1071  
  1072  // The maximum `ibase' and `obase' values allowed by the `bc' utility.
  1073  
  1074  // The maximum number of elements allowed in an array by the `bc' utility.
  1075  
  1076  // The maximum `scale' value allowed by the `bc' utility.
  1077  
  1078  // The maximum length of a string constant accepted by the `bc' utility.
  1079  
  1080  // The maximum number of weights that can be assigned to an entry of
  1081  //    the LC_COLLATE `order' keyword in the locale definition file.
  1082  
  1083  // The maximum number of expressions that can be nested
  1084  //    within parentheses by the `expr' utility.
  1085  
  1086  // The maximum length, in bytes, of an input line.
  1087  
  1088  // The maximum number of repeated occurrences of a regular expression
  1089  //    permitted when using the interval notation `\{M,N\}'.
  1090  
  1091  // The maximum number of bytes in a character class name.  We have no
  1092  //    fixed limit, 2048 is a high number.
  1093  
  1094  // These values are implementation-specific,
  1095  //    and may vary within the implementation.
  1096  //    Their precise values can be obtained from sysconf.
  1097  
  1098  // This value is defined like this in regex.h.
  1099  
  1100  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1101  //
  1102  // This file is part of GCC.
  1103  //
  1104  // GCC is free software; you can redistribute it and/or modify it under
  1105  // the terms of the GNU General Public License as published by the Free
  1106  // Software Foundation; either version 3, or (at your option) any later
  1107  // version.
  1108  //
  1109  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  1110  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  1111  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  1112  // for more details.
  1113  //
  1114  // Under Section 7 of GPL version 3, you are granted additional
  1115  // permissions described in the GCC Runtime Library Exception, version
  1116  // 3.1, as published by the Free Software Foundation.
  1117  //
  1118  // You should have received a copy of the GNU General Public License and
  1119  // a copy of the GCC Runtime Library Exception along with this program;
  1120  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
  1121  // <http://www.gnu.org/licenses/>.
  1122  
  1123  // Number of bits in a `char'.
  1124  
  1125  // Maximum length of a multibyte character.
  1126  
  1127  // Minimum and maximum values a `signed char' can hold.
  1128  
  1129  // Maximum value an `unsigned char' can hold.  (Minimum is 0).
  1130  
  1131  // Minimum and maximum values a `char' can hold.
  1132  
  1133  // Minimum and maximum values a `signed short int' can hold.
  1134  
  1135  // Maximum value an `unsigned short int' can hold.  (Minimum is 0).
  1136  
  1137  // Minimum and maximum values a `signed int' can hold.
  1138  
  1139  // Maximum value an `unsigned int' can hold.  (Minimum is 0).
  1140  
  1141  // Minimum and maximum values a `signed long int' can hold.
  1142  //    (Same as `int').
  1143  
  1144  // Maximum value an `unsigned long int' can hold.  (Minimum is 0).
  1145  
  1146  // Minimum and maximum values a `signed long long int' can hold.
  1147  
  1148  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
  1149  
  1150  // This administrivia gets added to the end of limits.h
  1151  //    if the system has its own version of limits.h.
  1152  
  1153  var _ uint8 /* gen.c:2:13: */