time_openbsd_amd64.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  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 -ignore-unsupported-alignment -o time/time_openbsd_amd64.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. CLK_TCK = 100 // time.h:68:1:
  15. CLOCKS_PER_SEC = 100 // time.h:71:1:
  16. CLOCK_BOOTTIME = 6 // _time.h:40:1:
  17. CLOCK_MONOTONIC = 3 // _time.h:37:1:
  18. CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
  19. CLOCK_REALTIME = 0 // _time.h:35:1:
  20. CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
  21. CLOCK_UPTIME = 5 // _time.h:39:1:
  22. TIMER_ABSTIME = 0x1 // _time.h:62:1:
  23. TIMER_RELTIME = 0x0 // _time.h:61:1:
  24. TIME_UTC = 1 // time.h:179:1:
  25. X_CLOCKID_T_DEFINED_ = 0 // time.h:87:1:
  26. X_CLOCK_T_DEFINED_ = 0 // time.h:49:1:
  27. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  28. X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
  29. X_LP64 = 1 // <predefined>:1:1:
  30. X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
  31. X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
  32. X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
  33. X_PID_T_DEFINED_ = 0 // time.h:99:1:
  34. X_RET_PROTECTOR = 1 // <predefined>:2:1:
  35. X_SIZE_T_DEFINED_ = 0 // time.h:59:1:
  36. X_STACKALIGNBYTES = 15 // _types.h:49:1:
  37. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  38. X_SYS__TIME_H_ = 0 // _time.h:33:1:
  39. X_SYS__TYPES_H_ = 0 // _types.h:35:1:
  40. X_TIMER_T_DEFINED_ = 0 // time.h:92:1:
  41. X_TIMESPEC_DECLARED = 0 // time.h:75:1:
  42. X_TIME_H_ = 0 // time.h:42:1:
  43. X_TIME_T_DEFINED_ = 0 // time.h:54:1:
  44. Unix = 1 // <predefined>:344:1:
  45. )
  46. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  47. type Size_t = uint64 /* <builtin>:9:23 */
  48. type Wchar_t = int32 /* <builtin>:15:24 */
  49. type X__int128_t = struct {
  50. Flo int64
  51. Fhi int64
  52. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  53. type X__uint128_t = struct {
  54. Flo uint64
  55. Fhi uint64
  56. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  57. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  58. type X__float128 = float64 /* <builtin>:47:21 */
  59. // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
  60. // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
  61. // Copyright (c) 1989 The Regents of the University of California.
  62. // All rights reserved.
  63. //
  64. // (c) UNIX System Laboratories, Inc.
  65. // All or some portions of this file are derived from material licensed
  66. // to the University of California by American Telephone and Telegraph
  67. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  68. // the permission of UNIX System Laboratories, Inc.
  69. //
  70. // Redistribution and use in source and binary forms, with or without
  71. // modification, are permitted provided that the following conditions
  72. // are met:
  73. // 1. Redistributions of source code must retain the above copyright
  74. // notice, this list of conditions and the following disclaimer.
  75. // 2. Redistributions in binary form must reproduce the above copyright
  76. // notice, this list of conditions and the following disclaimer in the
  77. // documentation and/or other materials provided with the distribution.
  78. // 3. Neither the name of the University nor the names of its contributors
  79. // may be used to endorse or promote products derived from this software
  80. // without specific prior written permission.
  81. //
  82. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  83. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  84. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  85. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  86. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  87. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  88. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  89. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  90. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  91. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  92. // SUCH DAMAGE.
  93. //
  94. // @(#)time.h 5.12 (Berkeley) 3/9/91
  95. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  96. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  97. // Copyright (c) 1991, 1993
  98. // The Regents of the University of California. All rights reserved.
  99. //
  100. // This code is derived from software contributed to Berkeley by
  101. // Berkeley Software Design, Inc.
  102. //
  103. // Redistribution and use in source and binary forms, with or without
  104. // modification, are permitted provided that the following conditions
  105. // are met:
  106. // 1. Redistributions of source code must retain the above copyright
  107. // notice, this list of conditions and the following disclaimer.
  108. // 2. Redistributions in binary form must reproduce the above copyright
  109. // notice, this list of conditions and the following disclaimer in the
  110. // documentation and/or other materials provided with the distribution.
  111. // 3. Neither the name of the University nor the names of its contributors
  112. // may be used to endorse or promote products derived from this software
  113. // without specific prior written permission.
  114. //
  115. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  116. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  117. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  118. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  119. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  120. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  121. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  122. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  123. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  124. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  125. // SUCH DAMAGE.
  126. //
  127. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  128. // $OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
  129. // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  130. // Public domain.
  131. // Macro to test if we're using a specific version of gcc or later.
  132. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  133. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  134. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  135. // in between its arguments. Do not use __CONCAT on double-quoted strings,
  136. // such as those from the __STRING macro: to concatenate strings just put
  137. // them next to each other.
  138. // GCC1 and some versions of GCC2 declare dead (non-returning) and
  139. // pure (no side effects) functions using "volatile" and "const";
  140. // unfortunately, these then cause warnings under "-ansi -pedantic".
  141. // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
  142. // work for GNU C++ (modulo a slight glitch in the C++ grammar in
  143. // the distribution version of 2.5.5).
  144. // __returns_twice makes the compiler not assume the function
  145. // only returns once. This affects registerisation of variables:
  146. // even local variables need to be in memory across such a call.
  147. // Example: setjmp()
  148. // __only_inline makes the compiler only use this function definition
  149. // for inlining; references that can't be inlined will be left as
  150. // external references instead of generating a local copy. The
  151. // matching library should include a simple extern definition for
  152. // the function to handle those references. c.f. ctype.h
  153. // GNU C version 2.96 adds explicit branch prediction so that
  154. // the CPU back-end can hint the processor and also so that
  155. // code blocks can be reordered such that the predicted path
  156. // sees a more linear flow, thus improving cache behavior, etc.
  157. //
  158. // The following two macros provide us with a way to utilize this
  159. // compiler feature. Use __predict_true() if you expect the expression
  160. // to evaluate to true, and __predict_false() if you expect the
  161. // expression to evaluate to false.
  162. //
  163. // A few notes about usage:
  164. //
  165. // * Generally, __predict_false() error condition checks (unless
  166. // you have some _strong_ reason to do otherwise, in which case
  167. // document it), and/or __predict_true() `no-error' condition
  168. // checks, assuming you want to optimize for the no-error case.
  169. //
  170. // * Other than that, if you don't know the likelihood of a test
  171. // succeeding from empirical or other `hard' evidence, don't
  172. // make predictions.
  173. //
  174. // * These are meant to be used in places that are run `a lot'.
  175. // It is wasteful to make predictions in code that is run
  176. // seldomly (e.g. at subsystem initialization time) as the
  177. // basic block reordering that this affects can often generate
  178. // larger code.
  179. // Delete pseudo-keywords wherever they are not available or needed.
  180. // The __packed macro indicates that a variable or structure members
  181. // should have the smallest possible alignment, despite any host CPU
  182. // alignment requirements.
  183. //
  184. // The __aligned(x) macro specifies the minimum alignment of a
  185. // variable or structure.
  186. //
  187. // These macros together are useful for describing the layout and
  188. // alignment of messages exchanged with hardware or other systems.
  189. // "The nice thing about standards is that there are so many to choose from."
  190. // There are a number of "feature test macros" specified by (different)
  191. // standards that determine which interfaces and types the header files
  192. // should expose.
  193. //
  194. // Because of inconsistencies in these macros, we define our own
  195. // set in the private name space that end in _VISIBLE. These are
  196. // always defined and so headers can test their values easily.
  197. // Things can get tricky when multiple feature macros are defined.
  198. // We try to take the union of all the features requested.
  199. //
  200. // The following macros are guaranteed to have a value after cdefs.h
  201. // has been included:
  202. // __POSIX_VISIBLE
  203. // __XPG_VISIBLE
  204. // __ISO_C_VISIBLE
  205. // __BSD_VISIBLE
  206. // X/Open Portability Guides and Single Unix Specifications.
  207. // _XOPEN_SOURCE XPG3
  208. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  209. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  210. // _XOPEN_SOURCE == 500 XPG5
  211. // _XOPEN_SOURCE == 520 XPG5v2
  212. // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
  213. // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
  214. //
  215. // The XPG spec implies a specific value for _POSIX_C_SOURCE.
  216. // POSIX macros, these checks must follow the XOPEN ones above.
  217. //
  218. // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
  219. // _POSIX_C_SOURCE == 1 1003.1-1990
  220. // _POSIX_C_SOURCE == 2 1003.2-1992
  221. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  222. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  223. // and the omnibus ISO/IEC 9945-1:1996
  224. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  225. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  226. //
  227. // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
  228. // this may be overridden by the _ISOC99_SOURCE macro later.
  229. // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
  230. // If the user defines it in addition to one of the POSIX or XOPEN
  231. // macros, assume the POSIX/XOPEN macro(s) should take precedence.
  232. // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
  233. // override any of the other macros since they are non-exclusive.
  234. // Finally deal with BSD-specific interfaces that are not covered
  235. // by any standards. We expose these when none of the POSIX or XPG
  236. // macros is defined or if the user explicitly asks for them.
  237. // Default values.
  238. // $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
  239. // Written by Todd C. Miller, September 9, 2016
  240. // Public domain.
  241. // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
  242. // -
  243. // Copyright (c) 1990, 1993
  244. // The Regents of the University of California. All rights reserved.
  245. //
  246. // Redistribution and use in source and binary forms, with or without
  247. // modification, are permitted provided that the following conditions
  248. // are met:
  249. // 1. Redistributions of source code must retain the above copyright
  250. // notice, this list of conditions and the following disclaimer.
  251. // 2. Redistributions in binary form must reproduce the above copyright
  252. // notice, this list of conditions and the following disclaimer in the
  253. // documentation and/or other materials provided with the distribution.
  254. // 3. Neither the name of the University nor the names of its contributors
  255. // may be used to endorse or promote products derived from this software
  256. // without specific prior written permission.
  257. //
  258. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  259. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  260. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  261. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  262. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  263. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  264. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  265. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  266. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  267. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  268. // SUCH DAMAGE.
  269. //
  270. // @(#)types.h 8.3 (Berkeley) 1/5/94
  271. // $OpenBSD: _types.h,v 1.17 2018/03/05 01:15:25 deraadt Exp $
  272. // -
  273. // Copyright (c) 1990, 1993
  274. // The Regents of the University of California. All rights reserved.
  275. //
  276. // Redistribution and use in source and binary forms, with or without
  277. // modification, are permitted provided that the following conditions
  278. // are met:
  279. // 1. Redistributions of source code must retain the above copyright
  280. // notice, this list of conditions and the following disclaimer.
  281. // 2. Redistributions in binary form must reproduce the above copyright
  282. // notice, this list of conditions and the following disclaimer in the
  283. // documentation and/or other materials provided with the distribution.
  284. // 3. Neither the name of the University nor the names of its contributors
  285. // may be used to endorse or promote products derived from this software
  286. // without specific prior written permission.
  287. //
  288. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  289. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  290. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  291. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  292. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  293. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  294. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  295. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  296. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  297. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  298. // SUCH DAMAGE.
  299. //
  300. // @(#)types.h 8.3 (Berkeley) 1/5/94
  301. // @(#)ansi.h 8.2 (Berkeley) 1/4/94
  302. // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
  303. // value for all data types (int, long, ...). The result is an
  304. // unsigned long and must be cast to any desired pointer type.
  305. //
  306. // _ALIGNED_POINTER is a boolean macro that checks whether an address
  307. // is valid to fetch data elements of type t from on this architecture.
  308. // This does not reflect the optimal alignment, just the possibility
  309. // (within reasonable limits).
  310. // 7.18.1.1 Exact-width integer types
  311. type X__int8_t = int8 /* _types.h:61:22 */
  312. type X__uint8_t = uint8 /* _types.h:62:24 */
  313. type X__int16_t = int16 /* _types.h:63:17 */
  314. type X__uint16_t = uint16 /* _types.h:64:25 */
  315. type X__int32_t = int32 /* _types.h:65:15 */
  316. type X__uint32_t = uint32 /* _types.h:66:23 */
  317. type X__int64_t = int64 /* _types.h:67:20 */
  318. type X__uint64_t = uint64 /* _types.h:68:28 */
  319. // 7.18.1.2 Minimum-width integer types
  320. type X__int_least8_t = X__int8_t /* _types.h:71:19 */
  321. type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */
  322. type X__int_least16_t = X__int16_t /* _types.h:73:20 */
  323. type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */
  324. type X__int_least32_t = X__int32_t /* _types.h:75:20 */
  325. type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */
  326. type X__int_least64_t = X__int64_t /* _types.h:77:20 */
  327. type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */
  328. // 7.18.1.3 Fastest minimum-width integer types
  329. type X__int_fast8_t = X__int32_t /* _types.h:81:20 */
  330. type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */
  331. type X__int_fast16_t = X__int32_t /* _types.h:83:20 */
  332. type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */
  333. type X__int_fast32_t = X__int32_t /* _types.h:85:20 */
  334. type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */
  335. type X__int_fast64_t = X__int64_t /* _types.h:87:20 */
  336. type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */
  337. // 7.18.1.4 Integer types capable of holding object pointers
  338. type X__intptr_t = int64 /* _types.h:103:16 */
  339. type X__uintptr_t = uint64 /* _types.h:104:24 */
  340. // 7.18.1.5 Greatest-width integer types
  341. type X__intmax_t = X__int64_t /* _types.h:107:20 */
  342. type X__uintmax_t = X__uint64_t /* _types.h:108:21 */
  343. // Register size
  344. type X__register_t = int64 /* _types.h:111:16 */
  345. // VM system types
  346. type X__vaddr_t = uint64 /* _types.h:114:24 */
  347. type X__paddr_t = uint64 /* _types.h:115:24 */
  348. type X__vsize_t = uint64 /* _types.h:116:24 */
  349. type X__psize_t = uint64 /* _types.h:117:24 */
  350. // Standard system types
  351. type X__double_t = float64 /* _types.h:120:18 */
  352. type X__float_t = float32 /* _types.h:121:17 */
  353. type X__ptrdiff_t = int64 /* _types.h:122:16 */
  354. type X__size_t = uint64 /* _types.h:123:24 */
  355. type X__ssize_t = int64 /* _types.h:124:16 */
  356. type X__va_list = X__builtin_va_list /* _types.h:126:27 */
  357. // Wide character support types
  358. type X__wchar_t = int32 /* _types.h:133:15 */
  359. type X__wint_t = int32 /* _types.h:135:15 */
  360. type X__rune_t = int32 /* _types.h:136:15 */
  361. type X__wctrans_t = uintptr /* _types.h:137:14 */
  362. type X__wctype_t = uintptr /* _types.h:138:14 */
  363. type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file
  364. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O
  365. type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC
  366. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers
  367. type X__cpuid_t = uint64 /* _types.h:43:23 */ // CPU id
  368. type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number
  369. type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number
  370. type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count
  371. type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count
  372. type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id
  373. type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid
  374. type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address
  375. type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type
  376. type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number
  377. type X__key_t = int64 /* _types.h:53:15 */ // IPC key (for Sys V IPC)
  378. type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions
  379. type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count
  380. type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size
  381. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id
  382. type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit
  383. type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type
  384. type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size
  385. type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls
  386. type X__suseconds_t = int64 /* _types.h:62:15 */ // microseconds (signed)
  387. type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time
  388. type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers
  389. type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id
  390. type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds
  391. // mbstate_t is an opaque object to keep conversion state, during multibyte
  392. // stream conversions. The content must not be referenced by user programs.
  393. type X__mbstate_t = struct {
  394. F__ccgo_pad1 [0]uint64
  395. F__mbstate8 [128]int8
  396. } /* _types.h:75:3 */
  397. type Clock_t = X__clock_t /* time.h:50:19 */
  398. type Time_t = X__time_t /* time.h:55:18 */
  399. // Frequency of the clock ticks reported by times(). Deprecated - use
  400. // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
  401. type Timespec = struct {
  402. Ftv_sec Time_t
  403. Ftv_nsec int64
  404. } /* time.h:76:1 */
  405. // $OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $
  406. // Copyright (c) 1982, 1986, 1993
  407. // The Regents of the University of California. All rights reserved.
  408. //
  409. // Redistribution and use in source and binary forms, with or without
  410. // modification, are permitted provided that the following conditions
  411. // are met:
  412. // 1. Redistributions of source code must retain the above copyright
  413. // notice, this list of conditions and the following disclaimer.
  414. // 2. Redistributions in binary form must reproduce the above copyright
  415. // notice, this list of conditions and the following disclaimer in the
  416. // documentation and/or other materials provided with the distribution.
  417. // 3. Neither the name of the University nor the names of its contributors
  418. // may be used to endorse or promote products derived from this software
  419. // without specific prior written permission.
  420. //
  421. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  422. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  423. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  424. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  425. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  426. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  427. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  428. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  429. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  430. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  431. // SUCH DAMAGE.
  432. // Per-process and per-thread clocks encode the PID or TID into the
  433. // high bits, with the type in the bottom bits
  434. // Structure defined by POSIX 1003.1b to be like a itimerval,
  435. // but with timespecs. Used in the timer_*() system calls.
  436. type Itimerspec = struct {
  437. Fit_interval struct {
  438. Ftv_sec Time_t
  439. Ftv_nsec int64
  440. }
  441. Fit_value struct {
  442. Ftv_sec Time_t
  443. Ftv_nsec int64
  444. }
  445. } /* _time.h:56:1 */
  446. type Clockid_t = X__clockid_t /* time.h:88:21 */
  447. type Timer_t = X__timer_t /* time.h:93:19 */
  448. type Pid_t = X__pid_t /* time.h:100:18 */
  449. type Locale_t = uintptr /* time.h:107:14 */
  450. type Tm = struct {
  451. Ftm_sec int32
  452. Ftm_min int32
  453. Ftm_hour int32
  454. Ftm_mday int32
  455. Ftm_mon int32
  456. Ftm_year int32
  457. Ftm_wday int32
  458. Ftm_yday int32
  459. Ftm_isdst int32
  460. F__ccgo_pad1 [4]byte
  461. Ftm_gmtoff int64
  462. Ftm_zone uintptr
  463. } /* time.h:111:1 */
  464. var _ int8 /* gen.c:2:13: */