grp_linux_loong64.go 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  1. // Code generated by 'ccgo grp/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 grp/grp_linux_loong64.go -pkgname grp', DO NOT EDIT.
  2. package grp
  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. NSS_BUFLEN_GROUP = 1024 // grp.h:114:1:
  15. X_ABILP64 = 3 // <predefined>:377:1:
  16. X_ATFILE_SOURCE = 1 // features.h:353:1:
  17. X_BITS_TIME64_H = 1 // time64.h:24:1:
  18. X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
  19. X_BITS_TYPES_H = 1 // types.h:24:1:
  20. X_BSD_SIZE_T_ = 0 // stddef.h:193:1:
  21. X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1:
  22. X_DEFAULT_SOURCE = 1 // features.h:238:1:
  23. X_FEATURES_H = 1 // features.h:19:1:
  24. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  25. X_GCC_SIZE_T = 0 // stddef.h:200:1:
  26. X_GRP_H = 1 // grp.h:23:1:
  27. X_LOONGARCH_ARCH = "loongarch64" // <predefined>:214:1:
  28. X_LOONGARCH_ARCH_LOONGARCH64 = 1 // <predefined>:340:1:
  29. X_LOONGARCH_FPSET = 32 // <predefined>:265:1:
  30. X_LOONGARCH_SIM = 3 // <predefined>:233:1:
  31. X_LOONGARCH_SPFPSET = 32 // <predefined>:88:1:
  32. X_LOONGARCH_SZINT = 32 // <predefined>:230:1:
  33. X_LOONGARCH_SZLONG = 64 // <predefined>:388:1:
  34. X_LOONGARCH_SZPTR = 64 // <predefined>:200:1:
  35. X_LOONGARCH_TUNE = "la464" // <predefined>:245:1:
  36. X_LOONGARCH_TUNE_LA464 = 1 // <predefined>:63:1:
  37. X_LP64 = 1 // <predefined>:372:1:
  38. X_POSIX_C_SOURCE = 200809 // features.h:292:1:
  39. X_POSIX_SOURCE = 1 // features.h:290:1:
  40. X_SIZET_ = 0 // stddef.h:201:1:
  41. X_SIZE_T = 0 // stddef.h:187:1:
  42. X_SIZE_T_ = 0 // stddef.h:192:1:
  43. X_SIZE_T_DECLARED = 0 // stddef.h:197:1:
  44. X_SIZE_T_DEFINED = 0 // stddef.h:195:1:
  45. X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1:
  46. X_STDC_PREDEF_H = 1 // <predefined>:223:1:
  47. X_SYS_CDEFS_H = 1 // cdefs.h:20:1:
  48. X_SYS_SIZE_T_H = 0 // stddef.h:188:1:
  49. X_T_SIZE = 0 // stddef.h:190:1:
  50. X_T_SIZE_ = 0 // stddef.h:189:1:
  51. Linux = 1 // <predefined>:308:1:
  52. Unix = 1 // <predefined>:247:1:
  53. )
  54. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  55. type Size_t = uint64 /* <builtin>:9:23 */
  56. type Wchar_t = int32 /* <builtin>:15:24 */
  57. type X__int128_t = struct {
  58. Flo int64
  59. Fhi int64
  60. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  61. type X__uint128_t = struct {
  62. Flo uint64
  63. Fhi uint64
  64. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  65. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  66. type X__float128 = float64 /* <builtin>:47:21 */
  67. // Copyright (C) 1991-2023 Free Software Foundation, Inc.
  68. // This file is part of the GNU C Library.
  69. //
  70. // The GNU C Library is free software; you can redistribute it and/or
  71. // modify it under the terms of the GNU Lesser General Public
  72. // License as published by the Free Software Foundation; either
  73. // version 2.1 of the License, or (at your option) any later version.
  74. //
  75. // The GNU C Library is distributed in the hope that it will be useful,
  76. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  77. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  78. // Lesser General Public License for more details.
  79. //
  80. // You should have received a copy of the GNU Lesser General Public
  81. // License along with the GNU C Library; if not, see
  82. // <https://www.gnu.org/licenses/>.
  83. // POSIX Standard: 9.2.1 Group Database Access <grp.h>
  84. // Copyright (C) 1991-2023 Free Software Foundation, Inc.
  85. // This file is part of the GNU C Library.
  86. //
  87. // The GNU C Library is free software; you can redistribute it and/or
  88. // modify it under the terms of the GNU Lesser General Public
  89. // License as published by the Free Software Foundation; either
  90. // version 2.1 of the License, or (at your option) any later version.
  91. //
  92. // The GNU C Library is distributed in the hope that it will be useful,
  93. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  94. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  95. // Lesser General Public License for more details.
  96. //
  97. // You should have received a copy of the GNU Lesser General Public
  98. // License along with the GNU C Library; if not, see
  99. // <https://www.gnu.org/licenses/>.
  100. // These are defined by the user (or the compiler)
  101. // to specify the desired environment:
  102. //
  103. // __STRICT_ANSI__ ISO Standard C.
  104. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  105. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  106. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  107. // __STDC_WANT_LIB_EXT2__
  108. // Extensions to ISO C99 from TR 27431-2:2010.
  109. // __STDC_WANT_IEC_60559_BFP_EXT__
  110. // Extensions to ISO C11 from TS 18661-1:2014.
  111. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  112. // Extensions to ISO C11 from TS 18661-4:2015.
  113. // __STDC_WANT_IEC_60559_TYPES_EXT__
  114. // Extensions to ISO C11 from TS 18661-3:2015.
  115. // __STDC_WANT_IEC_60559_EXT__
  116. // ISO C2X interfaces defined only in Annex F.
  117. //
  118. // _POSIX_SOURCE IEEE Std 1003.1.
  119. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  120. // if >=199309L, add IEEE Std 1003.1b-1993;
  121. // if >=199506L, add IEEE Std 1003.1c-1995;
  122. // if >=200112L, all of IEEE 1003.1-2004
  123. // if >=200809L, all of IEEE 1003.1-2008
  124. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  125. // Single Unix conformance is wanted, to 600 for the
  126. // sixth revision, to 700 for the seventh revision.
  127. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  128. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  129. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  130. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  131. // _ATFILE_SOURCE Additional *at interfaces.
  132. // _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
  133. // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
  134. // _GNU_SOURCE All of the above, plus GNU extensions.
  135. // _DEFAULT_SOURCE The default set of features (taking precedence over
  136. // __STRICT_ANSI__).
  137. //
  138. // _FORTIFY_SOURCE Add security hardening to many library functions.
  139. // Set to 1, 2 or 3; 3 performs stricter checks than 2, which
  140. // performs stricter checks than 1.
  141. //
  142. // _REENTRANT, _THREAD_SAFE
  143. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  144. //
  145. // The `-ansi' switch to the GNU C compiler, and standards conformance
  146. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  147. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  148. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  149. // 200809L, as well as enabling miscellaneous functions from BSD and
  150. // SVID. If more than one of these are defined, they accumulate. For
  151. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  152. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  153. //
  154. // These are defined by this file and are used by the
  155. // header files to decide what to declare or define:
  156. //
  157. // __GLIBC_USE (F) Define things from feature set F. This is defined
  158. // to 1 or 0; the subsequent macros are either defined
  159. // or undefined, and those tests should be moved to
  160. // __GLIBC_USE.
  161. // __USE_ISOC11 Define ISO C11 things.
  162. // __USE_ISOC99 Define ISO C99 things.
  163. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  164. // __USE_ISOCXX11 Define ISO C++11 things.
  165. // __USE_POSIX Define IEEE Std 1003.1 things.
  166. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  167. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  168. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  169. // __USE_XOPEN Define XPG things.
  170. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  171. // __USE_UNIX98 Define Single Unix V2 things.
  172. // __USE_XOPEN2K Define XPG6 things.
  173. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  174. // __USE_XOPEN2K8 Define XPG7 things.
  175. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  176. // __USE_LARGEFILE Define correct standard I/O things.
  177. // __USE_LARGEFILE64 Define LFS things with separate names.
  178. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  179. // __USE_MISC Define things from 4.3BSD or System V Unix.
  180. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  181. // __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
  182. // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
  183. // __USE_GNU Define GNU extensions.
  184. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  185. //
  186. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  187. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  188. // only for compatibility. All new code should use the other symbols
  189. // to test for features.
  190. //
  191. // All macros listed above as possibly being defined by this file are
  192. // explicitly undefined if they are not explicitly defined.
  193. // Feature-test macros that are not defined by the user or compiler
  194. // but are implied by the other feature-test macros defined (or by the
  195. // lack of any definitions) are defined by the file.
  196. //
  197. // ISO C feature test macros depend on the definition of the macro
  198. // when an affected header is included, not when the first system
  199. // header is included, and so they are handled in
  200. // <bits/libc-header-start.h>, which does not have a multiple include
  201. // guard. Feature test macros that can be handled from the first
  202. // system header included are handled here.
  203. // Undefine everything, so we get a clean slate.
  204. // Suppress kernel-name space pollution unless user expressedly asks
  205. // for it.
  206. // Convenience macro to test the version of gcc.
  207. // Use like this:
  208. // #if __GNUC_PREREQ (2,8)
  209. // ... code requiring gcc 2.8 or later ...
  210. // #endif
  211. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  212. // added in 2.0.
  213. // Similarly for clang. Features added to GCC after version 4.2 may
  214. // or may not also be available in clang, and clang's definitions of
  215. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  216. // features can be queried via __has_extension/__has_feature.
  217. // Whether to use feature set F.
  218. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  219. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  220. // issue a warning; the expectation is that the source is being
  221. // transitioned to use the new macro.
  222. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  223. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  224. // define _DEFAULT_SOURCE.
  225. // This is to enable the ISO C2X extension.
  226. // This is to enable the ISO C11 extension.
  227. // This is to enable the ISO C99 extension.
  228. // This is to enable the ISO C90 Amendment 1:1995 extension.
  229. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  230. // is defined, use POSIX.1-2008 (or another version depending on
  231. // _XOPEN_SOURCE).
  232. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  233. // defined in all multithreaded code. GNU libc has not required this
  234. // for many years. We now treat them as compatibility synonyms for
  235. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  236. // comprehensive support for multithreaded code. Using them never
  237. // lowers the selected level of POSIX conformance, only raises it.
  238. // Features part to handle 64-bit time_t support.
  239. // Copyright (C) 2021-2023 Free Software Foundation, Inc.
  240. // This file is part of the GNU C Library.
  241. //
  242. // The GNU C Library is free software; you can redistribute it and/or
  243. // modify it under the terms of the GNU Lesser General Public
  244. // License as published by the Free Software Foundation; either
  245. // version 2.1 of the License, or (at your option) any later version.
  246. //
  247. // The GNU C Library is distributed in the hope that it will be useful,
  248. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  249. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  250. // Lesser General Public License for more details.
  251. //
  252. // You should have received a copy of the GNU Lesser General Public
  253. // License along with the GNU C Library; if not, see
  254. // <https://www.gnu.org/licenses/>.
  255. // We need to know the word size in order to check the time size.
  256. // Copyright (C) 1999-2023 Free Software Foundation, Inc.
  257. // This file is part of the GNU C Library.
  258. //
  259. // The GNU C Library is free software; you can redistribute it and/or
  260. // modify it under the terms of the GNU Lesser General Public
  261. // License as published by the Free Software Foundation; either
  262. // version 2.1 of the License, or (at your option) any later version.
  263. //
  264. // The GNU C Library is distributed in the hope that it will be useful,
  265. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  266. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  267. // Lesser General Public License for more details.
  268. //
  269. // You should have received a copy of the GNU Lesser General Public
  270. // License along with the GNU C Library; if not, see
  271. // <https://www.gnu.org/licenses/>.
  272. // Bit size of the time_t type at glibc build time, general case.
  273. // Copyright (C) 2018-2023 Free Software Foundation, Inc.
  274. // This file is part of the GNU C Library.
  275. //
  276. // The GNU C Library is free software; you can redistribute it and/or
  277. // modify it under the terms of the GNU Lesser General Public
  278. // License as published by the Free Software Foundation; either
  279. // version 2.1 of the License, or (at your option) any later version.
  280. //
  281. // The GNU C Library is distributed in the hope that it will be useful,
  282. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  283. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  284. // Lesser General Public License for more details.
  285. //
  286. // You should have received a copy of the GNU Lesser General Public
  287. // License along with the GNU C Library; if not, see
  288. // <https://www.gnu.org/licenses/>.
  289. // Size in bits of the 'time_t' type of the default ABI.
  290. // The function 'gets' existed in C89, but is impossible to use
  291. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  292. // compatibility with various implementations of <cstdio>, this test
  293. // must consider only the value of __cplusplus when compiling C++.
  294. // GNU formerly extended the scanf functions with modified format
  295. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  296. // input using malloc. This extension conflicts with ISO C99, which
  297. // defines %a as a standalone format specifier that reads a floating-
  298. // point number; moreover, POSIX.1-2008 provides the same feature
  299. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  300. //
  301. // We now follow C99 unless GNU extensions are active and the compiler
  302. // is specifically in C89 or C++98 mode (strict or not). For
  303. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  304. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  305. // old extension.
  306. // ISO C2X added support for a 0b or 0B prefix on binary constants as
  307. // inputs to strtol-family functions (base 0 or 2). This macro is
  308. // used to condition redirection in headers to allow that redirection
  309. // to be disabled when building those functions, despite _GNU_SOURCE
  310. // being defined.
  311. // Get definitions of __STDC_* predefined macros, if the compiler has
  312. // not preincluded this header automatically.
  313. // Copyright (C) 1991-2023 Free Software Foundation, Inc.
  314. // This file is part of the GNU C Library.
  315. //
  316. // The GNU C Library is free software; you can redistribute it and/or
  317. // modify it under the terms of the GNU Lesser General Public
  318. // License as published by the Free Software Foundation; either
  319. // version 2.1 of the License, or (at your option) any later version.
  320. //
  321. // The GNU C Library is distributed in the hope that it will be useful,
  322. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  323. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  324. // Lesser General Public License for more details.
  325. //
  326. // You should have received a copy of the GNU Lesser General Public
  327. // License along with the GNU C Library; if not, see
  328. // <https://www.gnu.org/licenses/>.
  329. // This macro indicates that the installed library is the GNU C Library.
  330. // For historic reasons the value now is 6 and this will stay from now
  331. // on. The use of this variable is deprecated. Use __GLIBC__ and
  332. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  333. // GNU C library version and use the values in <gnu/lib-names.h> to get
  334. // the sonames of the shared libraries.
  335. // Major and minor version number of the GNU C library package. Use
  336. // these macros to test for features in specific releases.
  337. // This is here only because every header file already includes this one.
  338. // Copyright (C) 1992-2023 Free Software Foundation, Inc.
  339. // Copyright The GNU Toolchain Authors.
  340. // This file is part of the GNU C Library.
  341. //
  342. // The GNU C Library is free software; you can redistribute it and/or
  343. // modify it under the terms of the GNU Lesser General Public
  344. // License as published by the Free Software Foundation; either
  345. // version 2.1 of the License, or (at your option) any later version.
  346. //
  347. // The GNU C Library is distributed in the hope that it will be useful,
  348. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  349. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  350. // Lesser General Public License for more details.
  351. //
  352. // You should have received a copy of the GNU Lesser General Public
  353. // License along with the GNU C Library; if not, see
  354. // <https://www.gnu.org/licenses/>.
  355. // We are almost always included from features.h.
  356. // The GNU libc does not support any K&R compilers or the traditional mode
  357. // of ISO C compilers anymore. Check for some of the combinations not
  358. // supported anymore.
  359. // Some user header file might have defined this before.
  360. // Compilers that lack __has_attribute may object to
  361. // #if defined __has_attribute && __has_attribute (...)
  362. // even though they do not need to evaluate the right-hand side of the &&.
  363. // Similarly for __has_builtin, etc.
  364. // All functions, except those with callbacks or those that
  365. // synchronize memory, are leaf functions.
  366. // GCC can always grok prototypes. For C++ programs we add throw()
  367. // to help it optimize the function calls. But this only works with
  368. // gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions
  369. // as non-throwing using a function attribute since programs can use
  370. // the -fexceptions options for C code as well.
  371. // These two macros are not used in glibc anymore. They are kept here
  372. // only because some other projects expect the macros to be defined.
  373. // For these things, GCC behaves the ANSI way normally,
  374. // and the non-ANSI way under -traditional.
  375. // This is not a typedef so `const __ptr_t' does the right thing.
  376. // C++ needs to know that types and declarations are C, not C++.
  377. // Fortify support.
  378. // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
  379. // Support for flexible arrays.
  380. // Headers that should use flexible arrays only if they're "real"
  381. // (e.g. only if they won't affect sizeof()) should test
  382. // #if __glibc_c99_flexarr_available.
  383. // __asm__ ("xyz") is used throughout the headers to rename functions
  384. // at the assembly language level. This is wrapped by the __REDIRECT
  385. // macro, in order to support compilers that can do this some other
  386. // way. When compilers don't support asm-names at all, we have to do
  387. // preprocessor tricks instead (which don't have exactly the right
  388. // semantics, but it's the best we can do).
  389. //
  390. // Example:
  391. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  392. //
  393. // #elif __SOME_OTHER_COMPILER__
  394. //
  395. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  396. // GCC and clang have various useful declarations that can be made with
  397. // the '__attribute__' syntax. All of the ways we use this do fine if
  398. // they are omitted for compilers that don't understand it.
  399. // At some point during the gcc 2.96 development the `malloc' attribute
  400. // for functions was introduced. We don't want to use it unconditionally
  401. // (although this would be possible) since it generates warnings.
  402. // Tell the compiler which arguments to an allocation function
  403. // indicate the size of the allocation.
  404. // Tell the compiler which argument to an allocation function
  405. // indicates the alignment of the allocation.
  406. // At some point during the gcc 2.96 development the `pure' attribute
  407. // for functions was introduced. We don't want to use it unconditionally
  408. // (although this would be possible) since it generates warnings.
  409. // This declaration tells the compiler that the value is constant.
  410. // At some point during the gcc 3.1 development the `used' attribute
  411. // for functions was introduced. We don't want to use it unconditionally
  412. // (although this would be possible) since it generates warnings.
  413. // Since version 3.2, gcc allows marking deprecated functions.
  414. // Since version 4.5, gcc also allows one to specify the message printed
  415. // when a deprecated function is used. clang claims to be gcc 4.2, but
  416. // may also support this feature.
  417. // At some point during the gcc 2.8 development the `format_arg' attribute
  418. // for functions was introduced. We don't want to use it unconditionally
  419. // (although this would be possible) since it generates warnings.
  420. // If several `format_arg' attributes are given for the same function, in
  421. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  422. // all designated arguments are considered.
  423. // At some point during the gcc 2.97 development the `strfmon' format
  424. // attribute for functions was introduced. We don't want to use it
  425. // unconditionally (although this would be possible) since it
  426. // generates warnings.
  427. // The nonnull function attribute marks pointer parameters that
  428. // must not be NULL. This has the name __nonnull in glibc,
  429. // and __attribute_nonnull__ in files shared with Gnulib to avoid
  430. // collision with a different __nonnull in DragonFlyBSD 5.9.
  431. // The returns_nonnull function attribute marks the return type of the function
  432. // as always being non-null.
  433. // If fortification mode, we warn about unused results of certain
  434. // function calls which can lead to problems.
  435. // Forces a function to be always inlined.
  436. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  437. // it conflicts with this definition. Therefore undefine it first to
  438. // allow either header to be included first.
  439. // Associate error messages with the source location of the call site rather
  440. // than with the source location inside the function.
  441. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  442. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  443. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  444. // older than 4.3 may define these macros and still not guarantee GNU inlining
  445. // semantics.
  446. //
  447. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  448. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  449. // __GNUC_GNU_INLINE__ macro definitions.
  450. // GCC 4.3 and above allow passing all anonymous arguments of an
  451. // __extern_always_inline function to some other vararg function.
  452. // It is possible to compile containing GCC extensions even if GCC is
  453. // run in pedantic mode if the uses are carefully marked using the
  454. // `__extension__' keyword. But this is not generally available before
  455. // version 2.8.
  456. // __restrict is known in EGCS 1.2 and above, and in clang.
  457. // It works also in C++ mode (outside of arrays), but only when spelled
  458. // as '__restrict', not 'restrict'.
  459. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  460. // array_name[restrict]
  461. // GCC 3.1 and clang support this.
  462. // This syntax is not usable in C++ mode.
  463. // Describes a char array whose address can safely be passed as the first
  464. // argument to strncpy and strncat, as the char array is not necessarily
  465. // a NUL-terminated string.
  466. // Undefine (also defined in libc-symbols.h).
  467. // Copies attributes from the declaration or type referenced by
  468. // the argument.
  469. // Gnulib avoids including these, as they don't work on non-glibc or
  470. // older glibc platforms.
  471. // Copyright (C) 1999-2023 Free Software Foundation, Inc.
  472. // This file is part of the GNU C Library.
  473. //
  474. // The GNU C Library is free software; you can redistribute it and/or
  475. // modify it under the terms of the GNU Lesser General Public
  476. // License as published by the Free Software Foundation; either
  477. // version 2.1 of the License, or (at your option) any later version.
  478. //
  479. // The GNU C Library is distributed in the hope that it will be useful,
  480. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  481. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  482. // Lesser General Public License for more details.
  483. //
  484. // You should have received a copy of the GNU Lesser General Public
  485. // License along with the GNU C Library; if not, see
  486. // <https://www.gnu.org/licenses/>.
  487. // Properties of long double type. ldbl-128 version.
  488. // Copyright (C) 2016-2023 Free Software Foundation, Inc.
  489. // This file is part of the GNU C Library.
  490. //
  491. // The GNU C Library is free software; you can redistribute it and/or
  492. // modify it under the terms of the GNU Lesser General Public
  493. // License published by the Free Software Foundation; either
  494. // version 2.1 of the License, or (at your option) any later version.
  495. //
  496. // The GNU C Library is distributed in the hope that it will be useful,
  497. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  498. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  499. // Lesser General Public License for more details.
  500. //
  501. // You should have received a copy of the GNU Lesser General Public
  502. // License along with the GNU C Library; if not, see
  503. // <https://www.gnu.org/licenses/>.
  504. // long double is distinct from double, so there is nothing to
  505. // define here.
  506. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  507. // intended for use in preprocessor macros.
  508. //
  509. // Note: MESSAGE must be a _single_ string; concatenation of string
  510. // literals is not supported.
  511. // Generic selection (ISO C11) is a C-only feature, available in GCC
  512. // since version 4.9. Previous versions do not provide generic
  513. // selection, even though they might set __STDC_VERSION__ to 201112L,
  514. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  515. // when testing __STDC_VERSION__ for generic selection support.
  516. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  517. // check is required to enable the use of generic selection.
  518. // Designates a 1-based positional argument ref-index of pointer type
  519. // that can be used to access size-index elements of the pointed-to
  520. // array according to access mode, or at least one element when
  521. // size-index is not provided:
  522. // access (access-mode, <ref-index> [, <size-index>])
  523. // For _FORTIFY_SOURCE == 3 we use __builtin_dynamic_object_size, which may
  524. // use the access attribute to get object sizes from function definition
  525. // arguments, so we can't use them on functions we fortify. Drop the object
  526. // size hints for such functions.
  527. // Designates dealloc as a function to call to deallocate objects
  528. // allocated by the declared function.
  529. // Specify that a function such as setjmp or vfork may return
  530. // twice.
  531. // If we don't have __REDIRECT, prototypes will be missing if
  532. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  533. // Decide whether we can define 'extern inline' functions in headers.
  534. // This is here only because every header file already includes this one.
  535. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  536. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  537. // that will always return failure (and set errno to ENOSYS).
  538. // This file is automatically generated.
  539. // This file selects the right generated file of `__stub_FUNCTION' macros
  540. // based on the architecture being compiled for.
  541. // Copyright (C) 1999-2023 Free Software Foundation, Inc.
  542. // This file is part of the GNU C Library.
  543. //
  544. // The GNU C Library is free software; you can redistribute it and/or
  545. // modify it under the terms of the GNU Lesser General Public
  546. // License as published by the Free Software Foundation; either
  547. // version 2.1 of the License, or (at your option) any later version.
  548. //
  549. // The GNU C Library is distributed in the hope that it will be useful,
  550. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  551. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  552. // Lesser General Public License for more details.
  553. //
  554. // You should have received a copy of the GNU Lesser General Public
  555. // License along with the GNU C Library; if not, see
  556. // <https://www.gnu.org/licenses/>.
  557. // This file is automatically generated.
  558. // It defines a symbol `__stub_FUNCTION' for each function
  559. // in the C library which is a stub, meaning it will fail
  560. // every time called, usually setting errno to ENOSYS.
  561. // bits/types.h -- definitions of __*_t types underlying *_t types.
  562. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  563. // This file is part of the GNU C Library.
  564. //
  565. // The GNU C Library is free software; you can redistribute it and/or
  566. // modify it under the terms of the GNU Lesser General Public
  567. // License as published by the Free Software Foundation; either
  568. // version 2.1 of the License, or (at your option) any later version.
  569. //
  570. // The GNU C Library is distributed in the hope that it will be useful,
  571. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  572. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  573. // Lesser General Public License for more details.
  574. //
  575. // You should have received a copy of the GNU Lesser General Public
  576. // License along with the GNU C Library; if not, see
  577. // <https://www.gnu.org/licenses/>.
  578. // Never include this file directly; use <sys/types.h> instead.
  579. // Copyright (C) 1991-2023 Free Software Foundation, Inc.
  580. // This file is part of the GNU C Library.
  581. //
  582. // The GNU C Library is free software; you can redistribute it and/or
  583. // modify it under the terms of the GNU Lesser General Public
  584. // License as published by the Free Software Foundation; either
  585. // version 2.1 of the License, or (at your option) any later version.
  586. //
  587. // The GNU C Library is distributed in the hope that it will be useful,
  588. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  589. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  590. // Lesser General Public License for more details.
  591. //
  592. // You should have received a copy of the GNU Lesser General Public
  593. // License along with the GNU C Library; if not, see
  594. // <https://www.gnu.org/licenses/>.
  595. // Copyright (C) 1999-2023 Free Software Foundation, Inc.
  596. // This file is part of the GNU C Library.
  597. //
  598. // The GNU C Library is free software; you can redistribute it and/or
  599. // modify it under the terms of the GNU Lesser General Public
  600. // License as published by the Free Software Foundation; either
  601. // version 2.1 of the License, or (at your option) any later version.
  602. //
  603. // The GNU C Library is distributed in the hope that it will be useful,
  604. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  605. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  606. // Lesser General Public License for more details.
  607. //
  608. // You should have received a copy of the GNU Lesser General Public
  609. // License along with the GNU C Library; if not, see
  610. // <https://www.gnu.org/licenses/>.
  611. // Bit size of the time_t type at glibc build time, general case.
  612. // Copyright (C) 2018-2023 Free Software Foundation, Inc.
  613. // This file is part of the GNU C Library.
  614. //
  615. // The GNU C Library is free software; you can redistribute it and/or
  616. // modify it under the terms of the GNU Lesser General Public
  617. // License as published by the Free Software Foundation; either
  618. // version 2.1 of the License, or (at your option) any later version.
  619. //
  620. // The GNU C Library is distributed in the hope that it will be useful,
  621. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  622. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  623. // Lesser General Public License for more details.
  624. //
  625. // You should have received a copy of the GNU Lesser General Public
  626. // License along with the GNU C Library; if not, see
  627. // <https://www.gnu.org/licenses/>.
  628. // Size in bits of the 'time_t' type of the default ABI.
  629. // Convenience types.
  630. type X__u_char = uint8 /* types.h:31:23 */
  631. type X__u_short = uint16 /* types.h:32:28 */
  632. type X__u_int = uint32 /* types.h:33:22 */
  633. type X__u_long = uint64 /* types.h:34:27 */
  634. // Fixed-size types, underlying types depend on word size and compiler.
  635. type X__int8_t = int8 /* types.h:37:21 */
  636. type X__uint8_t = uint8 /* types.h:38:23 */
  637. type X__int16_t = int16 /* types.h:39:26 */
  638. type X__uint16_t = uint16 /* types.h:40:28 */
  639. type X__int32_t = int32 /* types.h:41:20 */
  640. type X__uint32_t = uint32 /* types.h:42:22 */
  641. type X__int64_t = int64 /* types.h:44:25 */
  642. type X__uint64_t = uint64 /* types.h:45:27 */
  643. // Smallest types with at least a given width.
  644. type X__int_least8_t = int8 /* types.h:52:18 */
  645. type X__uint_least8_t = uint8 /* types.h:53:19 */
  646. type X__int_least16_t = int16 /* types.h:54:19 */
  647. type X__uint_least16_t = uint16 /* types.h:55:20 */
  648. type X__int_least32_t = int32 /* types.h:56:19 */
  649. type X__uint_least32_t = uint32 /* types.h:57:20 */
  650. type X__int_least64_t = int64 /* types.h:58:19 */
  651. type X__uint_least64_t = uint64 /* types.h:59:20 */
  652. // quad_t is also 64 bits.
  653. type X__quad_t = int64 /* types.h:63:18 */
  654. type X__u_quad_t = uint64 /* types.h:64:27 */
  655. // Largest integral types.
  656. type X__intmax_t = int64 /* types.h:72:18 */
  657. type X__uintmax_t = uint64 /* types.h:73:27 */
  658. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  659. // macros for each of the OS types we define below. The definitions
  660. // of those macros must use the following macros for underlying types.
  661. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  662. // variants of each of the following integer types on this machine.
  663. //
  664. // 16 -- "natural" 16-bit type (always short)
  665. // 32 -- "natural" 32-bit type (always int)
  666. // 64 -- "natural" 64-bit type (long or long long)
  667. // LONG32 -- 32-bit type, traditionally long
  668. // QUAD -- 64-bit type, traditionally long long
  669. // WORD -- natural type of __WORDSIZE bits (int or long)
  670. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  671. //
  672. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  673. // conventional uses of `long' or `long long' type modifiers match the
  674. // types we define, even when a less-adorned type would be the same size.
  675. // This matters for (somewhat) portably writing printf/scanf formats for
  676. // these types, where using the appropriate l or ll format modifiers can
  677. // make the typedefs and the formats match up across all GNU platforms. If
  678. // we used `long' when it's 64 bits where `long long' is expected, then the
  679. // compiler would warn about the formats not matching the argument types,
  680. // and the programmer changing them to shut up the compiler would break the
  681. // program's portability.
  682. //
  683. // Here we assume what is presently the case in all the GCC configurations
  684. // we support: long long is always 64 bits, long is always word/address size,
  685. // and int is always 32 bits.
  686. // No need to mark the typedef with __extension__.
  687. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
  688. // Copyright (C) 2011-2023 Free Software Foundation, Inc.
  689. // This file is part of the GNU C Library.
  690. //
  691. // The GNU C Library is free software; you can redistribute it and/or
  692. // modify it under the terms of the GNU Lesser General Public
  693. // License as published by the Free Software Foundation; either
  694. // version 2.1 of the License, or (at your option) any later version.
  695. //
  696. // The GNU C Library is distributed in the hope that it will be useful,
  697. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  698. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  699. // Lesser General Public License for more details.
  700. //
  701. // You should have received a copy of the GNU Lesser General Public
  702. // License along with the GNU C Library. If not, see
  703. // <https://www.gnu.org/licenses/>.
  704. // See <bits/types.h> for the meaning of these macros. This file exists so
  705. // that <bits/types.h> need not vary across different GNU platforms.
  706. // Tell the libc code that off_t and off64_t are actually the same type
  707. // for all ABI purposes, even if possibly expressed as different base types
  708. // for C type-checking purposes.
  709. // Same for ino_t and ino64_t.
  710. // And for __rlim_t and __rlim64_t.
  711. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  712. // And for getitimer, setitimer and rusage
  713. // Number of descriptors that can fit in an `fd_set'.
  714. // bits/time64.h -- underlying types for __time64_t. Generic version.
  715. // Copyright (C) 2018-2023 Free Software Foundation, Inc.
  716. // This file is part of the GNU C Library.
  717. //
  718. // The GNU C Library is free software; you can redistribute it and/or
  719. // modify it under the terms of the GNU Lesser General Public
  720. // License as published by the Free Software Foundation; either
  721. // version 2.1 of the License, or (at your option) any later version.
  722. //
  723. // The GNU C Library is distributed in the hope that it will be useful,
  724. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  725. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  726. // Lesser General Public License for more details.
  727. //
  728. // You should have received a copy of the GNU Lesser General Public
  729. // License along with the GNU C Library; if not, see
  730. // <https://www.gnu.org/licenses/>.
  731. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  732. // If we already have 64-bit time type then use it.
  733. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  734. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  735. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  736. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  737. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  738. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  739. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  740. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  741. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  742. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  743. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  744. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  745. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  746. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  747. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  748. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  749. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  750. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  751. type X__suseconds64_t = int64 /* types.h:163:33 */
  752. type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address.
  753. type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key.
  754. // Clock ID used in clock and timer functions.
  755. type X__clockid_t = int32 /* types.h:169:29 */
  756. // Timer ID returned by `timer_create'.
  757. type X__timer_t = uintptr /* types.h:172:12 */
  758. // Type to represent block size.
  759. type X__blksize_t = int32 /* types.h:175:29 */
  760. // Types from the Large File Support interface.
  761. // Type to count number of disk blocks.
  762. type X__blkcnt_t = int64 /* types.h:180:28 */
  763. type X__blkcnt64_t = int64 /* types.h:181:30 */
  764. // Type to count file system blocks.
  765. type X__fsblkcnt_t = uint64 /* types.h:184:30 */
  766. type X__fsblkcnt64_t = uint64 /* types.h:185:32 */
  767. // Type to count file system nodes.
  768. type X__fsfilcnt_t = uint64 /* types.h:188:30 */
  769. type X__fsfilcnt64_t = uint64 /* types.h:189:32 */
  770. // Type of miscellaneous file system fields.
  771. type X__fsword_t = int64 /* types.h:192:28 */
  772. type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error.
  773. // Signed long type used in system calls.
  774. type X__syscall_slong_t = int64 /* types.h:197:33 */
  775. // Unsigned long type used in system calls.
  776. type X__syscall_ulong_t = uint64 /* types.h:199:33 */
  777. // These few don't really vary by system, they always correspond
  778. //
  779. // to one of the other defined types.
  780. type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS).
  781. type X__caddr_t = uintptr /* types.h:204:14 */
  782. // Duplicates info from stdint.h but this is used in unistd.h.
  783. type X__intptr_t = int64 /* types.h:207:25 */
  784. // Duplicate info from sys/socket.h.
  785. type X__socklen_t = uint32 /* types.h:210:23 */
  786. // C99: An integer type that can be accessed as an atomic entity,
  787. //
  788. // even in the presence of asynchronous interrupts.
  789. // It is not currently necessary for this to be machine-specific.
  790. type X__sig_atomic_t = int32 /* types.h:215:13 */
  791. // Wide character type.
  792. // Locale-writers should change this as necessary to
  793. // be big enough to hold unique values not between 0 and 127,
  794. // and not (wchar_t) -1, for each defined multibyte character.
  795. // Define this type if we are doing the whole job,
  796. // or if we want this type in particular.
  797. // A null pointer constant.
  798. // For the Single Unix specification we must define this type here.
  799. type Gid_t = uint32 /* grp.h:37:17 */
  800. // The group structure.
  801. type Group = struct {
  802. Fgr_name uintptr
  803. Fgr_passwd uintptr
  804. Fgr_gid uint32
  805. F__ccgo_pad1 [4]byte
  806. Fgr_mem uintptr
  807. } /* grp.h:42:1 */
  808. var _ int8 /* gen.c:2:13: */