time_linux_ppc64le.go 30 KB

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