time_linux_amd64.go 30 KB

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