stat_linux_386.go 40 KB

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