fts_linux_riscv64.go 93 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166
  1. // Code generated by 'ccgo fts/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 fts/fts_linux_riscv64.go -pkgname fts', DO NOT EDIT.
  2. package fts
  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. BIG_ENDIAN = 4321
  17. BYTE_ORDER = 1234
  18. DEFFILEMODE = 438
  19. FD_SETSIZE = 1024
  20. FTS_AGAIN = 1
  21. FTS_COMFOLLOW = 0x0001
  22. FTS_D = 1
  23. FTS_DC = 2
  24. FTS_DEFAULT = 3
  25. FTS_DNR = 4
  26. FTS_DONTCHDIR = 0x01
  27. FTS_DOT = 5
  28. FTS_DP = 6
  29. FTS_ERR = 7
  30. FTS_F = 8
  31. FTS_FOLLOW = 2
  32. FTS_INIT = 9
  33. FTS_LOGICAL = 0x0002
  34. FTS_NAMEONLY = 0x0100
  35. FTS_NOCHDIR = 0x0004
  36. FTS_NOINSTR = 3
  37. FTS_NOSTAT = 0x0008
  38. FTS_NS = 10
  39. FTS_NSOK = 11
  40. FTS_OPTIONMASK = 0x00ff
  41. FTS_PHYSICAL = 0x0010
  42. FTS_ROOTLEVEL = 0
  43. FTS_ROOTPARENTLEVEL = -1
  44. FTS_SEEDOT = 0x0020
  45. FTS_SKIP = 4
  46. FTS_SL = 12
  47. FTS_SLNONE = 13
  48. FTS_STOP = 0x0200
  49. FTS_SYMFOLLOW = 0x02
  50. FTS_W = 14
  51. FTS_WHITEOUT = 0x0080
  52. FTS_XDEV = 0x0040
  53. LITTLE_ENDIAN = 1234
  54. PDP_ENDIAN = 3412
  55. S_BLKSIZE = 512
  56. S_IEXEC = 64
  57. S_IFBLK = 24576
  58. S_IFCHR = 8192
  59. S_IFDIR = 16384
  60. S_IFIFO = 4096
  61. S_IFLNK = 40960
  62. S_IFMT = 61440
  63. S_IFREG = 32768
  64. S_IFSOCK = 49152
  65. S_IREAD = 256
  66. S_IRGRP = 32
  67. S_IROTH = 4
  68. S_IRUSR = 256
  69. S_IRWXG = 56
  70. S_IRWXO = 7
  71. S_IRWXU = 448
  72. S_ISGID = 1024
  73. S_ISUID = 2048
  74. S_ISVTX = 512
  75. S_IWGRP = 16
  76. S_IWOTH = 2
  77. S_IWRITE = 128
  78. S_IWUSR = 128
  79. S_IXGRP = 8
  80. S_IXOTH = 1
  81. S_IXUSR = 64
  82. UTIME_NOW = 1073741823
  83. UTIME_OMIT = 1073741822
  84. X_ATFILE_SOURCE = 1
  85. X_BITS_BYTESWAP_H = 1
  86. X_BITS_ENDIANNESS_H = 1
  87. X_BITS_ENDIAN_H = 1
  88. X_BITS_PTHREADTYPES_ARCH_H = 1
  89. X_BITS_PTHREADTYPES_COMMON_H = 1
  90. X_BITS_STAT_H = 1
  91. X_BITS_STDINT_INTN_H = 1
  92. X_BITS_STRUCT_STAT_H = 1
  93. X_BITS_TIME64_H = 1
  94. X_BITS_TYPESIZES_H = 1
  95. X_BITS_TYPES_H = 1
  96. X_BITS_UINTN_IDENTITY_H = 1
  97. X_BSD_SIZE_T_ = 0
  98. X_BSD_SIZE_T_DEFINED_ = 0
  99. X_DEFAULT_SOURCE = 1
  100. X_ENDIAN_H = 1
  101. X_FEATURES_H = 1
  102. X_FILE_OFFSET_BITS = 64
  103. X_FTS_H = 1
  104. X_GCC_SIZE_T = 0
  105. X_LP64 = 1
  106. X_POSIX_C_SOURCE = 200809
  107. X_POSIX_SOURCE = 1
  108. X_RWLOCK_INTERNAL_H = 0
  109. X_SIZET_ = 0
  110. X_SIZE_T = 0
  111. X_SIZE_T_ = 0
  112. X_SIZE_T_DECLARED = 0
  113. X_SIZE_T_DEFINED = 0
  114. X_SIZE_T_DEFINED_ = 0
  115. X_STATBUF_ST_BLKSIZE = 0
  116. X_STATBUF_ST_NSEC = 0
  117. X_STATBUF_ST_RDEV = 0
  118. X_STDC_PREDEF_H = 1
  119. X_STRUCT_TIMESPEC = 1
  120. X_SYS_CDEFS_H = 1
  121. X_SYS_SELECT_H = 1
  122. X_SYS_SIZE_T_H = 0
  123. X_SYS_STAT_H = 1
  124. X_SYS_TYPES_H = 1
  125. X_THREAD_MUTEX_INTERNAL_H = 1
  126. X_THREAD_SHARED_TYPES_H = 1
  127. X_T_SIZE = 0
  128. X_T_SIZE_ = 0
  129. Linux = 1
  130. Unix = 1
  131. )
  132. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  133. type Size_t = uint64 /* <builtin>:9:23 */
  134. type Wchar_t = int32 /* <builtin>:15:24 */
  135. type X__int128_t = struct {
  136. Flo int64
  137. Fhi int64
  138. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  139. type X__uint128_t = struct {
  140. Flo uint64
  141. Fhi uint64
  142. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  143. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  144. type X__float128 = float64 /* <builtin>:47:21 */
  145. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  146. // This file is part of the GNU C Library.
  147. //
  148. // The GNU C Library is free software; you can redistribute it and/or
  149. // modify it under the terms of the GNU Lesser General Public
  150. // License as published by the Free Software Foundation; either
  151. // version 2.1 of the License, or (at your option) any later version.
  152. //
  153. // The GNU C Library is distributed in the hope that it will be useful,
  154. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  155. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  156. // Lesser General Public License for more details.
  157. //
  158. // You should have received a copy of the GNU Lesser General Public
  159. // License along with the GNU C Library; if not, see
  160. // <https://www.gnu.org/licenses/>.
  161. // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
  162. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  163. // This file is part of the GNU C Library.
  164. //
  165. // The GNU C Library is free software; you can redistribute it and/or
  166. // modify it under the terms of the GNU Lesser General Public
  167. // License as published by the Free Software Foundation; either
  168. // version 2.1 of the License, or (at your option) any later version.
  169. //
  170. // The GNU C Library is distributed in the hope that it will be useful,
  171. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  172. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  173. // Lesser General Public License for more details.
  174. //
  175. // You should have received a copy of the GNU Lesser General Public
  176. // License along with the GNU C Library; if not, see
  177. // <https://www.gnu.org/licenses/>.
  178. // These are defined by the user (or the compiler)
  179. // to specify the desired environment:
  180. //
  181. // __STRICT_ANSI__ ISO Standard C.
  182. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  183. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  184. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  185. // __STDC_WANT_LIB_EXT2__
  186. // Extensions to ISO C99 from TR 27431-2:2010.
  187. // __STDC_WANT_IEC_60559_BFP_EXT__
  188. // Extensions to ISO C11 from TS 18661-1:2014.
  189. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  190. // Extensions to ISO C11 from TS 18661-4:2015.
  191. // __STDC_WANT_IEC_60559_TYPES_EXT__
  192. // Extensions to ISO C11 from TS 18661-3:2015.
  193. // __STDC_WANT_IEC_60559_EXT__
  194. // ISO C2X interfaces defined only in Annex F.
  195. //
  196. // _POSIX_SOURCE IEEE Std 1003.1.
  197. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  198. // if >=199309L, add IEEE Std 1003.1b-1993;
  199. // if >=199506L, add IEEE Std 1003.1c-1995;
  200. // if >=200112L, all of IEEE 1003.1-2004
  201. // if >=200809L, all of IEEE 1003.1-2008
  202. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  203. // Single Unix conformance is wanted, to 600 for the
  204. // sixth revision, to 700 for the seventh revision.
  205. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  206. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  207. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  208. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  209. // _ATFILE_SOURCE Additional *at interfaces.
  210. // _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
  211. // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
  212. // _GNU_SOURCE All of the above, plus GNU extensions.
  213. // _DEFAULT_SOURCE The default set of features (taking precedence over
  214. // __STRICT_ANSI__).
  215. //
  216. // _FORTIFY_SOURCE Add security hardening to many library functions.
  217. // Set to 1 or 2; 2 performs stricter checks than 1.
  218. //
  219. // _REENTRANT, _THREAD_SAFE
  220. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  221. //
  222. // The `-ansi' switch to the GNU C compiler, and standards conformance
  223. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  224. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  225. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  226. // 200809L, as well as enabling miscellaneous functions from BSD and
  227. // SVID. If more than one of these are defined, they accumulate. For
  228. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  229. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  230. //
  231. // These are defined by this file and are used by the
  232. // header files to decide what to declare or define:
  233. //
  234. // __GLIBC_USE (F) Define things from feature set F. This is defined
  235. // to 1 or 0; the subsequent macros are either defined
  236. // or undefined, and those tests should be moved to
  237. // __GLIBC_USE.
  238. // __USE_ISOC11 Define ISO C11 things.
  239. // __USE_ISOC99 Define ISO C99 things.
  240. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  241. // __USE_ISOCXX11 Define ISO C++11 things.
  242. // __USE_POSIX Define IEEE Std 1003.1 things.
  243. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  244. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  245. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  246. // __USE_XOPEN Define XPG things.
  247. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  248. // __USE_UNIX98 Define Single Unix V2 things.
  249. // __USE_XOPEN2K Define XPG6 things.
  250. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  251. // __USE_XOPEN2K8 Define XPG7 things.
  252. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  253. // __USE_LARGEFILE Define correct standard I/O things.
  254. // __USE_LARGEFILE64 Define LFS things with separate names.
  255. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  256. // __USE_MISC Define things from 4.3BSD or System V Unix.
  257. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  258. // __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
  259. // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
  260. // __USE_GNU Define GNU extensions.
  261. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  262. //
  263. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  264. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  265. // only for compatibility. All new code should use the other symbols
  266. // to test for features.
  267. //
  268. // All macros listed above as possibly being defined by this file are
  269. // explicitly undefined if they are not explicitly defined.
  270. // Feature-test macros that are not defined by the user or compiler
  271. // but are implied by the other feature-test macros defined (or by the
  272. // lack of any definitions) are defined by the file.
  273. //
  274. // ISO C feature test macros depend on the definition of the macro
  275. // when an affected header is included, not when the first system
  276. // header is included, and so they are handled in
  277. // <bits/libc-header-start.h>, which does not have a multiple include
  278. // guard. Feature test macros that can be handled from the first
  279. // system header included are handled here.
  280. // Undefine everything, so we get a clean slate.
  281. // Suppress kernel-name space pollution unless user expressedly asks
  282. // for it.
  283. // Convenience macro to test the version of gcc.
  284. // Use like this:
  285. // #if __GNUC_PREREQ (2,8)
  286. // ... code requiring gcc 2.8 or later ...
  287. // #endif
  288. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  289. // added in 2.0.
  290. // Similarly for clang. Features added to GCC after version 4.2 may
  291. // or may not also be available in clang, and clang's definitions of
  292. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  293. // features can be queried via __has_extension/__has_feature.
  294. // Whether to use feature set F.
  295. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  296. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  297. // issue a warning; the expectation is that the source is being
  298. // transitioned to use the new macro.
  299. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  300. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  301. // define _DEFAULT_SOURCE.
  302. // This is to enable the ISO C2X extension.
  303. // This is to enable the ISO C11 extension.
  304. // This is to enable the ISO C99 extension.
  305. // This is to enable the ISO C90 Amendment 1:1995 extension.
  306. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  307. // is defined, use POSIX.1-2008 (or another version depending on
  308. // _XOPEN_SOURCE).
  309. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  310. // defined in all multithreaded code. GNU libc has not required this
  311. // for many years. We now treat them as compatibility synonyms for
  312. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  313. // comprehensive support for multithreaded code. Using them never
  314. // lowers the selected level of POSIX conformance, only raises it.
  315. // Features part to handle 64-bit time_t support.
  316. // Copyright (C) 2021 Free Software Foundation, Inc.
  317. // This file is part of the GNU C Library.
  318. //
  319. // The GNU C Library is free software; you can redistribute it and/or
  320. // modify it under the terms of the GNU Lesser General Public
  321. // License as published by the Free Software Foundation; either
  322. // version 2.1 of the License, or (at your option) any later version.
  323. //
  324. // The GNU C Library is distributed in the hope that it will be useful,
  325. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  326. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  327. // Lesser General Public License for more details.
  328. //
  329. // You should have received a copy of the GNU Lesser General Public
  330. // License along with the GNU C Library; if not, see
  331. // <https://www.gnu.org/licenses/>.
  332. // We need to know the word size in order to check the time size.
  333. // Determine the wordsize from the preprocessor defines. RISC-V version.
  334. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  335. // This file is part of the GNU C Library.
  336. //
  337. // The GNU C Library is free software; you can redistribute it and/or
  338. // modify it under the terms of the GNU Lesser General Public
  339. // License as published by the Free Software Foundation; either
  340. // version 2.1 of the License, or (at your option) any later version.
  341. //
  342. // The GNU C Library is distributed in the hope that it will be useful,
  343. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  344. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  345. // Lesser General Public License for more details.
  346. //
  347. // You should have received a copy of the GNU Lesser General Public
  348. // License along with the GNU C Library. If not, see
  349. // <https://www.gnu.org/licenses/>.
  350. // Bit size of the time_t type at glibc build time, RISC-V case.
  351. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  352. // This file is part of the GNU C Library.
  353. //
  354. // The GNU C Library is free software; you can redistribute it and/or
  355. // modify it under the terms of the GNU Lesser General Public
  356. // License as published by the Free Software Foundation; either
  357. // version 2.1 of the License, or (at your option) any later version.
  358. //
  359. // The GNU C Library is distributed in the hope that it will be useful,
  360. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  361. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  362. // Lesser General Public License for more details.
  363. //
  364. // You should have received a copy of the GNU Lesser General Public
  365. // License along with the GNU C Library; if not, see
  366. // <https://www.gnu.org/licenses/>.
  367. // Determine the wordsize from the preprocessor defines. RISC-V version.
  368. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  369. // This file is part of the GNU C Library.
  370. //
  371. // The GNU C Library is free software; you can redistribute it and/or
  372. // modify it under the terms of the GNU Lesser General Public
  373. // License as published by the Free Software Foundation; either
  374. // version 2.1 of the License, or (at your option) any later version.
  375. //
  376. // The GNU C Library is distributed in the hope that it will be useful,
  377. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  378. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  379. // Lesser General Public License for more details.
  380. //
  381. // You should have received a copy of the GNU Lesser General Public
  382. // License along with the GNU C Library. If not, see
  383. // <https://www.gnu.org/licenses/>.
  384. // RV32 and RV64 both use 64-bit time_t
  385. // The function 'gets' existed in C89, but is impossible to use
  386. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  387. // compatibility with various implementations of <cstdio>, this test
  388. // must consider only the value of __cplusplus when compiling C++.
  389. // GNU formerly extended the scanf functions with modified format
  390. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  391. // input using malloc. This extension conflicts with ISO C99, which
  392. // defines %a as a standalone format specifier that reads a floating-
  393. // point number; moreover, POSIX.1-2008 provides the same feature
  394. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  395. //
  396. // We now follow C99 unless GNU extensions are active and the compiler
  397. // is specifically in C89 or C++98 mode (strict or not). For
  398. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  399. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  400. // old extension.
  401. // Get definitions of __STDC_* predefined macros, if the compiler has
  402. // not preincluded this header automatically.
  403. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  404. // This file is part of the GNU C Library.
  405. //
  406. // The GNU C Library is free software; you can redistribute it and/or
  407. // modify it under the terms of the GNU Lesser General Public
  408. // License as published by the Free Software Foundation; either
  409. // version 2.1 of the License, or (at your option) any later version.
  410. //
  411. // The GNU C Library is distributed in the hope that it will be useful,
  412. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  413. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  414. // Lesser General Public License for more details.
  415. //
  416. // You should have received a copy of the GNU Lesser General Public
  417. // License along with the GNU C Library; if not, see
  418. // <https://www.gnu.org/licenses/>.
  419. // This macro indicates that the installed library is the GNU C Library.
  420. // For historic reasons the value now is 6 and this will stay from now
  421. // on. The use of this variable is deprecated. Use __GLIBC__ and
  422. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  423. // GNU C library version and use the values in <gnu/lib-names.h> to get
  424. // the sonames of the shared libraries.
  425. // Major and minor version number of the GNU C library package. Use
  426. // these macros to test for features in specific releases.
  427. // This is here only because every header file already includes this one.
  428. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  429. // This file is part of the GNU C Library.
  430. //
  431. // The GNU C Library is free software; you can redistribute it and/or
  432. // modify it under the terms of the GNU Lesser General Public
  433. // License as published by the Free Software Foundation; either
  434. // version 2.1 of the License, or (at your option) any later version.
  435. //
  436. // The GNU C Library is distributed in the hope that it will be useful,
  437. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  438. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  439. // Lesser General Public License for more details.
  440. //
  441. // You should have received a copy of the GNU Lesser General Public
  442. // License along with the GNU C Library; if not, see
  443. // <https://www.gnu.org/licenses/>.
  444. // We are almost always included from features.h.
  445. // The GNU libc does not support any K&R compilers or the traditional mode
  446. // of ISO C compilers anymore. Check for some of the combinations not
  447. // supported anymore.
  448. // Some user header file might have defined this before.
  449. // Compilers that lack __has_attribute may object to
  450. // #if defined __has_attribute && __has_attribute (...)
  451. // even though they do not need to evaluate the right-hand side of the &&.
  452. // Similarly for __has_builtin, etc.
  453. // All functions, except those with callbacks or those that
  454. // synchronize memory, are leaf functions.
  455. // GCC can always grok prototypes. For C++ programs we add throw()
  456. // to help it optimize the function calls. But this only works with
  457. // gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions
  458. // as non-throwing using a function attribute since programs can use
  459. // the -fexceptions options for C code as well.
  460. // These two macros are not used in glibc anymore. They are kept here
  461. // only because some other projects expect the macros to be defined.
  462. // For these things, GCC behaves the ANSI way normally,
  463. // and the non-ANSI way under -traditional.
  464. // This is not a typedef so `const __ptr_t' does the right thing.
  465. // C++ needs to know that types and declarations are C, not C++.
  466. // Fortify support.
  467. // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
  468. // Support for flexible arrays.
  469. // Headers that should use flexible arrays only if they're "real"
  470. // (e.g. only if they won't affect sizeof()) should test
  471. // #if __glibc_c99_flexarr_available.
  472. // __asm__ ("xyz") is used throughout the headers to rename functions
  473. // at the assembly language level. This is wrapped by the __REDIRECT
  474. // macro, in order to support compilers that can do this some other
  475. // way. When compilers don't support asm-names at all, we have to do
  476. // preprocessor tricks instead (which don't have exactly the right
  477. // semantics, but it's the best we can do).
  478. //
  479. // Example:
  480. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  481. //
  482. // #elif __SOME_OTHER_COMPILER__
  483. //
  484. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  485. // GCC and clang have various useful declarations that can be made with
  486. // the '__attribute__' syntax. All of the ways we use this do fine if
  487. // they are omitted for compilers that don't understand it.
  488. // At some point during the gcc 2.96 development the `malloc' attribute
  489. // for functions was introduced. We don't want to use it unconditionally
  490. // (although this would be possible) since it generates warnings.
  491. // Tell the compiler which arguments to an allocation function
  492. // indicate the size of the allocation.
  493. // At some point during the gcc 2.96 development the `pure' attribute
  494. // for functions was introduced. We don't want to use it unconditionally
  495. // (although this would be possible) since it generates warnings.
  496. // This declaration tells the compiler that the value is constant.
  497. // At some point during the gcc 3.1 development the `used' attribute
  498. // for functions was introduced. We don't want to use it unconditionally
  499. // (although this would be possible) since it generates warnings.
  500. // Since version 3.2, gcc allows marking deprecated functions.
  501. // Since version 4.5, gcc also allows one to specify the message printed
  502. // when a deprecated function is used. clang claims to be gcc 4.2, but
  503. // may also support this feature.
  504. // At some point during the gcc 2.8 development the `format_arg' attribute
  505. // for functions was introduced. We don't want to use it unconditionally
  506. // (although this would be possible) since it generates warnings.
  507. // If several `format_arg' attributes are given for the same function, in
  508. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  509. // all designated arguments are considered.
  510. // At some point during the gcc 2.97 development the `strfmon' format
  511. // attribute for functions was introduced. We don't want to use it
  512. // unconditionally (although this would be possible) since it
  513. // generates warnings.
  514. // The nonnull function attribute marks pointer parameters that
  515. // must not be NULL.
  516. // The returns_nonnull function attribute marks the return type of the function
  517. // as always being non-null.
  518. // If fortification mode, we warn about unused results of certain
  519. // function calls which can lead to problems.
  520. // Forces a function to be always inlined.
  521. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  522. // it conflicts with this definition. Therefore undefine it first to
  523. // allow either header to be included first.
  524. // Associate error messages with the source location of the call site rather
  525. // than with the source location inside the function.
  526. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  527. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  528. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  529. // older than 4.3 may define these macros and still not guarantee GNU inlining
  530. // semantics.
  531. //
  532. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  533. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  534. // __GNUC_GNU_INLINE__ macro definitions.
  535. // GCC 4.3 and above allow passing all anonymous arguments of an
  536. // __extern_always_inline function to some other vararg function.
  537. // It is possible to compile containing GCC extensions even if GCC is
  538. // run in pedantic mode if the uses are carefully marked using the
  539. // `__extension__' keyword. But this is not generally available before
  540. // version 2.8.
  541. // __restrict is known in EGCS 1.2 and above, and in clang.
  542. // It works also in C++ mode (outside of arrays), but only when spelled
  543. // as '__restrict', not 'restrict'.
  544. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  545. // array_name[restrict]
  546. // GCC 3.1 and clang support this.
  547. // This syntax is not usable in C++ mode.
  548. // Describes a char array whose address can safely be passed as the first
  549. // argument to strncpy and strncat, as the char array is not necessarily
  550. // a NUL-terminated string.
  551. // Undefine (also defined in libc-symbols.h).
  552. // Copies attributes from the declaration or type referenced by
  553. // the argument.
  554. // The #ifndef lets Gnulib avoid including these on non-glibc
  555. // platforms, where the includes typically do not exist.
  556. // Determine the wordsize from the preprocessor defines. RISC-V version.
  557. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  558. // This file is part of the GNU C Library.
  559. //
  560. // The GNU C Library is free software; you can redistribute it and/or
  561. // modify it under the terms of the GNU Lesser General Public
  562. // License as published by the Free Software Foundation; either
  563. // version 2.1 of the License, or (at your option) any later version.
  564. //
  565. // The GNU C Library is distributed in the hope that it will be useful,
  566. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  567. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  568. // Lesser General Public License for more details.
  569. //
  570. // You should have received a copy of the GNU Lesser General Public
  571. // License along with the GNU C Library. If not, see
  572. // <https://www.gnu.org/licenses/>.
  573. // Properties of long double type. ldbl-128 version.
  574. // Copyright (C) 2016-2021 Free Software Foundation, Inc.
  575. // This file is part of the GNU C Library.
  576. //
  577. // The GNU C Library is free software; you can redistribute it and/or
  578. // modify it under the terms of the GNU Lesser General Public
  579. // License published by the Free Software Foundation; either
  580. // version 2.1 of the License, or (at your option) any later version.
  581. //
  582. // The GNU C Library is distributed in the hope that it will be useful,
  583. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  584. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  585. // Lesser General Public License for more details.
  586. //
  587. // You should have received a copy of the GNU Lesser General Public
  588. // License along with the GNU C Library; if not, see
  589. // <https://www.gnu.org/licenses/>.
  590. // long double is distinct from double, so there is nothing to
  591. // define here.
  592. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  593. // intended for use in preprocessor macros.
  594. //
  595. // Note: MESSAGE must be a _single_ string; concatenation of string
  596. // literals is not supported.
  597. // Generic selection (ISO C11) is a C-only feature, available in GCC
  598. // since version 4.9. Previous versions do not provide generic
  599. // selection, even though they might set __STDC_VERSION__ to 201112L,
  600. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  601. // when testing __STDC_VERSION__ for generic selection support.
  602. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  603. // check is required to enable the use of generic selection.
  604. // Designates a 1-based positional argument ref-index of pointer type
  605. // that can be used to access size-index elements of the pointed-to
  606. // array according to access mode, or at least one element when
  607. // size-index is not provided:
  608. // access (access-mode, <ref-index> [, <size-index>])
  609. // Designates dealloc as a function to call to deallocate objects
  610. // allocated by the declared function.
  611. // Specify that a function such as setjmp or vfork may return
  612. // twice.
  613. // If we don't have __REDIRECT, prototypes will be missing if
  614. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  615. // Decide whether we can define 'extern inline' functions in headers.
  616. // This is here only because every header file already includes this one.
  617. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  618. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  619. // that will always return failure (and set errno to ENOSYS).
  620. // This file is automatically generated.
  621. // This file selects the right generated file of `__stub_FUNCTION' macros
  622. // based on the architecture being compiled for.
  623. // Determine the wordsize from the preprocessor defines. RISC-V version.
  624. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  625. // This file is part of the GNU C Library.
  626. //
  627. // The GNU C Library is free software; you can redistribute it and/or
  628. // modify it under the terms of the GNU Lesser General Public
  629. // License as published by the Free Software Foundation; either
  630. // version 2.1 of the License, or (at your option) any later version.
  631. //
  632. // The GNU C Library is distributed in the hope that it will be useful,
  633. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  634. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  635. // Lesser General Public License for more details.
  636. //
  637. // You should have received a copy of the GNU Lesser General Public
  638. // License along with the GNU C Library. If not, see
  639. // <https://www.gnu.org/licenses/>.
  640. // This file is automatically generated.
  641. // It defines a symbol `__stub_FUNCTION' for each function
  642. // in the C library which is a stub, meaning it will fail
  643. // every time called, usually setting errno to ENOSYS.
  644. // bits/types.h -- definitions of __*_t types underlying *_t types.
  645. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  646. // This file is part of the GNU C Library.
  647. //
  648. // The GNU C Library is free software; you can redistribute it and/or
  649. // modify it under the terms of the GNU Lesser General Public
  650. // License as published by the Free Software Foundation; either
  651. // version 2.1 of the License, or (at your option) any later version.
  652. //
  653. // The GNU C Library is distributed in the hope that it will be useful,
  654. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  655. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  656. // Lesser General Public License for more details.
  657. //
  658. // You should have received a copy of the GNU Lesser General Public
  659. // License along with the GNU C Library; if not, see
  660. // <https://www.gnu.org/licenses/>.
  661. // Never include this file directly; use <sys/types.h> instead.
  662. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  663. // This file is part of the GNU C Library.
  664. //
  665. // The GNU C Library is free software; you can redistribute it and/or
  666. // modify it under the terms of the GNU Lesser General Public
  667. // License as published by the Free Software Foundation; either
  668. // version 2.1 of the License, or (at your option) any later version.
  669. //
  670. // The GNU C Library is distributed in the hope that it will be useful,
  671. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  672. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  673. // Lesser General Public License for more details.
  674. //
  675. // You should have received a copy of the GNU Lesser General Public
  676. // License along with the GNU C Library; if not, see
  677. // <https://www.gnu.org/licenses/>.
  678. // Determine the wordsize from the preprocessor defines. RISC-V version.
  679. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  680. // This file is part of the GNU C Library.
  681. //
  682. // The GNU C Library is free software; you can redistribute it and/or
  683. // modify it under the terms of the GNU Lesser General Public
  684. // License as published by the Free Software Foundation; either
  685. // version 2.1 of the License, or (at your option) any later version.
  686. //
  687. // The GNU C Library is distributed in the hope that it will be useful,
  688. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  689. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  690. // Lesser General Public License for more details.
  691. //
  692. // You should have received a copy of the GNU Lesser General Public
  693. // License along with the GNU C Library. If not, see
  694. // <https://www.gnu.org/licenses/>.
  695. // Bit size of the time_t type at glibc build time, RISC-V case.
  696. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  697. // This file is part of the GNU C Library.
  698. //
  699. // The GNU C Library is free software; you can redistribute it and/or
  700. // modify it under the terms of the GNU Lesser General Public
  701. // License as published by the Free Software Foundation; either
  702. // version 2.1 of the License, or (at your option) any later version.
  703. //
  704. // The GNU C Library is distributed in the hope that it will be useful,
  705. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  706. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  707. // Lesser General Public License for more details.
  708. //
  709. // You should have received a copy of the GNU Lesser General Public
  710. // License along with the GNU C Library; if not, see
  711. // <https://www.gnu.org/licenses/>.
  712. // Determine the wordsize from the preprocessor defines. RISC-V version.
  713. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  714. // This file is part of the GNU C Library.
  715. //
  716. // The GNU C Library is free software; you can redistribute it and/or
  717. // modify it under the terms of the GNU Lesser General Public
  718. // License as published by the Free Software Foundation; either
  719. // version 2.1 of the License, or (at your option) any later version.
  720. //
  721. // The GNU C Library is distributed in the hope that it will be useful,
  722. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  723. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  724. // Lesser General Public License for more details.
  725. //
  726. // You should have received a copy of the GNU Lesser General Public
  727. // License along with the GNU C Library. If not, see
  728. // <https://www.gnu.org/licenses/>.
  729. // RV32 and RV64 both use 64-bit time_t
  730. // Convenience types.
  731. type X__u_char = uint8 /* types.h:31:23 */
  732. type X__u_short = uint16 /* types.h:32:28 */
  733. type X__u_int = uint32 /* types.h:33:22 */
  734. type X__u_long = uint64 /* types.h:34:27 */
  735. // Fixed-size types, underlying types depend on word size and compiler.
  736. type X__int8_t = int8 /* types.h:37:21 */
  737. type X__uint8_t = uint8 /* types.h:38:23 */
  738. type X__int16_t = int16 /* types.h:39:26 */
  739. type X__uint16_t = uint16 /* types.h:40:28 */
  740. type X__int32_t = int32 /* types.h:41:20 */
  741. type X__uint32_t = uint32 /* types.h:42:22 */
  742. type X__int64_t = int64 /* types.h:44:25 */
  743. type X__uint64_t = uint64 /* types.h:45:27 */
  744. // Smallest types with at least a given width.
  745. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  746. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  747. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  748. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  749. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  750. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  751. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  752. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  753. // quad_t is also 64 bits.
  754. type X__quad_t = int64 /* types.h:63:18 */
  755. type X__u_quad_t = uint64 /* types.h:64:27 */
  756. // Largest integral types.
  757. type X__intmax_t = int64 /* types.h:72:18 */
  758. type X__uintmax_t = uint64 /* types.h:73:27 */
  759. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  760. // macros for each of the OS types we define below. The definitions
  761. // of those macros must use the following macros for underlying types.
  762. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  763. // variants of each of the following integer types on this machine.
  764. //
  765. // 16 -- "natural" 16-bit type (always short)
  766. // 32 -- "natural" 32-bit type (always int)
  767. // 64 -- "natural" 64-bit type (long or long long)
  768. // LONG32 -- 32-bit type, traditionally long
  769. // QUAD -- 64-bit type, traditionally long long
  770. // WORD -- natural type of __WORDSIZE bits (int or long)
  771. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  772. //
  773. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  774. // conventional uses of `long' or `long long' type modifiers match the
  775. // types we define, even when a less-adorned type would be the same size.
  776. // This matters for (somewhat) portably writing printf/scanf formats for
  777. // these types, where using the appropriate l or ll format modifiers can
  778. // make the typedefs and the formats match up across all GNU platforms. If
  779. // we used `long' when it's 64 bits where `long long' is expected, then the
  780. // compiler would warn about the formats not matching the argument types,
  781. // and the programmer changing them to shut up the compiler would break the
  782. // program's portability.
  783. //
  784. // Here we assume what is presently the case in all the GCC configurations
  785. // we support: long long is always 64 bits, long is always word/address size,
  786. // and int is always 32 bits.
  787. // No need to mark the typedef with __extension__.
  788. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
  789. // Copyright (C) 2011-2021 Free Software Foundation, Inc.
  790. // This file is part of the GNU C Library.
  791. // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
  792. //
  793. // The GNU C Library is free software; you can redistribute it and/or
  794. // modify it under the terms of the GNU Lesser General Public
  795. // License as published by the Free Software Foundation; either
  796. // version 2.1 of the License, or (at your option) any later version.
  797. //
  798. // The GNU C Library is distributed in the hope that it will be useful,
  799. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  800. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  801. // Lesser General Public License for more details.
  802. //
  803. // You should have received a copy of the GNU Lesser General Public
  804. // License along with the GNU C Library. If not, see
  805. // <https://www.gnu.org/licenses/>.
  806. // See <bits/types.h> for the meaning of these macros. This file exists so
  807. // that <bits/types.h> need not vary across different GNU platforms.
  808. // Tell the libc code that off_t and off64_t are actually the same type
  809. // for all ABI purposes, even if possibly expressed as different base types
  810. // for C type-checking purposes.
  811. // Same for ino_t and ino64_t.
  812. // And for __rlim_t and __rlim64_t.
  813. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  814. // And for getitimer, setitimer and rusage
  815. // Number of descriptors that can fit in an `fd_set'.
  816. // bits/time64.h -- underlying types for __time64_t. RISC-V version.
  817. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  818. // This file is part of the GNU C Library.
  819. //
  820. // The GNU C Library is free software; you can redistribute it and/or
  821. // modify it under the terms of the GNU Lesser General Public
  822. // License as published by the Free Software Foundation; either
  823. // version 2.1 of the License, or (at your option) any later version.
  824. //
  825. // The GNU C Library is distributed in the hope that it will be useful,
  826. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  827. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  828. // Lesser General Public License for more details.
  829. //
  830. // You should have received a copy of the GNU Lesser General Public
  831. // License along with the GNU C Library; if not, see
  832. // <https://www.gnu.org/licenses/>.
  833. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  834. // If we already have 64-bit time type then use it.
  835. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  836. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  837. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  838. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  839. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  840. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  841. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  842. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  843. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  844. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  845. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  846. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  847. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  848. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  849. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  850. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  851. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  852. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  853. type X__suseconds64_t = int64 /* types.h:163:33 */
  854. type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address.
  855. type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key.
  856. // Clock ID used in clock and timer functions.
  857. type X__clockid_t = int32 /* types.h:169:29 */
  858. // Timer ID returned by `timer_create'.
  859. type X__timer_t = uintptr /* types.h:172:12 */
  860. // Type to represent block size.
  861. type X__blksize_t = int32 /* types.h:175:29 */
  862. // Types from the Large File Support interface.
  863. // Type to count number of disk blocks.
  864. type X__blkcnt_t = int64 /* types.h:180:28 */
  865. type X__blkcnt64_t = int64 /* types.h:181:30 */
  866. // Type to count file system blocks.
  867. type X__fsblkcnt_t = uint64 /* types.h:184:30 */
  868. type X__fsblkcnt64_t = uint64 /* types.h:185:32 */
  869. // Type to count file system nodes.
  870. type X__fsfilcnt_t = uint64 /* types.h:188:30 */
  871. type X__fsfilcnt64_t = uint64 /* types.h:189:32 */
  872. // Type of miscellaneous file system fields.
  873. type X__fsword_t = int64 /* types.h:192:28 */
  874. type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error.
  875. // Signed long type used in system calls.
  876. type X__syscall_slong_t = int64 /* types.h:197:33 */
  877. // Unsigned long type used in system calls.
  878. type X__syscall_ulong_t = uint64 /* types.h:199:33 */
  879. // These few don't really vary by system, they always correspond
  880. //
  881. // to one of the other defined types.
  882. type X__loff_t = X__off64_t /* types.h:203:19 */ // Type of file sizes and offsets (LFS).
  883. type X__caddr_t = uintptr /* types.h:204:14 */
  884. // Duplicates info from stdint.h but this is used in unistd.h.
  885. type X__intptr_t = int64 /* types.h:207:25 */
  886. // Duplicate info from sys/socket.h.
  887. type X__socklen_t = uint32 /* types.h:210:23 */
  888. // C99: An integer type that can be accessed as an atomic entity,
  889. //
  890. // even in the presence of asynchronous interrupts.
  891. // It is not currently necessary for this to be machine-specific.
  892. type X__sig_atomic_t = int32 /* types.h:215:13 */
  893. // Seconds since the Epoch, visible to user code when time_t is too
  894. // narrow only for consistency with the old way of widening too-narrow
  895. // types. User code should never use __time64_t.
  896. type U_char = X__u_char /* types.h:33:18 */
  897. type U_short = X__u_short /* types.h:34:19 */
  898. type U_int = X__u_int /* types.h:35:17 */
  899. type U_long = X__u_long /* types.h:36:18 */
  900. type Quad_t = X__quad_t /* types.h:37:18 */
  901. type U_quad_t = X__u_quad_t /* types.h:38:20 */
  902. type Fsid_t = X__fsid_t /* types.h:39:18 */
  903. type Loff_t = X__loff_t /* types.h:42:18 */
  904. type Ino_t = X__ino64_t /* types.h:49:19 */
  905. type Dev_t = X__dev_t /* types.h:59:17 */
  906. type Gid_t = X__gid_t /* types.h:64:17 */
  907. type Mode_t = X__mode_t /* types.h:69:18 */
  908. type Nlink_t = X__nlink_t /* types.h:74:19 */
  909. type Uid_t = X__uid_t /* types.h:79:17 */
  910. type Off_t = X__off64_t /* types.h:87:19 */
  911. type Pid_t = X__pid_t /* types.h:97:17 */
  912. type Id_t = X__id_t /* types.h:103:16 */
  913. type Ssize_t = X__ssize_t /* types.h:108:19 */
  914. type Daddr_t = X__daddr_t /* types.h:114:19 */
  915. type Caddr_t = X__caddr_t /* types.h:115:19 */
  916. type Key_t = X__key_t /* types.h:121:17 */
  917. // bits/types.h -- definitions of __*_t types underlying *_t types.
  918. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  919. // This file is part of the GNU C Library.
  920. //
  921. // The GNU C Library is free software; you can redistribute it and/or
  922. // modify it under the terms of the GNU Lesser General Public
  923. // License as published by the Free Software Foundation; either
  924. // version 2.1 of the License, or (at your option) any later version.
  925. //
  926. // The GNU C Library is distributed in the hope that it will be useful,
  927. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  928. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  929. // Lesser General Public License for more details.
  930. //
  931. // You should have received a copy of the GNU Lesser General Public
  932. // License along with the GNU C Library; if not, see
  933. // <https://www.gnu.org/licenses/>.
  934. // Never include this file directly; use <sys/types.h> instead.
  935. // Returned by `clock'.
  936. type Clock_t = X__clock_t /* clock_t.h:7:19 */
  937. // bits/types.h -- definitions of __*_t types underlying *_t types.
  938. // Copyright (C) 2002-2021 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. // <https://www.gnu.org/licenses/>.
  954. // Never include this file directly; use <sys/types.h> instead.
  955. // Clock ID used in clock and timer functions.
  956. type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
  957. // bits/types.h -- definitions of __*_t types underlying *_t types.
  958. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  959. // This file is part of the GNU C Library.
  960. //
  961. // The GNU C Library is free software; you can redistribute it and/or
  962. // modify it under the terms of the GNU Lesser General Public
  963. // License as published by the Free Software Foundation; either
  964. // version 2.1 of the License, or (at your option) any later version.
  965. //
  966. // The GNU C Library is distributed in the hope that it will be useful,
  967. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  968. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  969. // Lesser General Public License for more details.
  970. //
  971. // You should have received a copy of the GNU Lesser General Public
  972. // License along with the GNU C Library; if not, see
  973. // <https://www.gnu.org/licenses/>.
  974. // Never include this file directly; use <sys/types.h> instead.
  975. // Returned by `time'.
  976. type Time_t = X__time_t /* time_t.h:10:18 */
  977. // bits/types.h -- definitions of __*_t types underlying *_t types.
  978. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  979. // This file is part of the GNU C Library.
  980. //
  981. // The GNU C Library is free software; you can redistribute it and/or
  982. // modify it under the terms of the GNU Lesser General Public
  983. // License as published by the Free Software Foundation; either
  984. // version 2.1 of the License, or (at your option) any later version.
  985. //
  986. // The GNU C Library is distributed in the hope that it will be useful,
  987. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  988. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  989. // Lesser General Public License for more details.
  990. //
  991. // You should have received a copy of the GNU Lesser General Public
  992. // License along with the GNU C Library; if not, see
  993. // <https://www.gnu.org/licenses/>.
  994. // Never include this file directly; use <sys/types.h> instead.
  995. // Timer ID returned by `timer_create'.
  996. type Timer_t = X__timer_t /* timer_t.h:7:19 */
  997. // Wide character type.
  998. // Locale-writers should change this as necessary to
  999. // be big enough to hold unique values not between 0 and 127,
  1000. // and not (wchar_t) -1, for each defined multibyte character.
  1001. // Define this type if we are doing the whole job,
  1002. // or if we want this type in particular.
  1003. // A null pointer constant.
  1004. // Old compatibility names for C types.
  1005. type Ulong = uint64 /* types.h:148:27 */
  1006. type Ushort = uint16 /* types.h:149:28 */
  1007. type Uint = uint32 /* types.h:150:22 */
  1008. // These size-specific names are used by some of the inet code.
  1009. // Define intN_t types.
  1010. // Copyright (C) 2017-2021 Free Software Foundation, Inc.
  1011. // This file is part of the GNU C Library.
  1012. //
  1013. // The GNU C Library is free software; you can redistribute it and/or
  1014. // modify it under the terms of the GNU Lesser General Public
  1015. // License as published by the Free Software Foundation; either
  1016. // version 2.1 of the License, or (at your option) any later version.
  1017. //
  1018. // The GNU C Library is distributed in the hope that it will be useful,
  1019. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1020. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1021. // Lesser General Public License for more details.
  1022. //
  1023. // You should have received a copy of the GNU Lesser General Public
  1024. // License along with the GNU C Library; if not, see
  1025. // <https://www.gnu.org/licenses/>.
  1026. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1027. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1028. // This file is part of the GNU C Library.
  1029. //
  1030. // The GNU C Library is free software; you can redistribute it and/or
  1031. // modify it under the terms of the GNU Lesser General Public
  1032. // License as published by the Free Software Foundation; either
  1033. // version 2.1 of the License, or (at your option) any later version.
  1034. //
  1035. // The GNU C Library is distributed in the hope that it will be useful,
  1036. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1037. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1038. // Lesser General Public License for more details.
  1039. //
  1040. // You should have received a copy of the GNU Lesser General Public
  1041. // License along with the GNU C Library; if not, see
  1042. // <https://www.gnu.org/licenses/>.
  1043. // Never include this file directly; use <sys/types.h> instead.
  1044. type Int8_t = X__int8_t /* stdint-intn.h:24:18 */
  1045. type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  1046. type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  1047. type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  1048. // These were defined by ISO C without the first `_'.
  1049. type U_int8_t = X__uint8_t /* types.h:158:19 */
  1050. type U_int16_t = X__uint16_t /* types.h:159:20 */
  1051. type U_int32_t = X__uint32_t /* types.h:160:20 */
  1052. type U_int64_t = X__uint64_t /* types.h:161:20 */
  1053. type Register_t = int32 /* types.h:164:13 */
  1054. // It also defines `fd_set' and the FD_* macros for `select'.
  1055. // `fd_set' type and related macros, and `select'/`pselect' declarations.
  1056. // Copyright (C) 1996-2021 Free Software Foundation, Inc.
  1057. // This file is part of the GNU C Library.
  1058. //
  1059. // The GNU C Library is free software; you can redistribute it and/or
  1060. // modify it under the terms of the GNU Lesser General Public
  1061. // License as published by the Free Software Foundation; either
  1062. // version 2.1 of the License, or (at your option) any later version.
  1063. //
  1064. // The GNU C Library is distributed in the hope that it will be useful,
  1065. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1066. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1067. // Lesser General Public License for more details.
  1068. //
  1069. // You should have received a copy of the GNU Lesser General Public
  1070. // License along with the GNU C Library; if not, see
  1071. // <https://www.gnu.org/licenses/>.
  1072. // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  1073. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1074. // This file is part of the GNU C Library.
  1075. //
  1076. // The GNU C Library is free software; you can redistribute it and/or
  1077. // modify it under the terms of the GNU Lesser General Public
  1078. // License as published by the Free Software Foundation; either
  1079. // version 2.1 of the License, or (at your option) any later version.
  1080. //
  1081. // The GNU C Library is distributed in the hope that it will be useful,
  1082. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1083. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1084. // Lesser General Public License for more details.
  1085. //
  1086. // You should have received a copy of the GNU Lesser General Public
  1087. // License along with the GNU C Library; if not, see
  1088. // <https://www.gnu.org/licenses/>.
  1089. // Get definition of needed basic types.
  1090. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1091. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1092. // This file is part of the GNU C Library.
  1093. //
  1094. // The GNU C Library is free software; you can redistribute it and/or
  1095. // modify it under the terms of the GNU Lesser General Public
  1096. // License as published by the Free Software Foundation; either
  1097. // version 2.1 of the License, or (at your option) any later version.
  1098. //
  1099. // The GNU C Library is distributed in the hope that it will be useful,
  1100. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1101. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1102. // Lesser General Public License for more details.
  1103. //
  1104. // You should have received a copy of the GNU Lesser General Public
  1105. // License along with the GNU C Library; if not, see
  1106. // <https://www.gnu.org/licenses/>.
  1107. // Never include this file directly; use <sys/types.h> instead.
  1108. // Get __FD_* definitions.
  1109. // Copyright (C) 1997-2021 Free Software Foundation, Inc.
  1110. // This file is part of the GNU C Library.
  1111. //
  1112. // The GNU C Library is free software; you can redistribute it and/or
  1113. // modify it under the terms of the GNU Lesser General Public
  1114. // License as published by the Free Software Foundation; either
  1115. // version 2.1 of the License, or (at your option) any later version.
  1116. //
  1117. // The GNU C Library is distributed in the hope that it will be useful,
  1118. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1119. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1120. // Lesser General Public License for more details.
  1121. //
  1122. // You should have received a copy of the GNU Lesser General Public
  1123. // License along with the GNU C Library; if not, see
  1124. // <https://www.gnu.org/licenses/>.
  1125. // We don't use `memset' because this would require a prototype and
  1126. // the array isn't too big.
  1127. // Get sigset_t.
  1128. type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  1129. // A set of signals to be blocked, unblocked, or waited for.
  1130. type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  1131. // Get definition of timer specification structures.
  1132. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1133. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1134. // This file is part of the GNU C Library.
  1135. //
  1136. // The GNU C Library is free software; you can redistribute it and/or
  1137. // modify it under the terms of the GNU Lesser General Public
  1138. // License as published by the Free Software Foundation; either
  1139. // version 2.1 of the License, or (at your option) any later version.
  1140. //
  1141. // The GNU C Library is distributed in the hope that it will be useful,
  1142. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1143. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1144. // Lesser General Public License for more details.
  1145. //
  1146. // You should have received a copy of the GNU Lesser General Public
  1147. // License along with the GNU C Library; if not, see
  1148. // <https://www.gnu.org/licenses/>.
  1149. // Never include this file directly; use <sys/types.h> instead.
  1150. // A time value that is accurate to the nearest
  1151. //
  1152. // microsecond but also has a range of years.
  1153. type Timeval = struct {
  1154. Ftv_sec X__time_t
  1155. Ftv_usec X__suseconds_t
  1156. } /* struct_timeval.h:8:1 */
  1157. // NB: Include guard matches what <linux/time.h> uses.
  1158. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1159. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1160. // This file is part of the GNU C Library.
  1161. //
  1162. // The GNU C Library is free software; you can redistribute it and/or
  1163. // modify it under the terms of the GNU Lesser General Public
  1164. // License as published by the Free Software Foundation; either
  1165. // version 2.1 of the License, or (at your option) any later version.
  1166. //
  1167. // The GNU C Library is distributed in the hope that it will be useful,
  1168. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1169. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1170. // Lesser General Public License for more details.
  1171. //
  1172. // You should have received a copy of the GNU Lesser General Public
  1173. // License along with the GNU C Library; if not, see
  1174. // <https://www.gnu.org/licenses/>.
  1175. // Never include this file directly; use <sys/types.h> instead.
  1176. // Endian macros for string.h functions
  1177. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  1178. // This file is part of the GNU C Library.
  1179. //
  1180. // The GNU C Library is free software; you can redistribute it and/or
  1181. // modify it under the terms of the GNU Lesser General Public
  1182. // License as published by the Free Software Foundation; either
  1183. // version 2.1 of the License, or (at your option) any later version.
  1184. //
  1185. // The GNU C Library is distributed in the hope that it will be useful,
  1186. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1187. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1188. // Lesser General Public License for more details.
  1189. //
  1190. // You should have received a copy of the GNU Lesser General Public
  1191. // License along with the GNU C Library; if not, see
  1192. // <http://www.gnu.org/licenses/>.
  1193. // POSIX.1b structure for a time value. This is like a `struct timeval' but
  1194. //
  1195. // has nanoseconds instead of microseconds.
  1196. type Timespec = struct {
  1197. Ftv_sec X__time_t
  1198. Ftv_nsec X__syscall_slong_t
  1199. } /* struct_timespec.h:11:1 */
  1200. type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  1201. // The fd_set member is required to be an array of longs.
  1202. type X__fd_mask = int64 /* select.h:49:18 */
  1203. // Some versions of <linux/posix_types.h> define this macros.
  1204. // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  1205. // fd_set for select and pselect.
  1206. type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  1207. // Maximum number of file descriptors in `fd_set'.
  1208. // Sometimes the fd_set member is assumed to have this type.
  1209. type Fd_mask = X__fd_mask /* select.h:77:19 */
  1210. // Define some inlines helping to catch common problems.
  1211. type Blksize_t = X__blksize_t /* types.h:185:21 */
  1212. // Types from the Large File Support interface.
  1213. type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks.
  1214. type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1215. type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1216. // Now add the thread types.
  1217. // Declaration of common pthread types for all architectures.
  1218. // Copyright (C) 2017-2021 Free Software Foundation, Inc.
  1219. // This file is part of the GNU C Library.
  1220. //
  1221. // The GNU C Library is free software; you can redistribute it and/or
  1222. // modify it under the terms of the GNU Lesser General Public
  1223. // License as published by the Free Software Foundation; either
  1224. // version 2.1 of the License, or (at your option) any later version.
  1225. //
  1226. // The GNU C Library is distributed in the hope that it will be useful,
  1227. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1228. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1229. // Lesser General Public License for more details.
  1230. //
  1231. // You should have received a copy of the GNU Lesser General Public
  1232. // License along with the GNU C Library; if not, see
  1233. // <https://www.gnu.org/licenses/>.
  1234. // For internal mutex and condition variable definitions.
  1235. // Common threading primitives definitions for both POSIX and C11.
  1236. // Copyright (C) 2017-2021 Free Software Foundation, Inc.
  1237. // This file is part of the GNU C Library.
  1238. //
  1239. // The GNU C Library is free software; you can redistribute it and/or
  1240. // modify it under the terms of the GNU Lesser General Public
  1241. // License as published by the Free Software Foundation; either
  1242. // version 2.1 of the License, or (at your option) any later version.
  1243. //
  1244. // The GNU C Library is distributed in the hope that it will be useful,
  1245. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1246. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1247. // Lesser General Public License for more details.
  1248. //
  1249. // You should have received a copy of the GNU Lesser General Public
  1250. // License along with the GNU C Library; if not, see
  1251. // <https://www.gnu.org/licenses/>.
  1252. // Arch-specific definitions. Each architecture must define the following
  1253. // macros to define the expected sizes of pthread data types:
  1254. //
  1255. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1256. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1257. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1258. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1259. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1260. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1261. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1262. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1263. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1264. //
  1265. // The additional macro defines any constraint for the lock alignment
  1266. // inside the thread structures:
  1267. //
  1268. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1269. //
  1270. // Same idea but for the once locking primitive:
  1271. //
  1272. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1273. // Machine-specific pthread type layouts. RISC-V version.
  1274. // Copyright (C) 2011-2021 Free Software Foundation, Inc.
  1275. // This file is part of the GNU C Library.
  1276. //
  1277. // The GNU C Library is free software; you can redistribute it and/or
  1278. // modify it under the terms of the GNU Lesser General Public
  1279. // License as published by the Free Software Foundation; either
  1280. // version 2.1 of the License, or (at your option) any later version.
  1281. //
  1282. // The GNU C Library is distributed in the hope that it will be useful,
  1283. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1284. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1285. // Lesser General Public License for more details.
  1286. //
  1287. // You should have received a copy of the GNU Lesser General Public
  1288. // License along with the GNU C Library. If not, see
  1289. // <https://www.gnu.org/licenses/>.
  1290. // Endian macros for string.h functions
  1291. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  1292. // This file is part of the GNU C Library.
  1293. //
  1294. // The GNU C Library is free software; you can redistribute it and/or
  1295. // modify it under the terms of the GNU Lesser General Public
  1296. // License as published by the Free Software Foundation; either
  1297. // version 2.1 of the License, or (at your option) any later version.
  1298. //
  1299. // The GNU C Library is distributed in the hope that it will be useful,
  1300. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1301. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1302. // Lesser General Public License for more details.
  1303. //
  1304. // You should have received a copy of the GNU Lesser General Public
  1305. // License along with the GNU C Library; if not, see
  1306. // <http://www.gnu.org/licenses/>.
  1307. // Common definition of pthread_mutex_t.
  1308. type X__pthread_internal_list = struct {
  1309. F__prev uintptr
  1310. F__next uintptr
  1311. } /* thread-shared-types.h:49:9 */
  1312. // Type to count file system inodes.
  1313. // Now add the thread types.
  1314. // Declaration of common pthread types for all architectures.
  1315. // Copyright (C) 2017-2021 Free Software Foundation, Inc.
  1316. // This file is part of the GNU C Library.
  1317. //
  1318. // The GNU C Library is free software; you can redistribute it and/or
  1319. // modify it under the terms of the GNU Lesser General Public
  1320. // License as published by the Free Software Foundation; either
  1321. // version 2.1 of the License, or (at your option) any later version.
  1322. //
  1323. // The GNU C Library is distributed in the hope that it will be useful,
  1324. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1325. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1326. // Lesser General Public License for more details.
  1327. //
  1328. // You should have received a copy of the GNU Lesser General Public
  1329. // License along with the GNU C Library; if not, see
  1330. // <https://www.gnu.org/licenses/>.
  1331. // For internal mutex and condition variable definitions.
  1332. // Common threading primitives definitions for both POSIX and C11.
  1333. // Copyright (C) 2017-2021 Free Software Foundation, Inc.
  1334. // This file is part of the GNU C Library.
  1335. //
  1336. // The GNU C Library is free software; you can redistribute it and/or
  1337. // modify it under the terms of the GNU Lesser General Public
  1338. // License as published by the Free Software Foundation; either
  1339. // version 2.1 of the License, or (at your option) any later version.
  1340. //
  1341. // The GNU C Library is distributed in the hope that it will be useful,
  1342. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1343. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1344. // Lesser General Public License for more details.
  1345. //
  1346. // You should have received a copy of the GNU Lesser General Public
  1347. // License along with the GNU C Library; if not, see
  1348. // <https://www.gnu.org/licenses/>.
  1349. // Arch-specific definitions. Each architecture must define the following
  1350. // macros to define the expected sizes of pthread data types:
  1351. //
  1352. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1353. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1354. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1355. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1356. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1357. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1358. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1359. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1360. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1361. //
  1362. // The additional macro defines any constraint for the lock alignment
  1363. // inside the thread structures:
  1364. //
  1365. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1366. //
  1367. // Same idea but for the once locking primitive:
  1368. //
  1369. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1370. // Machine-specific pthread type layouts. RISC-V version.
  1371. // Copyright (C) 2011-2021 Free Software Foundation, Inc.
  1372. // This file is part of the GNU C Library.
  1373. //
  1374. // The GNU C Library is free software; you can redistribute it and/or
  1375. // modify it under the terms of the GNU Lesser General Public
  1376. // License as published by the Free Software Foundation; either
  1377. // version 2.1 of the License, or (at your option) any later version.
  1378. //
  1379. // The GNU C Library is distributed in the hope that it will be useful,
  1380. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1381. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1382. // Lesser General Public License for more details.
  1383. //
  1384. // You should have received a copy of the GNU Lesser General Public
  1385. // License along with the GNU C Library. If not, see
  1386. // <https://www.gnu.org/licenses/>.
  1387. // Endian macros for string.h functions
  1388. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  1389. // This file is part of the GNU C Library.
  1390. //
  1391. // The GNU C Library is free software; you can redistribute it and/or
  1392. // modify it under the terms of the GNU Lesser General Public
  1393. // License as published by the Free Software Foundation; either
  1394. // version 2.1 of the License, or (at your option) any later version.
  1395. //
  1396. // The GNU C Library is distributed in the hope that it will be useful,
  1397. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1398. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1399. // Lesser General Public License for more details.
  1400. //
  1401. // You should have received a copy of the GNU Lesser General Public
  1402. // License along with the GNU C Library; if not, see
  1403. // <http://www.gnu.org/licenses/>.
  1404. // Common definition of pthread_mutex_t.
  1405. type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1406. type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1407. type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1408. // Arch-specific mutex definitions. A generic implementation is provided
  1409. // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
  1410. // can override it by defining:
  1411. //
  1412. // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1413. // definition). It should contains at least the internal members
  1414. // defined in the generic version.
  1415. //
  1416. // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1417. // atomic operations.
  1418. //
  1419. // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1420. // It should initialize the mutex internal flag.
  1421. // Default mutex implementation struct definitions.
  1422. // Copyright (C) 2019-2021 Free Software Foundation, Inc.
  1423. // This file is part of the GNU C Library.
  1424. //
  1425. // The GNU C Library is free software; you can redistribute it and/or
  1426. // modify it under the terms of the GNU Lesser General Public
  1427. // License as published by the Free Software Foundation; either
  1428. // version 2.1 of the License, or (at your option) any later version.
  1429. //
  1430. // The GNU C Library is distributed in the hope that it will be useful,
  1431. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1432. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1433. // Lesser General Public License for more details.
  1434. //
  1435. // You should have received a copy of the GNU Lesser General Public
  1436. // License along with the GNU C Library; if not, see
  1437. // <http://www.gnu.org/licenses/>.
  1438. // Generic struct for both POSIX and C11 mutexes. New ports are expected
  1439. // to use the default layout, however architecture can redefine it to
  1440. // add arch-specific extension (such as lock-elision). The struct have
  1441. // a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
  1442. type X__pthread_mutex_s = struct {
  1443. F__lock int32
  1444. F__count uint32
  1445. F__owner int32
  1446. F__nusers uint32
  1447. F__kind int32
  1448. F__spins int32
  1449. F__list X__pthread_list_t
  1450. } /* struct_mutex.h:27:1 */
  1451. // Arch-sepecific read-write lock definitions. A generic implementation is
  1452. // provided by struct_rwlock.h. If required, an architecture can override it
  1453. // by defining:
  1454. //
  1455. // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1456. // It should contain at least the internal members defined in the
  1457. // generic version.
  1458. //
  1459. // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1460. // It should initialize the rwlock internal type.
  1461. // RISC-V internal rwlock struct definitions.
  1462. // Copyright (C) 2019-2021 Free Software Foundation, Inc.
  1463. //
  1464. // This file is part of the GNU C Library.
  1465. //
  1466. // The GNU C Library is free software; you can redistribute it and/or
  1467. // modify it under the terms of the GNU Lesser General Public
  1468. // License as published by the Free Software Foundation; either
  1469. // version 2.1 of the License, or (at your option) any later version.
  1470. //
  1471. // The GNU C Library is distributed in the hope that it will be useful,
  1472. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1473. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1474. // Lesser General Public License for more details.
  1475. //
  1476. // You should have received a copy of the GNU Lesser General Public
  1477. // License along with the GNU C Library; if not, see
  1478. // <https://www.gnu.org/licenses/>.
  1479. // There is a lot of padding in this structure. While it's not strictly
  1480. //
  1481. // necessary on RISC-V, we're going to leave it in to be on the safe side in
  1482. // case it's needed in the future. Most other architectures have the padding,
  1483. // so this gives us the same extensibility as everyone else has.
  1484. type X__pthread_rwlock_arch_t = struct {
  1485. F__readers uint32
  1486. F__writers uint32
  1487. F__wrphase_futex uint32
  1488. F__writers_futex uint32
  1489. F__pad3 uint32
  1490. F__pad4 uint32
  1491. F__cur_writer int32
  1492. F__shared int32
  1493. F__pad1 uint64
  1494. F__pad2 uint64
  1495. F__flags uint32
  1496. F__ccgo_pad1 [4]byte
  1497. } /* struct_rwlock.h:27:1 */
  1498. // Common definition of pthread_cond_t.
  1499. type X__pthread_cond_s = struct {
  1500. F__0 struct{ F__wseq uint64 }
  1501. F__8 struct{ F__g1_start uint64 }
  1502. F__g_refs [2]uint32
  1503. F__g_size [2]uint32
  1504. F__g1_orig_size uint32
  1505. F__wrefs uint32
  1506. F__g_signals [2]uint32
  1507. } /* thread-shared-types.h:92:1 */
  1508. type X__tss_t = uint32 /* thread-shared-types.h:119:22 */
  1509. type X__thrd_t = uint64 /* thread-shared-types.h:120:27 */
  1510. type X__once_flag = struct{ F__data int32 } /* thread-shared-types.h:125:3 */
  1511. // Thread identifiers. The structure of the attribute type is not
  1512. //
  1513. // exposed on purpose.
  1514. type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1515. // Data structures for mutex handling. The structure of the attribute
  1516. //
  1517. // type is not exposed on purpose.
  1518. type Pthread_mutexattr_t = struct {
  1519. F__ccgo_pad1 [0]uint32
  1520. F__size [4]uint8
  1521. } /* pthreadtypes.h:36:3 */
  1522. // Data structure for condition variable handling. The structure of
  1523. //
  1524. // the attribute type is not exposed on purpose.
  1525. type Pthread_condattr_t = struct {
  1526. F__ccgo_pad1 [0]uint32
  1527. F__size [4]uint8
  1528. } /* pthreadtypes.h:45:3 */
  1529. // Keys for thread-specific data
  1530. type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1531. // Once-only execution
  1532. type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1533. type Pthread_attr_t1 = struct {
  1534. F__ccgo_pad1 [0]uint64
  1535. F__size [56]uint8
  1536. } /* pthreadtypes.h:56:1 */
  1537. type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1538. type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
  1539. type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1540. // Data structure for reader-writer lock variable handling. The
  1541. //
  1542. // structure of the attribute type is deliberately not exposed.
  1543. type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1544. type Pthread_rwlockattr_t = struct {
  1545. F__ccgo_pad1 [0]uint64
  1546. F__size [8]uint8
  1547. } /* pthreadtypes.h:97:3 */
  1548. // POSIX spinlock data type.
  1549. type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1550. // POSIX barriers data type. The structure of the type is
  1551. //
  1552. // deliberately not exposed.
  1553. type Pthread_barrier_t = struct {
  1554. F__ccgo_pad1 [0]uint64
  1555. F__size [32]uint8
  1556. } /* pthreadtypes.h:112:3 */
  1557. type Pthread_barrierattr_t = struct {
  1558. F__ccgo_pad1 [0]uint32
  1559. F__size [4]uint8
  1560. } /* pthreadtypes.h:118:3 */
  1561. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1562. // This file is part of the GNU C Library.
  1563. //
  1564. // The GNU C Library is free software; you can redistribute it and/or
  1565. // modify it under the terms of the GNU Lesser General Public
  1566. // License as published by the Free Software Foundation; either
  1567. // version 2.1 of the License, or (at your option) any later version.
  1568. //
  1569. // The GNU C Library is distributed in the hope that it will be useful,
  1570. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1571. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1572. // Lesser General Public License for more details.
  1573. //
  1574. // You should have received a copy of the GNU Lesser General Public
  1575. // License along with the GNU C Library; if not, see
  1576. // <https://www.gnu.org/licenses/>.
  1577. // POSIX Standard: 5.6 File Characteristics <sys/stat.h>
  1578. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1579. // This file is part of the GNU C Library.
  1580. //
  1581. // The GNU C Library is free software; you can redistribute it and/or
  1582. // modify it under the terms of the GNU Lesser General Public
  1583. // License as published by the Free Software Foundation; either
  1584. // version 2.1 of the License, or (at your option) any later version.
  1585. //
  1586. // The GNU C Library is distributed in the hope that it will be useful,
  1587. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1588. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1589. // Lesser General Public License for more details.
  1590. //
  1591. // You should have received a copy of the GNU Lesser General Public
  1592. // License along with the GNU C Library; if not, see
  1593. // <https://www.gnu.org/licenses/>.
  1594. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1595. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1596. // This file is part of the GNU C Library.
  1597. //
  1598. // The GNU C Library is free software; you can redistribute it and/or
  1599. // modify it under the terms of the GNU Lesser General Public
  1600. // License as published by the Free Software Foundation; either
  1601. // version 2.1 of the License, or (at your option) any later version.
  1602. //
  1603. // The GNU C Library is distributed in the hope that it will be useful,
  1604. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1605. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1606. // Lesser General Public License for more details.
  1607. //
  1608. // You should have received a copy of the GNU Lesser General Public
  1609. // License along with the GNU C Library; if not, see
  1610. // <https://www.gnu.org/licenses/>.
  1611. // Never include this file directly; use <sys/types.h> instead.
  1612. // NB: Include guard matches what <linux/time.h> uses.
  1613. // The Single Unix specification says that some more types are
  1614. // available here.
  1615. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  1616. // This file is part of the GNU C Library.
  1617. //
  1618. // The GNU C Library is free software; you can redistribute it and/or
  1619. // modify it under the terms of the GNU Lesser General Public
  1620. // License as published by the Free Software Foundation; either
  1621. // version 2.1 of the License, or (at your option) any later version.
  1622. //
  1623. // The GNU C Library is distributed in the hope that it will be useful,
  1624. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1625. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1626. // Lesser General Public License for more details.
  1627. //
  1628. // You should have received a copy of the GNU Lesser General Public
  1629. // License along with the GNU C Library; if not, see
  1630. // <https://www.gnu.org/licenses/>.
  1631. // Definition for struct stat.
  1632. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1633. // This file is part of the GNU C Library.
  1634. //
  1635. // The GNU C Library is free software; you can redistribute it and/or
  1636. // modify it under the terms of the GNU Lesser General Public
  1637. // License as published by the Free Software Foundation; either
  1638. // version 2.1 of the License, or (at your option) any later version.
  1639. //
  1640. // The GNU C Library is distributed in the hope that it will be useful,
  1641. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1642. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1643. // Lesser General Public License for more details.
  1644. //
  1645. // You should have received a copy of the GNU Lesser General Public
  1646. // License along with the GNU C Library. If not, see
  1647. // <https://www.gnu.org/licenses/>.
  1648. // Endian macros for string.h functions
  1649. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  1650. // This file is part of the GNU C Library.
  1651. //
  1652. // The GNU C Library is free software; you can redistribute it and/or
  1653. // modify it under the terms of the GNU Lesser General Public
  1654. // License as published by the Free Software Foundation; either
  1655. // version 2.1 of the License, or (at your option) any later version.
  1656. //
  1657. // The GNU C Library is distributed in the hope that it will be useful,
  1658. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1659. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1660. // Lesser General Public License for more details.
  1661. //
  1662. // You should have received a copy of the GNU Lesser General Public
  1663. // License along with the GNU C Library; if not, see
  1664. // <http://www.gnu.org/licenses/>.
  1665. // Determine the wordsize from the preprocessor defines. RISC-V version.
  1666. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1667. // This file is part of the GNU C Library.
  1668. //
  1669. // The GNU C Library is free software; you can redistribute it and/or
  1670. // modify it under the terms of the GNU Lesser General Public
  1671. // License as published by the Free Software Foundation; either
  1672. // version 2.1 of the License, or (at your option) any later version.
  1673. //
  1674. // The GNU C Library is distributed in the hope that it will be useful,
  1675. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1676. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1677. // Lesser General Public License for more details.
  1678. //
  1679. // You should have received a copy of the GNU Lesser General Public
  1680. // License along with the GNU C Library. If not, see
  1681. // <https://www.gnu.org/licenses/>.
  1682. type Stat = struct {
  1683. Fst_dev X__dev_t
  1684. Fst_ino X__ino64_t
  1685. Fst_mode X__mode_t
  1686. Fst_nlink X__nlink_t
  1687. Fst_uid X__uid_t
  1688. Fst_gid X__gid_t
  1689. Fst_rdev X__dev_t
  1690. F__pad1 X__dev_t
  1691. Fst_size X__off64_t
  1692. Fst_blksize X__blksize_t
  1693. F__pad2 int32
  1694. Fst_blocks X__blkcnt64_t
  1695. Fst_atim struct {
  1696. Ftv_sec X__time_t
  1697. Ftv_nsec X__syscall_slong_t
  1698. }
  1699. Fst_mtim struct {
  1700. Ftv_sec X__time_t
  1701. Ftv_nsec X__syscall_slong_t
  1702. }
  1703. Fst_ctim struct {
  1704. Ftv_sec X__time_t
  1705. Ftv_nsec X__syscall_slong_t
  1706. }
  1707. F__glibc_reserved [2]int32
  1708. } /* struct_stat.h:44:1 */
  1709. // File tree traversal functions declarations.
  1710. // Copyright (C) 1994-2021 Free Software Foundation, Inc.
  1711. // This file is part of the GNU C Library.
  1712. //
  1713. // The GNU C Library is free software; you can redistribute it and/or
  1714. // modify it under the terms of the GNU Lesser General Public
  1715. // License as published by the Free Software Foundation; either
  1716. // version 2.1 of the License, or (at your option) any later version.
  1717. //
  1718. // The GNU C Library is distributed in the hope that it will be useful,
  1719. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1720. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1721. // Lesser General Public License for more details.
  1722. //
  1723. // You should have received a copy of the GNU Lesser General Public
  1724. // License along with the GNU C Library; if not, see
  1725. // <https://www.gnu.org/licenses/>.
  1726. // Copyright (c) 1989, 1993
  1727. // The Regents of the University of California. All rights reserved.
  1728. //
  1729. // Redistribution and use in source and binary forms, with or without
  1730. // modification, are permitted provided that the following conditions
  1731. // are met:
  1732. // 1. Redistributions of source code must retain the above copyright
  1733. // notice, this list of conditions and the following disclaimer.
  1734. // 2. Redistributions in binary form must reproduce the above copyright
  1735. // notice, this list of conditions and the following disclaimer in the
  1736. // documentation and/or other materials provided with the distribution.
  1737. // 4. Neither the name of the University nor the names of its contributors
  1738. // may be used to endorse or promote products derived from this software
  1739. // without specific prior written permission.
  1740. //
  1741. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1742. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1743. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1744. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1745. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1746. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1747. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1748. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1749. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1750. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1751. // SUCH DAMAGE.
  1752. //
  1753. // @(#)fts.h 8.3 (Berkeley) 8/14/94
  1754. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1755. // This file is part of the GNU C Library.
  1756. //
  1757. // The GNU C Library is free software; you can redistribute it and/or
  1758. // modify it under the terms of the GNU Lesser General Public
  1759. // License as published by the Free Software Foundation; either
  1760. // version 2.1 of the License, or (at your option) any later version.
  1761. //
  1762. // The GNU C Library is distributed in the hope that it will be useful,
  1763. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1764. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1765. // Lesser General Public License for more details.
  1766. //
  1767. // You should have received a copy of the GNU Lesser General Public
  1768. // License along with the GNU C Library; if not, see
  1769. // <https://www.gnu.org/licenses/>.
  1770. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1771. // This file is part of the GNU C Library.
  1772. //
  1773. // The GNU C Library is free software; you can redistribute it and/or
  1774. // modify it under the terms of the GNU Lesser General Public
  1775. // License as published by the Free Software Foundation; either
  1776. // version 2.1 of the License, or (at your option) any later version.
  1777. //
  1778. // The GNU C Library is distributed in the hope that it will be useful,
  1779. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1780. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1781. // Lesser General Public License for more details.
  1782. //
  1783. // You should have received a copy of the GNU Lesser General Public
  1784. // License along with the GNU C Library; if not, see
  1785. // <https://www.gnu.org/licenses/>.
  1786. // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
  1787. type X_ftsent = struct {
  1788. Ffts_cycle uintptr
  1789. Ffts_parent uintptr
  1790. Ffts_link uintptr
  1791. Ffts_number int64
  1792. Ffts_pointer uintptr
  1793. Ffts_accpath uintptr
  1794. Ffts_path uintptr
  1795. Ffts_errno int32
  1796. Ffts_symfd int32
  1797. Ffts_pathlen uint16
  1798. Ffts_namelen uint16
  1799. F__ccgo_pad1 [4]byte
  1800. Ffts_ino Ino_t
  1801. Ffts_dev Dev_t
  1802. Ffts_nlink Nlink_t
  1803. Ffts_level int16
  1804. Ffts_info uint16
  1805. Ffts_flags uint16
  1806. Ffts_instr uint16
  1807. F__ccgo_pad2 [4]byte
  1808. Ffts_statp uintptr
  1809. Ffts_name [1]uint8
  1810. F__ccgo_pad3 [7]byte
  1811. } /* fts.h:58:2 */
  1812. // File tree traversal functions declarations.
  1813. // Copyright (C) 1994-2021 Free Software Foundation, Inc.
  1814. // This file is part of the GNU C Library.
  1815. //
  1816. // The GNU C Library is free software; you can redistribute it and/or
  1817. // modify it under the terms of the GNU Lesser General Public
  1818. // License as published by the Free Software Foundation; either
  1819. // version 2.1 of the License, or (at your option) any later version.
  1820. //
  1821. // The GNU C Library is distributed in the hope that it will be useful,
  1822. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1823. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1824. // Lesser General Public License for more details.
  1825. //
  1826. // You should have received a copy of the GNU Lesser General Public
  1827. // License along with the GNU C Library; if not, see
  1828. // <https://www.gnu.org/licenses/>.
  1829. // Copyright (c) 1989, 1993
  1830. // The Regents of the University of California. All rights reserved.
  1831. //
  1832. // Redistribution and use in source and binary forms, with or without
  1833. // modification, are permitted provided that the following conditions
  1834. // are met:
  1835. // 1. Redistributions of source code must retain the above copyright
  1836. // notice, this list of conditions and the following disclaimer.
  1837. // 2. Redistributions in binary form must reproduce the above copyright
  1838. // notice, this list of conditions and the following disclaimer in the
  1839. // documentation and/or other materials provided with the distribution.
  1840. // 4. Neither the name of the University nor the names of its contributors
  1841. // may be used to endorse or promote products derived from this software
  1842. // without specific prior written permission.
  1843. //
  1844. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1845. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1846. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1847. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1848. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1849. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1850. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1851. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1852. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1853. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1854. // SUCH DAMAGE.
  1855. //
  1856. // @(#)fts.h 8.3 (Berkeley) 8/14/94
  1857. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1858. // This file is part of the GNU C Library.
  1859. //
  1860. // The GNU C Library is free software; you can redistribute it and/or
  1861. // modify it under the terms of the GNU Lesser General Public
  1862. // License as published by the Free Software Foundation; either
  1863. // version 2.1 of the License, or (at your option) any later version.
  1864. //
  1865. // The GNU C Library is distributed in the hope that it will be useful,
  1866. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1867. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1868. // Lesser General Public License for more details.
  1869. //
  1870. // You should have received a copy of the GNU Lesser General Public
  1871. // License along with the GNU C Library; if not, see
  1872. // <https://www.gnu.org/licenses/>.
  1873. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1874. // This file is part of the GNU C Library.
  1875. //
  1876. // The GNU C Library is free software; you can redistribute it and/or
  1877. // modify it under the terms of the GNU Lesser General Public
  1878. // License as published by the Free Software Foundation; either
  1879. // version 2.1 of the License, or (at your option) any later version.
  1880. //
  1881. // The GNU C Library is distributed in the hope that it will be useful,
  1882. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1883. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1884. // Lesser General Public License for more details.
  1885. //
  1886. // You should have received a copy of the GNU Lesser General Public
  1887. // License along with the GNU C Library; if not, see
  1888. // <https://www.gnu.org/licenses/>.
  1889. // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
  1890. type FTS = struct {
  1891. Ffts_cur uintptr
  1892. Ffts_child uintptr
  1893. Ffts_array uintptr
  1894. Ffts_dev Dev_t
  1895. Ffts_path uintptr
  1896. Ffts_rfd int32
  1897. Ffts_pathlen int32
  1898. Ffts_nitems int32
  1899. F__ccgo_pad1 [4]byte
  1900. Ffts_compar uintptr
  1901. Ffts_options int32
  1902. F__ccgo_pad2 [4]byte
  1903. } /* fts.h:81:3 */
  1904. type FTSENT = X_ftsent /* fts.h:147:3 */
  1905. var _ uint8 /* gen.c:5:13: */