fts_linux_amd64.go 83 KB

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