stdlib_linux_amd64.go 65 KB

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