limits_linux_riscv64.go 49 KB

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