time_linux_ppc64le.go 30 KB

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