poll_openbsd_arm64.go 21 KB

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