stdlib_linux_s390x.go 64 KB

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