fts_linux_386.go 80 KB

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