stdlib_linux_loong64.go 66 KB

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