time_linux_arm.go 29 KB

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