time_linux_loong64.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. // Code generated by 'ccgo time/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 time/time_linux_loong64.go -pkgname time', DO NOT EDIT.
  2. package time
  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. CLOCKS_PER_SEC = 1000000
  15. CLOCK_BOOTTIME = 7 // time.h:60:1:
  16. CLOCK_BOOTTIME_ALARM = 9 // time.h:64:1:
  17. CLOCK_MONOTONIC = 1 // time.h:48:1:
  18. CLOCK_MONOTONIC_COARSE = 6 // time.h:58:1:
  19. CLOCK_MONOTONIC_RAW = 4 // time.h:54:1:
  20. CLOCK_PROCESS_CPUTIME_ID = 2 // time.h:50:1:
  21. CLOCK_REALTIME = 0 // time.h:46:1:
  22. CLOCK_REALTIME_ALARM = 8 // time.h:62:1:
  23. CLOCK_REALTIME_COARSE = 5 // time.h:56:1:
  24. CLOCK_TAI = 11 // time.h:66:1:
  25. CLOCK_THREAD_CPUTIME_ID = 3 // time.h:52:1:
  26. TIMER_ABSTIME = 1 // time.h:69:1:
  27. TIME_UTC = 1 // time.h:65:1:
  28. X_ABILP64 = 3 // <predefined>:377:1:
  29. X_ATFILE_SOURCE = 1 // features.h:353:1:
  30. X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
  31. X_BITS_ENDIAN_H = 1 // endian.h:20:1:
  32. X_BITS_TIME64_H = 1 // time64.h:24:1:
  33. X_BITS_TIME_H = 1 // time.h:24:1:
  34. X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
  35. X_BITS_TYPES_H = 1 // types.h:24:1:
  36. X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1:
  37. X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:20:1:
  38. X_BSD_SIZE_T_ = 0 // stddef.h:193:1:
  39. X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:196:1:
  40. X_DEFAULT_SOURCE = 1 // features.h:238:1:
  41. X_FEATURES_H = 1 // features.h:19:1:
  42. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  43. X_GCC_SIZE_T = 0 // stddef.h:200:1:
  44. X_LOONGARCH_ARCH = "loongarch64" // <predefined>:214:1:
  45. X_LOONGARCH_ARCH_LOONGARCH64 = 1 // <predefined>:340:1:
  46. X_LOONGARCH_FPSET = 32 // <predefined>:265:1:
  47. X_LOONGARCH_SIM = 3 // <predefined>:233:1:
  48. X_LOONGARCH_SPFPSET = 32 // <predefined>:88:1:
  49. X_LOONGARCH_SZINT = 32 // <predefined>:230:1:
  50. X_LOONGARCH_SZLONG = 64 // <predefined>:388:1:
  51. X_LOONGARCH_SZPTR = 64 // <predefined>:200:1:
  52. X_LOONGARCH_TUNE = "la464" // <predefined>:245:1:
  53. X_LOONGARCH_TUNE_LA464 = 1 // <predefined>:63:1:
  54. X_LP64 = 1 // <predefined>:372:1:
  55. X_POSIX_C_SOURCE = 200809 // features.h:292:1:
  56. X_POSIX_SOURCE = 1 // features.h:290:1:
  57. X_SIZET_ = 0 // stddef.h:201:1:
  58. X_SIZE_T = 0 // stddef.h:187:1:
  59. X_SIZE_T_ = 0 // stddef.h:192:1:
  60. X_SIZE_T_DECLARED = 0 // stddef.h:197:1:
  61. X_SIZE_T_DEFINED = 0 // stddef.h:195:1:
  62. X_SIZE_T_DEFINED_ = 0 // stddef.h:194:1:
  63. X_STDC_PREDEF_H = 1 // <predefined>:223:1:
  64. X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1:
  65. X_SYS_CDEFS_H = 1 // cdefs.h:20:1:
  66. X_SYS_SIZE_T_H = 0 // stddef.h:188:1:
  67. X_TIME_H = 1 // time.h:23:1:
  68. X_T_SIZE = 0 // stddef.h:190:1:
  69. X_T_SIZE_ = 0 // stddef.h:189:1:
  70. Linux = 1 // <predefined>:308:1:
  71. Unix = 1 // <predefined>:247:1:
  72. )
  73. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  74. type Size_t = uint64 /* <builtin>:9:23 */
  75. type Wchar_t = int32 /* <builtin>:15:24 */
  76. type X__int128_t = struct {
  77. Flo int64
  78. Fhi int64
  79. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  80. type X__uint128_t = struct {
  81. Flo uint64
  82. Fhi uint64
  83. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  84. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  85. type X__float128 = float64 /* <builtin>:47:21 */
  86. // Wide character type.
  87. // Locale-writers should change this as necessary to
  88. // be big enough to hold unique values not between 0 and 127,
  89. // and not (wchar_t) -1, for each defined multibyte character.
  90. // Define this type if we are doing the whole job,
  91. // or if we want this type in particular.
  92. // A null pointer constant.
  93. // This defines CLOCKS_PER_SEC, which is the number of processor clock
  94. // ticks per second, and possibly a number of other constants.
  95. // System-dependent timing definitions. Linux version.
  96. // Copyright (C) 1996-2023 Free Software Foundation, Inc.
  97. // This file is part of the GNU C Library.
  98. //
  99. // The GNU C Library is free software; you can redistribute it and/or
  100. // modify it under the terms of the GNU Lesser General Public
  101. // License as published by the Free Software Foundation; either
  102. // version 2.1 of the License, or (at your option) any later version.
  103. //
  104. // The GNU C Library is distributed in the hope that it will be useful,
  105. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  106. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  107. // Lesser General Public License for more details.
  108. //
  109. // You should have received a copy of the GNU Lesser General Public
  110. // License along with the GNU C Library; if not, see
  111. // <https://www.gnu.org/licenses/>.
  112. // Never include this file directly; use <time.h> instead.
  113. // bits/types.h -- definitions of __*_t types underlying *_t types.
  114. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  115. // This file is part of the GNU C Library.
  116. //
  117. // The GNU C Library is free software; you can redistribute it and/or
  118. // modify it under the terms of the GNU Lesser General Public
  119. // License as published by the Free Software Foundation; either
  120. // version 2.1 of the License, or (at your option) any later version.
  121. //
  122. // The GNU C Library is distributed in the hope that it will be useful,
  123. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  124. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  125. // Lesser General Public License for more details.
  126. //
  127. // You should have received a copy of the GNU Lesser General Public
  128. // License along with the GNU C Library; if not, see
  129. // <https://www.gnu.org/licenses/>.
  130. // Never include this file directly; use <sys/types.h> instead.
  131. // Copyright (C) 1991-2023 Free Software Foundation, Inc.
  132. // This file is part of the GNU C Library.
  133. //
  134. // The GNU C Library is free software; you can redistribute it and/or
  135. // modify it under the terms of the GNU Lesser General Public
  136. // License as published by the Free Software Foundation; either
  137. // version 2.1 of the License, or (at your option) any later version.
  138. //
  139. // The GNU C Library is distributed in the hope that it will be useful,
  140. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  141. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  142. // Lesser General Public License for more details.
  143. //
  144. // You should have received a copy of the GNU Lesser General Public
  145. // License along with the GNU C Library; if not, see
  146. // <https://www.gnu.org/licenses/>.
  147. // Copyright (C) 1999-2023 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. // Bit size of the time_t type at glibc build time, general case.
  164. // Copyright (C) 2018-2023 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. // Size in bits of the 'time_t' type of the default ABI.
  181. // Convenience types.
  182. type X__u_char = uint8 /* types.h:31:23 */
  183. type X__u_short = uint16 /* types.h:32:28 */
  184. type X__u_int = uint32 /* types.h:33:22 */
  185. type X__u_long = uint64 /* types.h:34:27 */
  186. // Fixed-size types, underlying types depend on word size and compiler.
  187. type X__int8_t = int8 /* types.h:37:21 */
  188. type X__uint8_t = uint8 /* types.h:38:23 */
  189. type X__int16_t = int16 /* types.h:39:26 */
  190. type X__uint16_t = uint16 /* types.h:40:28 */
  191. type X__int32_t = int32 /* types.h:41:20 */
  192. type X__uint32_t = uint32 /* types.h:42:22 */
  193. type X__int64_t = int64 /* types.h:44:25 */
  194. type X__uint64_t = uint64 /* types.h:45:27 */
  195. // Smallest types with at least a given width.
  196. type X__int_least8_t = int8 /* types.h:52:18 */
  197. type X__uint_least8_t = uint8 /* types.h:53:19 */
  198. type X__int_least16_t = int16 /* types.h:54:19 */
  199. type X__uint_least16_t = uint16 /* types.h:55:20 */
  200. type X__int_least32_t = int32 /* types.h:56:19 */
  201. type X__uint_least32_t = uint32 /* types.h:57:20 */
  202. type X__int_least64_t = int64 /* types.h:58:19 */
  203. type X__uint_least64_t = uint64 /* types.h:59:20 */
  204. // quad_t is also 64 bits.
  205. type X__quad_t = int64 /* types.h:63:18 */
  206. type X__u_quad_t = uint64 /* types.h:64:27 */
  207. // Largest integral types.
  208. type X__intmax_t = int64 /* types.h:72:18 */
  209. type X__uintmax_t = uint64 /* types.h:73:27 */
  210. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  211. // macros for each of the OS types we define below. The definitions
  212. // of those macros must use the following macros for underlying types.
  213. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  214. // variants of each of the following integer types on this machine.
  215. //
  216. // 16 -- "natural" 16-bit type (always short)
  217. // 32 -- "natural" 32-bit type (always int)
  218. // 64 -- "natural" 64-bit type (long or long long)
  219. // LONG32 -- 32-bit type, traditionally long
  220. // QUAD -- 64-bit type, traditionally long long
  221. // WORD -- natural type of __WORDSIZE bits (int or long)
  222. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  223. //
  224. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  225. // conventional uses of `long' or `long long' type modifiers match the
  226. // types we define, even when a less-adorned type would be the same size.
  227. // This matters for (somewhat) portably writing printf/scanf formats for
  228. // these types, where using the appropriate l or ll format modifiers can
  229. // make the typedefs and the formats match up across all GNU platforms. If
  230. // we used `long' when it's 64 bits where `long long' is expected, then the
  231. // compiler would warn about the formats not matching the argument types,
  232. // and the programmer changing them to shut up the compiler would break the
  233. // program's portability.
  234. //
  235. // Here we assume what is presently the case in all the GCC configurations
  236. // we support: long long is always 64 bits, long is always word/address size,
  237. // and int is always 32 bits.
  238. // No need to mark the typedef with __extension__.
  239. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
  240. // Copyright (C) 2011-2023 Free Software Foundation, Inc.
  241. // This file is part of the GNU C Library.
  242. //
  243. // The GNU C Library is free software; you can redistribute it and/or
  244. // modify it under the terms of the GNU Lesser General Public
  245. // License as published by the Free Software Foundation; either
  246. // version 2.1 of the License, or (at your option) any later version.
  247. //
  248. // The GNU C Library is distributed in the hope that it will be useful,
  249. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  250. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  251. // Lesser General Public License for more details.
  252. //
  253. // You should have received a copy of the GNU Lesser General Public
  254. // License along with the GNU C Library. If not, see
  255. // <https://www.gnu.org/licenses/>.
  256. // See <bits/types.h> for the meaning of these macros. This file exists so
  257. // that <bits/types.h> need not vary across different GNU platforms.
  258. // Tell the libc code that off_t and off64_t are actually the same type
  259. // for all ABI purposes, even if possibly expressed as different base types
  260. // for C type-checking purposes.
  261. // Same for ino_t and ino64_t.
  262. // And for __rlim_t and __rlim64_t.
  263. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  264. // And for getitimer, setitimer and rusage
  265. // Number of descriptors that can fit in an `fd_set'.
  266. // bits/time64.h -- underlying types for __time64_t. Generic version.
  267. // Copyright (C) 2018-2023 Free Software Foundation, Inc.
  268. // This file is part of the GNU C Library.
  269. //
  270. // The GNU C Library is free software; you can redistribute it and/or
  271. // modify it under the terms of the GNU Lesser General Public
  272. // License as published by the Free Software Foundation; either
  273. // version 2.1 of the License, or (at your option) any later version.
  274. //
  275. // The GNU C Library is distributed in the hope that it will be useful,
  276. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  277. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  278. // Lesser General Public License for more details.
  279. //
  280. // You should have received a copy of the GNU Lesser General Public
  281. // License along with the GNU C Library; if not, see
  282. // <https://www.gnu.org/licenses/>.
  283. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  284. // If we already have 64-bit time type then use it.
  285. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  286. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  287. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  288. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  289. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  290. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  291. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  292. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  293. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  294. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  295. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  296. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  297. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  298. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  299. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  300. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  301. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  302. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  303. type X__suseconds64_t = int64 /* types.h:163:33 */
  304. type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address.
  305. type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key.
  306. // Clock ID used in clock and timer functions.
  307. type X__clockid_t = int32 /* types.h:169:29 */
  308. // Timer ID returned by `timer_create'.
  309. type X__timer_t = uintptr /* types.h:172:12 */
  310. // Type to represent block size.
  311. type X__blksize_t = int32 /* types.h:175:29 */
  312. // Types from the Large File Support interface.
  313. // Type to count number of disk blocks.
  314. type X__blkcnt_t = int64 /* types.h:180:28 */
  315. type X__blkcnt64_t = int64 /* types.h:181:30 */
  316. // Type to count file system blocks.
  317. type X__fsblkcnt_t = uint64 /* types.h:184:30 */
  318. type X__fsblkcnt64_t = uint64 /* types.h:185:32 */
  319. // Type to count file system nodes.
  320. type X__fsfilcnt_t = uint64 /* types.h:188:30 */
  321. type X__fsfilcnt64_t = uint64 /* types.h:189:32 */
  322. // Type of miscellaneous file system fields.
  323. type X__fsword_t = int64 /* types.h:192:28 */
  324. type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error.
  325. // Signed long type used in system calls.
  326. type X__syscall_slong_t = int64 /* types.h:197:33 */
  327. // Unsigned long type used in system calls.
  328. type X__syscall_ulong_t = uint64 /* types.h:199:33 */
  329. // These few don't really vary by system, they always correspond
  330. //
  331. // to one of the other defined types.
  332. type X__loff_t = int64 /* types.h:203:19 */ // Type of file sizes and offsets (LFS).
  333. type X__caddr_t = uintptr /* types.h:204:14 */
  334. // Duplicates info from stdint.h but this is used in unistd.h.
  335. type X__intptr_t = int64 /* types.h:207:25 */
  336. // Duplicate info from sys/socket.h.
  337. type X__socklen_t = uint32 /* types.h:210:23 */
  338. // C99: An integer type that can be accessed as an atomic entity,
  339. //
  340. // even in the presence of asynchronous interrupts.
  341. // It is not currently necessary for this to be machine-specific.
  342. type X__sig_atomic_t = int32 /* types.h:215:13 */
  343. // Seconds since the Epoch, visible to user code when time_t is too
  344. // narrow only for consistency with the old way of widening too-narrow
  345. // types. User code should never use __time64_t.
  346. // ISO/IEC 9899:1999 7.23.1: Components of time
  347. // The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is
  348. // the number per second of the value returned by the `clock' function.
  349. // CAE XSH, Issue 4, Version 2: <time.h>
  350. // The value of CLOCKS_PER_SEC is required to be 1 million on all
  351. // XSI-conformant systems.
  352. // Identifier for system-wide realtime clock.
  353. // Monotonic system-wide clock.
  354. // High-resolution timer from the CPU.
  355. // Thread-specific CPU-time clock.
  356. // Monotonic system-wide clock, not adjusted for frequency scaling.
  357. // Identifier for system-wide realtime clock, updated only on ticks.
  358. // Monotonic system-wide clock, updated only on ticks.
  359. // Monotonic system-wide clock that includes time spent in suspension.
  360. // Like CLOCK_REALTIME but also wakes suspended system.
  361. // Like CLOCK_BOOTTIME but also wakes suspended system.
  362. // Like CLOCK_REALTIME but in International Atomic Time.
  363. // Flag to indicate time is absolute.
  364. // Many of the typedefs and structs whose official home is this header
  365. // may also need to be defined by other headers.
  366. // bits/types.h -- definitions of __*_t types underlying *_t types.
  367. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  368. // This file is part of the GNU C Library.
  369. //
  370. // The GNU C Library is free software; you can redistribute it and/or
  371. // modify it under the terms of the GNU Lesser General Public
  372. // License as published by the Free Software Foundation; either
  373. // version 2.1 of the License, or (at your option) any later version.
  374. //
  375. // The GNU C Library is distributed in the hope that it will be useful,
  376. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  377. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  378. // Lesser General Public License for more details.
  379. //
  380. // You should have received a copy of the GNU Lesser General Public
  381. // License along with the GNU C Library; if not, see
  382. // <https://www.gnu.org/licenses/>.
  383. // Never include this file directly; use <sys/types.h> instead.
  384. // Returned by `clock'.
  385. type Clock_t = int64 /* clock_t.h:7:19 */
  386. // bits/types.h -- definitions of __*_t types underlying *_t types.
  387. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  388. // This file is part of the GNU C Library.
  389. //
  390. // The GNU C Library is free software; you can redistribute it and/or
  391. // modify it under the terms of the GNU Lesser General Public
  392. // License as published by the Free Software Foundation; either
  393. // version 2.1 of the License, or (at your option) any later version.
  394. //
  395. // The GNU C Library is distributed in the hope that it will be useful,
  396. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  397. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  398. // Lesser General Public License for more details.
  399. //
  400. // You should have received a copy of the GNU Lesser General Public
  401. // License along with the GNU C Library; if not, see
  402. // <https://www.gnu.org/licenses/>.
  403. // Never include this file directly; use <sys/types.h> instead.
  404. // Returned by `time'.
  405. type Time_t = int64 /* time_t.h:10:18 */
  406. // bits/types.h -- definitions of __*_t types underlying *_t types.
  407. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  408. // This file is part of the GNU C Library.
  409. //
  410. // The GNU C Library is free software; you can redistribute it and/or
  411. // modify it under the terms of the GNU Lesser General Public
  412. // License as published by the Free Software Foundation; either
  413. // version 2.1 of the License, or (at your option) any later version.
  414. //
  415. // The GNU C Library is distributed in the hope that it will be useful,
  416. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  417. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  418. // Lesser General Public License for more details.
  419. //
  420. // You should have received a copy of the GNU Lesser General Public
  421. // License along with the GNU C Library; if not, see
  422. // <https://www.gnu.org/licenses/>.
  423. // Never include this file directly; use <sys/types.h> instead.
  424. // ISO C `broken-down time' structure.
  425. type Tm = struct {
  426. Ftm_sec int32
  427. Ftm_min int32
  428. Ftm_hour int32
  429. Ftm_mday int32
  430. Ftm_mon int32
  431. Ftm_year int32
  432. Ftm_wday int32
  433. Ftm_yday int32
  434. Ftm_isdst int32
  435. F__ccgo_pad1 [4]byte
  436. Ftm_gmtoff int64
  437. Ftm_zone uintptr
  438. } /* struct_tm.h:7:1 */
  439. // NB: Include guard matches what <linux/time.h> uses.
  440. // bits/types.h -- definitions of __*_t types underlying *_t types.
  441. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  442. // This file is part of the GNU C Library.
  443. //
  444. // The GNU C Library is free software; you can redistribute it and/or
  445. // modify it under the terms of the GNU Lesser General Public
  446. // License as published by the Free Software Foundation; either
  447. // version 2.1 of the License, or (at your option) any later version.
  448. //
  449. // The GNU C Library is distributed in the hope that it will be useful,
  450. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  451. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  452. // Lesser General Public License for more details.
  453. //
  454. // You should have received a copy of the GNU Lesser General Public
  455. // License along with the GNU C Library; if not, see
  456. // <https://www.gnu.org/licenses/>.
  457. // Never include this file directly; use <sys/types.h> instead.
  458. // Endian macros for string.h functions
  459. // Copyright (C) 1992-2023 Free Software Foundation, Inc.
  460. // This file is part of the GNU C Library.
  461. //
  462. // The GNU C Library is free software; you can redistribute it and/or
  463. // modify it under the terms of the GNU Lesser General Public
  464. // License as published by the Free Software Foundation; either
  465. // version 2.1 of the License, or (at your option) any later version.
  466. //
  467. // The GNU C Library is distributed in the hope that it will be useful,
  468. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  469. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  470. // Lesser General Public License for more details.
  471. //
  472. // You should have received a copy of the GNU Lesser General Public
  473. // License along with the GNU C Library; if not, see
  474. // <http://www.gnu.org/licenses/>.
  475. // Definitions for byte order, according to significance of bytes,
  476. // from low addresses to high addresses. The value is what you get by
  477. // putting '4' in the most significant byte, '3' in the second most
  478. // significant byte, '2' in the second least significant byte, and '1'
  479. // in the least significant byte, and then writing down one digit for
  480. // each byte, starting with the byte at the lowest address at the left,
  481. // and proceeding to the byte with the highest address at the right.
  482. // This file defines `__BYTE_ORDER' for the particular machine.
  483. // LoongArch is little-endian.
  484. // Some machines may need to use a different endianness for floating point
  485. // values.
  486. // POSIX.1b structure for a time value. This is like a `struct timeval' but
  487. //
  488. // has nanoseconds instead of microseconds.
  489. type Timespec = struct {
  490. Ftv_sec int64
  491. Ftv_nsec int64
  492. } /* struct_timespec.h:11:1 */
  493. // bits/types.h -- definitions of __*_t types underlying *_t types.
  494. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  495. // This file is part of the GNU C Library.
  496. //
  497. // The GNU C Library is free software; you can redistribute it and/or
  498. // modify it under the terms of the GNU Lesser General Public
  499. // License as published by the Free Software Foundation; either
  500. // version 2.1 of the License, or (at your option) any later version.
  501. //
  502. // The GNU C Library is distributed in the hope that it will be useful,
  503. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  504. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  505. // Lesser General Public License for more details.
  506. //
  507. // You should have received a copy of the GNU Lesser General Public
  508. // License along with the GNU C Library; if not, see
  509. // <https://www.gnu.org/licenses/>.
  510. // Never include this file directly; use <sys/types.h> instead.
  511. // Clock ID used in clock and timer functions.
  512. type Clockid_t = int32 /* clockid_t.h:7:21 */
  513. // bits/types.h -- definitions of __*_t types underlying *_t types.
  514. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  515. // This file is part of the GNU C Library.
  516. //
  517. // The GNU C Library is free software; you can redistribute it and/or
  518. // modify it under the terms of the GNU Lesser General Public
  519. // License as published by the Free Software Foundation; either
  520. // version 2.1 of the License, or (at your option) any later version.
  521. //
  522. // The GNU C Library is distributed in the hope that it will be useful,
  523. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  524. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  525. // Lesser General Public License for more details.
  526. //
  527. // You should have received a copy of the GNU Lesser General Public
  528. // License along with the GNU C Library; if not, see
  529. // <https://www.gnu.org/licenses/>.
  530. // Never include this file directly; use <sys/types.h> instead.
  531. // Timer ID returned by `timer_create'.
  532. type Timer_t = uintptr /* timer_t.h:7:19 */
  533. // bits/types.h -- definitions of __*_t types underlying *_t types.
  534. // Copyright (C) 2002-2023 Free Software Foundation, Inc.
  535. // This file is part of the GNU C Library.
  536. //
  537. // The GNU C Library is free software; you can redistribute it and/or
  538. // modify it under the terms of the GNU Lesser General Public
  539. // License as published by the Free Software Foundation; either
  540. // version 2.1 of the License, or (at your option) any later version.
  541. //
  542. // The GNU C Library is distributed in the hope that it will be useful,
  543. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  544. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  545. // Lesser General Public License for more details.
  546. //
  547. // You should have received a copy of the GNU Lesser General Public
  548. // License along with the GNU C Library; if not, see
  549. // <https://www.gnu.org/licenses/>.
  550. // Never include this file directly; use <sys/types.h> instead.
  551. // NB: Include guard matches what <linux/time.h> uses.
  552. // POSIX.1b structure for timer start values and intervals.
  553. type Itimerspec = struct {
  554. Fit_interval struct {
  555. Ftv_sec int64
  556. Ftv_nsec int64
  557. }
  558. Fit_value struct {
  559. Ftv_sec int64
  560. Ftv_nsec int64
  561. }
  562. } /* struct_itimerspec.h:8:1 */
  563. type Pid_t = int32 /* time.h:54:17 */
  564. // Definition of locale_t.
  565. // Copyright (C) 2017-2023 Free Software Foundation, Inc.
  566. // This file is part of the GNU C Library.
  567. //
  568. // The GNU C Library is free software; you can redistribute it and/or
  569. // modify it under the terms of the GNU Lesser General Public
  570. // License as published by the Free Software Foundation; either
  571. // version 2.1 of the License, or (at your option) any later version.
  572. //
  573. // The GNU C Library is distributed in the hope that it will be useful,
  574. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  575. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  576. // Lesser General Public License for more details.
  577. //
  578. // You should have received a copy of the GNU Lesser General Public
  579. // License along with the GNU C Library; if not, see
  580. // <https://www.gnu.org/licenses/>.
  581. // Definition of struct __locale_struct and __locale_t.
  582. // Copyright (C) 1997-2023 Free Software Foundation, Inc.
  583. // This file is part of the GNU C Library.
  584. //
  585. // The GNU C Library is free software; you can redistribute it and/or
  586. // modify it under the terms of the GNU Lesser General Public
  587. // License as published by the Free Software Foundation; either
  588. // version 2.1 of the License, or (at your option) any later version.
  589. //
  590. // The GNU C Library is distributed in the hope that it will be useful,
  591. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  592. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  593. // Lesser General Public License for more details.
  594. //
  595. // You should have received a copy of the GNU Lesser General Public
  596. // License along with the GNU C Library; if not, see
  597. // <https://www.gnu.org/licenses/>.
  598. // POSIX.1-2008: the locale_t type, representing a locale context
  599. // (implementation-namespace version). This type should be treated
  600. // as opaque by applications; some details are exposed for the sake of
  601. // efficiency in e.g. ctype functions.
  602. type X__locale_struct = struct {
  603. F__locales [13]uintptr
  604. F__ctype_b uintptr
  605. F__ctype_tolower uintptr
  606. F__ctype_toupper uintptr
  607. F__names [13]uintptr
  608. } /* __locale_t.h:27:1 */
  609. type X__locale_t = uintptr /* __locale_t.h:41:32 */
  610. type Locale_t = uintptr /* locale_t.h:24:20 */
  611. var _ int8 /* gen.c:2:13: */