limits_linux_386.go 39 KB

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