time_linux_386.go 28 KB

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