uuid_linux_loong64.go 86 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986
  1. // Code generated by 'ccgo uuid/uuid/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 uuid/uuid/uuid_linux_amd64.go -pkgname uuid', DO NOT EDIT.
  2. package uuid
  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. CLOCK_BOOTTIME = 7 // time.h:60:1:
  17. CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1:
  18. CLOCK_MONOTONIC = 1 // time.h:48:1:
  19. CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1:
  20. CLOCK_MONOTONIC_RAW = 4 // time.h:54:1:
  21. CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1:
  22. CLOCK_REALTIME = 0 // time.h:46:1:
  23. CLOCK_REALTIME_ALARM = 8 // time.h:62:1:
  24. CLOCK_REALTIME_COARSE = 5 // time.h:56:1:
  25. CLOCK_TAI = 11 // time.h:66:1:
  26. CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1:
  27. FD_SETSIZE = 1024 // select.h:73:1:
  28. LITTLE_ENDIAN = 1234 // endian.h:27:1:
  29. PDP_ENDIAN = 3412 // endian.h:29:1:
  30. TIMER_ABSTIME = 1 // time.h:69:1:
  31. TIME_UTC = 1 // time.h:65:1:
  32. UUID_STR_LEN = 37 // uuid.h:65:1:
  33. UUID_TYPE_DCE_MD5 = 3 // uuid.h:58:1:
  34. UUID_TYPE_DCE_RANDOM = 4 // uuid.h:59:1:
  35. UUID_TYPE_DCE_SECURITY = 2 // uuid.h:57:1:
  36. UUID_TYPE_DCE_SHA1 = 5 // uuid.h:60:1:
  37. UUID_TYPE_DCE_TIME = 1 // uuid.h:56:1:
  38. UUID_TYPE_MASK = 0xf // uuid.h:63:1:
  39. UUID_TYPE_SHIFT = 4 // uuid.h:62:1:
  40. UUID_VARIANT_DCE = 1 // uuid.h:48:1:
  41. UUID_VARIANT_MASK = 0x7 // uuid.h:53:1:
  42. UUID_VARIANT_MICROSOFT = 2 // uuid.h:49:1:
  43. UUID_VARIANT_NCS = 0 // uuid.h:47:1:
  44. UUID_VARIANT_OTHER = 3 // uuid.h:50:1:
  45. UUID_VARIANT_SHIFT = 5 // uuid.h:52:1:
  46. X_ATFILE_SOURCE = 1 // features.h:342:1:
  47. X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1:
  48. X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
  49. X_BITS_ENDIAN_H = 1 // endian.h:20:1:
  50. X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1:
  51. X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1:
  52. X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1:
  53. X_BITS_TIME64_H = 1 // time64.h:24:1:
  54. X_BITS_TIME_H = 1 // time.h:24:1:
  55. X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
  56. X_BITS_TYPES_H = 1 // types.h:24:1:
  57. X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1:
  58. X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1:
  59. X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1:
  60. X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
  61. X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
  62. X_DEFAULT_SOURCE = 1 // features.h:227:1:
  63. X_ENDIAN_H = 1 // endian.h:19:1:
  64. X_FEATURES_H = 1 // features.h:19:1:
  65. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  66. X_GCC_SIZE_T = 0 // stddef.h:195:1:
  67. X_LP64 = 1 // <predefined>:284:1:
  68. X_POSIX_C_SOURCE = 200809 // features.h:281:1:
  69. X_POSIX_SOURCE = 1 // features.h:279:1:
  70. X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1:
  71. X_SIZET_ = 0 // stddef.h:196:1:
  72. X_SIZE_T = 0 // stddef.h:183:1:
  73. X_SIZE_T_ = 0 // stddef.h:188:1:
  74. X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
  75. X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
  76. X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
  77. X_STDC_PREDEF_H = 1 // <predefined>:162:1:
  78. X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1:
  79. X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
  80. X_SYS_SELECT_H = 1 // select.h:22:1:
  81. X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
  82. X_SYS_TIME_H = 1 // time.h:19:1:
  83. X_SYS_TYPES_H = 1 // types.h:23:1:
  84. X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1:
  85. X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1:
  86. X_TIME_H = 1 // time.h:23:1:
  87. X_T_SIZE = 0 // stddef.h:186:1:
  88. X_T_SIZE_ = 0 // stddef.h:185:1:
  89. X_UUID_UUID_H = 0 // uuid.h:36:1:
  90. Linux = 1 // <predefined>:231:1:
  91. Unix = 1 // <predefined>:177:1:
  92. )
  93. // Values for the first argument to `getitimer' and `setitimer'.
  94. const ( /* time.h:89:1: */
  95. // Timers run in real time.
  96. ITIMER_REAL = 0
  97. // Timers run only when the process is executing.
  98. ITIMER_VIRTUAL = 1
  99. // Timers run when the process is executing and when
  100. // the system is executing on behalf of the process.
  101. ITIMER_PROF = 2
  102. )
  103. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  104. type Size_t = uint64 /* <builtin>:9:23 */
  105. type Wchar_t = int32 /* <builtin>:15:24 */
  106. type X__int128_t = struct {
  107. Flo int64
  108. Fhi int64
  109. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  110. type X__uint128_t = struct {
  111. Flo uint64
  112. Fhi uint64
  113. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  114. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  115. type X__float128 = float64 /* <builtin>:47:21 */
  116. // Public include file for the UUID library
  117. //
  118. // Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
  119. //
  120. // %Begin-Header%
  121. // Redistribution and use in source and binary forms, with or without
  122. // modification, are permitted provided that the following conditions
  123. // are met:
  124. // 1. Redistributions of source code must retain the above copyright
  125. // notice, and the entire permission notice in its entirety,
  126. // including the disclaimer of warranties.
  127. // 2. Redistributions in binary form must reproduce the above copyright
  128. // notice, this list of conditions and the following disclaimer in the
  129. // documentation and/or other materials provided with the distribution.
  130. // 3. The name of the author may not be used to endorse or promote
  131. // products derived from this software without specific prior
  132. // written permission.
  133. //
  134. // THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  135. // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  136. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
  137. // WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
  138. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  139. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
  140. // OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
  141. // BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  142. // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  143. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  144. // USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
  145. // DAMAGE.
  146. // %End-Header%
  147. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  148. // This file is part of the GNU C Library.
  149. //
  150. // The GNU C Library is free software; you can redistribute it and/or
  151. // modify it under the terms of the GNU Lesser General Public
  152. // License as published by the Free Software Foundation; either
  153. // version 2.1 of the License, or (at your option) any later version.
  154. //
  155. // The GNU C Library is distributed in the hope that it will be useful,
  156. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  157. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  158. // Lesser General Public License for more details.
  159. //
  160. // You should have received a copy of the GNU Lesser General Public
  161. // License along with the GNU C Library; if not, see
  162. // <https://www.gnu.org/licenses/>.
  163. // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
  164. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  165. // This file is part of the GNU C Library.
  166. //
  167. // The GNU C Library is free software; you can redistribute it and/or
  168. // modify it under the terms of the GNU Lesser General Public
  169. // License as published by the Free Software Foundation; either
  170. // version 2.1 of the License, or (at your option) any later version.
  171. //
  172. // The GNU C Library is distributed in the hope that it will be useful,
  173. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  174. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  175. // Lesser General Public License for more details.
  176. //
  177. // You should have received a copy of the GNU Lesser General Public
  178. // License along with the GNU C Library; if not, see
  179. // <https://www.gnu.org/licenses/>.
  180. // These are defined by the user (or the compiler)
  181. // to specify the desired environment:
  182. //
  183. // __STRICT_ANSI__ ISO Standard C.
  184. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  185. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  186. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  187. // __STDC_WANT_LIB_EXT2__
  188. // Extensions to ISO C99 from TR 27431-2:2010.
  189. // __STDC_WANT_IEC_60559_BFP_EXT__
  190. // Extensions to ISO C11 from TS 18661-1:2014.
  191. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  192. // Extensions to ISO C11 from TS 18661-4:2015.
  193. // __STDC_WANT_IEC_60559_TYPES_EXT__
  194. // Extensions to ISO C11 from TS 18661-3:2015.
  195. //
  196. // _POSIX_SOURCE IEEE Std 1003.1.
  197. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  198. // if >=199309L, add IEEE Std 1003.1b-1993;
  199. // if >=199506L, add IEEE Std 1003.1c-1995;
  200. // if >=200112L, all of IEEE 1003.1-2004
  201. // if >=200809L, all of IEEE 1003.1-2008
  202. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  203. // Single Unix conformance is wanted, to 600 for the
  204. // sixth revision, to 700 for the seventh revision.
  205. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  206. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  207. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  208. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  209. // _ATFILE_SOURCE Additional *at interfaces.
  210. // _GNU_SOURCE All of the above, plus GNU extensions.
  211. // _DEFAULT_SOURCE The default set of features (taking precedence over
  212. // __STRICT_ANSI__).
  213. //
  214. // _FORTIFY_SOURCE Add security hardening to many library functions.
  215. // Set to 1 or 2; 2 performs stricter checks than 1.
  216. //
  217. // _REENTRANT, _THREAD_SAFE
  218. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  219. //
  220. // The `-ansi' switch to the GNU C compiler, and standards conformance
  221. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  222. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  223. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  224. // 200809L, as well as enabling miscellaneous functions from BSD and
  225. // SVID. If more than one of these are defined, they accumulate. For
  226. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  227. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  228. //
  229. // These are defined by this file and are used by the
  230. // header files to decide what to declare or define:
  231. //
  232. // __GLIBC_USE (F) Define things from feature set F. This is defined
  233. // to 1 or 0; the subsequent macros are either defined
  234. // or undefined, and those tests should be moved to
  235. // __GLIBC_USE.
  236. // __USE_ISOC11 Define ISO C11 things.
  237. // __USE_ISOC99 Define ISO C99 things.
  238. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  239. // __USE_ISOCXX11 Define ISO C++11 things.
  240. // __USE_POSIX Define IEEE Std 1003.1 things.
  241. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  242. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  243. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  244. // __USE_XOPEN Define XPG things.
  245. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  246. // __USE_UNIX98 Define Single Unix V2 things.
  247. // __USE_XOPEN2K Define XPG6 things.
  248. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  249. // __USE_XOPEN2K8 Define XPG7 things.
  250. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  251. // __USE_LARGEFILE Define correct standard I/O things.
  252. // __USE_LARGEFILE64 Define LFS things with separate names.
  253. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  254. // __USE_MISC Define things from 4.3BSD or System V Unix.
  255. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  256. // __USE_GNU Define GNU extensions.
  257. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  258. //
  259. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  260. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  261. // only for compatibility. All new code should use the other symbols
  262. // to test for features.
  263. //
  264. // All macros listed above as possibly being defined by this file are
  265. // explicitly undefined if they are not explicitly defined.
  266. // Feature-test macros that are not defined by the user or compiler
  267. // but are implied by the other feature-test macros defined (or by the
  268. // lack of any definitions) are defined by the file.
  269. //
  270. // ISO C feature test macros depend on the definition of the macro
  271. // when an affected header is included, not when the first system
  272. // header is included, and so they are handled in
  273. // <bits/libc-header-start.h>, which does not have a multiple include
  274. // guard. Feature test macros that can be handled from the first
  275. // system header included are handled here.
  276. // Undefine everything, so we get a clean slate.
  277. // Suppress kernel-name space pollution unless user expressedly asks
  278. // for it.
  279. // Convenience macro to test the version of gcc.
  280. // Use like this:
  281. // #if __GNUC_PREREQ (2,8)
  282. // ... code requiring gcc 2.8 or later ...
  283. // #endif
  284. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  285. // added in 2.0.
  286. // Similarly for clang. Features added to GCC after version 4.2 may
  287. // or may not also be available in clang, and clang's definitions of
  288. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  289. // features can be queried via __has_extension/__has_feature.
  290. // Whether to use feature set F.
  291. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  292. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  293. // issue a warning; the expectation is that the source is being
  294. // transitioned to use the new macro.
  295. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  296. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  297. // define _DEFAULT_SOURCE.
  298. // This is to enable the ISO C2X extension.
  299. // This is to enable the ISO C11 extension.
  300. // This is to enable the ISO C99 extension.
  301. // This is to enable the ISO C90 Amendment 1:1995 extension.
  302. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  303. // is defined, use POSIX.1-2008 (or another version depending on
  304. // _XOPEN_SOURCE).
  305. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  306. // defined in all multithreaded code. GNU libc has not required this
  307. // for many years. We now treat them as compatibility synonyms for
  308. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  309. // comprehensive support for multithreaded code. Using them never
  310. // lowers the selected level of POSIX conformance, only raises it.
  311. // The function 'gets' existed in C89, but is impossible to use
  312. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  313. // compatibility with various implementations of <cstdio>, this test
  314. // must consider only the value of __cplusplus when compiling C++.
  315. // GNU formerly extended the scanf functions with modified format
  316. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  317. // input using malloc. This extension conflicts with ISO C99, which
  318. // defines %a as a standalone format specifier that reads a floating-
  319. // point number; moreover, POSIX.1-2008 provides the same feature
  320. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  321. //
  322. // We now follow C99 unless GNU extensions are active and the compiler
  323. // is specifically in C89 or C++98 mode (strict or not). For
  324. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  325. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  326. // old extension.
  327. // Get definitions of __STDC_* predefined macros, if the compiler has
  328. // not preincluded this header automatically.
  329. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  330. // This file is part of the GNU C Library.
  331. //
  332. // The GNU C Library is free software; you can redistribute it and/or
  333. // modify it under the terms of the GNU Lesser General Public
  334. // License as published by the Free Software Foundation; either
  335. // version 2.1 of the License, or (at your option) any later version.
  336. //
  337. // The GNU C Library is distributed in the hope that it will be useful,
  338. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  339. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  340. // Lesser General Public License for more details.
  341. //
  342. // You should have received a copy of the GNU Lesser General Public
  343. // License along with the GNU C Library; if not, see
  344. // <https://www.gnu.org/licenses/>.
  345. // This macro indicates that the installed library is the GNU C Library.
  346. // For historic reasons the value now is 6 and this will stay from now
  347. // on. The use of this variable is deprecated. Use __GLIBC__ and
  348. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  349. // GNU C library version and use the values in <gnu/lib-names.h> to get
  350. // the sonames of the shared libraries.
  351. // Major and minor version number of the GNU C library package. Use
  352. // these macros to test for features in specific releases.
  353. // This is here only because every header file already includes this one.
  354. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  355. // This file is part of the GNU C Library.
  356. //
  357. // The GNU C Library is free software; you can redistribute it and/or
  358. // modify it under the terms of the GNU Lesser General Public
  359. // License as published by the Free Software Foundation; either
  360. // version 2.1 of the License, or (at your option) any later version.
  361. //
  362. // The GNU C Library is distributed in the hope that it will be useful,
  363. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  364. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  365. // Lesser General Public License for more details.
  366. //
  367. // You should have received a copy of the GNU Lesser General Public
  368. // License along with the GNU C Library; if not, see
  369. // <https://www.gnu.org/licenses/>.
  370. // We are almost always included from features.h.
  371. // The GNU libc does not support any K&R compilers or the traditional mode
  372. // of ISO C compilers anymore. Check for some of the combinations not
  373. // anymore supported.
  374. // Some user header file might have defined this before.
  375. // All functions, except those with callbacks or those that
  376. // synchronize memory, are leaf functions.
  377. // GCC can always grok prototypes. For C++ programs we add throw()
  378. // to help it optimize the function calls. But this works only with
  379. // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
  380. // as non-throwing using a function attribute since programs can use
  381. // the -fexceptions options for C code as well.
  382. // Compilers that are not clang may object to
  383. // #if defined __clang__ && __has_extension(...)
  384. // even though they do not need to evaluate the right-hand side of the &&.
  385. // These two macros are not used in glibc anymore. They are kept here
  386. // only because some other projects expect the macros to be defined.
  387. // For these things, GCC behaves the ANSI way normally,
  388. // and the non-ANSI way under -traditional.
  389. // This is not a typedef so `const __ptr_t' does the right thing.
  390. // C++ needs to know that types and declarations are C, not C++.
  391. // Fortify support.
  392. // Support for flexible arrays.
  393. // Headers that should use flexible arrays only if they're "real"
  394. // (e.g. only if they won't affect sizeof()) should test
  395. // #if __glibc_c99_flexarr_available.
  396. // __asm__ ("xyz") is used throughout the headers to rename functions
  397. // at the assembly language level. This is wrapped by the __REDIRECT
  398. // macro, in order to support compilers that can do this some other
  399. // way. When compilers don't support asm-names at all, we have to do
  400. // preprocessor tricks instead (which don't have exactly the right
  401. // semantics, but it's the best we can do).
  402. //
  403. // Example:
  404. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  405. //
  406. // #elif __SOME_OTHER_COMPILER__
  407. //
  408. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  409. // GCC has various useful declarations that can be made with the
  410. // `__attribute__' syntax. All of the ways we use this do fine if
  411. // they are omitted for compilers that don't understand it.
  412. // At some point during the gcc 2.96 development the `malloc' attribute
  413. // for functions was introduced. We don't want to use it unconditionally
  414. // (although this would be possible) since it generates warnings.
  415. // Tell the compiler which arguments to an allocation function
  416. // indicate the size of the allocation.
  417. // At some point during the gcc 2.96 development the `pure' attribute
  418. // for functions was introduced. We don't want to use it unconditionally
  419. // (although this would be possible) since it generates warnings.
  420. // This declaration tells the compiler that the value is constant.
  421. // At some point during the gcc 3.1 development the `used' attribute
  422. // for functions was introduced. We don't want to use it unconditionally
  423. // (although this would be possible) since it generates warnings.
  424. // Since version 3.2, gcc allows marking deprecated functions.
  425. // Since version 4.5, gcc also allows one to specify the message printed
  426. // when a deprecated function is used. clang claims to be gcc 4.2, but
  427. // may also support this feature.
  428. // At some point during the gcc 2.8 development the `format_arg' attribute
  429. // for functions was introduced. We don't want to use it unconditionally
  430. // (although this would be possible) since it generates warnings.
  431. // If several `format_arg' attributes are given for the same function, in
  432. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  433. // all designated arguments are considered.
  434. // At some point during the gcc 2.97 development the `strfmon' format
  435. // attribute for functions was introduced. We don't want to use it
  436. // unconditionally (although this would be possible) since it
  437. // generates warnings.
  438. // The nonull function attribute allows to mark pointer parameters which
  439. // must not be NULL.
  440. // If fortification mode, we warn about unused results of certain
  441. // function calls which can lead to problems.
  442. // Forces a function to be always inlined.
  443. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  444. // it conflicts with this definition. Therefore undefine it first to
  445. // allow either header to be included first.
  446. // Associate error messages with the source location of the call site rather
  447. // than with the source location inside the function.
  448. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  449. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  450. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  451. // older than 4.3 may define these macros and still not guarantee GNU inlining
  452. // semantics.
  453. //
  454. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  455. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  456. // __GNUC_GNU_INLINE__ macro definitions.
  457. // GCC 4.3 and above allow passing all anonymous arguments of an
  458. // __extern_always_inline function to some other vararg function.
  459. // It is possible to compile containing GCC extensions even if GCC is
  460. // run in pedantic mode if the uses are carefully marked using the
  461. // `__extension__' keyword. But this is not generally available before
  462. // version 2.8.
  463. // __restrict is known in EGCS 1.2 and above.
  464. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  465. // array_name[restrict]
  466. // GCC 3.1 supports this.
  467. // Describes a char array whose address can safely be passed as the first
  468. // argument to strncpy and strncat, as the char array is not necessarily
  469. // a NUL-terminated string.
  470. // Undefine (also defined in libc-symbols.h).
  471. // Copies attributes from the declaration or type referenced by
  472. // the argument.
  473. // Determine the wordsize from the preprocessor defines.
  474. // Both x86-64 and x32 use the 64-bit system call interface.
  475. // Properties of long double type. ldbl-96 version.
  476. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  477. // This file is part of the GNU C Library.
  478. //
  479. // The GNU C Library is free software; you can redistribute it and/or
  480. // modify it under the terms of the GNU Lesser General Public
  481. // License published by the Free Software Foundation; either
  482. // version 2.1 of the License, or (at your option) any later version.
  483. //
  484. // The GNU C Library is distributed in the hope that it will be useful,
  485. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  486. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  487. // Lesser General Public License for more details.
  488. //
  489. // You should have received a copy of the GNU Lesser General Public
  490. // License along with the GNU C Library; if not, see
  491. // <https://www.gnu.org/licenses/>.
  492. // long double is distinct from double, so there is nothing to
  493. // define here.
  494. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  495. // intended for use in preprocessor macros.
  496. //
  497. // Note: MESSAGE must be a _single_ string; concatenation of string
  498. // literals is not supported.
  499. // Generic selection (ISO C11) is a C-only feature, available in GCC
  500. // since version 4.9. Previous versions do not provide generic
  501. // selection, even though they might set __STDC_VERSION__ to 201112L,
  502. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  503. // when testing __STDC_VERSION__ for generic selection support.
  504. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  505. // check is required to enable the use of generic selection.
  506. // If we don't have __REDIRECT, prototypes will be missing if
  507. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  508. // Decide whether we can define 'extern inline' functions in headers.
  509. // This is here only because every header file already includes this one.
  510. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  511. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  512. // that will always return failure (and set errno to ENOSYS).
  513. // This file is automatically generated.
  514. // This file selects the right generated file of `__stub_FUNCTION' macros
  515. // based on the architecture being compiled for.
  516. // This file is automatically generated.
  517. // It defines a symbol `__stub_FUNCTION' for each function
  518. // in the C library which is a stub, meaning it will fail
  519. // every time called, usually setting errno to ENOSYS.
  520. // bits/types.h -- definitions of __*_t types underlying *_t types.
  521. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  522. // This file is part of the GNU C Library.
  523. //
  524. // The GNU C Library is free software; you can redistribute it and/or
  525. // modify it under the terms of the GNU Lesser General Public
  526. // License as published by the Free Software Foundation; either
  527. // version 2.1 of the License, or (at your option) any later version.
  528. //
  529. // The GNU C Library is distributed in the hope that it will be useful,
  530. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  531. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  532. // Lesser General Public License for more details.
  533. //
  534. // You should have received a copy of the GNU Lesser General Public
  535. // License along with the GNU C Library; if not, see
  536. // <https://www.gnu.org/licenses/>.
  537. // Never include this file directly; use <sys/types.h> instead.
  538. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  539. // This file is part of the GNU C Library.
  540. //
  541. // The GNU C Library is free software; you can redistribute it and/or
  542. // modify it under the terms of the GNU Lesser General Public
  543. // License as published by the Free Software Foundation; either
  544. // version 2.1 of the License, or (at your option) any later version.
  545. //
  546. // The GNU C Library is distributed in the hope that it will be useful,
  547. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  548. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  549. // Lesser General Public License for more details.
  550. //
  551. // You should have received a copy of the GNU Lesser General Public
  552. // License along with the GNU C Library; if not, see
  553. // <https://www.gnu.org/licenses/>.
  554. // Determine the wordsize from the preprocessor defines.
  555. // Both x86-64 and x32 use the 64-bit system call interface.
  556. // Bit size of the time_t type at glibc build time, x86-64 and x32 case.
  557. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  558. // This file is part of the GNU C Library.
  559. //
  560. // The GNU C Library is free software; you can redistribute it and/or
  561. // modify it under the terms of the GNU Lesser General Public
  562. // License as published by the Free Software Foundation; either
  563. // version 2.1 of the License, or (at your option) any later version.
  564. //
  565. // The GNU C Library is distributed in the hope that it will be useful,
  566. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  567. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  568. // Lesser General Public License for more details.
  569. //
  570. // You should have received a copy of the GNU Lesser General Public
  571. // License along with the GNU C Library; if not, see
  572. // <https://www.gnu.org/licenses/>.
  573. // For others, time size is word size.
  574. // Convenience types.
  575. type X__u_char = uint8 /* types.h:31:23 */
  576. type X__u_short = uint16 /* types.h:32:28 */
  577. type X__u_int = uint32 /* types.h:33:22 */
  578. type X__u_long = uint64 /* types.h:34:27 */
  579. // Fixed-size types, underlying types depend on word size and compiler.
  580. type X__int8_t = int8 /* types.h:37:21 */
  581. type X__uint8_t = uint8 /* types.h:38:23 */
  582. type X__int16_t = int16 /* types.h:39:26 */
  583. type X__uint16_t = uint16 /* types.h:40:28 */
  584. type X__int32_t = int32 /* types.h:41:20 */
  585. type X__uint32_t = uint32 /* types.h:42:22 */
  586. type X__int64_t = int64 /* types.h:44:25 */
  587. type X__uint64_t = uint64 /* types.h:45:27 */
  588. // Smallest types with at least a given width.
  589. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  590. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  591. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  592. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  593. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  594. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  595. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  596. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  597. // quad_t is also 64 bits.
  598. type X__quad_t = int64 /* types.h:63:18 */
  599. type X__u_quad_t = uint64 /* types.h:64:27 */
  600. // Largest integral types.
  601. type X__intmax_t = int64 /* types.h:72:18 */
  602. type X__uintmax_t = uint64 /* types.h:73:27 */
  603. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  604. // macros for each of the OS types we define below. The definitions
  605. // of those macros must use the following macros for underlying types.
  606. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  607. // variants of each of the following integer types on this machine.
  608. //
  609. // 16 -- "natural" 16-bit type (always short)
  610. // 32 -- "natural" 32-bit type (always int)
  611. // 64 -- "natural" 64-bit type (long or long long)
  612. // LONG32 -- 32-bit type, traditionally long
  613. // QUAD -- 64-bit type, traditionally long long
  614. // WORD -- natural type of __WORDSIZE bits (int or long)
  615. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  616. //
  617. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  618. // conventional uses of `long' or `long long' type modifiers match the
  619. // types we define, even when a less-adorned type would be the same size.
  620. // This matters for (somewhat) portably writing printf/scanf formats for
  621. // these types, where using the appropriate l or ll format modifiers can
  622. // make the typedefs and the formats match up across all GNU platforms. If
  623. // we used `long' when it's 64 bits where `long long' is expected, then the
  624. // compiler would warn about the formats not matching the argument types,
  625. // and the programmer changing them to shut up the compiler would break the
  626. // program's portability.
  627. //
  628. // Here we assume what is presently the case in all the GCC configurations
  629. // we support: long long is always 64 bits, long is always word/address size,
  630. // and int is always 32 bits.
  631. // No need to mark the typedef with __extension__.
  632. // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
  633. // Copyright (C) 2012-2020 Free Software Foundation, Inc.
  634. // This file is part of the GNU C Library.
  635. //
  636. // The GNU C Library is free software; you can redistribute it and/or
  637. // modify it under the terms of the GNU Lesser General Public
  638. // License as published by the Free Software Foundation; either
  639. // version 2.1 of the License, or (at your option) any later version.
  640. //
  641. // The GNU C Library is distributed in the hope that it will be useful,
  642. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  643. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  644. // Lesser General Public License for more details.
  645. //
  646. // You should have received a copy of the GNU Lesser General Public
  647. // License along with the GNU C Library; if not, see
  648. // <https://www.gnu.org/licenses/>.
  649. // See <bits/types.h> for the meaning of these macros. This file exists so
  650. // that <bits/types.h> need not vary across different GNU platforms.
  651. // X32 kernel interface is 64-bit.
  652. // Tell the libc code that off_t and off64_t are actually the same type
  653. // for all ABI purposes, even if possibly expressed as different base types
  654. // for C type-checking purposes.
  655. // Same for ino_t and ino64_t.
  656. // And for __rlim_t and __rlim64_t.
  657. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  658. // Number of descriptors that can fit in an `fd_set'.
  659. // bits/time64.h -- underlying types for __time64_t. Generic version.
  660. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  661. // This file is part of the GNU C Library.
  662. //
  663. // The GNU C Library is free software; you can redistribute it and/or
  664. // modify it under the terms of the GNU Lesser General Public
  665. // License as published by the Free Software Foundation; either
  666. // version 2.1 of the License, or (at your option) any later version.
  667. //
  668. // The GNU C Library is distributed in the hope that it will be useful,
  669. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  670. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  671. // Lesser General Public License for more details.
  672. //
  673. // You should have received a copy of the GNU Lesser General Public
  674. // License along with the GNU C Library; if not, see
  675. // <https://www.gnu.org/licenses/>.
  676. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  677. // If we already have 64-bit time type then use it.
  678. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  679. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  680. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  681. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  682. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  683. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  684. type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
  685. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  686. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  687. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  688. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  689. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  690. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  691. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  692. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  693. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  694. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  695. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  696. type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
  697. type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
  698. // Clock ID used in clock and timer functions.
  699. type X__clockid_t = int32 /* types.h:168:29 */
  700. // Timer ID returned by `timer_create'.
  701. type X__timer_t = uintptr /* types.h:171:12 */
  702. // Type to represent block size.
  703. type X__blksize_t = int64 /* types.h:174:29 */
  704. // Types from the Large File Support interface.
  705. // Type to count number of disk blocks.
  706. type X__blkcnt_t = int64 /* types.h:179:28 */
  707. type X__blkcnt64_t = int64 /* types.h:180:30 */
  708. // Type to count file system blocks.
  709. type X__fsblkcnt_t = uint64 /* types.h:183:30 */
  710. type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
  711. // Type to count file system nodes.
  712. type X__fsfilcnt_t = uint64 /* types.h:187:30 */
  713. type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
  714. // Type of miscellaneous file system fields.
  715. type X__fsword_t = int64 /* types.h:191:28 */
  716. type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
  717. // Signed long type used in system calls.
  718. type X__syscall_slong_t = int64 /* types.h:196:33 */
  719. // Unsigned long type used in system calls.
  720. type X__syscall_ulong_t = uint64 /* types.h:198:33 */
  721. // These few don't really vary by system, they always correspond
  722. //
  723. // to one of the other defined types.
  724. type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
  725. type X__caddr_t = uintptr /* types.h:203:14 */
  726. // Duplicates info from stdint.h but this is used in unistd.h.
  727. type X__intptr_t = int64 /* types.h:206:25 */
  728. // Duplicate info from sys/socket.h.
  729. type X__socklen_t = uint32 /* types.h:209:23 */
  730. // C99: An integer type that can be accessed as an atomic entity,
  731. //
  732. // even in the presence of asynchronous interrupts.
  733. // It is not currently necessary for this to be machine-specific.
  734. type X__sig_atomic_t = int32 /* types.h:214:13 */
  735. // Seconds since the Epoch, visible to user code when time_t is too
  736. // narrow only for consistency with the old way of widening too-narrow
  737. // types. User code should never use __time64_t.
  738. type U_char = X__u_char /* types.h:33:18 */
  739. type U_short = X__u_short /* types.h:34:19 */
  740. type U_int = X__u_int /* types.h:35:17 */
  741. type U_long = X__u_long /* types.h:36:18 */
  742. type Quad_t = X__quad_t /* types.h:37:18 */
  743. type U_quad_t = X__u_quad_t /* types.h:38:20 */
  744. type Fsid_t = X__fsid_t /* types.h:39:18 */
  745. type Loff_t = X__loff_t /* types.h:42:18 */
  746. type Ino_t = X__ino64_t /* types.h:49:19 */
  747. type Dev_t = X__dev_t /* types.h:59:17 */
  748. type Gid_t = X__gid_t /* types.h:64:17 */
  749. type Mode_t = X__mode_t /* types.h:69:18 */
  750. type Nlink_t = X__nlink_t /* types.h:74:19 */
  751. type Uid_t = X__uid_t /* types.h:79:17 */
  752. type Off_t = X__off64_t /* types.h:87:19 */
  753. type Pid_t = X__pid_t /* types.h:97:17 */
  754. type Id_t = X__id_t /* types.h:103:16 */
  755. type Ssize_t = X__ssize_t /* types.h:108:19 */
  756. type Daddr_t = X__daddr_t /* types.h:114:19 */
  757. type Caddr_t = X__caddr_t /* types.h:115:19 */
  758. type Key_t = X__key_t /* types.h:121:17 */
  759. // bits/types.h -- definitions of __*_t types underlying *_t types.
  760. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  761. // This file is part of the GNU C Library.
  762. //
  763. // The GNU C Library is free software; you can redistribute it and/or
  764. // modify it under the terms of the GNU Lesser General Public
  765. // License as published by the Free Software Foundation; either
  766. // version 2.1 of the License, or (at your option) any later version.
  767. //
  768. // The GNU C Library is distributed in the hope that it will be useful,
  769. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  770. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  771. // Lesser General Public License for more details.
  772. //
  773. // You should have received a copy of the GNU Lesser General Public
  774. // License along with the GNU C Library; if not, see
  775. // <https://www.gnu.org/licenses/>.
  776. // Never include this file directly; use <sys/types.h> instead.
  777. // Returned by `clock'.
  778. type Clock_t = X__clock_t /* clock_t.h:7:19 */
  779. // bits/types.h -- definitions of __*_t types underlying *_t types.
  780. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  781. // This file is part of the GNU C Library.
  782. //
  783. // The GNU C Library is free software; you can redistribute it and/or
  784. // modify it under the terms of the GNU Lesser General Public
  785. // License as published by the Free Software Foundation; either
  786. // version 2.1 of the License, or (at your option) any later version.
  787. //
  788. // The GNU C Library is distributed in the hope that it will be useful,
  789. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  790. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  791. // Lesser General Public License for more details.
  792. //
  793. // You should have received a copy of the GNU Lesser General Public
  794. // License along with the GNU C Library; if not, see
  795. // <https://www.gnu.org/licenses/>.
  796. // Never include this file directly; use <sys/types.h> instead.
  797. // Clock ID used in clock and timer functions.
  798. type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
  799. // bits/types.h -- definitions of __*_t types underlying *_t types.
  800. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  801. // This file is part of the GNU C Library.
  802. //
  803. // The GNU C Library is free software; you can redistribute it and/or
  804. // modify it under the terms of the GNU Lesser General Public
  805. // License as published by the Free Software Foundation; either
  806. // version 2.1 of the License, or (at your option) any later version.
  807. //
  808. // The GNU C Library is distributed in the hope that it will be useful,
  809. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  810. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  811. // Lesser General Public License for more details.
  812. //
  813. // You should have received a copy of the GNU Lesser General Public
  814. // License along with the GNU C Library; if not, see
  815. // <https://www.gnu.org/licenses/>.
  816. // Never include this file directly; use <sys/types.h> instead.
  817. // Returned by `time'.
  818. type Time_t = X__time_t /* time_t.h:7:18 */
  819. // bits/types.h -- definitions of __*_t types underlying *_t types.
  820. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  821. // This file is part of the GNU C Library.
  822. //
  823. // The GNU C Library is free software; you can redistribute it and/or
  824. // modify it under the terms of the GNU Lesser General Public
  825. // License as published by the Free Software Foundation; either
  826. // version 2.1 of the License, or (at your option) any later version.
  827. //
  828. // The GNU C Library is distributed in the hope that it will be useful,
  829. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  830. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  831. // Lesser General Public License for more details.
  832. //
  833. // You should have received a copy of the GNU Lesser General Public
  834. // License along with the GNU C Library; if not, see
  835. // <https://www.gnu.org/licenses/>.
  836. // Never include this file directly; use <sys/types.h> instead.
  837. // Timer ID returned by `timer_create'.
  838. type Timer_t = X__timer_t /* timer_t.h:7:19 */
  839. // Wide character type.
  840. // Locale-writers should change this as necessary to
  841. // be big enough to hold unique values not between 0 and 127,
  842. // and not (wchar_t) -1, for each defined multibyte character.
  843. // Define this type if we are doing the whole job,
  844. // or if we want this type in particular.
  845. // A null pointer constant.
  846. // Old compatibility names for C types.
  847. type Ulong = uint64 /* types.h:148:27 */
  848. type Ushort = uint16 /* types.h:149:28 */
  849. type Uint = uint32 /* types.h:150:22 */
  850. // These size-specific names are used by some of the inet code.
  851. // Define intN_t types.
  852. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  853. // This file is part of the GNU C Library.
  854. //
  855. // The GNU C Library is free software; you can redistribute it and/or
  856. // modify it under the terms of the GNU Lesser General Public
  857. // License as published by the Free Software Foundation; either
  858. // version 2.1 of the License, or (at your option) any later version.
  859. //
  860. // The GNU C Library is distributed in the hope that it will be useful,
  861. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  862. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  863. // Lesser General Public License for more details.
  864. //
  865. // You should have received a copy of the GNU Lesser General Public
  866. // License along with the GNU C Library; if not, see
  867. // <https://www.gnu.org/licenses/>.
  868. // bits/types.h -- definitions of __*_t types underlying *_t types.
  869. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  870. // This file is part of the GNU C Library.
  871. //
  872. // The GNU C Library is free software; you can redistribute it and/or
  873. // modify it under the terms of the GNU Lesser General Public
  874. // License as published by the Free Software Foundation; either
  875. // version 2.1 of the License, or (at your option) any later version.
  876. //
  877. // The GNU C Library is distributed in the hope that it will be useful,
  878. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  879. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  880. // Lesser General Public License for more details.
  881. //
  882. // You should have received a copy of the GNU Lesser General Public
  883. // License along with the GNU C Library; if not, see
  884. // <https://www.gnu.org/licenses/>.
  885. // Never include this file directly; use <sys/types.h> instead.
  886. type Int8_t = X__int8_t /* stdint-intn.h:24:18 */
  887. type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  888. type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  889. type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  890. // These were defined by ISO C without the first `_'.
  891. type U_int8_t = X__uint8_t /* types.h:158:19 */
  892. type U_int16_t = X__uint16_t /* types.h:159:20 */
  893. type U_int32_t = X__uint32_t /* types.h:160:20 */
  894. type U_int64_t = X__uint64_t /* types.h:161:20 */
  895. type Register_t = int32 /* types.h:164:13 */
  896. // It also defines `fd_set' and the FD_* macros for `select'.
  897. // `fd_set' type and related macros, and `select'/`pselect' declarations.
  898. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  899. // This file is part of the GNU C Library.
  900. //
  901. // The GNU C Library is free software; you can redistribute it and/or
  902. // modify it under the terms of the GNU Lesser General Public
  903. // License as published by the Free Software Foundation; either
  904. // version 2.1 of the License, or (at your option) any later version.
  905. //
  906. // The GNU C Library is distributed in the hope that it will be useful,
  907. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  908. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  909. // Lesser General Public License for more details.
  910. //
  911. // You should have received a copy of the GNU Lesser General Public
  912. // License along with the GNU C Library; if not, see
  913. // <https://www.gnu.org/licenses/>.
  914. // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  915. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  916. // This file is part of the GNU C Library.
  917. //
  918. // The GNU C Library is free software; you can redistribute it and/or
  919. // modify it under the terms of the GNU Lesser General Public
  920. // License as published by the Free Software Foundation; either
  921. // version 2.1 of the License, or (at your option) any later version.
  922. //
  923. // The GNU C Library is distributed in the hope that it will be useful,
  924. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  925. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  926. // Lesser General Public License for more details.
  927. //
  928. // You should have received a copy of the GNU Lesser General Public
  929. // License along with the GNU C Library; if not, see
  930. // <https://www.gnu.org/licenses/>.
  931. // Get definition of needed basic types.
  932. // bits/types.h -- definitions of __*_t types underlying *_t types.
  933. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  934. // This file is part of the GNU C Library.
  935. //
  936. // The GNU C Library is free software; you can redistribute it and/or
  937. // modify it under the terms of the GNU Lesser General Public
  938. // License as published by the Free Software Foundation; either
  939. // version 2.1 of the License, or (at your option) any later version.
  940. //
  941. // The GNU C Library is distributed in the hope that it will be useful,
  942. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  943. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  944. // Lesser General Public License for more details.
  945. //
  946. // You should have received a copy of the GNU Lesser General Public
  947. // License along with the GNU C Library; if not, see
  948. // <https://www.gnu.org/licenses/>.
  949. // Never include this file directly; use <sys/types.h> instead.
  950. // Get __FD_* definitions.
  951. // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  952. // This file is part of the GNU C Library.
  953. //
  954. // The GNU C Library is free software; you can redistribute it and/or
  955. // modify it under the terms of the GNU Lesser General Public
  956. // License as published by the Free Software Foundation; either
  957. // version 2.1 of the License, or (at your option) any later version.
  958. //
  959. // The GNU C Library is distributed in the hope that it will be useful,
  960. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  961. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  962. // Lesser General Public License for more details.
  963. //
  964. // You should have received a copy of the GNU Lesser General Public
  965. // License along with the GNU C Library; if not, see
  966. // <https://www.gnu.org/licenses/>.
  967. // Determine the wordsize from the preprocessor defines.
  968. // Both x86-64 and x32 use the 64-bit system call interface.
  969. // Get sigset_t.
  970. type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  971. // A set of signals to be blocked, unblocked, or waited for.
  972. type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  973. // Get definition of timer specification structures.
  974. // bits/types.h -- definitions of __*_t types underlying *_t types.
  975. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  976. // This file is part of the GNU C Library.
  977. //
  978. // The GNU C Library is free software; you can redistribute it and/or
  979. // modify it under the terms of the GNU Lesser General Public
  980. // License as published by the Free Software Foundation; either
  981. // version 2.1 of the License, or (at your option) any later version.
  982. //
  983. // The GNU C Library is distributed in the hope that it will be useful,
  984. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  985. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  986. // Lesser General Public License for more details.
  987. //
  988. // You should have received a copy of the GNU Lesser General Public
  989. // License along with the GNU C Library; if not, see
  990. // <https://www.gnu.org/licenses/>.
  991. // Never include this file directly; use <sys/types.h> instead.
  992. // A time value that is accurate to the nearest
  993. //
  994. // microsecond but also has a range of years.
  995. type Timeval = struct {
  996. Ftv_sec X__time_t
  997. Ftv_usec X__suseconds_t
  998. } /* struct_timeval.h:8:1 */
  999. // NB: Include guard matches what <linux/time.h> uses.
  1000. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1001. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1002. // This file is part of the GNU C Library.
  1003. //
  1004. // The GNU C Library is free software; you can redistribute it and/or
  1005. // modify it under the terms of the GNU Lesser General Public
  1006. // License as published by the Free Software Foundation; either
  1007. // version 2.1 of the License, or (at your option) any later version.
  1008. //
  1009. // The GNU C Library is distributed in the hope that it will be useful,
  1010. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1011. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1012. // Lesser General Public License for more details.
  1013. //
  1014. // You should have received a copy of the GNU Lesser General Public
  1015. // License along with the GNU C Library; if not, see
  1016. // <https://www.gnu.org/licenses/>.
  1017. // Never include this file directly; use <sys/types.h> instead.
  1018. // Endian macros for string.h functions
  1019. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1020. // This file is part of the GNU C Library.
  1021. //
  1022. // The GNU C Library is free software; you can redistribute it and/or
  1023. // modify it under the terms of the GNU Lesser General Public
  1024. // License as published by the Free Software Foundation; either
  1025. // version 2.1 of the License, or (at your option) any later version.
  1026. //
  1027. // The GNU C Library is distributed in the hope that it will be useful,
  1028. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1029. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1030. // Lesser General Public License for more details.
  1031. //
  1032. // You should have received a copy of the GNU Lesser General Public
  1033. // License along with the GNU C Library; if not, see
  1034. // <http://www.gnu.org/licenses/>.
  1035. // POSIX.1b structure for a time value. This is like a `struct timeval' but
  1036. //
  1037. // has nanoseconds instead of microseconds.
  1038. type Timespec = struct {
  1039. Ftv_sec X__time_t
  1040. Ftv_nsec X__syscall_slong_t
  1041. } /* struct_timespec.h:10:1 */
  1042. type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  1043. // The fd_set member is required to be an array of longs.
  1044. type X__fd_mask = int64 /* select.h:49:18 */
  1045. // Some versions of <linux/posix_types.h> define this macros.
  1046. // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  1047. // fd_set for select and pselect.
  1048. type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  1049. // Maximum number of file descriptors in `fd_set'.
  1050. // Sometimes the fd_set member is assumed to have this type.
  1051. type Fd_mask = X__fd_mask /* select.h:77:19 */
  1052. // Define some inlines helping to catch common problems.
  1053. type Blksize_t = X__blksize_t /* types.h:185:21 */
  1054. // Types from the Large File Support interface.
  1055. type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks.
  1056. type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1057. type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1058. // Now add the thread types.
  1059. // Declaration of common pthread types for all architectures.
  1060. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1061. // This file is part of the GNU C Library.
  1062. //
  1063. // The GNU C Library is free software; you can redistribute it and/or
  1064. // modify it under the terms of the GNU Lesser General Public
  1065. // License as published by the Free Software Foundation; either
  1066. // version 2.1 of the License, or (at your option) any later version.
  1067. //
  1068. // The GNU C Library is distributed in the hope that it will be useful,
  1069. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1070. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1071. // Lesser General Public License for more details.
  1072. //
  1073. // You should have received a copy of the GNU Lesser General Public
  1074. // License along with the GNU C Library; if not, see
  1075. // <https://www.gnu.org/licenses/>.
  1076. // For internal mutex and condition variable definitions.
  1077. // Common threading primitives definitions for both POSIX and C11.
  1078. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1079. // This file is part of the GNU C Library.
  1080. //
  1081. // The GNU C Library is free software; you can redistribute it and/or
  1082. // modify it under the terms of the GNU Lesser General Public
  1083. // License as published by the Free Software Foundation; either
  1084. // version 2.1 of the License, or (at your option) any later version.
  1085. //
  1086. // The GNU C Library is distributed in the hope that it will be useful,
  1087. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1088. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1089. // Lesser General Public License for more details.
  1090. //
  1091. // You should have received a copy of the GNU Lesser General Public
  1092. // License along with the GNU C Library; if not, see
  1093. // <https://www.gnu.org/licenses/>.
  1094. // Arch-specific definitions. Each architecture must define the following
  1095. // macros to define the expected sizes of pthread data types:
  1096. //
  1097. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1098. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1099. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1100. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1101. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1102. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1103. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1104. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1105. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1106. //
  1107. // The additional macro defines any constraint for the lock alignment
  1108. // inside the thread structures:
  1109. //
  1110. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1111. //
  1112. // Same idea but for the once locking primitive:
  1113. //
  1114. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1115. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1116. // This file is part of the GNU C Library.
  1117. //
  1118. // The GNU C Library is free software; you can redistribute it and/or
  1119. // modify it under the terms of the GNU Lesser General Public
  1120. // License as published by the Free Software Foundation; either
  1121. // version 2.1 of the License, or (at your option) any later version.
  1122. //
  1123. // The GNU C Library is distributed in the hope that it will be useful,
  1124. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1125. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1126. // Lesser General Public License for more details.
  1127. //
  1128. // You should have received a copy of the GNU Lesser General Public
  1129. // License along with the GNU C Library; if not, see
  1130. // <https://www.gnu.org/licenses/>.
  1131. // Determine the wordsize from the preprocessor defines.
  1132. // Both x86-64 and x32 use the 64-bit system call interface.
  1133. // Common definition of pthread_mutex_t.
  1134. type X__pthread_internal_list = struct {
  1135. F__prev uintptr
  1136. F__next uintptr
  1137. } /* thread-shared-types.h:49:9 */
  1138. // Type to count file system inodes.
  1139. // Now add the thread types.
  1140. // Declaration of common pthread types for all architectures.
  1141. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1142. // This file is part of the GNU C Library.
  1143. //
  1144. // The GNU C Library is free software; you can redistribute it and/or
  1145. // modify it under the terms of the GNU Lesser General Public
  1146. // License as published by the Free Software Foundation; either
  1147. // version 2.1 of the License, or (at your option) any later version.
  1148. //
  1149. // The GNU C Library is distributed in the hope that it will be useful,
  1150. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1151. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1152. // Lesser General Public License for more details.
  1153. //
  1154. // You should have received a copy of the GNU Lesser General Public
  1155. // License along with the GNU C Library; if not, see
  1156. // <https://www.gnu.org/licenses/>.
  1157. // For internal mutex and condition variable definitions.
  1158. // Common threading primitives definitions for both POSIX and C11.
  1159. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1160. // This file is part of the GNU C Library.
  1161. //
  1162. // The GNU C Library is free software; you can redistribute it and/or
  1163. // modify it under the terms of the GNU Lesser General Public
  1164. // License as published by the Free Software Foundation; either
  1165. // version 2.1 of the License, or (at your option) any later version.
  1166. //
  1167. // The GNU C Library is distributed in the hope that it will be useful,
  1168. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1169. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1170. // Lesser General Public License for more details.
  1171. //
  1172. // You should have received a copy of the GNU Lesser General Public
  1173. // License along with the GNU C Library; if not, see
  1174. // <https://www.gnu.org/licenses/>.
  1175. // Arch-specific definitions. Each architecture must define the following
  1176. // macros to define the expected sizes of pthread data types:
  1177. //
  1178. // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t.
  1179. // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t.
  1180. // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t.
  1181. // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t.
  1182. // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t.
  1183. // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t.
  1184. // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t.
  1185. // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
  1186. // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1187. //
  1188. // The additional macro defines any constraint for the lock alignment
  1189. // inside the thread structures:
  1190. //
  1191. // __LOCK_ALIGNMENT - for internal lock/futex usage.
  1192. //
  1193. // Same idea but for the once locking primitive:
  1194. //
  1195. // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1196. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1197. // This file is part of the GNU C Library.
  1198. //
  1199. // The GNU C Library is free software; you can redistribute it and/or
  1200. // modify it under the terms of the GNU Lesser General Public
  1201. // License as published by the Free Software Foundation; either
  1202. // version 2.1 of the License, or (at your option) any later version.
  1203. //
  1204. // The GNU C Library is distributed in the hope that it will be useful,
  1205. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1206. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1207. // Lesser General Public License for more details.
  1208. //
  1209. // You should have received a copy of the GNU Lesser General Public
  1210. // License along with the GNU C Library; if not, see
  1211. // <https://www.gnu.org/licenses/>.
  1212. // Determine the wordsize from the preprocessor defines.
  1213. // Both x86-64 and x32 use the 64-bit system call interface.
  1214. // Common definition of pthread_mutex_t.
  1215. type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1216. type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1217. type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1218. // Arch-specific mutex definitions. A generic implementation is provided
  1219. // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
  1220. // can override it by defining:
  1221. //
  1222. // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1223. // definition). It should contains at least the internal members
  1224. // defined in the generic version.
  1225. //
  1226. // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1227. // atomic operations.
  1228. //
  1229. // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1230. // It should initialize the mutex internal flag.
  1231. // x86 internal mutex struct definitions.
  1232. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1233. // This file is part of the GNU C Library.
  1234. //
  1235. // The GNU C Library is free software; you can redistribute it and/or
  1236. // modify it under the terms of the GNU Lesser General Public
  1237. // License as published by the Free Software Foundation; either
  1238. // version 2.1 of the License, or (at your option) any later version.
  1239. //
  1240. // The GNU C Library is distributed in the hope that it will be useful,
  1241. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1242. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1243. // Lesser General Public License for more details.
  1244. //
  1245. // You should have received a copy of the GNU Lesser General Public
  1246. // License along with the GNU C Library; if not, see
  1247. // <http://www.gnu.org/licenses/>.
  1248. type X__pthread_mutex_s = struct {
  1249. F__lock int32
  1250. F__count uint32
  1251. F__owner int32
  1252. F__nusers uint32
  1253. F__kind int32
  1254. F__spins int16
  1255. F__elision int16
  1256. F__list X__pthread_list_t
  1257. } /* struct_mutex.h:22:1 */
  1258. // Arch-sepecific read-write lock definitions. A generic implementation is
  1259. // provided by struct_rwlock.h. If required, an architecture can override it
  1260. // by defining:
  1261. //
  1262. // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1263. // It should contain at least the internal members defined in the
  1264. // generic version.
  1265. //
  1266. // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1267. // It should initialize the rwlock internal type.
  1268. // x86 internal rwlock struct definitions.
  1269. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1270. //
  1271. // This file is part of the GNU C Library.
  1272. //
  1273. // The GNU C Library is free software; you can redistribute it and/or
  1274. // modify it under the terms of the GNU Lesser General Public
  1275. // License as published by the Free Software Foundation; either
  1276. // version 2.1 of the License, or (at your option) any later version.
  1277. //
  1278. // The GNU C Library is distributed in the hope that it will be useful,
  1279. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1280. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1281. // Lesser General Public License for more details.
  1282. //
  1283. // You should have received a copy of the GNU Lesser General Public
  1284. // License along with the GNU C Library; if not, see
  1285. // <http://www.gnu.org/licenses/>.
  1286. type X__pthread_rwlock_arch_t = struct {
  1287. F__readers uint32
  1288. F__writers uint32
  1289. F__wrphase_futex uint32
  1290. F__writers_futex uint32
  1291. F__pad3 uint32
  1292. F__pad4 uint32
  1293. F__cur_writer int32
  1294. F__shared int32
  1295. F__rwelision int8
  1296. F__pad1 [7]uint8
  1297. F__pad2 uint64
  1298. F__flags uint32
  1299. F__ccgo_pad1 [4]byte
  1300. } /* struct_rwlock.h:23:1 */
  1301. // Common definition of pthread_cond_t.
  1302. type X__pthread_cond_s = struct {
  1303. F__0 struct{ F__wseq uint64 }
  1304. F__8 struct{ F__g1_start uint64 }
  1305. F__g_refs [2]uint32
  1306. F__g_size [2]uint32
  1307. F__g1_orig_size uint32
  1308. F__wrefs uint32
  1309. F__g_signals [2]uint32
  1310. } /* thread-shared-types.h:92:1 */
  1311. // Thread identifiers. The structure of the attribute type is not
  1312. //
  1313. // exposed on purpose.
  1314. type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1315. // Data structures for mutex handling. The structure of the attribute
  1316. //
  1317. // type is not exposed on purpose.
  1318. type Pthread_mutexattr_t = struct {
  1319. F__ccgo_pad1 [0]uint32
  1320. F__size [4]int8
  1321. } /* pthreadtypes.h:36:3 */
  1322. // Data structure for condition variable handling. The structure of
  1323. //
  1324. // the attribute type is not exposed on purpose.
  1325. type Pthread_condattr_t = struct {
  1326. F__ccgo_pad1 [0]uint32
  1327. F__size [4]int8
  1328. } /* pthreadtypes.h:45:3 */
  1329. // Keys for thread-specific data
  1330. type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1331. // Once-only execution
  1332. type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1333. type Pthread_attr_t1 = struct {
  1334. F__ccgo_pad1 [0]uint64
  1335. F__size [56]int8
  1336. } /* pthreadtypes.h:56:1 */
  1337. type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1338. type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
  1339. type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1340. // Data structure for reader-writer lock variable handling. The
  1341. //
  1342. // structure of the attribute type is deliberately not exposed.
  1343. type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1344. type Pthread_rwlockattr_t = struct {
  1345. F__ccgo_pad1 [0]uint64
  1346. F__size [8]int8
  1347. } /* pthreadtypes.h:97:3 */
  1348. // POSIX spinlock data type.
  1349. type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1350. // POSIX barriers data type. The structure of the type is
  1351. //
  1352. // deliberately not exposed.
  1353. type Pthread_barrier_t = struct {
  1354. F__ccgo_pad1 [0]uint64
  1355. F__size [32]int8
  1356. } /* pthreadtypes.h:112:3 */
  1357. type Pthread_barrierattr_t = struct {
  1358. F__ccgo_pad1 [0]uint32
  1359. F__size [4]int8
  1360. } /* pthreadtypes.h:118:3 */
  1361. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1362. // This file is part of the GNU C Library.
  1363. //
  1364. // The GNU C Library is free software; you can redistribute it and/or
  1365. // modify it under the terms of the GNU Lesser General Public
  1366. // License as published by the Free Software Foundation; either
  1367. // version 2.1 of the License, or (at your option) any later version.
  1368. //
  1369. // The GNU C Library is distributed in the hope that it will be useful,
  1370. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1371. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1372. // Lesser General Public License for more details.
  1373. //
  1374. // You should have received a copy of the GNU Lesser General Public
  1375. // License along with the GNU C Library; if not, see
  1376. // <https://www.gnu.org/licenses/>.
  1377. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1378. // This file is part of the GNU C Library.
  1379. //
  1380. // The GNU C Library is free software; you can redistribute it and/or
  1381. // modify it under the terms of the GNU Lesser General Public
  1382. // License as published by the Free Software Foundation; either
  1383. // version 2.1 of the License, or (at your option) any later version.
  1384. //
  1385. // The GNU C Library is distributed in the hope that it will be useful,
  1386. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1387. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1388. // Lesser General Public License for more details.
  1389. //
  1390. // You should have received a copy of the GNU Lesser General Public
  1391. // License along with the GNU C Library; if not, see
  1392. // <https://www.gnu.org/licenses/>.
  1393. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1394. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1395. // This file is part of the GNU C Library.
  1396. //
  1397. // The GNU C Library is free software; you can redistribute it and/or
  1398. // modify it under the terms of the GNU Lesser General Public
  1399. // License as published by the Free Software Foundation; either
  1400. // version 2.1 of the License, or (at your option) any later version.
  1401. //
  1402. // The GNU C Library is distributed in the hope that it will be useful,
  1403. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1404. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1405. // Lesser General Public License for more details.
  1406. //
  1407. // You should have received a copy of the GNU Lesser General Public
  1408. // License along with the GNU C Library; if not, see
  1409. // <https://www.gnu.org/licenses/>.
  1410. // Never include this file directly; use <sys/types.h> instead.
  1411. // `fd_set' type and related macros, and `select'/`pselect' declarations.
  1412. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  1413. // This file is part of the GNU C Library.
  1414. //
  1415. // The GNU C Library is free software; you can redistribute it and/or
  1416. // modify it under the terms of the GNU Lesser General Public
  1417. // License as published by the Free Software Foundation; either
  1418. // version 2.1 of the License, or (at your option) any later version.
  1419. //
  1420. // The GNU C Library is distributed in the hope that it will be useful,
  1421. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1422. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1423. // Lesser General Public License for more details.
  1424. //
  1425. // You should have received a copy of the GNU Lesser General Public
  1426. // License along with the GNU C Library; if not, see
  1427. // <https://www.gnu.org/licenses/>.
  1428. // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  1429. // Structure crudely representing a timezone.
  1430. //
  1431. // This is obsolete and should never be used.
  1432. type Timezone = struct {
  1433. Ftz_minuteswest int32
  1434. Ftz_dsttime int32
  1435. } /* time.h:52:1 */
  1436. // Type of the second argument to `getitimer' and
  1437. //
  1438. // the second and third arguments `setitimer'.
  1439. type Itimerval = struct {
  1440. Fit_interval struct {
  1441. Ftv_sec X__time_t
  1442. Ftv_usec X__suseconds_t
  1443. }
  1444. Fit_value struct {
  1445. Ftv_sec X__time_t
  1446. Ftv_usec X__suseconds_t
  1447. }
  1448. } /* time.h:105:1 */
  1449. type X__itimer_which_t = int32 /* time.h:118:13 */
  1450. // Convenience macros for operations on timevals.
  1451. // NOTE: `timercmp' does not work for >= or <=.
  1452. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1453. // This file is part of the GNU C Library.
  1454. //
  1455. // The GNU C Library is free software; you can redistribute it and/or
  1456. // modify it under the terms of the GNU Lesser General Public
  1457. // License as published by the Free Software Foundation; either
  1458. // version 2.1 of the License, or (at your option) any later version.
  1459. //
  1460. // The GNU C Library is distributed in the hope that it will be useful,
  1461. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1462. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1463. // Lesser General Public License for more details.
  1464. //
  1465. // You should have received a copy of the GNU Lesser General Public
  1466. // License along with the GNU C Library; if not, see
  1467. // <https://www.gnu.org/licenses/>.
  1468. // ISO C99 Standard: 7.23 Date and time <time.h>
  1469. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1470. // This file is part of the GNU C Library.
  1471. //
  1472. // The GNU C Library is free software; you can redistribute it and/or
  1473. // modify it under the terms of the GNU Lesser General Public
  1474. // License as published by the Free Software Foundation; either
  1475. // version 2.1 of the License, or (at your option) any later version.
  1476. //
  1477. // The GNU C Library is distributed in the hope that it will be useful,
  1478. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1479. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1480. // Lesser General Public License for more details.
  1481. //
  1482. // You should have received a copy of the GNU Lesser General Public
  1483. // License along with the GNU C Library; if not, see
  1484. // <https://www.gnu.org/licenses/>.
  1485. // Copyright (C) 1989-2020 Free Software Foundation, Inc.
  1486. //
  1487. // This file is part of GCC.
  1488. //
  1489. // GCC is free software; you can redistribute it and/or modify
  1490. // it under the terms of the GNU General Public License as published by
  1491. // the Free Software Foundation; either version 3, or (at your option)
  1492. // any later version.
  1493. //
  1494. // GCC is distributed in the hope that it will be useful,
  1495. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1496. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  1497. // GNU General Public License for more details.
  1498. //
  1499. // Under Section 7 of GPL version 3, you are granted additional
  1500. // permissions described in the GCC Runtime Library Exception, version
  1501. // 3.1, as published by the Free Software Foundation.
  1502. //
  1503. // You should have received a copy of the GNU General Public License and
  1504. // a copy of the GCC Runtime Library Exception along with this program;
  1505. // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  1506. // <http://www.gnu.org/licenses/>.
  1507. // ISO C Standard: 7.17 Common definitions <stddef.h>
  1508. // Any one of these symbols __need_* means that GNU libc
  1509. // wants us just to define one data type. So don't define
  1510. // the symbols that indicate this file's entire job has been done.
  1511. // This avoids lossage on SunOS but only if stdtypes.h comes first.
  1512. // There's no way to win with the other order! Sun lossage.
  1513. // Sequent's header files use _PTRDIFF_T_ in some conflicting way.
  1514. // Just ignore it.
  1515. // On VxWorks, <type/vxTypesBase.h> may have defined macros like
  1516. // _TYPE_size_t which will typedef size_t. fixincludes patched the
  1517. // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
  1518. // not defined, and so that defining this macro defines _GCC_SIZE_T.
  1519. // If we find that the macros are still defined at this point, we must
  1520. // invoke them so that the type is defined as expected.
  1521. // In case nobody has defined these types, but we aren't running under
  1522. // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
  1523. // __WCHAR_TYPE__ have reasonable values. This can happen if the
  1524. // parts of GCC is compiled by an older compiler, that actually
  1525. // include gstddef.h, such as collect2.
  1526. // Signed type of difference of two pointers.
  1527. // Define this type if we are doing the whole job,
  1528. // or if we want this type in particular.
  1529. // Unsigned type of `sizeof' something.
  1530. // Define this type if we are doing the whole job,
  1531. // or if we want this type in particular.
  1532. // Wide character type.
  1533. // Locale-writers should change this as necessary to
  1534. // be big enough to hold unique values not between 0 and 127,
  1535. // and not (wchar_t) -1, for each defined multibyte character.
  1536. // Define this type if we are doing the whole job,
  1537. // or if we want this type in particular.
  1538. // A null pointer constant.
  1539. // This defines CLOCKS_PER_SEC, which is the number of processor clock
  1540. // ticks per second, and possibly a number of other constants.
  1541. // System-dependent timing definitions. Linux version.
  1542. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  1543. // This file is part of the GNU C Library.
  1544. //
  1545. // The GNU C Library is free software; you can redistribute it and/or
  1546. // modify it under the terms of the GNU Lesser General Public
  1547. // License as published by the Free Software Foundation; either
  1548. // version 2.1 of the License, or (at your option) any later version.
  1549. //
  1550. // The GNU C Library is distributed in the hope that it will be useful,
  1551. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1552. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1553. // Lesser General Public License for more details.
  1554. //
  1555. // You should have received a copy of the GNU Lesser General Public
  1556. // License along with the GNU C Library; if not, see
  1557. // <https://www.gnu.org/licenses/>.
  1558. // Never include this file directly; use <time.h> instead.
  1559. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1560. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1561. // This file is part of the GNU C Library.
  1562. //
  1563. // The GNU C Library is free software; you can redistribute it and/or
  1564. // modify it under the terms of the GNU Lesser General Public
  1565. // License as published by the Free Software Foundation; either
  1566. // version 2.1 of the License, or (at your option) any later version.
  1567. //
  1568. // The GNU C Library is distributed in the hope that it will be useful,
  1569. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1570. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1571. // Lesser General Public License for more details.
  1572. //
  1573. // You should have received a copy of the GNU Lesser General Public
  1574. // License along with the GNU C Library; if not, see
  1575. // <https://www.gnu.org/licenses/>.
  1576. // Never include this file directly; use <sys/types.h> instead.
  1577. // ISO/IEC 9899:1999 7.23.1: Components of time
  1578. // The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is
  1579. // the number per second of the value returned by the `clock' function.
  1580. // CAE XSH, Issue 4, Version 2: <time.h>
  1581. // The value of CLOCKS_PER_SEC is required to be 1 million on all
  1582. // XSI-conformant systems.
  1583. // Identifier for system-wide realtime clock.
  1584. // Monotonic system-wide clock.
  1585. // High-resolution timer from the CPU.
  1586. // Thread-specific CPU-time clock.
  1587. // Monotonic system-wide clock, not adjusted for frequency scaling.
  1588. // Identifier for system-wide realtime clock, updated only on ticks.
  1589. // Monotonic system-wide clock, updated only on ticks.
  1590. // Monotonic system-wide clock that includes time spent in suspension.
  1591. // Like CLOCK_REALTIME but also wakes suspended system.
  1592. // Like CLOCK_BOOTTIME but also wakes suspended system.
  1593. // Like CLOCK_REALTIME but in International Atomic Time.
  1594. // Flag to indicate time is absolute.
  1595. // Many of the typedefs and structs whose official home is this header
  1596. // may also need to be defined by other headers.
  1597. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1598. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1599. // This file is part of the GNU C Library.
  1600. //
  1601. // The GNU C Library is free software; you can redistribute it and/or
  1602. // modify it under the terms of the GNU Lesser General Public
  1603. // License as published by the Free Software Foundation; either
  1604. // version 2.1 of the License, or (at your option) any later version.
  1605. //
  1606. // The GNU C Library is distributed in the hope that it will be useful,
  1607. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1608. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1609. // Lesser General Public License for more details.
  1610. //
  1611. // You should have received a copy of the GNU Lesser General Public
  1612. // License along with the GNU C Library; if not, see
  1613. // <https://www.gnu.org/licenses/>.
  1614. // Never include this file directly; use <sys/types.h> instead.
  1615. // ISO C `broken-down time' structure.
  1616. type Tm = struct {
  1617. Ftm_sec int32
  1618. Ftm_min int32
  1619. Ftm_hour int32
  1620. Ftm_mday int32
  1621. Ftm_mon int32
  1622. Ftm_year int32
  1623. Ftm_wday int32
  1624. Ftm_yday int32
  1625. Ftm_isdst int32
  1626. F__ccgo_pad1 [4]byte
  1627. Ftm_gmtoff int64
  1628. Ftm_zone uintptr
  1629. } /* struct_tm.h:7:1 */
  1630. // NB: Include guard matches what <linux/time.h> uses.
  1631. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1632. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1633. // This file is part of the GNU C Library.
  1634. //
  1635. // The GNU C Library is free software; you can redistribute it and/or
  1636. // modify it under the terms of the GNU Lesser General Public
  1637. // License as published by the Free Software Foundation; either
  1638. // version 2.1 of the License, or (at your option) any later version.
  1639. //
  1640. // The GNU C Library is distributed in the hope that it will be useful,
  1641. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1642. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1643. // Lesser General Public License for more details.
  1644. //
  1645. // You should have received a copy of the GNU Lesser General Public
  1646. // License along with the GNU C Library; if not, see
  1647. // <https://www.gnu.org/licenses/>.
  1648. // Never include this file directly; use <sys/types.h> instead.
  1649. // NB: Include guard matches what <linux/time.h> uses.
  1650. // POSIX.1b structure for timer start values and intervals.
  1651. type Itimerspec = struct {
  1652. Fit_interval struct {
  1653. Ftv_sec X__time_t
  1654. Ftv_nsec X__syscall_slong_t
  1655. }
  1656. Fit_value struct {
  1657. Ftv_sec X__time_t
  1658. Ftv_nsec X__syscall_slong_t
  1659. }
  1660. } /* struct_itimerspec.h:8:1 */
  1661. // Definition of locale_t.
  1662. // Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1663. // This file is part of the GNU C Library.
  1664. //
  1665. // The GNU C Library is free software; you can redistribute it and/or
  1666. // modify it under the terms of the GNU Lesser General Public
  1667. // License as published by the Free Software Foundation; either
  1668. // version 2.1 of the License, or (at your option) any later version.
  1669. //
  1670. // The GNU C Library is distributed in the hope that it will be useful,
  1671. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1672. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1673. // Lesser General Public License for more details.
  1674. //
  1675. // You should have received a copy of the GNU Lesser General Public
  1676. // License along with the GNU C Library; if not, see
  1677. // <https://www.gnu.org/licenses/>.
  1678. // Definition of struct __locale_struct and __locale_t.
  1679. // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1680. // This file is part of the GNU C Library.
  1681. // Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
  1682. //
  1683. // The GNU C Library is free software; you can redistribute it and/or
  1684. // modify it under the terms of the GNU Lesser General Public
  1685. // License as published by the Free Software Foundation; either
  1686. // version 2.1 of the License, or (at your option) any later version.
  1687. //
  1688. // The GNU C Library is distributed in the hope that it will be useful,
  1689. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1690. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1691. // Lesser General Public License for more details.
  1692. //
  1693. // You should have received a copy of the GNU Lesser General Public
  1694. // License along with the GNU C Library; if not, see
  1695. // <https://www.gnu.org/licenses/>.
  1696. // POSIX.1-2008: the locale_t type, representing a locale context
  1697. // (implementation-namespace version). This type should be treated
  1698. // as opaque by applications; some details are exposed for the sake of
  1699. // efficiency in e.g. ctype functions.
  1700. type X__locale_struct = struct {
  1701. F__locales [13]uintptr
  1702. F__ctype_b uintptr
  1703. F__ctype_tolower uintptr
  1704. F__ctype_toupper uintptr
  1705. F__names [13]uintptr
  1706. } /* __locale_t.h:28:1 */
  1707. type X__locale_t = uintptr /* __locale_t.h:42:32 */
  1708. type Locale_t = X__locale_t /* locale_t.h:24:20 */
  1709. type Uuid_t = [16]uint8 /* uuid.h:44:23 */
  1710. var _ int8 /* gen.c:2:13: */