limits_linux_ppc64le.go 44 KB

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