time_linux_amd64.go 30 KB

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