stdlib_linux_386.go 63 KB

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