grp_linux_ppc64le.go 35 KB

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