grp_linux_386.go 34 KB

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