time_linux_386.go 28 KB

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