fts_linux_arm.go 85 KB

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