time_linux_arm.go 30 KB

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