stdlib_linux_arm64.go 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617
  1. // Code generated by 'ccgo stdlib/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 stdlib/stdlib_linux_arm64.go -pkgname stdlib', DO NOT EDIT.
  2. package stdlib
  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. BIG_ENDIAN = 4321
  15. BYTE_ORDER = 1234
  16. EXIT_FAILURE = 1
  17. EXIT_SUCCESS = 0
  18. FD_SETSIZE = 1024
  19. LITTLE_ENDIAN = 1234
  20. PDP_ENDIAN = 3412
  21. RAND_MAX = 2147483647
  22. WCONTINUED = 8
  23. WEXITED = 4
  24. WNOHANG = 1
  25. WNOWAIT = 0x01000000
  26. WSTOPPED = 2
  27. WUNTRACED = 2
  28. X_ALLOCA_H = 1
  29. X_ATFILE_SOURCE = 1
  30. X_BITS_BYTESWAP_H = 1
  31. X_BITS_ENDIANNESS_H = 1
  32. X_BITS_ENDIAN_H = 1
  33. X_BITS_FLOATN_COMMON_H = 0
  34. X_BITS_FLOATN_H = 0
  35. X_BITS_PTHREADTYPES_ARCH_H = 1
  36. X_BITS_PTHREADTYPES_COMMON_H = 1
  37. X_BITS_STDINT_INTN_H = 1
  38. X_BITS_TIME64_H = 1
  39. X_BITS_TYPESIZES_H = 1
  40. X_BITS_TYPES_H = 1
  41. X_BITS_UINTN_IDENTITY_H = 1
  42. X_BSD_SIZE_T_ = 0
  43. X_BSD_SIZE_T_DEFINED_ = 0
  44. X_DEFAULT_SOURCE = 1
  45. X_ENDIAN_H = 1
  46. X_FEATURES_H = 1
  47. X_FILE_OFFSET_BITS = 64
  48. X_GCC_SIZE_T = 0
  49. X_GCC_WCHAR_T = 0
  50. X_LP64 = 1
  51. X_POSIX_C_SOURCE = 200809
  52. X_POSIX_SOURCE = 1
  53. X_RWLOCK_INTERNAL_H = 0
  54. X_SIZET_ = 0
  55. X_SIZE_T = 0
  56. X_SIZE_T_ = 0
  57. X_SIZE_T_DECLARED = 0
  58. X_SIZE_T_DEFINED = 0
  59. X_SIZE_T_DEFINED_ = 0
  60. X_STDC_PREDEF_H = 1
  61. X_STDLIB_H = 1
  62. X_STRUCT_TIMESPEC = 1
  63. X_SYS_CDEFS_H = 1
  64. X_SYS_SELECT_H = 1
  65. X_SYS_SIZE_T_H = 0
  66. X_SYS_TYPES_H = 1
  67. X_THREAD_MUTEX_INTERNAL_H = 1
  68. X_THREAD_SHARED_TYPES_H = 1
  69. X_T_SIZE = 0
  70. X_T_SIZE_ = 0
  71. X_T_WCHAR = 0
  72. X_T_WCHAR_ = 0
  73. X_WCHAR_T = 0
  74. X_WCHAR_T_ = 0
  75. X_WCHAR_T_DECLARED = 0
  76. X_WCHAR_T_DEFINED = 0
  77. X_WCHAR_T_DEFINED_ = 0
  78. X_WCHAR_T_H = 0
  79. Linux = 1
  80. Unix = 1
  81. )
  82. // A null pointer constant.
  83. // XPG requires a few symbols from <sys/wait.h> being defined.
  84. // Definitions of flag bits for `waitpid' et al.
  85. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  86. // This file is part of the GNU C Library.
  87. //
  88. // The GNU C Library is free software; you can redistribute it and/or
  89. // modify it under the terms of the GNU Lesser General Public
  90. // License as published by the Free Software Foundation; either
  91. // version 2.1 of the License, or (at your option) any later version.
  92. //
  93. // The GNU C Library is distributed in the hope that it will be useful,
  94. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  95. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  96. // Lesser General Public License for more details.
  97. //
  98. // You should have received a copy of the GNU Lesser General Public
  99. // License along with the GNU C Library; if not, see
  100. // <https://www.gnu.org/licenses/>.
  101. // Bits in the third argument to `waitpid'.
  102. // Bits in the fourth argument to `waitid'.
  103. // The following values are used by the `waitid' function.
  104. // The Linux kernel defines these bare, rather than an enum,
  105. // which causes a conflict if the include order is reversed.
  106. const ( /* waitflags.h:52:1: */
  107. P_ALL = 0 // Wait for any child.
  108. P_PID = 1 // Wait for specified process.
  109. P_PGID = 2
  110. )
  111. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  112. type Size_t = uint64 /* <builtin>:9:23 */
  113. type Wchar_t = uint32 /* <builtin>:15:24 */
  114. type X__int128_t = struct {
  115. Flo int64
  116. Fhi int64
  117. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  118. type X__uint128_t = struct {
  119. Flo uint64
  120. Fhi uint64
  121. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  122. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  123. type X__float128 = float64 /* <builtin>:47:21 */
  124. // A null pointer constant.
  125. // XPG requires a few symbols from <sys/wait.h> being defined.
  126. // Definitions of flag bits for `waitpid' et al.
  127. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  128. // This file is part of the GNU C Library.
  129. //
  130. // The GNU C Library is free software; you can redistribute it and/or
  131. // modify it under the terms of the GNU Lesser General Public
  132. // License as published by the Free Software Foundation; either
  133. // version 2.1 of the License, or (at your option) any later version.
  134. //
  135. // The GNU C Library is distributed in the hope that it will be useful,
  136. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  137. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  138. // Lesser General Public License for more details.
  139. //
  140. // You should have received a copy of the GNU Lesser General Public
  141. // License along with the GNU C Library; if not, see
  142. // <https://www.gnu.org/licenses/>.
  143. // Bits in the third argument to `waitpid'.
  144. // Bits in the fourth argument to `waitid'.
  145. // The following values are used by the `waitid' function.
  146. // The Linux kernel defines these bare, rather than an enum,
  147. // which causes a conflict if the include order is reversed.
  148. type Idtype_t = uint32 /* waitflags.h:57:3 */
  149. // Definitions of status bits for `wait' et al.
  150. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  151. // This file is part of the GNU C Library.
  152. //
  153. // The GNU C Library is free software; you can redistribute it and/or
  154. // modify it under the terms of the GNU Lesser General Public
  155. // License as published by the Free Software Foundation; either
  156. // version 2.1 of the License, or (at your option) any later version.
  157. //
  158. // The GNU C Library is distributed in the hope that it will be useful,
  159. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  160. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  161. // Lesser General Public License for more details.
  162. //
  163. // You should have received a copy of the GNU Lesser General Public
  164. // License along with the GNU C Library; if not, see
  165. // <https://www.gnu.org/licenses/>.
  166. // Everything extant so far uses these same bits.
  167. // If WIFEXITED(STATUS), the low-order 8 bits of the status.
  168. // If WIFSIGNALED(STATUS), the terminating signal.
  169. // If WIFSTOPPED(STATUS), the signal that stopped the child.
  170. // Nonzero if STATUS indicates normal termination.
  171. // Nonzero if STATUS indicates termination by a signal.
  172. // Nonzero if STATUS indicates the child is stopped.
  173. // Nonzero if STATUS indicates the child continued after a stop. We only
  174. // define this if <bits/waitflags.h> provides the WCONTINUED flag bit.
  175. // Nonzero if STATUS indicates the child dumped core.
  176. // Macros for constructing status values.
  177. // Define the macros <sys/wait.h> also would define this way.
  178. // _FloatN API tests for enablement.
  179. // Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
  180. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  181. // This file is part of the GNU C Library.
  182. //
  183. // The GNU C Library is free software; you can redistribute it and/or
  184. // modify it under the terms of the GNU Lesser General Public
  185. // License as published by the Free Software Foundation; either
  186. // version 2.1 of the License, or (at your option) any later version.
  187. //
  188. // The GNU C Library is distributed in the hope that it will be useful,
  189. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  190. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  191. // Lesser General Public License for more details.
  192. //
  193. // You should have received a copy of the GNU Lesser General Public
  194. // License along with the GNU C Library; if not, see
  195. // <https://www.gnu.org/licenses/>.
  196. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  197. // This file is part of the GNU C Library.
  198. //
  199. // The GNU C Library is free software; you can redistribute it and/or
  200. // modify it under the terms of the GNU Lesser General Public
  201. // License as published by the Free Software Foundation; either
  202. // version 2.1 of the License, or (at your option) any later version.
  203. //
  204. // The GNU C Library is distributed in the hope that it will be useful,
  205. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  206. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  207. // Lesser General Public License for more details.
  208. //
  209. // You should have received a copy of the GNU Lesser General Public
  210. // License along with the GNU C Library; if not, see
  211. // <https://www.gnu.org/licenses/>.
  212. // Properties of long double type. ldbl-128 version.
  213. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  214. // This file is part of the GNU C Library.
  215. //
  216. // The GNU C Library is free software; you can redistribute it and/or
  217. // modify it under the terms of the GNU Lesser General Public
  218. // License published by the Free Software Foundation; either
  219. // version 2.1 of the License, or (at your option) any later version.
  220. //
  221. // The GNU C Library is distributed in the hope that it will be useful,
  222. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  223. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  224. // Lesser General Public License for more details.
  225. //
  226. // You should have received a copy of the GNU Lesser General Public
  227. // License along with the GNU C Library; if not, see
  228. // <https://www.gnu.org/licenses/>.
  229. // long double is distinct from double, so there is nothing to
  230. // define here.
  231. // Defined to 1 if the current compiler invocation provides a
  232. // floating-point type with the IEEE 754 binary128 format, and this
  233. // glibc includes corresponding *f128 interfaces for it.
  234. // Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct
  235. // from the default float, double and long double types in this glibc.
  236. // Defined to 1 if the current compiler invocation provides a
  237. // floating-point type with the right format for _Float64x, and this
  238. // glibc includes corresponding *f64x interfaces for it.
  239. // Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format
  240. // of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has
  241. // the format of _Float128, which must be different from that of long
  242. // double.
  243. // Defined to concatenate the literal suffix to be used with _Float128
  244. // types, if __HAVE_FLOAT128 is 1.
  245. // Defined to a complex binary128 type if __HAVE_FLOAT128 is 1.
  246. // The remaining of this file provides support for older compilers.
  247. // The type _Float128 exists only since GCC 7.0.
  248. // Various built-in functions do not exist before GCC 7.0.
  249. // Macros to control TS 18661-3 glibc features where the same
  250. // definitions are appropriate for all platforms.
  251. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  252. // This file is part of the GNU C Library.
  253. //
  254. // The GNU C Library is free software; you can redistribute it and/or
  255. // modify it under the terms of the GNU Lesser General Public
  256. // License as published by the Free Software Foundation; either
  257. // version 2.1 of the License, or (at your option) any later version.
  258. //
  259. // The GNU C Library is distributed in the hope that it will be useful,
  260. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  261. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  262. // Lesser General Public License for more details.
  263. //
  264. // You should have received a copy of the GNU Lesser General Public
  265. // License along with the GNU C Library; if not, see
  266. // <https://www.gnu.org/licenses/>.
  267. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  268. // This file is part of the GNU C Library.
  269. //
  270. // The GNU C Library is free software; you can redistribute it and/or
  271. // modify it under the terms of the GNU Lesser General Public
  272. // License as published by the Free Software Foundation; either
  273. // version 2.1 of the License, or (at your option) any later version.
  274. //
  275. // The GNU C Library is distributed in the hope that it will be useful,
  276. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  277. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  278. // Lesser General Public License for more details.
  279. //
  280. // You should have received a copy of the GNU Lesser General Public
  281. // License along with the GNU C Library; if not, see
  282. // <https://www.gnu.org/licenses/>.
  283. // Properties of long double type. ldbl-128 version.
  284. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  285. // This file is part of the GNU C Library.
  286. //
  287. // The GNU C Library is free software; you can redistribute it and/or
  288. // modify it under the terms of the GNU Lesser General Public
  289. // License published by the Free Software Foundation; either
  290. // version 2.1 of the License, or (at your option) any later version.
  291. //
  292. // The GNU C Library is distributed in the hope that it will be useful,
  293. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  294. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  295. // Lesser General Public License for more details.
  296. //
  297. // You should have received a copy of the GNU Lesser General Public
  298. // License along with the GNU C Library; if not, see
  299. // <https://www.gnu.org/licenses/>.
  300. // long double is distinct from double, so there is nothing to
  301. // define here.
  302. // This header should be included at the bottom of each bits/floatn.h.
  303. // It defines the following macros for each _FloatN and _FloatNx type,
  304. // where the same definitions, or definitions based only on the macros
  305. // in bits/floatn.h, are appropriate for all glibc configurations.
  306. // Defined to 1 if the current compiler invocation provides a
  307. // floating-point type with the right format for this type, and this
  308. // glibc includes corresponding *fN or *fNx interfaces for it.
  309. // Defined to 1 if the corresponding __HAVE_<type> macro is 1 and the
  310. // type is the first with its format in the sequence of (the default
  311. // choices for) float, double, long double, _Float16, _Float32,
  312. // _Float64, _Float128, _Float32x, _Float64x, _Float128x for this
  313. // glibc; that is, if functions present once per floating-point format
  314. // rather than once per type are present for this type.
  315. //
  316. // All configurations supported by glibc have _Float32 the same format
  317. // as float, _Float64 and _Float32x the same format as double, the
  318. // _Float64x the same format as either long double or _Float128. No
  319. // configurations support _Float128x or, as of GCC 7, have compiler
  320. // support for a type meeting the requirements for _Float128x.
  321. // Defined to 1 if the corresponding _FloatN type is not binary compatible
  322. // with the corresponding ISO C type in the current compilation unit as
  323. // opposed to __HAVE_DISTINCT_FLOATN, which indicates the default types built
  324. // in glibc.
  325. // Defined to 1 if any _FloatN or _FloatNx types that are not
  326. // ABI-distinct are however distinct types at the C language level (so
  327. // for the purposes of __builtin_types_compatible_p and _Generic).
  328. // Defined to concatenate the literal suffix to be used with _FloatN
  329. // or _FloatNx types, if __HAVE_<type> is 1. The corresponding
  330. // literal suffixes exist since GCC 7, for C only.
  331. // Defined to a complex type if __HAVE_<type> is 1.
  332. // The remaining of this file provides support for older compilers.
  333. // If double, long double and _Float64 all have the same set of
  334. // values, TS 18661-3 requires the usual arithmetic conversions on
  335. // long double and _Float64 to produce _Float64. For this to be the
  336. // case when building with a compiler without a distinct _Float64
  337. // type, _Float64 must be a typedef for long double, not for
  338. // double.
  339. // Returned by `div'.
  340. type Div_t = struct {
  341. Fquot int32
  342. Frem int32
  343. } /* stdlib.h:62:5 */
  344. // Returned by `ldiv'.
  345. type Ldiv_t = struct {
  346. Fquot int64
  347. Frem int64
  348. } /* stdlib.h:70:5 */
  349. // Returned by `lldiv'.
  350. type Lldiv_t = struct {
  351. Fquot int64
  352. Frem int64
  353. } /* stdlib.h:80:5 */
  354. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  355. // This file is part of the GNU C Library.
  356. //
  357. // The GNU C Library is free software; you can redistribute it and/or
  358. // modify it under the terms of the GNU Lesser General Public
  359. // License as published by the Free Software Foundation; either
  360. // version 2.1 of the License, or (at your option) any later version.
  361. //
  362. // The GNU C Library is distributed in the hope that it will be useful,
  363. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  364. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  365. // Lesser General Public License for more details.
  366. //
  367. // You should have received a copy of the GNU Lesser General Public
  368. // License along with the GNU C Library; if not, see
  369. // <https://www.gnu.org/licenses/>.
  370. // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
  371. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  372. // This file is part of the GNU C Library.
  373. //
  374. // The GNU C Library is free software; you can redistribute it and/or
  375. // modify it under the terms of the GNU Lesser General Public
  376. // License as published by the Free Software Foundation; either
  377. // version 2.1 of the License, or (at your option) any later version.
  378. //
  379. // The GNU C Library is distributed in the hope that it will be useful,
  380. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  381. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  382. // Lesser General Public License for more details.
  383. //
  384. // You should have received a copy of the GNU Lesser General Public
  385. // License along with the GNU C Library; if not, see
  386. // <https://www.gnu.org/licenses/>.
  387. // bits/types.h -- definitions of __*_t types underlying *_t types.
  388. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  389. // This file is part of the GNU C Library.
  390. //
  391. // The GNU C Library is free software; you can redistribute it and/or
  392. // modify it under the terms of the GNU Lesser General Public
  393. // License as published by the Free Software Foundation; either
  394. // version 2.1 of the License, or (at your option) any later version.
  395. //
  396. // The GNU C Library is distributed in the hope that it will be useful,
  397. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  398. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  399. // Lesser General Public License for more details.
  400. //
  401. // You should have received a copy of the GNU Lesser General Public
  402. // License along with the GNU C Library; if not, see
  403. // <https://www.gnu.org/licenses/>.
  404. // Never include this file directly; use <sys/types.h> instead.
  405. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  406. // This file is part of the GNU C Library.
  407. //
  408. // The GNU C Library is free software; you can redistribute it and/or
  409. // modify it under the terms of the GNU Lesser General Public
  410. // License as published by the Free Software Foundation; either
  411. // version 2.1 of the License, or (at your option) any later version.
  412. //
  413. // The GNU C Library is distributed in the hope that it will be useful,
  414. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  415. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  416. // Lesser General Public License for more details.
  417. //
  418. // You should have received a copy of the GNU Lesser General Public
  419. // License along with the GNU C Library; if not, see
  420. // <https://www.gnu.org/licenses/>.
  421. // Determine the wordsize from the preprocessor defines.
  422. //
  423. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  424. // This file is part of the GNU C Library.
  425. //
  426. // The GNU C Library is free software; you can redistribute it and/or
  427. // modify it under the terms of the GNU Lesser General Public
  428. // License as published by the Free Software Foundation; either
  429. // version 2.1 of the License, or (at your option) any later version.
  430. //
  431. // The GNU C Library is distributed in the hope that it will be useful,
  432. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  433. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  434. // Lesser General Public License for more details.
  435. //
  436. // You should have received a copy of the GNU Lesser General Public
  437. // License along with the GNU C Library; if not, see
  438. // <https://www.gnu.org/licenses/>.
  439. // Bit size of the time_t type at glibc build time, general case.
  440. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  441. // This file is part of the GNU C Library.
  442. //
  443. // The GNU C Library is free software; you can redistribute it and/or
  444. // modify it under the terms of the GNU Lesser General Public
  445. // License as published by the Free Software Foundation; either
  446. // version 2.1 of the License, or (at your option) any later version.
  447. //
  448. // The GNU C Library is distributed in the hope that it will be useful,
  449. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  450. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  451. // Lesser General Public License for more details.
  452. //
  453. // You should have received a copy of the GNU Lesser General Public
  454. // License along with the GNU C Library; if not, see
  455. // <https://www.gnu.org/licenses/>.
  456. // Determine the wordsize from the preprocessor defines.
  457. //
  458. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  459. // This file is part of the GNU C Library.
  460. //
  461. // The GNU C Library is free software; you can redistribute it and/or
  462. // modify it under the terms of the GNU Lesser General Public
  463. // License as published by the Free Software Foundation; either
  464. // version 2.1 of the License, or (at your option) any later version.
  465. //
  466. // The GNU C Library is distributed in the hope that it will be useful,
  467. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  468. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  469. // Lesser General Public License for more details.
  470. //
  471. // You should have received a copy of the GNU Lesser General Public
  472. // License along with the GNU C Library; if not, see
  473. // <https://www.gnu.org/licenses/>.
  474. // Size in bits of the 'time_t' type of the default ABI.
  475. // Convenience types.
  476. type X__u_char = uint8 /* types.h:31:23 */
  477. type X__u_short = uint16 /* types.h:32:28 */
  478. type X__u_int = uint32 /* types.h:33:22 */
  479. type X__u_long = uint64 /* types.h:34:27 */
  480. // Fixed-size types, underlying types depend on word size and compiler.
  481. type X__int8_t = int8 /* types.h:37:21 */
  482. type X__uint8_t = uint8 /* types.h:38:23 */
  483. type X__int16_t = int16 /* types.h:39:26 */
  484. type X__uint16_t = uint16 /* types.h:40:28 */
  485. type X__int32_t = int32 /* types.h:41:20 */
  486. type X__uint32_t = uint32 /* types.h:42:22 */
  487. type X__int64_t = int64 /* types.h:44:25 */
  488. type X__uint64_t = uint64 /* types.h:45:27 */
  489. // Smallest types with at least a given width.
  490. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  491. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  492. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  493. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  494. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  495. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  496. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  497. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  498. // quad_t is also 64 bits.
  499. type X__quad_t = int64 /* types.h:63:18 */
  500. type X__u_quad_t = uint64 /* types.h:64:27 */
  501. // Largest integral types.
  502. type X__intmax_t = int64 /* types.h:72:18 */
  503. type X__uintmax_t = uint64 /* types.h:73:27 */
  504. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  505. // macros for each of the OS types we define below. The definitions
  506. // of those macros must use the following macros for underlying types.
  507. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  508. // variants of each of the following integer types on this machine.
  509. //
  510. // 16 -- "natural" 16-bit type (always short)
  511. // 32 -- "natural" 32-bit type (always int)
  512. // 64 -- "natural" 64-bit type (long or long long)
  513. // LONG32 -- 32-bit type, traditionally long
  514. // QUAD -- 64-bit type, traditionally long long
  515. // WORD -- natural type of __WORDSIZE bits (int or long)
  516. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  517. //
  518. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  519. // conventional uses of `long' or `long long' type modifiers match the
  520. // types we define, even when a less-adorned type would be the same size.
  521. // This matters for (somewhat) portably writing printf/scanf formats for
  522. // these types, where using the appropriate l or ll format modifiers can
  523. // make the typedefs and the formats match up across all GNU platforms. If
  524. // we used `long' when it's 64 bits where `long long' is expected, then the
  525. // compiler would warn about the formats not matching the argument types,
  526. // and the programmer changing them to shut up the compiler would break the
  527. // program's portability.
  528. //
  529. // Here we assume what is presently the case in all the GCC configurations
  530. // we support: long long is always 64 bits, long is always word/address size,
  531. // and int is always 32 bits.
  532. // No need to mark the typedef with __extension__.
  533. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
  534. // Copyright (C) 2011-2020 Free Software Foundation, Inc.
  535. // This file is part of the GNU C Library.
  536. // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
  537. //
  538. // The GNU C Library is free software; you can redistribute it and/or
  539. // modify it under the terms of the GNU Lesser General Public
  540. // License as published by the Free Software Foundation; either
  541. // version 2.1 of the License, or (at your option) any later version.
  542. //
  543. // The GNU C Library is distributed in the hope that it will be useful,
  544. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  545. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  546. // Lesser General Public License for more details.
  547. //
  548. // You should have received a copy of the GNU Lesser General Public
  549. // License along with the GNU C Library. If not, see
  550. // <https://www.gnu.org/licenses/>.
  551. // See <bits/types.h> for the meaning of these macros. This file exists so
  552. // that <bits/types.h> need not vary across different GNU platforms.
  553. // Tell the libc code that off_t and off64_t are actually the same type
  554. // for all ABI purposes, even if possibly expressed as different base types
  555. // for C type-checking purposes.
  556. // Same for ino_t and ino64_t.
  557. // And for __rlim_t and __rlim64_t.
  558. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  559. // Number of descriptors that can fit in an `fd_set'.
  560. // bits/time64.h -- underlying types for __time64_t. Generic version.
  561. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  562. // This file is part of the GNU C Library.
  563. //
  564. // The GNU C Library is free software; you can redistribute it and/or
  565. // modify it under the terms of the GNU Lesser General Public
  566. // License as published by the Free Software Foundation; either
  567. // version 2.1 of the License, or (at your option) any later version.
  568. //
  569. // The GNU C Library is distributed in the hope that it will be useful,
  570. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  571. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  572. // Lesser General Public License for more details.
  573. //
  574. // You should have received a copy of the GNU Lesser General Public
  575. // License along with the GNU C Library; if not, see
  576. // <https://www.gnu.org/licenses/>.
  577. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  578. // If we already have 64-bit time type then use it.
  579. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  580. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  581. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  582. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  583. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  584. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  585. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  586. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  587. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  588. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  589. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  590. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  591. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  592. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  593. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  594. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  595. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  596. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  597. type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
  598. type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
  599. // Clock ID used in clock and timer functions.
  600. type X__clockid_t = int32 /* types.h:168:29 */
  601. // Timer ID returned by `timer_create'.
  602. type X__timer_t = uintptr /* types.h:171:12 */
  603. // Type to represent block size.
  604. type X__blksize_t = int32 /* types.h:174:29 */
  605. // Types from the Large File Support interface.
  606. // Type to count number of disk blocks.
  607. type X__blkcnt_t = int64 /* types.h:179:28 */
  608. type X__blkcnt64_t = int64 /* types.h:180:30 */
  609. // Type to count file system blocks.
  610. type X__fsblkcnt_t = uint64 /* types.h:183:30 */
  611. type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
  612. // Type to count file system nodes.
  613. type X__fsfilcnt_t = uint64 /* types.h:187:30 */
  614. type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
  615. // Type of miscellaneous file system fields.
  616. type X__fsword_t = int64 /* types.h:191:28 */
  617. type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
  618. // Signed long type used in system calls.
  619. type X__syscall_slong_t = int64 /* types.h:196:33 */
  620. // Unsigned long type used in system calls.
  621. type X__syscall_ulong_t = uint64 /* types.h:198:33 */
  622. // These few don't really vary by system, they always correspond
  623. //
  624. // to one of the other defined types.
  625. type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
  626. type X__caddr_t = uintptr /* types.h:203:14 */
  627. // Duplicates info from stdint.h but this is used in unistd.h.
  628. type X__intptr_t = int64 /* types.h:206:25 */
  629. // Duplicate info from sys/socket.h.
  630. type X__socklen_t = uint32 /* types.h:209:23 */
  631. // C99: An integer type that can be accessed as an atomic entity,
  632. //
  633. // even in the presence of asynchronous interrupts.
  634. // It is not currently necessary for this to be machine-specific.
  635. type X__sig_atomic_t = int32 /* types.h:214:13 */
  636. // Seconds since the Epoch, visible to user code when time_t is too
  637. // narrow only for consistency with the old way of widening too-narrow
  638. // types. User code should never use __time64_t.
  639. type U_char = X__u_char /* types.h:33:18 */
  640. type U_short = X__u_short /* types.h:34:19 */
  641. type U_int = X__u_int /* types.h:35:17 */
  642. type U_long = X__u_long /* types.h:36:18 */
  643. type Quad_t = X__quad_t /* types.h:37:18 */
  644. type U_quad_t = X__u_quad_t /* types.h:38:20 */
  645. type Fsid_t = X__fsid_t /* types.h:39:18 */
  646. type Loff_t = X__loff_t /* types.h:42:18 */
  647. type Ino_t = X__ino64_t /* types.h:49:19 */
  648. type Dev_t = X__dev_t /* types.h:59:17 */
  649. type Gid_t = X__gid_t /* types.h:64:17 */
  650. type Mode_t = X__mode_t /* types.h:69:18 */
  651. type Nlink_t = X__nlink_t /* types.h:74:19 */
  652. type Uid_t = X__uid_t /* types.h:79:17 */
  653. type Off_t = X__off64_t /* types.h:87:19 */
  654. type Pid_t = X__pid_t /* types.h:97:17 */
  655. type Id_t = X__id_t /* types.h:103:16 */
  656. type Ssize_t = X__ssize_t /* types.h:108:19 */
  657. type Daddr_t = X__daddr_t /* types.h:114:19 */
  658. type Caddr_t = X__caddr_t /* types.h:115:19 */
  659. type Key_t = X__key_t /* types.h:121:17 */
  660. // bits/types.h -- definitions of __*_t types underlying *_t types.
  661. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  662. // This file is part of the GNU C Library.
  663. //
  664. // The GNU C Library is free software; you can redistribute it and/or
  665. // modify it under the terms of the GNU Lesser General Public
  666. // License as published by the Free Software Foundation; either
  667. // version 2.1 of the License, or (at your option) any later version.
  668. //
  669. // The GNU C Library is distributed in the hope that it will be useful,
  670. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  671. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  672. // Lesser General Public License for more details.
  673. //
  674. // You should have received a copy of the GNU Lesser General Public
  675. // License along with the GNU C Library; if not, see
  676. // <https://www.gnu.org/licenses/>.
  677. // Never include this file directly; use <sys/types.h> instead.
  678. // Returned by `clock'.
  679. type Clock_t = X__clock_t /* clock_t.h:7:19 */
  680. // bits/types.h -- definitions of __*_t types underlying *_t types.
  681. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  682. // This file is part of the GNU C Library.
  683. //
  684. // The GNU C Library is free software; you can redistribute it and/or
  685. // modify it under the terms of the GNU Lesser General Public
  686. // License as published by the Free Software Foundation; either
  687. // version 2.1 of the License, or (at your option) any later version.
  688. //
  689. // The GNU C Library is distributed in the hope that it will be useful,
  690. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  691. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  692. // Lesser General Public License for more details.
  693. //
  694. // You should have received a copy of the GNU Lesser General Public
  695. // License along with the GNU C Library; if not, see
  696. // <https://www.gnu.org/licenses/>.
  697. // Never include this file directly; use <sys/types.h> instead.
  698. // Clock ID used in clock and timer functions.
  699. type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
  700. // bits/types.h -- definitions of __*_t types underlying *_t types.
  701. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  702. // This file is part of the GNU C Library.
  703. //
  704. // The GNU C Library is free software; you can redistribute it and/or
  705. // modify it under the terms of the GNU Lesser General Public
  706. // License as published by the Free Software Foundation; either
  707. // version 2.1 of the License, or (at your option) any later version.
  708. //
  709. // The GNU C Library is distributed in the hope that it will be useful,
  710. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  711. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  712. // Lesser General Public License for more details.
  713. //
  714. // You should have received a copy of the GNU Lesser General Public
  715. // License along with the GNU C Library; if not, see
  716. // <https://www.gnu.org/licenses/>.
  717. // Never include this file directly; use <sys/types.h> instead.
  718. // Returned by `time'.
  719. type Time_t = X__time_t /* time_t.h:7:18 */
  720. // bits/types.h -- definitions of __*_t types underlying *_t types.
  721. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  722. // This file is part of the GNU C Library.
  723. //
  724. // The GNU C Library is free software; you can redistribute it and/or
  725. // modify it under the terms of the GNU Lesser General Public
  726. // License as published by the Free Software Foundation; either
  727. // version 2.1 of the License, or (at your option) any later version.
  728. //
  729. // The GNU C Library is distributed in the hope that it will be useful,
  730. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  731. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  732. // Lesser General Public License for more details.
  733. //
  734. // You should have received a copy of the GNU Lesser General Public
  735. // License along with the GNU C Library; if not, see
  736. // <https://www.gnu.org/licenses/>.
  737. // Never include this file directly; use <sys/types.h> instead.
  738. // Timer ID returned by `timer_create'.
  739. type Timer_t = X__timer_t /* timer_t.h:7:19 */
  740. // Copyright (C) 1989-2020 Free Software Foundation, Inc.
  741. //
  742. // This file is part of GCC.
  743. //
  744. // GCC is free software; you can redistribute it and/or modify
  745. // it under the terms of the GNU General Public License as published by
  746. // the Free Software Foundation; either version 3, or (at your option)
  747. // any later version.
  748. //
  749. // GCC is distributed in the hope that it will be useful,
  750. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  751. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  752. // GNU General Public License for more details.
  753. //
  754. // Under Section 7 of GPL version 3, you are granted additional
  755. // permissions described in the GCC Runtime Library Exception, version
  756. // 3.1, as published by the Free Software Foundation.
  757. //
  758. // You should have received a copy of the GNU General Public License and
  759. // a copy of the GCC Runtime Library Exception along with this program;
  760. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  761. // <http://www.gnu.org/licenses/>.
  762. // ISO C Standard: 7.17 Common definitions <stddef.h>
  763. // Any one of these symbols __need_* means that GNU libc
  764. // wants us just to define one data type. So don't define
  765. // the symbols that indicate this file's entire job has been done.
  766. // This avoids lossage on SunOS but only if stdtypes.h comes first.
  767. // There's no way to win with the other order! Sun lossage.
  768. // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
  769. // Just ignore it.
  770. // On VxWorks, <type/vxTypesBase.h> may have defined macros like
  771. // _TYPE_size_t which will typedef size_t. fixincludes patched the
  772. // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
  773. // not defined, and so that defining this macro defines _GCC_SIZE_T.
  774. // If we find that the macros are still defined at this point, we must
  775. // invoke them so that the type is defined as expected.
  776. // In case nobody has defined these types, but we aren't running under
  777. // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
  778. // __WCHAR_TYPE__ have reasonable values. This can happen if the
  779. // parts of GCC is compiled by an older compiler, that actually
  780. // include gstddef.h, such as collect2.
  781. // Signed type of difference of two pointers.
  782. // Define this type if we are doing the whole job,
  783. // or if we want this type in particular.
  784. // Unsigned type of `sizeof' something.
  785. // Define this type if we are doing the whole job,
  786. // or if we want this type in particular.
  787. // Wide character type.
  788. // Locale-writers should change this as necessary to
  789. // be big enough to hold unique values not between 0 and 127,
  790. // and not (wchar_t) -1, for each defined multibyte character.
  791. // Define this type if we are doing the whole job,
  792. // or if we want this type in particular.
  793. // A null pointer constant.
  794. // Old compatibility names for C types.
  795. type Ulong = uint64 /* types.h:148:27 */
  796. type Ushort = uint16 /* types.h:149:28 */
  797. type Uint = uint32 /* types.h:150:22 */
  798. // These size-specific names are used by some of the inet code.
  799. // Define intN_t types.
  800. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  801. // This file is part of the GNU C Library.
  802. //
  803. // The GNU C Library is free software; you can redistribute it and/or
  804. // modify it under the terms of the GNU Lesser General Public
  805. // License as published by the Free Software Foundation; either
  806. // version 2.1 of the License, or (at your option) any later version.
  807. //
  808. // The GNU C Library is distributed in the hope that it will be useful,
  809. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  810. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  811. // Lesser General Public License for more details.
  812. //
  813. // You should have received a copy of the GNU Lesser General Public
  814. // License along with the GNU C Library; if not, see
  815. // <https://www.gnu.org/licenses/>.
  816. // bits/types.h -- definitions of __*_t types underlying *_t types.
  817. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  818. // This file is part of the GNU C Library.
  819. //
  820. // The GNU C Library is free software; you can redistribute it and/or
  821. // modify it under the terms of the GNU Lesser General Public
  822. // License as published by the Free Software Foundation; either
  823. // version 2.1 of the License, or (at your option) any later version.
  824. //
  825. // The GNU C Library is distributed in the hope that it will be useful,
  826. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  827. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  828. // Lesser General Public License for more details.
  829. //
  830. // You should have received a copy of the GNU Lesser General Public
  831. // License along with the GNU C Library; if not, see
  832. // <https://www.gnu.org/licenses/>.
  833. // Never include this file directly; use <sys/types.h> instead.
  834. type Int8_t = X__int8_t /* stdint-intn.h:24:18 */
  835. type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  836. type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  837. type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  838. // These were defined by ISO C without the first `_'.
  839. type U_int8_t = X__uint8_t /* types.h:158:19 */
  840. type U_int16_t = X__uint16_t /* types.h:159:20 */
  841. type U_int32_t = X__uint32_t /* types.h:160:20 */
  842. type U_int64_t = X__uint64_t /* types.h:161:20 */
  843. type Register_t = int32 /* types.h:164:13 */
  844. // It also defines `fd_set' and the FD_* macros for `select'.
  845. // `fd_set' type and related macros, and `select'/`pselect' declarations.
  846. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  847. // This file is part of the GNU C Library.
  848. //
  849. // The GNU C Library is free software; you can redistribute it and/or
  850. // modify it under the terms of the GNU Lesser General Public
  851. // License as published by the Free Software Foundation; either
  852. // version 2.1 of the License, or (at your option) any later version.
  853. //
  854. // The GNU C Library is distributed in the hope that it will be useful,
  855. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  856. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  857. // Lesser General Public License for more details.
  858. //
  859. // You should have received a copy of the GNU Lesser General Public
  860. // License along with the GNU C Library; if not, see
  861. // <https://www.gnu.org/licenses/>.
  862. // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  863. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  864. // This file is part of the GNU C Library.
  865. //
  866. // The GNU C Library is free software; you can redistribute it and/or
  867. // modify it under the terms of the GNU Lesser General Public
  868. // License as published by the Free Software Foundation; either
  869. // version 2.1 of the License, or (at your option) any later version.
  870. //
  871. // The GNU C Library is distributed in the hope that it will be useful,
  872. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  873. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  874. // Lesser General Public License for more details.
  875. //
  876. // You should have received a copy of the GNU Lesser General Public
  877. // License along with the GNU C Library; if not, see
  878. // <https://www.gnu.org/licenses/>.
  879. // Get definition of needed basic types.
  880. // bits/types.h -- definitions of __*_t types underlying *_t types.
  881. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  882. // This file is part of the GNU C Library.
  883. //
  884. // The GNU C Library is free software; you can redistribute it and/or
  885. // modify it under the terms of the GNU Lesser General Public
  886. // License as published by the Free Software Foundation; either
  887. // version 2.1 of the License, or (at your option) any later version.
  888. //
  889. // The GNU C Library is distributed in the hope that it will be useful,
  890. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  891. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  892. // Lesser General Public License for more details.
  893. //
  894. // You should have received a copy of the GNU Lesser General Public
  895. // License along with the GNU C Library; if not, see
  896. // <https://www.gnu.org/licenses/>.
  897. // Never include this file directly; use <sys/types.h> instead.
  898. // Get __FD_* definitions.
  899. // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  900. // This file is part of the GNU C Library.
  901. //
  902. // The GNU C Library is free software; you can redistribute it and/or
  903. // modify it under the terms of the GNU Lesser General Public
  904. // License as published by the Free Software Foundation; either
  905. // version 2.1 of the License, or (at your option) any later version.
  906. //
  907. // The GNU C Library is distributed in the hope that it will be useful,
  908. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  909. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  910. // Lesser General Public License for more details.
  911. //
  912. // You should have received a copy of the GNU Lesser General Public
  913. // License along with the GNU C Library; if not, see
  914. // <https://www.gnu.org/licenses/>.
  915. // We don't use `memset' because this would require a prototype and
  916. // the array isn't too big.
  917. // Get sigset_t.
  918. type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  919. // A set of signals to be blocked, unblocked, or waited for.
  920. type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  921. // Get definition of timer specification structures.
  922. // bits/types.h -- definitions of __*_t types underlying *_t types.
  923. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  924. // This file is part of the GNU C Library.
  925. //
  926. // The GNU C Library is free software; you can redistribute it and/or
  927. // modify it under the terms of the GNU Lesser General Public
  928. // License as published by the Free Software Foundation; either
  929. // version 2.1 of the License, or (at your option) any later version.
  930. //
  931. // The GNU C Library is distributed in the hope that it will be useful,
  932. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  933. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  934. // Lesser General Public License for more details.
  935. //
  936. // You should have received a copy of the GNU Lesser General Public
  937. // License along with the GNU C Library; if not, see
  938. // <https://www.gnu.org/licenses/>.
  939. // Never include this file directly; use <sys/types.h> instead.
  940. // A time value that is accurate to the nearest
  941. //
  942. // microsecond but also has a range of years.
  943. type Timeval = struct {
  944. Ftv_sec X__time_t
  945. Ftv_usec X__suseconds_t
  946. } /* struct_timeval.h:8:1 */
  947. // NB: Include guard matches what <linux/time.h> uses.
  948. // bits/types.h -- definitions of __*_t types underlying *_t types.
  949. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  950. // This file is part of the GNU C Library.
  951. //
  952. // The GNU C Library is free software; you can redistribute it and/or
  953. // modify it under the terms of the GNU Lesser General Public
  954. // License as published by the Free Software Foundation; either
  955. // version 2.1 of the License, or (at your option) any later version.
  956. //
  957. // The GNU C Library is distributed in the hope that it will be useful,
  958. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  959. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  960. // Lesser General Public License for more details.
  961. //
  962. // You should have received a copy of the GNU Lesser General Public
  963. // License along with the GNU C Library; if not, see
  964. // <https://www.gnu.org/licenses/>.
  965. // Never include this file directly; use <sys/types.h> instead.
  966. // Endian macros for string.h functions
  967. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  968. // This file is part of the GNU C Library.
  969. //
  970. // The GNU C Library is free software; you can redistribute it and/or
  971. // modify it under the terms of the GNU Lesser General Public
  972. // License as published by the Free Software Foundation; either
  973. // version 2.1 of the License, or (at your option) any later version.
  974. //
  975. // The GNU C Library is distributed in the hope that it will be useful,
  976. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  977. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  978. // Lesser General Public License for more details.
  979. //
  980. // You should have received a copy of the GNU Lesser General Public
  981. // License along with the GNU C Library; if not, see
  982. // <http://www.gnu.org/licenses/>.
  983. // POSIX.1b structure for a time value. This is like a `struct timeval' but
  984. //
  985. // has nanoseconds instead of microseconds.
  986. type Timespec = struct {
  987. Ftv_sec X__time_t
  988. Ftv_nsec X__syscall_slong_t
  989. } /* struct_timespec.h:10:1 */
  990. type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  991. // The fd_set member is required to be an array of longs.
  992. type X__fd_mask = int64 /* select.h:49:18 */
  993. // Some versions of <linux/posix_types.h> define this macros.
  994. // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  995. // fd_set for select and pselect.
  996. type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  997. // Maximum number of file descriptors in `fd_set'.
  998. // Sometimes the fd_set member is assumed to have this type.
  999. type Fd_mask = X__fd_mask /* select.h:77:19 */
  1000. // Define some inlines helping to catch common problems.
  1001. type Blksize_t = X__blksize_t /* types.h:185:21 */
  1002. // Types from the Large File Support interface.
  1003. type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks.
  1004. type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1005. type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1006. // Now add the thread types.
  1007. // Declaration of common pthread types for all architectures.
  1008. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1009. // This file is part of the GNU C Library.
  1010. //
  1011. // The GNU C Library is free software; you can redistribute it and/or
  1012. // modify it under the terms of the GNU Lesser General Public
  1013. // License as published by the Free Software Foundation; either
  1014. // version 2.1 of the License, or (at your option) any later version.
  1015. //
  1016. // The GNU C Library is distributed in the hope that it will be useful,
  1017. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1018. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1019. // Lesser General Public License for more details.
  1020. //
  1021. // You should have received a copy of the GNU Lesser General Public
  1022. // License along with the GNU C Library; if not, see
  1023. // <https://www.gnu.org/licenses/>.
  1024. // For internal mutex and condition variable definitions.
  1025. // Common threading primitives definitions for both POSIX and C11.
  1026. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1027. // This file is part of the GNU C Library.
  1028. //
  1029. // The GNU C Library is free software; you can redistribute it and/or
  1030. // modify it under the terms of the GNU Lesser General Public
  1031. // License as published by the Free Software Foundation; either
  1032. // version 2.1 of the License, or (at your option) any later version.
  1033. //
  1034. // The GNU C Library is distributed in the hope that it will be useful,
  1035. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1036. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1037. // Lesser General Public License for more details.
  1038. //
  1039. // You should have received a copy of the GNU Lesser General Public
  1040. // License along with the GNU C Library; if not, see
  1041. // <https://www.gnu.org/licenses/>.
  1042. // Arch-specific definitions. Each architecture must define the following
  1043. // macros to define the expected sizes of pthread data types:
  1044. //
  1045. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1046. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1047. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1048. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1049. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1050. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1051. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1052. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1053. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1054. //
  1055. // The additional macro defines any constraint for the lock alignment
  1056. // inside the thread structures:
  1057. //
  1058. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1059. //
  1060. // Same idea but for the once locking primitive:
  1061. //
  1062. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1063. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1064. //
  1065. // This file is part of the GNU C Library.
  1066. //
  1067. // The GNU C Library is free software; you can redistribute it and/or
  1068. // modify it under the terms of the GNU Lesser General Public
  1069. // License as published by the Free Software Foundation; either
  1070. // version 2.1 of the License, or (at your option) any later version.
  1071. //
  1072. // The GNU C Library is distributed in the hope that it will be useful,
  1073. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1074. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1075. // Lesser General Public License for more details.
  1076. //
  1077. // You should have received a copy of the GNU Lesser General Public
  1078. // License along with the GNU C Library; if not, see
  1079. // <https://www.gnu.org/licenses/>.
  1080. // Endian macros for string.h functions
  1081. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1082. // This file is part of the GNU C Library.
  1083. //
  1084. // The GNU C Library is free software; you can redistribute it and/or
  1085. // modify it under the terms of the GNU Lesser General Public
  1086. // License as published by the Free Software Foundation; either
  1087. // version 2.1 of the License, or (at your option) any later version.
  1088. //
  1089. // The GNU C Library is distributed in the hope that it will be useful,
  1090. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1091. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1092. // Lesser General Public License for more details.
  1093. //
  1094. // You should have received a copy of the GNU Lesser General Public
  1095. // License along with the GNU C Library; if not, see
  1096. // <http://www.gnu.org/licenses/>.
  1097. // Common definition of pthread_mutex_t.
  1098. type X__pthread_internal_list = struct {
  1099. F__prev uintptr
  1100. F__next uintptr
  1101. } /* thread-shared-types.h:49:9 */
  1102. // Type to count file system inodes.
  1103. // Now add the thread types.
  1104. // Declaration of common pthread types for all architectures.
  1105. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1106. // This file is part of the GNU C Library.
  1107. //
  1108. // The GNU C Library is free software; you can redistribute it and/or
  1109. // modify it under the terms of the GNU Lesser General Public
  1110. // License as published by the Free Software Foundation; either
  1111. // version 2.1 of the License, or (at your option) any later version.
  1112. //
  1113. // The GNU C Library is distributed in the hope that it will be useful,
  1114. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1115. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1116. // Lesser General Public License for more details.
  1117. //
  1118. // You should have received a copy of the GNU Lesser General Public
  1119. // License along with the GNU C Library; if not, see
  1120. // <https://www.gnu.org/licenses/>.
  1121. // For internal mutex and condition variable definitions.
  1122. // Common threading primitives definitions for both POSIX and C11.
  1123. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1124. // This file is part of the GNU C Library.
  1125. //
  1126. // The GNU C Library is free software; you can redistribute it and/or
  1127. // modify it under the terms of the GNU Lesser General Public
  1128. // License as published by the Free Software Foundation; either
  1129. // version 2.1 of the License, or (at your option) any later version.
  1130. //
  1131. // The GNU C Library is distributed in the hope that it will be useful,
  1132. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1133. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1134. // Lesser General Public License for more details.
  1135. //
  1136. // You should have received a copy of the GNU Lesser General Public
  1137. // License along with the GNU C Library; if not, see
  1138. // <https://www.gnu.org/licenses/>.
  1139. // Arch-specific definitions. Each architecture must define the following
  1140. // macros to define the expected sizes of pthread data types:
  1141. //
  1142. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1143. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1144. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1145. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1146. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1147. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1148. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1149. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1150. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1151. //
  1152. // The additional macro defines any constraint for the lock alignment
  1153. // inside the thread structures:
  1154. //
  1155. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1156. //
  1157. // Same idea but for the once locking primitive:
  1158. //
  1159. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1160. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1161. //
  1162. // This file is part of the GNU C Library.
  1163. //
  1164. // The GNU C Library is free software; you can redistribute it and/or
  1165. // modify it under the terms of the GNU Lesser General Public
  1166. // License as published by the Free Software Foundation; either
  1167. // version 2.1 of the License, or (at your option) any later version.
  1168. //
  1169. // The GNU C Library is distributed in the hope that it will be useful,
  1170. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1171. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1172. // Lesser General Public License for more details.
  1173. //
  1174. // You should have received a copy of the GNU Lesser General Public
  1175. // License along with the GNU C Library; if not, see
  1176. // <https://www.gnu.org/licenses/>.
  1177. // Endian macros for string.h functions
  1178. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1179. // This file is part of the GNU C Library.
  1180. //
  1181. // The GNU C Library is free software; you can redistribute it and/or
  1182. // modify it under the terms of the GNU Lesser General Public
  1183. // License as published by the Free Software Foundation; either
  1184. // version 2.1 of the License, or (at your option) any later version.
  1185. //
  1186. // The GNU C Library is distributed in the hope that it will be useful,
  1187. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1188. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1189. // Lesser General Public License for more details.
  1190. //
  1191. // You should have received a copy of the GNU Lesser General Public
  1192. // License along with the GNU C Library; if not, see
  1193. // <http://www.gnu.org/licenses/>.
  1194. // Common definition of pthread_mutex_t.
  1195. type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1196. type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1197. type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1198. // Arch-specific mutex definitions. A generic implementation is provided
  1199. // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
  1200. // can override it by defining:
  1201. //
  1202. // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1203. // definition). It should contains at least the internal members
  1204. // defined in the generic version.
  1205. //
  1206. // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1207. // atomic operations.
  1208. //
  1209. // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1210. // It should initialize the mutex internal flag.
  1211. // Default mutex implementation struct definitions.
  1212. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1213. // This file is part of the GNU C Library.
  1214. //
  1215. // The GNU C Library is free software; you can redistribute it and/or
  1216. // modify it under the terms of the GNU Lesser General Public
  1217. // License as published by the Free Software Foundation; either
  1218. // version 2.1 of the License, or (at your option) any later version.
  1219. //
  1220. // The GNU C Library is distributed in the hope that it will be useful,
  1221. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1222. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1223. // Lesser General Public License for more details.
  1224. //
  1225. // You should have received a copy of the GNU Lesser General Public
  1226. // License along with the GNU C Library; if not, see
  1227. // <http://www.gnu.org/licenses/>.
  1228. // Generic struct for both POSIX and C11 mutexes. New ports are expected
  1229. // to use the default layout, however architecture can redefine it to
  1230. // add arch-specific extension (such as lock-elision). The struct have
  1231. // a size of 32 bytes on LP32 and 40 bytes on LP64 architectures.
  1232. type X__pthread_mutex_s = struct {
  1233. F__lock int32
  1234. F__count uint32
  1235. F__owner int32
  1236. F__nusers uint32
  1237. F__kind int32
  1238. F__spins int32
  1239. F__list X__pthread_list_t
  1240. } /* struct_mutex.h:27:1 */
  1241. // Arch-sepecific read-write lock definitions. A generic implementation is
  1242. // provided by struct_rwlock.h. If required, an architecture can override it
  1243. // by defining:
  1244. //
  1245. // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1246. // It should contain at least the internal members defined in the
  1247. // generic version.
  1248. //
  1249. // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1250. // It should initialize the rwlock internal type.
  1251. // AArch64 internal rwlock struct definitions.
  1252. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1253. //
  1254. // This file is part of the GNU C Library.
  1255. //
  1256. // The GNU C Library is free software; you can redistribute it and/or
  1257. // modify it under the terms of the GNU Lesser General Public
  1258. // License as published by the Free Software Foundation; either
  1259. // version 2.1 of the License, or (at your option) any later version.
  1260. //
  1261. // The GNU C Library is distributed in the hope that it will be useful,
  1262. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1263. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1264. // Lesser General Public License for more details.
  1265. //
  1266. // You should have received a copy of the GNU Lesser General Public
  1267. // License along with the GNU C Library; if not, see
  1268. // <http://www.gnu.org/licenses/>.
  1269. type X__pthread_rwlock_arch_t = struct {
  1270. F__readers uint32
  1271. F__writers uint32
  1272. F__wrphase_futex uint32
  1273. F__writers_futex uint32
  1274. F__pad3 uint32
  1275. F__pad4 uint32
  1276. F__cur_writer int32
  1277. F__shared int32
  1278. F__pad1 uint64
  1279. F__pad2 uint64
  1280. F__flags uint32
  1281. F__ccgo_pad1 [4]byte
  1282. } /* struct_rwlock.h:23:1 */
  1283. // Common definition of pthread_cond_t.
  1284. type X__pthread_cond_s = struct {
  1285. F__0 struct{ F__wseq uint64 }
  1286. F__8 struct{ F__g1_start uint64 }
  1287. F__g_refs [2]uint32
  1288. F__g_size [2]uint32
  1289. F__g1_orig_size uint32
  1290. F__wrefs uint32
  1291. F__g_signals [2]uint32
  1292. } /* thread-shared-types.h:92:1 */
  1293. // Thread identifiers. The structure of the attribute type is not
  1294. //
  1295. // exposed on purpose.
  1296. type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1297. // Data structures for mutex handling. The structure of the attribute
  1298. //
  1299. // type is not exposed on purpose.
  1300. type Pthread_mutexattr_t = struct {
  1301. F__ccgo_pad1 [0]uint32
  1302. F__size [8]uint8
  1303. } /* pthreadtypes.h:36:3 */
  1304. // Data structure for condition variable handling. The structure of
  1305. //
  1306. // the attribute type is not exposed on purpose.
  1307. type Pthread_condattr_t = struct {
  1308. F__ccgo_pad1 [0]uint32
  1309. F__size [8]uint8
  1310. } /* pthreadtypes.h:45:3 */
  1311. // Keys for thread-specific data
  1312. type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1313. // Once-only execution
  1314. type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1315. type Pthread_attr_t1 = struct {
  1316. F__ccgo_pad1 [0]uint64
  1317. F__size [64]uint8
  1318. } /* pthreadtypes.h:56:1 */
  1319. type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1320. type Pthread_mutex_t = struct {
  1321. F__data X__pthread_mutex_s
  1322. F__ccgo_pad1 [8]byte
  1323. } /* pthreadtypes.h:72:3 */
  1324. type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1325. // Data structure for reader-writer lock variable handling. The
  1326. //
  1327. // structure of the attribute type is deliberately not exposed.
  1328. type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1329. type Pthread_rwlockattr_t = struct {
  1330. F__ccgo_pad1 [0]uint64
  1331. F__size [8]uint8
  1332. } /* pthreadtypes.h:97:3 */
  1333. // POSIX spinlock data type.
  1334. type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1335. // POSIX barriers data type. The structure of the type is
  1336. //
  1337. // deliberately not exposed.
  1338. type Pthread_barrier_t = struct {
  1339. F__ccgo_pad1 [0]uint64
  1340. F__size [32]uint8
  1341. } /* pthreadtypes.h:112:3 */
  1342. type Pthread_barrierattr_t = struct {
  1343. F__ccgo_pad1 [0]uint32
  1344. F__size [8]uint8
  1345. } /* pthreadtypes.h:118:3 */
  1346. // Reentrant versions of the `random' family of functions.
  1347. // These functions all use the following data structure to contain
  1348. // state, rather than global state variables.
  1349. type Random_data = struct {
  1350. Ffptr uintptr
  1351. Frptr uintptr
  1352. Fstate uintptr
  1353. Frand_type int32
  1354. Frand_deg int32
  1355. Frand_sep int32
  1356. F__ccgo_pad1 [4]byte
  1357. Fend_ptr uintptr
  1358. } /* stdlib.h:423:1 */
  1359. // Data structure for communication with thread safe versions. This
  1360. //
  1361. // type is to be regarded as opaque. It's only exported because users
  1362. // have to allocate objects of this type.
  1363. type Drand48_data = struct {
  1364. F__x [3]uint16
  1365. F__old_x [3]uint16
  1366. F__c uint16
  1367. F__init uint16
  1368. F__a uint64
  1369. } /* stdlib.h:490:1 */
  1370. // Shorthand for type of comparison functions.
  1371. type X__compar_fn_t = uintptr /* stdlib.h:808:13 */
  1372. // Floating-point inline functions for stdlib.h.
  1373. // Copyright (C) 2012-2020 Free Software Foundation, Inc.
  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. // <https://www.gnu.org/licenses/>.
  1389. // Define some macros helping to catch buffer overflows.
  1390. var _ uint8 /* gen.c:2:13: */