stat_linux_loong64.go 52 KB

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