fts_linux_ppc64le.go 84 KB

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