fts_linux_loong64.go 93 KB

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