time_linux_arm64.go 30 KB

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