stdlib_linux_ppc64le.go 67 KB

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