pthread_linux_arm64.go 84 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992
  1. // Code generated by 'ccgo pthread/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 pthread/pthread_linux_arm64.go -pkgname pthread', DO NOT EDIT.
  2. package pthread
  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. CLOCK_BOOTTIME = 7
  15. CLOCK_BOOTTIME_ALARM = 9
  16. CLOCK_MONOTONIC = 1
  17. CLOCK_MONOTONIC_COARSE = 6
  18. CLOCK_MONOTONIC_RAW = 4
  19. CLOCK_PROCESS_CPUTIME_ID = 2
  20. CLOCK_REALTIME = 0
  21. CLOCK_REALTIME_ALARM = 8
  22. CLOCK_REALTIME_COARSE = 5
  23. CLOCK_TAI = 11
  24. CLOCK_THREAD_CPUTIME_ID = 3
  25. PTHREAD_BARRIER_SERIAL_THREAD = -1
  26. PTHREAD_ONCE_INIT = 0
  27. SCHED_FIFO = 1
  28. SCHED_OTHER = 0
  29. SCHED_RR = 2
  30. TIMER_ABSTIME = 1
  31. TIME_UTC = 1
  32. X_ATFILE_SOURCE = 1
  33. X_BITS_CPU_SET_H = 1
  34. X_BITS_ENDIANNESS_H = 1
  35. X_BITS_ENDIAN_H = 1
  36. X_BITS_PTHREADTYPES_ARCH_H = 1
  37. X_BITS_PTHREADTYPES_COMMON_H = 1
  38. X_BITS_SCHED_H = 1
  39. X_BITS_SETJMP_H = 1
  40. X_BITS_TIME64_H = 1
  41. X_BITS_TIME_H = 1
  42. X_BITS_TYPESIZES_H = 1
  43. X_BITS_TYPES_H = 1
  44. X_BITS_TYPES_LOCALE_T_H = 1
  45. X_BITS_TYPES_STRUCT_SCHED_PARAM = 1
  46. X_BITS_TYPES___LOCALE_T_H = 1
  47. X_BSD_SIZE_T_ = 0
  48. X_BSD_SIZE_T_DEFINED_ = 0
  49. X_DEFAULT_SOURCE = 1
  50. X_FEATURES_H = 1
  51. X_FILE_OFFSET_BITS = 64
  52. X_GCC_SIZE_T = 0
  53. X_LP64 = 1
  54. X_POSIX_C_SOURCE = 200809
  55. X_POSIX_SOURCE = 1
  56. X_PTHREAD_H = 1
  57. X_RWLOCK_INTERNAL_H = 0
  58. X_SCHED_H = 1
  59. X_SIZET_ = 0
  60. X_SIZE_T = 0
  61. X_SIZE_T_ = 0
  62. X_SIZE_T_DECLARED = 0
  63. X_SIZE_T_DEFINED = 0
  64. X_SIZE_T_DEFINED_ = 0
  65. X_STDC_PREDEF_H = 1
  66. X_STRUCT_TIMESPEC = 1
  67. X_SYS_CDEFS_H = 1
  68. X_SYS_SIZE_T_H = 0
  69. X_THREAD_MUTEX_INTERNAL_H = 1
  70. X_THREAD_SHARED_TYPES_H = 1
  71. X_TIME_H = 1
  72. X_T_SIZE = 0
  73. X_T_SIZE_ = 0
  74. Linux = 1
  75. Unix = 1
  76. )
  77. // Read-write lock types.
  78. const ( /* pthread.h:100:1: */
  79. PTHREAD_RWLOCK_PREFER_READER_NP = 0
  80. PTHREAD_RWLOCK_PREFER_WRITER_NP = 1
  81. PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2
  82. PTHREAD_RWLOCK_DEFAULT_NP = 0
  83. )
  84. // Read-write lock initializers.
  85. // Scheduler inheritance.
  86. const ( /* pthread.h:120:1: */
  87. PTHREAD_INHERIT_SCHED = 0
  88. PTHREAD_EXPLICIT_SCHED = 1
  89. )
  90. // Scope handling.
  91. const ( /* pthread.h:130:1: */
  92. PTHREAD_SCOPE_SYSTEM = 0
  93. PTHREAD_SCOPE_PROCESS = 1
  94. )
  95. // Process shared or private flag.
  96. const ( /* pthread.h:140:1: */
  97. PTHREAD_PROCESS_PRIVATE = 0
  98. PTHREAD_PROCESS_SHARED = 1
  99. )
  100. // Cancellation
  101. const ( /* pthread.h:164:1: */
  102. PTHREAD_CANCEL_ENABLE = 0
  103. PTHREAD_CANCEL_DISABLE = 1
  104. )
  105. const ( /* pthread.h:171:1: */
  106. PTHREAD_CANCEL_DEFERRED = 0
  107. PTHREAD_CANCEL_ASYNCHRONOUS = 1
  108. )
  109. // Determine the wordsize from the preprocessor defines.
  110. //
  111. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  112. // This file is part of the GNU C Library.
  113. //
  114. // The GNU C Library is free software; you can redistribute it and/or
  115. // modify it under the terms of the GNU Lesser General Public
  116. // License as published by the Free Software Foundation; either
  117. // version 2.1 of the License, or (at your option) any later version.
  118. //
  119. // The GNU C Library is distributed in the hope that it will be useful,
  120. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  121. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  122. // Lesser General Public License for more details.
  123. //
  124. // You should have received a copy of the GNU Lesser General Public
  125. // License along with the GNU C Library; if not, see
  126. // <https://www.gnu.org/licenses/>.
  127. // NB: Include guard matches what <linux/time.h> uses.
  128. // Detach state.
  129. const ( /* pthread.h:33:1: */
  130. PTHREAD_CREATE_JOINABLE = 0
  131. PTHREAD_CREATE_DETACHED = 1
  132. )
  133. // Mutex types.
  134. const ( /* pthread.h:43:1: */
  135. PTHREAD_MUTEX_TIMED_NP = 0
  136. PTHREAD_MUTEX_RECURSIVE_NP = 1
  137. PTHREAD_MUTEX_ERRORCHECK_NP = 2
  138. PTHREAD_MUTEX_ADAPTIVE_NP = 3
  139. PTHREAD_MUTEX_NORMAL = 0
  140. PTHREAD_MUTEX_RECURSIVE = 1
  141. PTHREAD_MUTEX_ERRORCHECK = 2
  142. PTHREAD_MUTEX_DEFAULT = 0
  143. )
  144. // Robust mutex or not flags.
  145. const ( /* pthread.h:65:1: */
  146. PTHREAD_MUTEX_STALLED = 0
  147. PTHREAD_MUTEX_STALLED_NP = 0
  148. PTHREAD_MUTEX_ROBUST = 1
  149. PTHREAD_MUTEX_ROBUST_NP = 1
  150. )
  151. // Mutex protocols.
  152. const ( /* pthread.h:77:1: */
  153. PTHREAD_PRIO_NONE = 0
  154. PTHREAD_PRIO_INHERIT = 1
  155. PTHREAD_PRIO_PROTECT = 2
  156. )
  157. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  158. type Size_t = uint64 /* <builtin>:9:23 */
  159. type Wchar_t = uint32 /* <builtin>:15:24 */
  160. type X__int128_t = struct {
  161. Flo int64
  162. Fhi int64
  163. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  164. type X__uint128_t = struct {
  165. Flo uint64
  166. Fhi uint64
  167. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  168. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  169. type X__float128 = float64 /* <builtin>:47:21 */
  170. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  171. // This file is part of the GNU C Library.
  172. //
  173. // The GNU C Library is free software; you can redistribute it and/or
  174. // modify it under the terms of the GNU Lesser General Public
  175. // License as published by the Free Software Foundation; either
  176. // version 2.1 of the License, or (at your option) any later version.
  177. //
  178. // The GNU C Library is distributed in the hope that it will be useful,
  179. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  180. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  181. // Lesser General Public License for more details.
  182. //
  183. // You should have received a copy of the GNU Lesser General Public
  184. // License along with the GNU C Library; if not, see
  185. // <https://www.gnu.org/licenses/>.
  186. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  187. // This file is part of the GNU C Library.
  188. //
  189. // The GNU C Library is free software; you can redistribute it and/or
  190. // modify it under the terms of the GNU Lesser General Public
  191. // License as published by the Free Software Foundation; either
  192. // version 2.1 of the License, or (at your option) any later version.
  193. //
  194. // The GNU C Library is distributed in the hope that it will be useful,
  195. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  196. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  197. // Lesser General Public License for more details.
  198. //
  199. // You should have received a copy of the GNU Lesser General Public
  200. // License along with the GNU C Library; if not, see
  201. // <https://www.gnu.org/licenses/>.
  202. // These are defined by the user (or the compiler)
  203. // to specify the desired environment:
  204. //
  205. // __STRICT_ANSI__ ISO Standard C.
  206. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  207. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  208. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  209. // __STDC_WANT_LIB_EXT2__
  210. // Extensions to ISO C99 from TR 27431-2:2010.
  211. // __STDC_WANT_IEC_60559_BFP_EXT__
  212. // Extensions to ISO C11 from TS 18661-1:2014.
  213. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  214. // Extensions to ISO C11 from TS 18661-4:2015.
  215. // __STDC_WANT_IEC_60559_TYPES_EXT__
  216. // Extensions to ISO C11 from TS 18661-3:2015.
  217. //
  218. // _POSIX_SOURCE IEEE Std 1003.1.
  219. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  220. // if >=199309L, add IEEE Std 1003.1b-1993;
  221. // if >=199506L, add IEEE Std 1003.1c-1995;
  222. // if >=200112L, all of IEEE 1003.1-2004
  223. // if >=200809L, all of IEEE 1003.1-2008
  224. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  225. // Single Unix conformance is wanted, to 600 for the
  226. // sixth revision, to 700 for the seventh revision.
  227. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  228. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  229. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  230. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  231. // _ATFILE_SOURCE Additional *at interfaces.
  232. // _GNU_SOURCE All of the above, plus GNU extensions.
  233. // _DEFAULT_SOURCE The default set of features (taking precedence over
  234. // __STRICT_ANSI__).
  235. //
  236. // _FORTIFY_SOURCE Add security hardening to many library functions.
  237. // Set to 1 or 2; 2 performs stricter checks than 1.
  238. //
  239. // _REENTRANT, _THREAD_SAFE
  240. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  241. //
  242. // The `-ansi' switch to the GNU C compiler, and standards conformance
  243. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  244. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  245. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  246. // 200809L, as well as enabling miscellaneous functions from BSD and
  247. // SVID. If more than one of these are defined, they accumulate. For
  248. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  249. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  250. //
  251. // These are defined by this file and are used by the
  252. // header files to decide what to declare or define:
  253. //
  254. // __GLIBC_USE (F) Define things from feature set F. This is defined
  255. // to 1 or 0; the subsequent macros are either defined
  256. // or undefined, and those tests should be moved to
  257. // __GLIBC_USE.
  258. // __USE_ISOC11 Define ISO C11 things.
  259. // __USE_ISOC99 Define ISO C99 things.
  260. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  261. // __USE_ISOCXX11 Define ISO C++11 things.
  262. // __USE_POSIX Define IEEE Std 1003.1 things.
  263. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  264. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  265. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  266. // __USE_XOPEN Define XPG things.
  267. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  268. // __USE_UNIX98 Define Single Unix V2 things.
  269. // __USE_XOPEN2K Define XPG6 things.
  270. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  271. // __USE_XOPEN2K8 Define XPG7 things.
  272. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  273. // __USE_LARGEFILE Define correct standard I/O things.
  274. // __USE_LARGEFILE64 Define LFS things with separate names.
  275. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  276. // __USE_MISC Define things from 4.3BSD or System V Unix.
  277. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  278. // __USE_GNU Define GNU extensions.
  279. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  280. //
  281. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  282. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  283. // only for compatibility. All new code should use the other symbols
  284. // to test for features.
  285. //
  286. // All macros listed above as possibly being defined by this file are
  287. // explicitly undefined if they are not explicitly defined.
  288. // Feature-test macros that are not defined by the user or compiler
  289. // but are implied by the other feature-test macros defined (or by the
  290. // lack of any definitions) are defined by the file.
  291. //
  292. // ISO C feature test macros depend on the definition of the macro
  293. // when an affected header is included, not when the first system
  294. // header is included, and so they are handled in
  295. // <bits/libc-header-start.h>, which does not have a multiple include
  296. // guard. Feature test macros that can be handled from the first
  297. // system header included are handled here.
  298. // Undefine everything, so we get a clean slate.
  299. // Suppress kernel-name space pollution unless user expressedly asks
  300. // for it.
  301. // Convenience macro to test the version of gcc.
  302. // Use like this:
  303. // #if __GNUC_PREREQ (2,8)
  304. // ... code requiring gcc 2.8 or later ...
  305. // #endif
  306. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  307. // added in 2.0.
  308. // Similarly for clang. Features added to GCC after version 4.2 may
  309. // or may not also be available in clang, and clang's definitions of
  310. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  311. // features can be queried via __has_extension/__has_feature.
  312. // Whether to use feature set F.
  313. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  314. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  315. // issue a warning; the expectation is that the source is being
  316. // transitioned to use the new macro.
  317. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  318. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  319. // define _DEFAULT_SOURCE.
  320. // This is to enable the ISO C2X extension.
  321. // This is to enable the ISO C11 extension.
  322. // This is to enable the ISO C99 extension.
  323. // This is to enable the ISO C90 Amendment 1:1995 extension.
  324. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  325. // is defined, use POSIX.1-2008 (or another version depending on
  326. // _XOPEN_SOURCE).
  327. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  328. // defined in all multithreaded code. GNU libc has not required this
  329. // for many years. We now treat them as compatibility synonyms for
  330. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  331. // comprehensive support for multithreaded code. Using them never
  332. // lowers the selected level of POSIX conformance, only raises it.
  333. // The function 'gets' existed in C89, but is impossible to use
  334. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  335. // compatibility with various implementations of <cstdio>, this test
  336. // must consider only the value of __cplusplus when compiling C++.
  337. // GNU formerly extended the scanf functions with modified format
  338. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  339. // input using malloc. This extension conflicts with ISO C99, which
  340. // defines %a as a standalone format specifier that reads a floating-
  341. // point number; moreover, POSIX.1-2008 provides the same feature
  342. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  343. //
  344. // We now follow C99 unless GNU extensions are active and the compiler
  345. // is specifically in C89 or C++98 mode (strict or not). For
  346. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  347. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  348. // old extension.
  349. // Get definitions of __STDC_* predefined macros, if the compiler has
  350. // not preincluded this header automatically.
  351. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  352. // This file is part of the GNU C Library.
  353. //
  354. // The GNU C Library is free software; you can redistribute it and/or
  355. // modify it under the terms of the GNU Lesser General Public
  356. // License as published by the Free Software Foundation; either
  357. // version 2.1 of the License, or (at your option) any later version.
  358. //
  359. // The GNU C Library is distributed in the hope that it will be useful,
  360. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  361. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  362. // Lesser General Public License for more details.
  363. //
  364. // You should have received a copy of the GNU Lesser General Public
  365. // License along with the GNU C Library; if not, see
  366. // <https://www.gnu.org/licenses/>.
  367. // This macro indicates that the installed library is the GNU C Library.
  368. // For historic reasons the value now is 6 and this will stay from now
  369. // on. The use of this variable is deprecated. Use __GLIBC__ and
  370. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  371. // GNU C library version and use the values in <gnu/lib-names.h> to get
  372. // the sonames of the shared libraries.
  373. // Major and minor version number of the GNU C library package. Use
  374. // these macros to test for features in specific releases.
  375. // This is here only because every header file already includes this one.
  376. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  377. // This file is part of the GNU C Library.
  378. //
  379. // The GNU C Library is free software; you can redistribute it and/or
  380. // modify it under the terms of the GNU Lesser General Public
  381. // License as published by the Free Software Foundation; either
  382. // version 2.1 of the License, or (at your option) any later version.
  383. //
  384. // The GNU C Library is distributed in the hope that it will be useful,
  385. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  386. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  387. // Lesser General Public License for more details.
  388. //
  389. // You should have received a copy of the GNU Lesser General Public
  390. // License along with the GNU C Library; if not, see
  391. // <https://www.gnu.org/licenses/>.
  392. // We are almost always included from features.h.
  393. // The GNU libc does not support any K&R compilers or the traditional mode
  394. // of ISO C compilers anymore. Check for some of the combinations not
  395. // anymore supported.
  396. // Some user header file might have defined this before.
  397. // All functions, except those with callbacks or those that
  398. // synchronize memory, are leaf functions.
  399. // GCC can always grok prototypes. For C++ programs we add throw()
  400. // to help it optimize the function calls. But this works only with
  401. // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
  402. // as non-throwing using a function attribute since programs can use
  403. // the -fexceptions options for C code as well.
  404. // Compilers that are not clang may object to
  405. // #if defined __clang__ && __has_extension(...)
  406. // even though they do not need to evaluate the right-hand side of the &&.
  407. // These two macros are not used in glibc anymore. They are kept here
  408. // only because some other projects expect the macros to be defined.
  409. // For these things, GCC behaves the ANSI way normally,
  410. // and the non-ANSI way under -traditional.
  411. // This is not a typedef so `const __ptr_t' does the right thing.
  412. // C++ needs to know that types and declarations are C, not C++.
  413. // Fortify support.
  414. // Support for flexible arrays.
  415. // Headers that should use flexible arrays only if they're "real"
  416. // (e.g. only if they won't affect sizeof()) should test
  417. // #if __glibc_c99_flexarr_available.
  418. // __asm__ ("xyz") is used throughout the headers to rename functions
  419. // at the assembly language level. This is wrapped by the __REDIRECT
  420. // macro, in order to support compilers that can do this some other
  421. // way. When compilers don't support asm-names at all, we have to do
  422. // preprocessor tricks instead (which don't have exactly the right
  423. // semantics, but it's the best we can do).
  424. //
  425. // Example:
  426. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  427. //
  428. // #elif __SOME_OTHER_COMPILER__
  429. //
  430. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  431. // GCC has various useful declarations that can be made with the
  432. // `__attribute__' syntax. All of the ways we use this do fine if
  433. // they are omitted for compilers that don't understand it.
  434. // At some point during the gcc 2.96 development the `malloc' attribute
  435. // for functions was introduced. We don't want to use it unconditionally
  436. // (although this would be possible) since it generates warnings.
  437. // Tell the compiler which arguments to an allocation function
  438. // indicate the size of the allocation.
  439. // At some point during the gcc 2.96 development the `pure' attribute
  440. // for functions was introduced. We don't want to use it unconditionally
  441. // (although this would be possible) since it generates warnings.
  442. // This declaration tells the compiler that the value is constant.
  443. // At some point during the gcc 3.1 development the `used' attribute
  444. // for functions was introduced. We don't want to use it unconditionally
  445. // (although this would be possible) since it generates warnings.
  446. // Since version 3.2, gcc allows marking deprecated functions.
  447. // Since version 4.5, gcc also allows one to specify the message printed
  448. // when a deprecated function is used. clang claims to be gcc 4.2, but
  449. // may also support this feature.
  450. // At some point during the gcc 2.8 development the `format_arg' attribute
  451. // for functions was introduced. We don't want to use it unconditionally
  452. // (although this would be possible) since it generates warnings.
  453. // If several `format_arg' attributes are given for the same function, in
  454. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  455. // all designated arguments are considered.
  456. // At some point during the gcc 2.97 development the `strfmon' format
  457. // attribute for functions was introduced. We don't want to use it
  458. // unconditionally (although this would be possible) since it
  459. // generates warnings.
  460. // The nonull function attribute allows to mark pointer parameters which
  461. // must not be NULL.
  462. // If fortification mode, we warn about unused results of certain
  463. // function calls which can lead to problems.
  464. // Forces a function to be always inlined.
  465. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  466. // it conflicts with this definition. Therefore undefine it first to
  467. // allow either header to be included first.
  468. // Associate error messages with the source location of the call site rather
  469. // than with the source location inside the function.
  470. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  471. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  472. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  473. // older than 4.3 may define these macros and still not guarantee GNU inlining
  474. // semantics.
  475. //
  476. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  477. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  478. // __GNUC_GNU_INLINE__ macro definitions.
  479. // GCC 4.3 and above allow passing all anonymous arguments of an
  480. // __extern_always_inline function to some other vararg function.
  481. // It is possible to compile containing GCC extensions even if GCC is
  482. // run in pedantic mode if the uses are carefully marked using the
  483. // `__extension__' keyword. But this is not generally available before
  484. // version 2.8.
  485. // __restrict is known in EGCS 1.2 and above.
  486. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  487. // array_name[restrict]
  488. // GCC 3.1 supports this.
  489. // Describes a char array whose address can safely be passed as the first
  490. // argument to strncpy and strncat, as the char array is not necessarily
  491. // a NUL-terminated string.
  492. // Undefine (also defined in libc-symbols.h).
  493. // Copies attributes from the declaration or type referenced by
  494. // the argument.
  495. // Determine the wordsize from the preprocessor defines.
  496. //
  497. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  498. // This file is part of the GNU C Library.
  499. //
  500. // The GNU C Library is free software; you can redistribute it and/or
  501. // modify it under the terms of the GNU Lesser General Public
  502. // License as published by the Free Software Foundation; either
  503. // version 2.1 of the License, or (at your option) any later version.
  504. //
  505. // The GNU C Library is distributed in the hope that it will be useful,
  506. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  507. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  508. // Lesser General Public License for more details.
  509. //
  510. // You should have received a copy of the GNU Lesser General Public
  511. // License along with the GNU C Library; if not, see
  512. // <https://www.gnu.org/licenses/>.
  513. // Properties of long double type. ldbl-128 version.
  514. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  515. // This file is part of the GNU C Library.
  516. //
  517. // The GNU C Library is free software; you can redistribute it and/or
  518. // modify it under the terms of the GNU Lesser General Public
  519. // License published by the Free Software Foundation; either
  520. // version 2.1 of the License, or (at your option) any later version.
  521. //
  522. // The GNU C Library is distributed in the hope that it will be useful,
  523. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  524. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  525. // Lesser General Public License for more details.
  526. //
  527. // You should have received a copy of the GNU Lesser General Public
  528. // License along with the GNU C Library; if not, see
  529. // <https://www.gnu.org/licenses/>.
  530. // long double is distinct from double, so there is nothing to
  531. // define here.
  532. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  533. // intended for use in preprocessor macros.
  534. //
  535. // Note: MESSAGE must be a _single_ string; concatenation of string
  536. // literals is not supported.
  537. // Generic selection (ISO C11) is a C-only feature, available in GCC
  538. // since version 4.9. Previous versions do not provide generic
  539. // selection, even though they might set __STDC_VERSION__ to 201112L,
  540. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  541. // when testing __STDC_VERSION__ for generic selection support.
  542. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  543. // check is required to enable the use of generic selection.
  544. // If we don't have __REDIRECT, prototypes will be missing if
  545. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  546. // Decide whether we can define 'extern inline' functions in headers.
  547. // This is here only because every header file already includes this one.
  548. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  549. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  550. // that will always return failure (and set errno to ENOSYS).
  551. // This file is automatically generated.
  552. // This file selects the right generated file of `__stub_FUNCTION' macros
  553. // based on the architecture being compiled for.
  554. // Determine the wordsize from the preprocessor defines.
  555. //
  556. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  557. // This file is part of the GNU C Library.
  558. //
  559. // The GNU C Library is free software; you can redistribute it and/or
  560. // modify it under the terms of the GNU Lesser General Public
  561. // License as published by the Free Software Foundation; either
  562. // version 2.1 of the License, or (at your option) any later version.
  563. //
  564. // The GNU C Library is distributed in the hope that it will be useful,
  565. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  566. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  567. // Lesser General Public License for more details.
  568. //
  569. // You should have received a copy of the GNU Lesser General Public
  570. // License along with the GNU C Library; if not, see
  571. // <https://www.gnu.org/licenses/>.
  572. // This file is automatically generated.
  573. // It defines a symbol `__stub_FUNCTION' for each function
  574. // in the C library which is a stub, meaning it will fail
  575. // every time called, usually setting errno to ENOSYS.
  576. // Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
  577. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  578. // This file is part of the GNU C Library.
  579. //
  580. // The GNU C Library is free software; you can redistribute it and/or
  581. // modify it under the terms of the GNU Lesser General Public
  582. // License as published by the Free Software Foundation; either
  583. // version 2.1 of the License, or (at your option) any later version.
  584. //
  585. // The GNU C Library is distributed in the hope that it will be useful,
  586. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  587. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  588. // Lesser General Public License for more details.
  589. //
  590. // You should have received a copy of the GNU Lesser General Public
  591. // License along with the GNU C Library; if not, see
  592. // <https://www.gnu.org/licenses/>.
  593. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  594. // This file is part of the GNU C Library.
  595. //
  596. // The GNU C Library is free software; you can redistribute it and/or
  597. // modify it under the terms of the GNU Lesser General Public
  598. // License as published by the Free Software Foundation; either
  599. // version 2.1 of the License, or (at your option) any later version.
  600. //
  601. // The GNU C Library is distributed in the hope that it will be useful,
  602. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  603. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  604. // Lesser General Public License for more details.
  605. //
  606. // You should have received a copy of the GNU Lesser General Public
  607. // License along with the GNU C Library; if not, see
  608. // <https://www.gnu.org/licenses/>.
  609. // Get type definitions.
  610. // bits/types.h -- definitions of __*_t types underlying *_t types.
  611. // Copyright (C) 2002-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. // Never include this file directly; use <sys/types.h> instead.
  628. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  629. // This file is part of the GNU C Library.
  630. //
  631. // The GNU C Library is free software; you can redistribute it and/or
  632. // modify it under the terms of the GNU Lesser General Public
  633. // License as published by the Free Software Foundation; either
  634. // version 2.1 of the License, or (at your option) any later version.
  635. //
  636. // The GNU C Library is distributed in the hope that it will be useful,
  637. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  638. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  639. // Lesser General Public License for more details.
  640. //
  641. // You should have received a copy of the GNU Lesser General Public
  642. // License along with the GNU C Library; if not, see
  643. // <https://www.gnu.org/licenses/>.
  644. // Determine the wordsize from the preprocessor defines.
  645. //
  646. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  647. // This file is part of the GNU C Library.
  648. //
  649. // The GNU C Library is free software; you can redistribute it and/or
  650. // modify it under the terms of the GNU Lesser General Public
  651. // License as published by the Free Software Foundation; either
  652. // version 2.1 of the License, or (at your option) any later version.
  653. //
  654. // The GNU C Library is distributed in the hope that it will be useful,
  655. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  656. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  657. // Lesser General Public License for more details.
  658. //
  659. // You should have received a copy of the GNU Lesser General Public
  660. // License along with the GNU C Library; if not, see
  661. // <https://www.gnu.org/licenses/>.
  662. // Bit size of the time_t type at glibc build time, general case.
  663. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  664. // This file is part of the GNU C Library.
  665. //
  666. // The GNU C Library is free software; you can redistribute it and/or
  667. // modify it under the terms of the GNU Lesser General Public
  668. // License as published by the Free Software Foundation; either
  669. // version 2.1 of the License, or (at your option) any later version.
  670. //
  671. // The GNU C Library is distributed in the hope that it will be useful,
  672. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  673. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  674. // Lesser General Public License for more details.
  675. //
  676. // You should have received a copy of the GNU Lesser General Public
  677. // License along with the GNU C Library; if not, see
  678. // <https://www.gnu.org/licenses/>.
  679. // Determine the wordsize from the preprocessor defines.
  680. //
  681. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  682. // This file is part of the GNU C Library.
  683. //
  684. // The GNU C Library is free software; you can redistribute it and/or
  685. // modify it under the terms of the GNU Lesser General Public
  686. // License as published by the Free Software Foundation; either
  687. // version 2.1 of the License, or (at your option) any later version.
  688. //
  689. // The GNU C Library is distributed in the hope that it will be useful,
  690. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  691. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  692. // Lesser General Public License for more details.
  693. //
  694. // You should have received a copy of the GNU Lesser General Public
  695. // License along with the GNU C Library; if not, see
  696. // <https://www.gnu.org/licenses/>.
  697. // Size in bits of the 'time_t' type of the default ABI.
  698. // Convenience types.
  699. type X__u_char = uint8 /* types.h:31:23 */
  700. type X__u_short = uint16 /* types.h:32:28 */
  701. type X__u_int = uint32 /* types.h:33:22 */
  702. type X__u_long = uint64 /* types.h:34:27 */
  703. // Fixed-size types, underlying types depend on word size and compiler.
  704. type X__int8_t = int8 /* types.h:37:21 */
  705. type X__uint8_t = uint8 /* types.h:38:23 */
  706. type X__int16_t = int16 /* types.h:39:26 */
  707. type X__uint16_t = uint16 /* types.h:40:28 */
  708. type X__int32_t = int32 /* types.h:41:20 */
  709. type X__uint32_t = uint32 /* types.h:42:22 */
  710. type X__int64_t = int64 /* types.h:44:25 */
  711. type X__uint64_t = uint64 /* types.h:45:27 */
  712. // Smallest types with at least a given width.
  713. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  714. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  715. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  716. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  717. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  718. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  719. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  720. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  721. // quad_t is also 64 bits.
  722. type X__quad_t = int64 /* types.h:63:18 */
  723. type X__u_quad_t = uint64 /* types.h:64:27 */
  724. // Largest integral types.
  725. type X__intmax_t = int64 /* types.h:72:18 */
  726. type X__uintmax_t = uint64 /* types.h:73:27 */
  727. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  728. // macros for each of the OS types we define below. The definitions
  729. // of those macros must use the following macros for underlying types.
  730. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  731. // variants of each of the following integer types on this machine.
  732. //
  733. // 16 -- "natural" 16-bit type (always short)
  734. // 32 -- "natural" 32-bit type (always int)
  735. // 64 -- "natural" 64-bit type (long or long long)
  736. // LONG32 -- 32-bit type, traditionally long
  737. // QUAD -- 64-bit type, traditionally long long
  738. // WORD -- natural type of __WORDSIZE bits (int or long)
  739. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  740. //
  741. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  742. // conventional uses of `long' or `long long' type modifiers match the
  743. // types we define, even when a less-adorned type would be the same size.
  744. // This matters for (somewhat) portably writing printf/scanf formats for
  745. // these types, where using the appropriate l or ll format modifiers can
  746. // make the typedefs and the formats match up across all GNU platforms. If
  747. // we used `long' when it's 64 bits where `long long' is expected, then the
  748. // compiler would warn about the formats not matching the argument types,
  749. // and the programmer changing them to shut up the compiler would break the
  750. // program's portability.
  751. //
  752. // Here we assume what is presently the case in all the GCC configurations
  753. // we support: long long is always 64 bits, long is always word/address size,
  754. // and int is always 32 bits.
  755. // No need to mark the typedef with __extension__.
  756. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
  757. // Copyright (C) 2011-2020 Free Software Foundation, Inc.
  758. // This file is part of the GNU C Library.
  759. // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
  760. //
  761. // The GNU C Library is free software; you can redistribute it and/or
  762. // modify it under the terms of the GNU Lesser General Public
  763. // License as published by the Free Software Foundation; either
  764. // version 2.1 of the License, or (at your option) any later version.
  765. //
  766. // The GNU C Library is distributed in the hope that it will be useful,
  767. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  768. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  769. // Lesser General Public License for more details.
  770. //
  771. // You should have received a copy of the GNU Lesser General Public
  772. // License along with the GNU C Library. If not, see
  773. // <https://www.gnu.org/licenses/>.
  774. // See <bits/types.h> for the meaning of these macros. This file exists so
  775. // that <bits/types.h> need not vary across different GNU platforms.
  776. // Tell the libc code that off_t and off64_t are actually the same type
  777. // for all ABI purposes, even if possibly expressed as different base types
  778. // for C type-checking purposes.
  779. // Same for ino_t and ino64_t.
  780. // And for __rlim_t and __rlim64_t.
  781. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  782. // Number of descriptors that can fit in an `fd_set'.
  783. // bits/time64.h -- underlying types for __time64_t. Generic version.
  784. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  785. // This file is part of the GNU C Library.
  786. //
  787. // The GNU C Library is free software; you can redistribute it and/or
  788. // modify it under the terms of the GNU Lesser General Public
  789. // License as published by the Free Software Foundation; either
  790. // version 2.1 of the License, or (at your option) any later version.
  791. //
  792. // The GNU C Library is distributed in the hope that it will be useful,
  793. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  794. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  795. // Lesser General Public License for more details.
  796. //
  797. // You should have received a copy of the GNU Lesser General Public
  798. // License along with the GNU C Library; if not, see
  799. // <https://www.gnu.org/licenses/>.
  800. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  801. // If we already have 64-bit time type then use it.
  802. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  803. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  804. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  805. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  806. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  807. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  808. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  809. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  810. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  811. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  812. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  813. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  814. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  815. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  816. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  817. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  818. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  819. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  820. type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
  821. type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
  822. // Clock ID used in clock and timer functions.
  823. type X__clockid_t = int32 /* types.h:168:29 */
  824. // Timer ID returned by `timer_create'.
  825. type X__timer_t = uintptr /* types.h:171:12 */
  826. // Type to represent block size.
  827. type X__blksize_t = int32 /* types.h:174:29 */
  828. // Types from the Large File Support interface.
  829. // Type to count number of disk blocks.
  830. type X__blkcnt_t = int64 /* types.h:179:28 */
  831. type X__blkcnt64_t = int64 /* types.h:180:30 */
  832. // Type to count file system blocks.
  833. type X__fsblkcnt_t = uint64 /* types.h:183:30 */
  834. type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
  835. // Type to count file system nodes.
  836. type X__fsfilcnt_t = uint64 /* types.h:187:30 */
  837. type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
  838. // Type of miscellaneous file system fields.
  839. type X__fsword_t = int64 /* types.h:191:28 */
  840. type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
  841. // Signed long type used in system calls.
  842. type X__syscall_slong_t = int64 /* types.h:196:33 */
  843. // Unsigned long type used in system calls.
  844. type X__syscall_ulong_t = uint64 /* types.h:198:33 */
  845. // These few don't really vary by system, they always correspond
  846. //
  847. // to one of the other defined types.
  848. type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
  849. type X__caddr_t = uintptr /* types.h:203:14 */
  850. // Duplicates info from stdint.h but this is used in unistd.h.
  851. type X__intptr_t = int64 /* types.h:206:25 */
  852. // Duplicate info from sys/socket.h.
  853. type X__socklen_t = uint32 /* types.h:209:23 */
  854. // C99: An integer type that can be accessed as an atomic entity,
  855. //
  856. // even in the presence of asynchronous interrupts.
  857. // It is not currently necessary for this to be machine-specific.
  858. type X__sig_atomic_t = int32 /* types.h:214:13 */
  859. // Wide character type.
  860. // Locale-writers should change this as necessary to
  861. // be big enough to hold unique values not between 0 and 127,
  862. // and not (wchar_t) -1, for each defined multibyte character.
  863. // Define this type if we are doing the whole job,
  864. // or if we want this type in particular.
  865. // A null pointer constant.
  866. // bits/types.h -- definitions of __*_t types underlying *_t types.
  867. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  868. // This file is part of the GNU C Library.
  869. //
  870. // The GNU C Library is free software; you can redistribute it and/or
  871. // modify it under the terms of the GNU Lesser General Public
  872. // License as published by the Free Software Foundation; either
  873. // version 2.1 of the License, or (at your option) any later version.
  874. //
  875. // The GNU C Library is distributed in the hope that it will be useful,
  876. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  877. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  878. // Lesser General Public License for more details.
  879. //
  880. // You should have received a copy of the GNU Lesser General Public
  881. // License along with the GNU C Library; if not, see
  882. // <https://www.gnu.org/licenses/>.
  883. // Never include this file directly; use <sys/types.h> instead.
  884. // Returned by `time'.
  885. type Time_t = X__time_t /* time_t.h:7:18 */
  886. // NB: Include guard matches what <linux/time.h> uses.
  887. // bits/types.h -- definitions of __*_t types underlying *_t types.
  888. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  889. // This file is part of the GNU C Library.
  890. //
  891. // The GNU C Library is free software; you can redistribute it and/or
  892. // modify it under the terms of the GNU Lesser General Public
  893. // License as published by the Free Software Foundation; either
  894. // version 2.1 of the License, or (at your option) any later version.
  895. //
  896. // The GNU C Library is distributed in the hope that it will be useful,
  897. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  898. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  899. // Lesser General Public License for more details.
  900. //
  901. // You should have received a copy of the GNU Lesser General Public
  902. // License along with the GNU C Library; if not, see
  903. // <https://www.gnu.org/licenses/>.
  904. // Never include this file directly; use <sys/types.h> instead.
  905. // Endian macros for string.h functions
  906. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  907. // This file is part of the GNU C Library.
  908. //
  909. // The GNU C Library is free software; you can redistribute it and/or
  910. // modify it under the terms of the GNU Lesser General Public
  911. // License as published by the Free Software Foundation; either
  912. // version 2.1 of the License, or (at your option) any later version.
  913. //
  914. // The GNU C Library is distributed in the hope that it will be useful,
  915. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  916. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  917. // Lesser General Public License for more details.
  918. //
  919. // You should have received a copy of the GNU Lesser General Public
  920. // License along with the GNU C Library; if not, see
  921. // <http://www.gnu.org/licenses/>.
  922. // Definitions for byte order, according to significance of bytes,
  923. // from low addresses to high addresses. The value is what you get by
  924. // putting '4' in the most significant byte, '3' in the second most
  925. // significant byte, '2' in the second least significant byte, and '1'
  926. // in the least significant byte, and then writing down one digit for
  927. // each byte, starting with the byte at the lowest address at the left,
  928. // and proceeding to the byte with the highest address at the right.
  929. // This file defines `__BYTE_ORDER' for the particular machine.
  930. // AArch64 has selectable endianness.
  931. // Some machines may need to use a different endianness for floating point
  932. // values.
  933. // POSIX.1b structure for a time value. This is like a `struct timeval' but
  934. //
  935. // has nanoseconds instead of microseconds.
  936. type Timespec = struct {
  937. Ftv_sec X__time_t
  938. Ftv_nsec X__syscall_slong_t
  939. } /* struct_timespec.h:10:1 */
  940. type Pid_t = X__pid_t /* sched.h:38:17 */
  941. // Get system specific constant and data structure definitions.
  942. // Definitions of constants and data structure for POSIX 1003.1b-1993
  943. // scheduling interface.
  944. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  945. // This file is part of the GNU C Library.
  946. //
  947. // The GNU C Library is free software; you can redistribute it and/or
  948. // modify it under the terms of the GNU Lesser General Public
  949. // License as published by the Free Software Foundation; either
  950. // version 2.1 of the License, or (at your option) any later version.
  951. //
  952. // The GNU C Library is distributed in the hope that it will be useful,
  953. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  954. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  955. // Lesser General Public License for more details.
  956. //
  957. // You should have received a copy of the GNU Lesser General Public
  958. // License along with the GNU C Library; if not, see
  959. // <https://www.gnu.org/licenses/>.
  960. // Scheduling algorithms.
  961. // Sched parameter structure. Generic version.
  962. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  963. // This file is part of the GNU C Library.
  964. //
  965. // The GNU C Library is free software; you can redistribute it and/or
  966. // modify it under the terms of the GNU Lesser General Public
  967. // License as published by the Free Software Foundation; either
  968. // version 2.1 of the License, or (at your option) any later version.
  969. //
  970. // The GNU C Library is distributed in the hope that it will be useful,
  971. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  972. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  973. // Lesser General Public License for more details.
  974. //
  975. // You should have received a copy of the GNU Lesser General Public
  976. // License along with the GNU C Library; if not, see
  977. // <https://www.gnu.org/licenses/>.
  978. // Data structure to describe a process' schedulability.
  979. type Sched_param = struct{ Fsched_priority int32 } /* struct_sched_param.h:23:1 */
  980. // Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
  981. // scheduling interface.
  982. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  983. // This file is part of the GNU C Library.
  984. //
  985. // The GNU C Library is free software; you can redistribute it and/or
  986. // modify it under the terms of the GNU Lesser General Public
  987. // License as published by the Free Software Foundation; either
  988. // version 2.1 of the License, or (at your option) any later version.
  989. //
  990. // The GNU C Library is distributed in the hope that it will be useful,
  991. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  992. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  993. // Lesser General Public License for more details.
  994. //
  995. // You should have received a copy of the GNU Lesser General Public
  996. // License along with the GNU C Library; if not, see
  997. // <https://www.gnu.org/licenses/>.
  998. // Size definition for CPU sets.
  999. // Type for array elements in 'cpu_set_t'.
  1000. type X__cpu_mask = uint64 /* cpu-set.h:32:25 */
  1001. // Basic access functions.
  1002. // Data structure to describe CPU mask.
  1003. type Cpu_set_t = struct{ F__bits [16]X__cpu_mask } /* cpu-set.h:42:3 */
  1004. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1005. // This file is part of the GNU C Library.
  1006. //
  1007. // The GNU C Library is free software; you can redistribute it and/or
  1008. // modify it under the terms of the GNU Lesser General Public
  1009. // License as published by the Free Software Foundation; either
  1010. // version 2.1 of the License, or (at your option) any later version.
  1011. //
  1012. // The GNU C Library is distributed in the hope that it will be useful,
  1013. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1014. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1015. // Lesser General Public License for more details.
  1016. //
  1017. // You should have received a copy of the GNU Lesser General Public
  1018. // License along with the GNU C Library; if not, see
  1019. // <https://www.gnu.org/licenses/>.
  1020. // ISO C99 Standard: 7.23 Date and time <time.h>
  1021. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1022. // This file is part of the GNU C Library.
  1023. //
  1024. // The GNU C Library is free software; you can redistribute it and/or
  1025. // modify it under the terms of the GNU Lesser General Public
  1026. // License as published by the Free Software Foundation; either
  1027. // version 2.1 of the License, or (at your option) any later version.
  1028. //
  1029. // The GNU C Library is distributed in the hope that it will be useful,
  1030. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1031. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1032. // Lesser General Public License for more details.
  1033. //
  1034. // You should have received a copy of the GNU Lesser General Public
  1035. // License along with the GNU C Library; if not, see
  1036. // <https://www.gnu.org/licenses/>.
  1037. // Copyright (C) 1989-2020 Free Software Foundation, Inc.
  1038. //
  1039. // This file is part of GCC.
  1040. //
  1041. // GCC is free software; you can redistribute it and/or modify
  1042. // it under the terms of the GNU General Public License as published by
  1043. // the Free Software Foundation; either version 3, or (at your option)
  1044. // any later version.
  1045. //
  1046. // GCC is distributed in the hope that it will be useful,
  1047. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1048. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1049. // GNU General Public License for more details.
  1050. //
  1051. // Under Section 7 of GPL version 3, you are granted additional
  1052. // permissions described in the GCC Runtime Library Exception, version
  1053. // 3.1, as published by the Free Software Foundation.
  1054. //
  1055. // You should have received a copy of the GNU General Public License and
  1056. // a copy of the GCC Runtime Library Exception along with this program;
  1057. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  1058. // <http://www.gnu.org/licenses/>.
  1059. // ISO C Standard: 7.17 Common definitions <stddef.h>
  1060. // Any one of these symbols __need_* means that GNU libc
  1061. // wants us just to define one data type. So don't define
  1062. // the symbols that indicate this file's entire job has been done.
  1063. // This avoids lossage on SunOS but only if stdtypes.h comes first.
  1064. // There's no way to win with the other order! Sun lossage.
  1065. // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
  1066. // Just ignore it.
  1067. // On VxWorks, <type/vxTypesBase.h> may have defined macros like
  1068. // _TYPE_size_t which will typedef size_t. fixincludes patched the
  1069. // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
  1070. // not defined, and so that defining this macro defines _GCC_SIZE_T.
  1071. // If we find that the macros are still defined at this point, we must
  1072. // invoke them so that the type is defined as expected.
  1073. // In case nobody has defined these types, but we aren't running under
  1074. // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
  1075. // __WCHAR_TYPE__ have reasonable values. This can happen if the
  1076. // parts of GCC is compiled by an older compiler, that actually
  1077. // include gstddef.h, such as collect2.
  1078. // Signed type of difference of two pointers.
  1079. // Define this type if we are doing the whole job,
  1080. // or if we want this type in particular.
  1081. // Unsigned type of `sizeof' something.
  1082. // Define this type if we are doing the whole job,
  1083. // or if we want this type in particular.
  1084. // Wide character type.
  1085. // Locale-writers should change this as necessary to
  1086. // be big enough to hold unique values not between 0 and 127,
  1087. // and not (wchar_t) -1, for each defined multibyte character.
  1088. // Define this type if we are doing the whole job,
  1089. // or if we want this type in particular.
  1090. // A null pointer constant.
  1091. // This defines CLOCKS_PER_SEC, which is the number of processor clock
  1092. // ticks per second, and possibly a number of other constants.
  1093. // System-dependent timing definitions. Linux version.
  1094. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  1095. // This file is part of the GNU C Library.
  1096. //
  1097. // The GNU C Library is free software; you can redistribute it and/or
  1098. // modify it under the terms of the GNU Lesser General Public
  1099. // License as published by the Free Software Foundation; either
  1100. // version 2.1 of the License, or (at your option) any later version.
  1101. //
  1102. // The GNU C Library is distributed in the hope that it will be useful,
  1103. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1104. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1105. // Lesser General Public License for more details.
  1106. //
  1107. // You should have received a copy of the GNU Lesser General Public
  1108. // License along with the GNU C Library; if not, see
  1109. // <https://www.gnu.org/licenses/>.
  1110. // Never include this file directly; use <time.h> instead.
  1111. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1112. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1113. // This file is part of the GNU C Library.
  1114. //
  1115. // The GNU C Library is free software; you can redistribute it and/or
  1116. // modify it under the terms of the GNU Lesser General Public
  1117. // License as published by the Free Software Foundation; either
  1118. // version 2.1 of the License, or (at your option) any later version.
  1119. //
  1120. // The GNU C Library is distributed in the hope that it will be useful,
  1121. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1122. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1123. // Lesser General Public License for more details.
  1124. //
  1125. // You should have received a copy of the GNU Lesser General Public
  1126. // License along with the GNU C Library; if not, see
  1127. // <https://www.gnu.org/licenses/>.
  1128. // Never include this file directly; use <sys/types.h> instead.
  1129. // ISO/IEC 9899:1999 7.23.1: Components of time
  1130. // The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is
  1131. // the number per second of the value returned by the `clock' function.
  1132. // CAE XSH, Issue 4, Version 2: <time.h>
  1133. // The value of CLOCKS_PER_SEC is required to be 1 million on all
  1134. // XSI-conformant systems.
  1135. // Identifier for system-wide realtime clock.
  1136. // Monotonic system-wide clock.
  1137. // High-resolution timer from the CPU.
  1138. // Thread-specific CPU-time clock.
  1139. // Monotonic system-wide clock, not adjusted for frequency scaling.
  1140. // Identifier for system-wide realtime clock, updated only on ticks.
  1141. // Monotonic system-wide clock, updated only on ticks.
  1142. // Monotonic system-wide clock that includes time spent in suspension.
  1143. // Like CLOCK_REALTIME but also wakes suspended system.
  1144. // Like CLOCK_BOOTTIME but also wakes suspended system.
  1145. // Like CLOCK_REALTIME but in International Atomic Time.
  1146. // Flag to indicate time is absolute.
  1147. // Many of the typedefs and structs whose official home is this header
  1148. // may also need to be defined by other headers.
  1149. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1150. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1151. // This file is part of the GNU C Library.
  1152. //
  1153. // The GNU C Library is free software; you can redistribute it and/or
  1154. // modify it under the terms of the GNU Lesser General Public
  1155. // License as published by the Free Software Foundation; either
  1156. // version 2.1 of the License, or (at your option) any later version.
  1157. //
  1158. // The GNU C Library is distributed in the hope that it will be useful,
  1159. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1160. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1161. // Lesser General Public License for more details.
  1162. //
  1163. // You should have received a copy of the GNU Lesser General Public
  1164. // License along with the GNU C Library; if not, see
  1165. // <https://www.gnu.org/licenses/>.
  1166. // Never include this file directly; use <sys/types.h> instead.
  1167. // Returned by `clock'.
  1168. type Clock_t = X__clock_t /* clock_t.h:7:19 */
  1169. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1170. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1171. // This file is part of the GNU C Library.
  1172. //
  1173. // The GNU C Library is free software; you can redistribute it and/or
  1174. // modify it under the terms of the GNU Lesser General Public
  1175. // License as published by the Free Software Foundation; either
  1176. // version 2.1 of the License, or (at your option) any later version.
  1177. //
  1178. // The GNU C Library is distributed in the hope that it will be useful,
  1179. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1180. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1181. // Lesser General Public License for more details.
  1182. //
  1183. // You should have received a copy of the GNU Lesser General Public
  1184. // License along with the GNU C Library; if not, see
  1185. // <https://www.gnu.org/licenses/>.
  1186. // Never include this file directly; use <sys/types.h> instead.
  1187. // ISO C `broken-down time' structure.
  1188. type Tm = struct {
  1189. Ftm_sec int32
  1190. Ftm_min int32
  1191. Ftm_hour int32
  1192. Ftm_mday int32
  1193. Ftm_mon int32
  1194. Ftm_year int32
  1195. Ftm_wday int32
  1196. Ftm_yday int32
  1197. Ftm_isdst int32
  1198. F__ccgo_pad1 [4]byte
  1199. Ftm_gmtoff int64
  1200. Ftm_zone uintptr
  1201. } /* struct_tm.h:7:1 */
  1202. // NB: Include guard matches what <linux/time.h> uses.
  1203. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1204. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1205. // This file is part of the GNU C Library.
  1206. //
  1207. // The GNU C Library is free software; you can redistribute it and/or
  1208. // modify it under the terms of the GNU Lesser General Public
  1209. // License as published by the Free Software Foundation; either
  1210. // version 2.1 of the License, or (at your option) any later version.
  1211. //
  1212. // The GNU C Library is distributed in the hope that it will be useful,
  1213. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1214. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1215. // Lesser General Public License for more details.
  1216. //
  1217. // You should have received a copy of the GNU Lesser General Public
  1218. // License along with the GNU C Library; if not, see
  1219. // <https://www.gnu.org/licenses/>.
  1220. // Never include this file directly; use <sys/types.h> instead.
  1221. // Clock ID used in clock and timer functions.
  1222. type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
  1223. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1224. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1225. // This file is part of the GNU C Library.
  1226. //
  1227. // The GNU C Library is free software; you can redistribute it and/or
  1228. // modify it under the terms of the GNU Lesser General Public
  1229. // License as published by the Free Software Foundation; either
  1230. // version 2.1 of the License, or (at your option) any later version.
  1231. //
  1232. // The GNU C Library is distributed in the hope that it will be useful,
  1233. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1234. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1235. // Lesser General Public License for more details.
  1236. //
  1237. // You should have received a copy of the GNU Lesser General Public
  1238. // License along with the GNU C Library; if not, see
  1239. // <https://www.gnu.org/licenses/>.
  1240. // Never include this file directly; use <sys/types.h> instead.
  1241. // Timer ID returned by `timer_create'.
  1242. type Timer_t = X__timer_t /* timer_t.h:7:19 */
  1243. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1244. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1245. // This file is part of the GNU C Library.
  1246. //
  1247. // The GNU C Library is free software; you can redistribute it and/or
  1248. // modify it under the terms of the GNU Lesser General Public
  1249. // License as published by the Free Software Foundation; either
  1250. // version 2.1 of the License, or (at your option) any later version.
  1251. //
  1252. // The GNU C Library is distributed in the hope that it will be useful,
  1253. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1254. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1255. // Lesser General Public License for more details.
  1256. //
  1257. // You should have received a copy of the GNU Lesser General Public
  1258. // License along with the GNU C Library; if not, see
  1259. // <https://www.gnu.org/licenses/>.
  1260. // Never include this file directly; use <sys/types.h> instead.
  1261. // NB: Include guard matches what <linux/time.h> uses.
  1262. // POSIX.1b structure for timer start values and intervals.
  1263. type Itimerspec = struct {
  1264. Fit_interval struct {
  1265. Ftv_sec X__time_t
  1266. Ftv_nsec X__syscall_slong_t
  1267. }
  1268. Fit_value struct {
  1269. Ftv_sec X__time_t
  1270. Ftv_nsec X__syscall_slong_t
  1271. }
  1272. } /* struct_itimerspec.h:8:1 */
  1273. // Definition of locale_t.
  1274. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1275. // This file is part of the GNU C Library.
  1276. //
  1277. // The GNU C Library is free software; you can redistribute it and/or
  1278. // modify it under the terms of the GNU Lesser General Public
  1279. // License as published by the Free Software Foundation; either
  1280. // version 2.1 of the License, or (at your option) any later version.
  1281. //
  1282. // The GNU C Library is distributed in the hope that it will be useful,
  1283. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1284. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1285. // Lesser General Public License for more details.
  1286. //
  1287. // You should have received a copy of the GNU Lesser General Public
  1288. // License along with the GNU C Library; if not, see
  1289. // <https://www.gnu.org/licenses/>.
  1290. // Definition of struct __locale_struct and __locale_t.
  1291. // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1292. // This file is part of the GNU C Library.
  1293. // Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
  1294. //
  1295. // The GNU C Library is free software; you can redistribute it and/or
  1296. // modify it under the terms of the GNU Lesser General Public
  1297. // License as published by the Free Software Foundation; either
  1298. // version 2.1 of the License, or (at your option) any later version.
  1299. //
  1300. // The GNU C Library is distributed in the hope that it will be useful,
  1301. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1302. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1303. // Lesser General Public License for more details.
  1304. //
  1305. // You should have received a copy of the GNU Lesser General Public
  1306. // License along with the GNU C Library; if not, see
  1307. // <https://www.gnu.org/licenses/>.
  1308. // POSIX.1-2008: the locale_t type, representing a locale context
  1309. // (implementation-namespace version). This type should be treated
  1310. // as opaque by applications; some details are exposed for the sake of
  1311. // efficiency in e.g. ctype functions.
  1312. type X__locale_struct = struct {
  1313. F__locales [13]uintptr
  1314. F__ctype_b uintptr
  1315. F__ctype_tolower uintptr
  1316. F__ctype_toupper uintptr
  1317. F__names [13]uintptr
  1318. } /* __locale_t.h:28:1 */
  1319. type X__locale_t = uintptr /* __locale_t.h:42:32 */
  1320. type Locale_t = X__locale_t /* locale_t.h:24:20 */
  1321. // Endian macros for string.h functions
  1322. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1323. // This file is part of the GNU C Library.
  1324. //
  1325. // The GNU C Library is free software; you can redistribute it and/or
  1326. // modify it under the terms of the GNU Lesser General Public
  1327. // License as published by the Free Software Foundation; either
  1328. // version 2.1 of the License, or (at your option) any later version.
  1329. //
  1330. // The GNU C Library is distributed in the hope that it will be useful,
  1331. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1332. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1333. // Lesser General Public License for more details.
  1334. //
  1335. // You should have received a copy of the GNU Lesser General Public
  1336. // License along with the GNU C Library; if not, see
  1337. // <http://www.gnu.org/licenses/>.
  1338. // Declaration of common pthread types for all architectures.
  1339. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1340. // This file is part of the GNU C Library.
  1341. //
  1342. // The GNU C Library is free software; you can redistribute it and/or
  1343. // modify it under the terms of the GNU Lesser General Public
  1344. // License as published by the Free Software Foundation; either
  1345. // version 2.1 of the License, or (at your option) any later version.
  1346. //
  1347. // The GNU C Library is distributed in the hope that it will be useful,
  1348. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1349. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1350. // Lesser General Public License for more details.
  1351. //
  1352. // You should have received a copy of the GNU Lesser General Public
  1353. // License along with the GNU C Library; if not, see
  1354. // <https://www.gnu.org/licenses/>.
  1355. // For internal mutex and condition variable definitions.
  1356. // Common threading primitives definitions for both POSIX and C11.
  1357. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1358. // This file is part of the GNU C Library.
  1359. //
  1360. // The GNU C Library is free software; you can redistribute it and/or
  1361. // modify it under the terms of the GNU Lesser General Public
  1362. // License as published by the Free Software Foundation; either
  1363. // version 2.1 of the License, or (at your option) any later version.
  1364. //
  1365. // The GNU C Library is distributed in the hope that it will be useful,
  1366. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1367. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1368. // Lesser General Public License for more details.
  1369. //
  1370. // You should have received a copy of the GNU Lesser General Public
  1371. // License along with the GNU C Library; if not, see
  1372. // <https://www.gnu.org/licenses/>.
  1373. // Arch-specific definitions. Each architecture must define the following
  1374. // macros to define the expected sizes of pthread data types:
  1375. //
  1376. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1377. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1378. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1379. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1380. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1381. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1382. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1383. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1384. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1385. //
  1386. // The additional macro defines any constraint for the lock alignment
  1387. // inside the thread structures:
  1388. //
  1389. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1390. //
  1391. // Same idea but for the once locking primitive:
  1392. //
  1393. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1394. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1395. //
  1396. // This file is part of the GNU C Library.
  1397. //
  1398. // The GNU C Library is free software; you can redistribute it and/or
  1399. // modify it under the terms of the GNU Lesser General Public
  1400. // License as published by the Free Software Foundation; either
  1401. // version 2.1 of the License, or (at your option) any later version.
  1402. //
  1403. // The GNU C Library is distributed in the hope that it will be useful,
  1404. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1405. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1406. // Lesser General Public License for more details.
  1407. //
  1408. // You should have received a copy of the GNU Lesser General Public
  1409. // License along with the GNU C Library; if not, see
  1410. // <https://www.gnu.org/licenses/>.
  1411. // Endian macros for string.h functions
  1412. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1413. // This file is part of the GNU C Library.
  1414. //
  1415. // The GNU C Library is free software; you can redistribute it and/or
  1416. // modify it under the terms of the GNU Lesser General Public
  1417. // License as published by the Free Software Foundation; either
  1418. // version 2.1 of the License, or (at your option) any later version.
  1419. //
  1420. // The GNU C Library is distributed in the hope that it will be useful,
  1421. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1422. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1423. // Lesser General Public License for more details.
  1424. //
  1425. // You should have received a copy of the GNU Lesser General Public
  1426. // License along with the GNU C Library; if not, see
  1427. // <http://www.gnu.org/licenses/>.
  1428. // Common definition of pthread_mutex_t.
  1429. type X__pthread_internal_list = struct {
  1430. F__prev uintptr
  1431. F__next uintptr
  1432. } /* thread-shared-types.h:49:9 */
  1433. // Endian macros for string.h functions
  1434. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1435. // This file is part of the GNU C Library.
  1436. //
  1437. // The GNU C Library is free software; you can redistribute it and/or
  1438. // modify it under the terms of the GNU Lesser General Public
  1439. // License as published by the Free Software Foundation; either
  1440. // version 2.1 of the License, or (at your option) any later version.
  1441. //
  1442. // The GNU C Library is distributed in the hope that it will be useful,
  1443. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1444. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1445. // Lesser General Public License for more details.
  1446. //
  1447. // You should have received a copy of the GNU Lesser General Public
  1448. // License along with the GNU C Library; if not, see
  1449. // <http://www.gnu.org/licenses/>.
  1450. // Declaration of common pthread types for all architectures.
  1451. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1452. // This file is part of the GNU C Library.
  1453. //
  1454. // The GNU C Library is free software; you can redistribute it and/or
  1455. // modify it under the terms of the GNU Lesser General Public
  1456. // License as published by the Free Software Foundation; either
  1457. // version 2.1 of the License, or (at your option) any later version.
  1458. //
  1459. // The GNU C Library is distributed in the hope that it will be useful,
  1460. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1461. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1462. // Lesser General Public License for more details.
  1463. //
  1464. // You should have received a copy of the GNU Lesser General Public
  1465. // License along with the GNU C Library; if not, see
  1466. // <https://www.gnu.org/licenses/>.
  1467. // For internal mutex and condition variable definitions.
  1468. // Common threading primitives definitions for both POSIX and C11.
  1469. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1470. // This file is part of the GNU C Library.
  1471. //
  1472. // The GNU C Library is free software; you can redistribute it and/or
  1473. // modify it under the terms of the GNU Lesser General Public
  1474. // License as published by the Free Software Foundation; either
  1475. // version 2.1 of the License, or (at your option) any later version.
  1476. //
  1477. // The GNU C Library is distributed in the hope that it will be useful,
  1478. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1479. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1480. // Lesser General Public License for more details.
  1481. //
  1482. // You should have received a copy of the GNU Lesser General Public
  1483. // License along with the GNU C Library; if not, see
  1484. // <https://www.gnu.org/licenses/>.
  1485. // Arch-specific definitions. Each architecture must define the following
  1486. // macros to define the expected sizes of pthread data types:
  1487. //
  1488. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1489. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1490. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1491. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1492. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1493. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1494. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1495. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1496. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1497. //
  1498. // The additional macro defines any constraint for the lock alignment
  1499. // inside the thread structures:
  1500. //
  1501. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1502. //
  1503. // Same idea but for the once locking primitive:
  1504. //
  1505. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1506. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1507. //
  1508. // This file is part of the GNU C Library.
  1509. //
  1510. // The GNU C Library is free software; you can redistribute it and/or
  1511. // modify it under the terms of the GNU Lesser General Public
  1512. // License as published by the Free Software Foundation; either
  1513. // version 2.1 of the License, or (at your option) any later version.
  1514. //
  1515. // The GNU C Library is distributed in the hope that it will be useful,
  1516. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1517. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1518. // Lesser General Public License for more details.
  1519. //
  1520. // You should have received a copy of the GNU Lesser General Public
  1521. // License along with the GNU C Library; if not, see
  1522. // <https://www.gnu.org/licenses/>.
  1523. // Endian macros for string.h functions
  1524. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1525. // This file is part of the GNU C Library.
  1526. //
  1527. // The GNU C Library is free software; you can redistribute it and/or
  1528. // modify it under the terms of the GNU Lesser General Public
  1529. // License as published by the Free Software Foundation; either
  1530. // version 2.1 of the License, or (at your option) any later version.
  1531. //
  1532. // The GNU C Library is distributed in the hope that it will be useful,
  1533. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1534. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1535. // Lesser General Public License for more details.
  1536. //
  1537. // You should have received a copy of the GNU Lesser General Public
  1538. // License along with the GNU C Library; if not, see
  1539. // <http://www.gnu.org/licenses/>.
  1540. // Common definition of pthread_mutex_t.
  1541. type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1542. type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1543. type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1544. // Arch-specific mutex definitions. A generic implementation is provided
  1545. // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
  1546. // can override it by defining:
  1547. //
  1548. // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1549. // definition). It should contains at least the internal members
  1550. // defined in the generic version.
  1551. //
  1552. // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1553. // atomic operations.
  1554. //
  1555. // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1556. // It should initialize the mutex internal flag.
  1557. // Default mutex implementation struct definitions.
  1558. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1559. // This file is part of the GNU C Library.
  1560. //
  1561. // The GNU C Library is free software; you can redistribute it and/or
  1562. // modify it under the terms of the GNU Lesser General Public
  1563. // License as published by the Free Software Foundation; either
  1564. // version 2.1 of the License, or (at your option) any later version.
  1565. //
  1566. // The GNU C Library is distributed in the hope that it will be useful,
  1567. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1568. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1569. // Lesser General Public License for more details.
  1570. //
  1571. // You should have received a copy of the GNU Lesser General Public
  1572. // License along with the GNU C Library; if not, see
  1573. // <http://www.gnu.org/licenses/>.
  1574. // Generic struct for both POSIX and C11 mutexes. New ports are expected
  1575. // to use the default layout, however architecture can redefine it to
  1576. // add arch-specific extension (such as lock-elision). The struct have
  1577. // a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
  1578. type X__pthread_mutex_s = struct {
  1579. F__lock int32
  1580. F__count uint32
  1581. F__owner int32
  1582. F__nusers uint32
  1583. F__kind int32
  1584. F__spins int32
  1585. F__list X__pthread_list_t
  1586. } /* struct_mutex.h:27:1 */
  1587. // Arch-sepecific read-write lock definitions. A generic implementation is
  1588. // provided by struct_rwlock.h. If required, an architecture can override it
  1589. // by defining:
  1590. //
  1591. // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1592. // It should contain at least the internal members defined in the
  1593. // generic version.
  1594. //
  1595. // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1596. // It should initialize the rwlock internal type.
  1597. // AArch64 internal rwlock struct definitions.
  1598. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1599. //
  1600. // This file is part of the GNU C Library.
  1601. //
  1602. // The GNU C Library is free software; you can redistribute it and/or
  1603. // modify it under the terms of the GNU Lesser General Public
  1604. // License as published by the Free Software Foundation; either
  1605. // version 2.1 of the License, or (at your option) any later version.
  1606. //
  1607. // The GNU C Library is distributed in the hope that it will be useful,
  1608. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1609. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1610. // Lesser General Public License for more details.
  1611. //
  1612. // You should have received a copy of the GNU Lesser General Public
  1613. // License along with the GNU C Library; if not, see
  1614. // <http://www.gnu.org/licenses/>.
  1615. type X__pthread_rwlock_arch_t = struct {
  1616. F__readers uint32
  1617. F__writers uint32
  1618. F__wrphase_futex uint32
  1619. F__writers_futex uint32
  1620. F__pad3 uint32
  1621. F__pad4 uint32
  1622. F__cur_writer int32
  1623. F__shared int32
  1624. F__pad1 uint64
  1625. F__pad2 uint64
  1626. F__flags uint32
  1627. F__ccgo_pad1 [4]byte
  1628. } /* struct_rwlock.h:23:1 */
  1629. // Common definition of pthread_cond_t.
  1630. type X__pthread_cond_s = struct {
  1631. F__0 struct{ F__wseq uint64 }
  1632. F__8 struct{ F__g1_start uint64 }
  1633. F__g_refs [2]uint32
  1634. F__g_size [2]uint32
  1635. F__g1_orig_size uint32
  1636. F__wrefs uint32
  1637. F__g_signals [2]uint32
  1638. } /* thread-shared-types.h:92:1 */
  1639. // Thread identifiers. The structure of the attribute type is not
  1640. //
  1641. // exposed on purpose.
  1642. type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1643. // Data structures for mutex handling. The structure of the attribute
  1644. //
  1645. // type is not exposed on purpose.
  1646. type Pthread_mutexattr_t = struct {
  1647. F__ccgo_pad1 [0]uint32
  1648. F__size [8]uint8
  1649. } /* pthreadtypes.h:36:3 */
  1650. // Data structure for condition variable handling. The structure of
  1651. //
  1652. // the attribute type is not exposed on purpose.
  1653. type Pthread_condattr_t = struct {
  1654. F__ccgo_pad1 [0]uint32
  1655. F__size [8]uint8
  1656. } /* pthreadtypes.h:45:3 */
  1657. // Keys for thread-specific data
  1658. type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1659. // Once-only execution
  1660. type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1661. type Pthread_attr_t1 = struct {
  1662. F__ccgo_pad1 [0]uint64
  1663. F__size [64]uint8
  1664. } /* pthreadtypes.h:56:1 */
  1665. type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1666. type Pthread_mutex_t = struct {
  1667. F__data X__pthread_mutex_s
  1668. F__ccgo_pad1 [8]byte
  1669. } /* pthreadtypes.h:72:3 */
  1670. type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1671. // Data structure for reader-writer lock variable handling. The
  1672. //
  1673. // structure of the attribute type is deliberately not exposed.
  1674. type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1675. type Pthread_rwlockattr_t = struct {
  1676. F__ccgo_pad1 [0]uint64
  1677. F__size [8]uint8
  1678. } /* pthreadtypes.h:97:3 */
  1679. // POSIX spinlock data type.
  1680. type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1681. // POSIX barriers data type. The structure of the type is
  1682. //
  1683. // deliberately not exposed.
  1684. type Pthread_barrier_t = struct {
  1685. F__ccgo_pad1 [0]uint64
  1686. F__size [32]uint8
  1687. } /* pthreadtypes.h:112:3 */
  1688. type Pthread_barrierattr_t = struct {
  1689. F__ccgo_pad1 [0]uint32
  1690. F__size [8]uint8
  1691. } /* pthreadtypes.h:118:3 */
  1692. // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1693. //
  1694. // This file is part of the GNU C Library.
  1695. //
  1696. // The GNU C Library is free software; you can redistribute it and/or
  1697. // modify it under the terms of the GNU Lesser General Public License as
  1698. // published by the Free Software Foundation; either version 2.1 of the
  1699. // License, or (at your option) any later version.
  1700. //
  1701. // The GNU C Library is distributed in the hope that it will be useful,
  1702. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1703. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1704. // Lesser General Public License for more details.
  1705. //
  1706. // You should have received a copy of the GNU Lesser General Public
  1707. // License along with the GNU C Library; if not, see
  1708. // <https://www.gnu.org/licenses/>.
  1709. // Jump buffer contains:
  1710. //
  1711. // x19-x28, x29(fp), x30(lr), (x31)sp, d8-d15. Other registers are not
  1712. // saved.
  1713. type X__jmp_buf = [22]uint64 /* setjmp.h:30:42 */
  1714. // Conditional variable handling.
  1715. // Cleanup buffers
  1716. type X_pthread_cleanup_buffer = struct {
  1717. F__routine uintptr
  1718. F__arg uintptr
  1719. F__canceltype int32
  1720. F__ccgo_pad1 [4]byte
  1721. F__prev uintptr
  1722. } /* pthread.h:155:1 */
  1723. // Cancellation handling with integration into exception handling.
  1724. type X__pthread_unwind_buf_t = struct {
  1725. F__cancel_jmp_buf [1]struct {
  1726. F__cancel_jmp_buf X__jmp_buf
  1727. F__mask_was_saved int32
  1728. F__ccgo_pad1 [4]byte
  1729. }
  1730. F__pad [4]uintptr
  1731. } /* pthread.h:507:3 */
  1732. // No special attributes by default.
  1733. // Structure to hold the cleanup handler information.
  1734. type X__pthread_cleanup_frame = struct {
  1735. F__cancel_routine uintptr
  1736. F__cancel_arg uintptr
  1737. F__do_it int32
  1738. F__cancel_type int32
  1739. } /* pthread.h:516:1 */
  1740. var _ uint8 /* gen.c:2:13: */