pthread_linux_arm.go 84 KB

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