stdlib_linux_arm.go 66 KB

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