limits_linux_loong64.go 54 KB

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