limits_linux_arm64.go 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995
  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_arm64.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 = 131072
  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 = uint32 /* <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-2020 Free Software Foundation, Inc.
  137. //
  138. // This file is part of GCC.
  139. //
  140. // GCC is free software; you can redistribute it and/or modify it under
  141. // the terms of the GNU General Public License as published by the Free
  142. // Software Foundation; either version 3, or (at your option) any later
  143. // version.
  144. //
  145. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  146. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  147. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  148. // for more details.
  149. //
  150. // Under Section 7 of GPL version 3, you are granted additional
  151. // permissions described in the GCC Runtime Library Exception, version
  152. // 3.1, as published by the Free Software Foundation.
  153. //
  154. // You should have received a copy of the GNU General Public License and
  155. // a copy of the GCC Runtime Library Exception along with this program;
  156. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  157. // <http://www.gnu.org/licenses/>.
  158. // 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-2020 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-2020 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-2020 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. //
  240. // _POSIX_SOURCE IEEE Std 1003.1.
  241. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  242. // if >=199309L, add IEEE Std 1003.1b-1993;
  243. // if >=199506L, add IEEE Std 1003.1c-1995;
  244. // if >=200112L, all of IEEE 1003.1-2004
  245. // if >=200809L, all of IEEE 1003.1-2008
  246. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  247. // Single Unix conformance is wanted, to 600 for the
  248. // sixth revision, to 700 for the seventh revision.
  249. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  250. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  251. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  252. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  253. // _ATFILE_SOURCE Additional *at interfaces.
  254. // _GNU_SOURCE All of the above, plus GNU extensions.
  255. // _DEFAULT_SOURCE The default set of features (taking precedence over
  256. // __STRICT_ANSI__).
  257. //
  258. // _FORTIFY_SOURCE Add security hardening to many library functions.
  259. // Set to 1 or 2; 2 performs stricter checks than 1.
  260. //
  261. // _REENTRANT, _THREAD_SAFE
  262. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  263. //
  264. // The `-ansi' switch to the GNU C compiler, and standards conformance
  265. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  266. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  267. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  268. // 200809L, as well as enabling miscellaneous functions from BSD and
  269. // SVID. If more than one of these are defined, they accumulate. For
  270. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  271. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  272. //
  273. // These are defined by this file and are used by the
  274. // header files to decide what to declare or define:
  275. //
  276. // __GLIBC_USE (F) Define things from feature set F. This is defined
  277. // to 1 or 0; the subsequent macros are either defined
  278. // or undefined, and those tests should be moved to
  279. // __GLIBC_USE.
  280. // __USE_ISOC11 Define ISO C11 things.
  281. // __USE_ISOC99 Define ISO C99 things.
  282. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  283. // __USE_ISOCXX11 Define ISO C++11 things.
  284. // __USE_POSIX Define IEEE Std 1003.1 things.
  285. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  286. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  287. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  288. // __USE_XOPEN Define XPG things.
  289. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  290. // __USE_UNIX98 Define Single Unix V2 things.
  291. // __USE_XOPEN2K Define XPG6 things.
  292. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  293. // __USE_XOPEN2K8 Define XPG7 things.
  294. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  295. // __USE_LARGEFILE Define correct standard I/O things.
  296. // __USE_LARGEFILE64 Define LFS things with separate names.
  297. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  298. // __USE_MISC Define things from 4.3BSD or System V Unix.
  299. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  300. // __USE_GNU Define GNU extensions.
  301. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  302. //
  303. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  304. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  305. // only for compatibility. All new code should use the other symbols
  306. // to test for features.
  307. //
  308. // All macros listed above as possibly being defined by this file are
  309. // explicitly undefined if they are not explicitly defined.
  310. // Feature-test macros that are not defined by the user or compiler
  311. // but are implied by the other feature-test macros defined (or by the
  312. // lack of any definitions) are defined by the file.
  313. //
  314. // ISO C feature test macros depend on the definition of the macro
  315. // when an affected header is included, not when the first system
  316. // header is included, and so they are handled in
  317. // <bits/libc-header-start.h>, which does not have a multiple include
  318. // guard. Feature test macros that can be handled from the first
  319. // system header included are handled here.
  320. // Undefine everything, so we get a clean slate.
  321. // Suppress kernel-name space pollution unless user expressedly asks
  322. // for it.
  323. // Convenience macro to test the version of gcc.
  324. // Use like this:
  325. // #if __GNUC_PREREQ (2,8)
  326. // ... code requiring gcc 2.8 or later ...
  327. // #endif
  328. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  329. // added in 2.0.
  330. // Similarly for clang. Features added to GCC after version 4.2 may
  331. // or may not also be available in clang, and clang's definitions of
  332. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  333. // features can be queried via __has_extension/__has_feature.
  334. // Whether to use feature set F.
  335. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  336. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  337. // issue a warning; the expectation is that the source is being
  338. // transitioned to use the new macro.
  339. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  340. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  341. // define _DEFAULT_SOURCE.
  342. // This is to enable the ISO C2X extension.
  343. // This is to enable the ISO C11 extension.
  344. // This is to enable the ISO C99 extension.
  345. // This is to enable the ISO C90 Amendment 1:1995 extension.
  346. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  347. // is defined, use POSIX.1-2008 (or another version depending on
  348. // _XOPEN_SOURCE).
  349. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  350. // defined in all multithreaded code. GNU libc has not required this
  351. // for many years. We now treat them as compatibility synonyms for
  352. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  353. // comprehensive support for multithreaded code. Using them never
  354. // lowers the selected level of POSIX conformance, only raises it.
  355. // The function 'gets' existed in C89, but is impossible to use
  356. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  357. // compatibility with various implementations of <cstdio>, this test
  358. // must consider only the value of __cplusplus when compiling C++.
  359. // GNU formerly extended the scanf functions with modified format
  360. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  361. // input using malloc. This extension conflicts with ISO C99, which
  362. // defines %a as a standalone format specifier that reads a floating-
  363. // point number; moreover, POSIX.1-2008 provides the same feature
  364. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  365. //
  366. // We now follow C99 unless GNU extensions are active and the compiler
  367. // is specifically in C89 or C++98 mode (strict or not). For
  368. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  369. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  370. // old extension.
  371. // Get definitions of __STDC_* predefined macros, if the compiler has
  372. // not preincluded this header automatically.
  373. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  374. // This file is part of the GNU C Library.
  375. //
  376. // The GNU C Library is free software; you can redistribute it and/or
  377. // modify it under the terms of the GNU Lesser General Public
  378. // License as published by the Free Software Foundation; either
  379. // version 2.1 of the License, or (at your option) any later version.
  380. //
  381. // The GNU C Library is distributed in the hope that it will be useful,
  382. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  383. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  384. // Lesser General Public License for more details.
  385. //
  386. // You should have received a copy of the GNU Lesser General Public
  387. // License along with the GNU C Library; if not, see
  388. // <https://www.gnu.org/licenses/>.
  389. // This macro indicates that the installed library is the GNU C Library.
  390. // For historic reasons the value now is 6 and this will stay from now
  391. // on. The use of this variable is deprecated. Use __GLIBC__ and
  392. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  393. // GNU C library version and use the values in <gnu/lib-names.h> to get
  394. // the sonames of the shared libraries.
  395. // Major and minor version number of the GNU C library package. Use
  396. // these macros to test for features in specific releases.
  397. // This is here only because every header file already includes this one.
  398. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  399. // This file is part of the GNU C Library.
  400. //
  401. // The GNU C Library is free software; you can redistribute it and/or
  402. // modify it under the terms of the GNU Lesser General Public
  403. // License as published by the Free Software Foundation; either
  404. // version 2.1 of the License, or (at your option) any later version.
  405. //
  406. // The GNU C Library is distributed in the hope that it will be useful,
  407. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  408. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  409. // Lesser General Public License for more details.
  410. //
  411. // You should have received a copy of the GNU Lesser General Public
  412. // License along with the GNU C Library; if not, see
  413. // <https://www.gnu.org/licenses/>.
  414. // We are almost always included from features.h.
  415. // The GNU libc does not support any K&R compilers or the traditional mode
  416. // of ISO C compilers anymore. Check for some of the combinations not
  417. // anymore supported.
  418. // Some user header file might have defined this before.
  419. // All functions, except those with callbacks or those that
  420. // synchronize memory, are leaf functions.
  421. // GCC can always grok prototypes. For C++ programs we add throw()
  422. // to help it optimize the function calls. But this works only with
  423. // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
  424. // as non-throwing using a function attribute since programs can use
  425. // the -fexceptions options for C code as well.
  426. // Compilers that are not clang may object to
  427. // #if defined __clang__ && __has_extension(...)
  428. // even though they do not need to evaluate the right-hand side of the &&.
  429. // These two macros are not used in glibc anymore. They are kept here
  430. // only because some other projects expect the macros to be defined.
  431. // For these things, GCC behaves the ANSI way normally,
  432. // and the non-ANSI way under -traditional.
  433. // This is not a typedef so `const __ptr_t' does the right thing.
  434. // C++ needs to know that types and declarations are C, not C++.
  435. // Fortify support.
  436. // Support for flexible arrays.
  437. // Headers that should use flexible arrays only if they're "real"
  438. // (e.g. only if they won't affect sizeof()) should test
  439. // #if __glibc_c99_flexarr_available.
  440. // __asm__ ("xyz") is used throughout the headers to rename functions
  441. // at the assembly language level. This is wrapped by the __REDIRECT
  442. // macro, in order to support compilers that can do this some other
  443. // way. When compilers don't support asm-names at all, we have to do
  444. // preprocessor tricks instead (which don't have exactly the right
  445. // semantics, but it's the best we can do).
  446. //
  447. // Example:
  448. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  449. //
  450. // #elif __SOME_OTHER_COMPILER__
  451. //
  452. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  453. // GCC has various useful declarations that can be made with the
  454. // `__attribute__' syntax. All of the ways we use this do fine if
  455. // they are omitted for compilers that don't understand it.
  456. // At some point during the gcc 2.96 development the `malloc' attribute
  457. // for functions was introduced. We don't want to use it unconditionally
  458. // (although this would be possible) since it generates warnings.
  459. // Tell the compiler which arguments to an allocation function
  460. // indicate the size of the allocation.
  461. // At some point during the gcc 2.96 development the `pure' attribute
  462. // for functions was introduced. We don't want to use it unconditionally
  463. // (although this would be possible) since it generates warnings.
  464. // This declaration tells the compiler that the value is constant.
  465. // At some point during the gcc 3.1 development the `used' attribute
  466. // for functions was introduced. We don't want to use it unconditionally
  467. // (although this would be possible) since it generates warnings.
  468. // Since version 3.2, gcc allows marking deprecated functions.
  469. // Since version 4.5, gcc also allows one to specify the message printed
  470. // when a deprecated function is used. clang claims to be gcc 4.2, but
  471. // may also support this feature.
  472. // At some point during the gcc 2.8 development the `format_arg' attribute
  473. // for functions was introduced. We don't want to use it unconditionally
  474. // (although this would be possible) since it generates warnings.
  475. // If several `format_arg' attributes are given for the same function, in
  476. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  477. // all designated arguments are considered.
  478. // At some point during the gcc 2.97 development the `strfmon' format
  479. // attribute for functions was introduced. We don't want to use it
  480. // unconditionally (although this would be possible) since it
  481. // generates warnings.
  482. // The nonull function attribute allows to mark pointer parameters which
  483. // must not be NULL.
  484. // If fortification mode, we warn about unused results of certain
  485. // function calls which can lead to problems.
  486. // Forces a function to be always inlined.
  487. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  488. // it conflicts with this definition. Therefore undefine it first to
  489. // allow either header to be included first.
  490. // Associate error messages with the source location of the call site rather
  491. // than with the source location inside the function.
  492. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  493. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  494. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  495. // older than 4.3 may define these macros and still not guarantee GNU inlining
  496. // semantics.
  497. //
  498. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  499. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  500. // __GNUC_GNU_INLINE__ macro definitions.
  501. // GCC 4.3 and above allow passing all anonymous arguments of an
  502. // __extern_always_inline function to some other vararg function.
  503. // It is possible to compile containing GCC extensions even if GCC is
  504. // run in pedantic mode if the uses are carefully marked using the
  505. // `__extension__' keyword. But this is not generally available before
  506. // version 2.8.
  507. // __restrict is known in EGCS 1.2 and above.
  508. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  509. // array_name[restrict]
  510. // GCC 3.1 supports this.
  511. // Describes a char array whose address can safely be passed as the first
  512. // argument to strncpy and strncat, as the char array is not necessarily
  513. // a NUL-terminated string.
  514. // Undefine (also defined in libc-symbols.h).
  515. // Copies attributes from the declaration or type referenced by
  516. // the argument.
  517. // Determine the wordsize from the preprocessor defines.
  518. //
  519. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  520. // This file is part of the GNU C Library.
  521. //
  522. // The GNU C Library is free software; you can redistribute it and/or
  523. // modify it under the terms of the GNU Lesser General Public
  524. // License as published by the Free Software Foundation; either
  525. // version 2.1 of the License, or (at your option) any later version.
  526. //
  527. // The GNU C Library is distributed in the hope that it will be useful,
  528. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  529. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  530. // Lesser General Public License for more details.
  531. //
  532. // You should have received a copy of the GNU Lesser General Public
  533. // License along with the GNU C Library; if not, see
  534. // <https://www.gnu.org/licenses/>.
  535. // Properties of long double type. ldbl-128 version.
  536. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  537. // This file is part of the GNU C Library.
  538. //
  539. // The GNU C Library is free software; you can redistribute it and/or
  540. // modify it under the terms of the GNU Lesser General Public
  541. // License published by the Free Software Foundation; either
  542. // version 2.1 of the License, or (at your option) any later version.
  543. //
  544. // The GNU C Library is distributed in the hope that it will be useful,
  545. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  546. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  547. // Lesser General Public License for more details.
  548. //
  549. // You should have received a copy of the GNU Lesser General Public
  550. // License along with the GNU C Library; if not, see
  551. // <https://www.gnu.org/licenses/>.
  552. // long double is distinct from double, so there is nothing to
  553. // define here.
  554. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  555. // intended for use in preprocessor macros.
  556. //
  557. // Note: MESSAGE must be a _single_ string; concatenation of string
  558. // literals is not supported.
  559. // Generic selection (ISO C11) is a C-only feature, available in GCC
  560. // since version 4.9. Previous versions do not provide generic
  561. // selection, even though they might set __STDC_VERSION__ to 201112L,
  562. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  563. // when testing __STDC_VERSION__ for generic selection support.
  564. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  565. // check is required to enable the use of generic selection.
  566. // If we don't have __REDIRECT, prototypes will be missing if
  567. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  568. // Decide whether we can define 'extern inline' functions in headers.
  569. // This is here only because every header file already includes this one.
  570. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  571. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  572. // that will always return failure (and set errno to ENOSYS).
  573. // This file is automatically generated.
  574. // This file selects the right generated file of `__stub_FUNCTION' macros
  575. // based on the architecture being compiled for.
  576. // Determine the wordsize from the preprocessor defines.
  577. //
  578. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  579. // This file is part of the GNU C Library.
  580. //
  581. // The GNU C Library is free software; you can redistribute it and/or
  582. // modify it under the terms of the GNU Lesser General Public
  583. // License as published by the Free Software Foundation; either
  584. // version 2.1 of the License, or (at your option) any later version.
  585. //
  586. // The GNU C Library is distributed in the hope that it will be useful,
  587. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  588. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  589. // Lesser General Public License for more details.
  590. //
  591. // You should have received a copy of the GNU Lesser General Public
  592. // License along with the GNU C Library; if not, see
  593. // <https://www.gnu.org/licenses/>.
  594. // This file is automatically generated.
  595. // It defines a symbol `__stub_FUNCTION' for each function
  596. // in the C library which is a stub, meaning it will fail
  597. // every time called, usually setting errno to ENOSYS.
  598. // ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__
  599. // macro.
  600. // ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__
  601. // macro. Most but not all symbols enabled by that macro in TS
  602. // 18661-1 are enabled unconditionally in C2X; the symbols in Annex F
  603. // still require that macro in C2X.
  604. // ISO/IEC TS 18661-4:2015 defines the
  605. // __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. Other than the reduction
  606. // functions, the symbols from this TS are enabled unconditionally in
  607. // C2X.
  608. // ISO/IEC TS 18661-3:2015 defines the
  609. // __STDC_WANT_IEC_60559_TYPES_EXT__ macro.
  610. // Maximum length of any multibyte character in any locale.
  611. // We define this value here since the gcc header does not define
  612. // the correct value.
  613. // If we are not using GNU CC we have to define all the symbols ourself.
  614. // Otherwise use gcc's definitions (see below).
  615. // Get the compiler's limits.h, which defines almost all the ISO constants.
  616. //
  617. // We put this #include_next outside the double inclusion check because
  618. // it should be possible to include this file more than once and still get
  619. // the definitions from gcc's header.
  620. // The <limits.h> files in some gcc versions don't define LLONG_MIN,
  621. // LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for
  622. // ages are available.
  623. // The integer width macros are not defined by GCC's <limits.h> before
  624. // GCC 7, or if _GNU_SOURCE rather than
  625. // __STDC_WANT_IEC_60559_BFP_EXT__ is used to enable this feature.
  626. // POSIX adds things to <limits.h>.
  627. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  628. // This file is part of the GNU C Library.
  629. //
  630. // The GNU C Library is free software; you can redistribute it and/or
  631. // modify it under the terms of the GNU Lesser General Public
  632. // License as published by the Free Software Foundation; either
  633. // version 2.1 of the License, or (at your option) any later version.
  634. //
  635. // The GNU C Library is distributed in the hope that it will be useful,
  636. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  637. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  638. // Lesser General Public License for more details.
  639. //
  640. // You should have received a copy of the GNU Lesser General Public
  641. // License along with the GNU C Library; if not, see
  642. // <https://www.gnu.org/licenses/>.
  643. // POSIX Standard: 2.9.2 Minimum Values Added to <limits.h>
  644. //
  645. // Never include this file directly; use <limits.h> instead.
  646. // Determine the wordsize from the preprocessor defines.
  647. //
  648. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  649. // This file is part of the GNU C Library.
  650. //
  651. // The GNU C Library is free software; you can redistribute it and/or
  652. // modify it under the terms of the GNU Lesser General Public
  653. // License as published by the Free Software Foundation; either
  654. // version 2.1 of the License, or (at your option) any later version.
  655. //
  656. // The GNU C Library is distributed in the hope that it will be useful,
  657. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  658. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  659. // Lesser General Public License for more details.
  660. //
  661. // You should have received a copy of the GNU Lesser General Public
  662. // License along with the GNU C Library; if not, see
  663. // <https://www.gnu.org/licenses/>.
  664. // These are the standard-mandated minimum values.
  665. // Minimum number of operations in one list I/O call.
  666. // Minimal number of outstanding asynchronous I/O operations.
  667. // Maximum length of arguments to `execve', including environment.
  668. // Maximum simultaneous processes per real user ID.
  669. // Minimal number of timer expiration overruns.
  670. // Maximum length of a host name (not including the terminating null)
  671. // as returned from the GETHOSTNAME function.
  672. // Maximum link count of a file.
  673. // Maximum length of login name.
  674. // Number of bytes in a terminal canonical input queue.
  675. // Number of bytes for which space will be
  676. // available in a terminal input queue.
  677. // Maximum number of message queues open for a process.
  678. // Maximum number of supported message priorities.
  679. // Number of bytes in a filename.
  680. // Number of simultaneous supplementary group IDs per process.
  681. // Number of files one process can have open at once.
  682. // Number of bytes in a pathname.
  683. // Number of bytes than can be written atomically to a pipe.
  684. // The number of repeated occurrences of a BRE permitted by the
  685. // REGEXEC and REGCOMP functions when using the interval notation.
  686. // Minimal number of realtime signals reserved for the application.
  687. // Number of semaphores a process can have.
  688. // Maximal value of a semaphore.
  689. // Number of pending realtime signals.
  690. // Largest value of a `ssize_t'.
  691. // Number of streams a process can have open at once.
  692. // The number of bytes in a symbolic link.
  693. // The number of symbolic links that can be traversed in the
  694. // resolution of a pathname in the absence of a loop.
  695. // Number of timer for a process.
  696. // Maximum number of characters in a tty name.
  697. // Maximum length of a timezone name (element of `tzname').
  698. // Maximum clock resolution in nanoseconds.
  699. // Get the implementation-specific values for the above.
  700. // Minimum guaranteed maximum values for system limits. Linux version.
  701. // Copyright (C) 1993-2020 Free Software Foundation, Inc.
  702. //
  703. // This file is part of the GNU C Library.
  704. //
  705. // The GNU C Library is free software; you can redistribute it and/or
  706. // modify it under the terms of the GNU Lesser General Public License as
  707. // published by the Free Software Foundation; either version 2.1 of the
  708. // License, or (at your option) any later version.
  709. //
  710. // The GNU C Library is distributed in the hope that it will be useful,
  711. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  712. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  713. // Lesser General Public License for more details.
  714. //
  715. // You should have received a copy of the GNU Lesser General Public
  716. // License along with the GNU C Library. If not, see
  717. // <https://www.gnu.org/licenses/>.
  718. // The kernel header pollutes the namespace with the NR_OPEN symbol
  719. // and defines LINK_MAX although filesystems have different maxima. A
  720. // similar thing is true for OPEN_MAX: the limit can be changed at
  721. // runtime and therefore the macro must not be defined. Remove this
  722. // after including the header if necessary.
  723. // The kernel sources contain a file with all the needed information.
  724. // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
  725. // Have to remove NR_OPEN?
  726. // Have to remove LINK_MAX?
  727. // Have to remove OPEN_MAX?
  728. // Have to remove ARG_MAX?
  729. // The number of data keys per process.
  730. // This is the value this implementation supports.
  731. // Controlling the iterations of destructors for thread-specific data.
  732. // Number of iterations this implementation does.
  733. // The number of threads per process.
  734. // We have no predefined limit on the number of threads.
  735. // Maximum amount by which a process can descrease its asynchronous I/O
  736. // priority level.
  737. // Minimum size for a thread. At least two pages for systems with 64k
  738. // pages.
  739. // Maximum number of timer expiration overruns.
  740. // Maximum tty name length.
  741. // Maximum login name length. This is arbitrary.
  742. // Maximum host name length.
  743. // Maximum message queue priority level.
  744. // Maximum value the semaphore can have.
  745. // ssize_t is not formally required to be the signed type
  746. // corresponding to size_t, but it is for all configurations supported
  747. // by glibc.
  748. // This value is a guaranteed minimum maximum.
  749. // The current maximum can be got from `sysconf'.
  750. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  751. // This file is part of the GNU C Library.
  752. //
  753. // The GNU C Library is free software; you can redistribute it and/or
  754. // modify it under the terms of the GNU Lesser General Public
  755. // License as published by the Free Software Foundation; either
  756. // version 2.1 of the License, or (at your option) any later version.
  757. //
  758. // The GNU C Library is distributed in the hope that it will be useful,
  759. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  760. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  761. // Lesser General Public License for more details.
  762. //
  763. // You should have received a copy of the GNU Lesser General Public
  764. // License along with the GNU C Library; if not, see
  765. // <https://www.gnu.org/licenses/>.
  766. // Never include this file directly; include <limits.h> instead.
  767. // The maximum `ibase' and `obase' values allowed by the `bc' utility.
  768. // The maximum number of elements allowed in an array by the `bc' utility.
  769. // The maximum `scale' value allowed by the `bc' utility.
  770. // The maximum length of a string constant accepted by the `bc' utility.
  771. // The maximum number of weights that can be assigned to an entry of
  772. // the LC_COLLATE `order' keyword in the locale definition file.
  773. // The maximum number of expressions that can be nested
  774. // within parentheses by the `expr' utility.
  775. // The maximum length, in bytes, of an input line.
  776. // The maximum number of repeated occurrences of a regular expression
  777. // permitted when using the interval notation `\{M,N\}'.
  778. // The maximum number of bytes in a character class name. We have no
  779. // fixed limit, 2048 is a high number.
  780. // These values are implementation-specific,
  781. // and may vary within the implementation.
  782. // Their precise values can be obtained from sysconf.
  783. // This value is defined like this in regex.h.
  784. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  785. //
  786. // This file is part of GCC.
  787. //
  788. // GCC is free software; you can redistribute it and/or modify it under
  789. // the terms of the GNU General Public License as published by the Free
  790. // Software Foundation; either version 3, or (at your option) any later
  791. // version.
  792. //
  793. // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  794. // WARRANTY; without even the implied warranty of MERCHANTABILITY or
  795. // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  796. // for more details.
  797. //
  798. // Under Section 7 of GPL version 3, you are granted additional
  799. // permissions described in the GCC Runtime Library Exception, version
  800. // 3.1, as published by the Free Software Foundation.
  801. //
  802. // You should have received a copy of the GNU General Public License and
  803. // a copy of the GCC Runtime Library Exception along with this program;
  804. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  805. // <http://www.gnu.org/licenses/>.
  806. // Number of bits in a `char'.
  807. // Maximum length of a multibyte character.
  808. // Minimum and maximum values a `signed char' can hold.
  809. // Maximum value an `unsigned char' can hold. (Minimum is 0).
  810. // Minimum and maximum values a `char' can hold.
  811. // Minimum and maximum values a `signed short int' can hold.
  812. // Maximum value an `unsigned short int' can hold. (Minimum is 0).
  813. // Minimum and maximum values a `signed int' can hold.
  814. // Maximum value an `unsigned int' can hold. (Minimum is 0).
  815. // Minimum and maximum values a `signed long int' can hold.
  816. // (Same as `int').
  817. // Maximum value an `unsigned long int' can hold. (Minimum is 0).
  818. // Minimum and maximum values a `signed long long int' can hold.
  819. // Maximum value an `unsigned long long int' can hold. (Minimum is 0).
  820. // This administrivia gets added to the end of limits.h
  821. // if the system has its own version of limits.h.
  822. var _ uint8 /* gen.c:2:13: */