time_linux_s390x.go 29 KB

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