stat_linux_arm64.go 46 KB

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