stat_linux_riscv64.go 51 KB

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