limits_linux_arm.go 41 KB

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