time_linux_arm64.go 30 KB

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