poll_netbsd_amd64.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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_netbsd_amd64.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:67:1:
  15. POLLERR = 0x0008 // poll.h:59:1:
  16. POLLHUP = 0x0010 // poll.h:60:1:
  17. POLLIN = 0x0001 // poll.h:48:1:
  18. POLLNVAL = 0x0020 // poll.h:61:1:
  19. POLLOUT = 0x0004 // poll.h:50:1:
  20. POLLPRI = 0x0002 // poll.h:49:1:
  21. POLLRDBAND = 0x0080 // poll.h:53:1:
  22. POLLRDNORM = 0x0040 // poll.h:51:1:
  23. POLLWRBAND = 0x0100 // poll.h:54:1:
  24. POLLWRNORM = 4 // poll.h:52:1:
  25. X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
  26. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  27. X_LP64 = 1 // <predefined>:268:1:
  28. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  29. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  30. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  31. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  32. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  33. X_SYS_POLL_H_ = 0 // poll.h:33:1:
  34. X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
  35. X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
  36. )
  37. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  38. type Size_t = uint64 /* <builtin>:9:23 */
  39. type Wchar_t = int32 /* <builtin>:15:24 */
  40. type X__int128_t = struct {
  41. Flo int64
  42. Fhi int64
  43. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  44. type X__uint128_t = struct {
  45. Flo uint64
  46. Fhi uint64
  47. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  48. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  49. type X__float128 = float64 /* <builtin>:47:21 */
  50. // $NetBSD: poll.h,v 1.15 2009/11/11 09:48:51 rmind Exp $
  51. // -
  52. // Copyright (c) 1998 The NetBSD Foundation, Inc.
  53. // All rights reserved.
  54. //
  55. // This code is derived from software contributed to The NetBSD Foundation
  56. // by Charles M. Hannum.
  57. //
  58. // Redistribution and use in source and binary forms, with or without
  59. // modification, are permitted provided that the following conditions
  60. // are met:
  61. // 1. Redistributions of source code must retain the above copyright
  62. // notice, this list of conditions and the following disclaimer.
  63. // 2. Redistributions in binary form must reproduce the above copyright
  64. // notice, this list of conditions and the following disclaimer in the
  65. // documentation and/or other materials provided with the distribution.
  66. //
  67. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  68. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  69. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  70. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  71. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  72. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  73. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  74. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  75. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  76. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  77. // POSSIBILITY OF SUCH DAMAGE.
  78. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  79. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  80. // Public domain.
  81. //
  82. // NOTE: Do not protect this header against multiple inclusion. Doing
  83. // so can have subtle side-effects due to header file inclusion order
  84. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  85. // protect each CPP macro that we want to supply.
  86. // Feature-test macros are defined by several standards, and allow an
  87. // application to specify what symbols they want the system headers to
  88. // expose, and hence what standard they want them to conform to.
  89. // There are two classes of feature-test macros. The first class
  90. // specify complete standards, and if one of these is defined, header
  91. // files will try to conform to the relevant standard. They are:
  92. //
  93. // ANSI macros:
  94. // _ANSI_SOURCE ANSI C89
  95. //
  96. // POSIX macros:
  97. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  98. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  99. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  100. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  101. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  102. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  103. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  104. //
  105. // X/Open macros:
  106. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  107. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  108. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  109. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  110. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  111. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  112. //
  113. // NetBSD macros:
  114. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  115. //
  116. // If more than one of these "major" feature-test macros is defined,
  117. // then the set of facilities provided (and namespace used) is the
  118. // union of that specified by the relevant standards, and in case of
  119. // conflict, the earlier standard in the above list has precedence (so
  120. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  121. // of rename() that's used is the POSIX one). If none of the "major"
  122. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  123. //
  124. // There are also "minor" feature-test macros, which enable extra
  125. // functionality in addition to some base standard. They should be
  126. // defined along with one of the "major" macros. The "minor" macros
  127. // are:
  128. //
  129. // _REENTRANT
  130. // _ISOC99_SOURCE
  131. // _ISOC11_SOURCE
  132. // _LARGEFILE_SOURCE Large File Support
  133. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  134. type Nfds_t = uint32 /* poll.h:37:22 */
  135. type Pollfd = struct {
  136. Ffd int32
  137. Fevents int16
  138. Frevents int16
  139. } /* poll.h:39:1 */
  140. // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
  141. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  142. // The Regents of the University of California. All rights reserved.
  143. // (c) UNIX System Laboratories, Inc.
  144. // All or some portions of this file are derived from material licensed
  145. // to the University of California by American Telephone and Telegraph
  146. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  147. // the permission of UNIX System Laboratories, Inc.
  148. //
  149. // Redistribution and use in source and binary forms, with or without
  150. // modification, are permitted provided that the following conditions
  151. // are met:
  152. // 1. Redistributions of source code must retain the above copyright
  153. // notice, this list of conditions and the following disclaimer.
  154. // 2. Redistributions in binary form must reproduce the above copyright
  155. // notice, this list of conditions and the following disclaimer in the
  156. // documentation and/or other materials provided with the distribution.
  157. // 3. Neither the name of the University nor the names of its contributors
  158. // may be used to endorse or promote products derived from this software
  159. // without specific prior written permission.
  160. //
  161. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  162. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  163. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  164. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  165. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  166. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  167. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  168. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  169. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  170. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  171. // SUCH DAMAGE.
  172. //
  173. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  174. // This header file defines various signal-related types. We also keep
  175. // the macros to manipulate sigset_t here, to encapsulate knowledge of
  176. // its internals.
  177. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  178. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  179. // Public domain.
  180. //
  181. // NOTE: Do not protect this header against multiple inclusion. Doing
  182. // so can have subtle side-effects due to header file inclusion order
  183. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  184. // protect each CPP macro that we want to supply.
  185. // Feature-test macros are defined by several standards, and allow an
  186. // application to specify what symbols they want the system headers to
  187. // expose, and hence what standard they want them to conform to.
  188. // There are two classes of feature-test macros. The first class
  189. // specify complete standards, and if one of these is defined, header
  190. // files will try to conform to the relevant standard. They are:
  191. //
  192. // ANSI macros:
  193. // _ANSI_SOURCE ANSI C89
  194. //
  195. // POSIX macros:
  196. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  197. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  198. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  199. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  200. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  201. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  202. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  203. //
  204. // X/Open macros:
  205. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  206. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  207. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  208. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  209. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  210. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  211. //
  212. // NetBSD macros:
  213. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  214. //
  215. // If more than one of these "major" feature-test macros is defined,
  216. // then the set of facilities provided (and namespace used) is the
  217. // union of that specified by the relevant standards, and in case of
  218. // conflict, the earlier standard in the above list has precedence (so
  219. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  220. // of rename() that's used is the POSIX one). If none of the "major"
  221. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  222. //
  223. // There are also "minor" feature-test macros, which enable extra
  224. // functionality in addition to some base standard. They should be
  225. // defined along with one of the "major" macros. The "minor" macros
  226. // are:
  227. //
  228. // _REENTRANT
  229. // _ISOC99_SOURCE
  230. // _ISOC11_SOURCE
  231. // _LARGEFILE_SOURCE Large File Support
  232. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  233. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  234. // -
  235. // Copyright (c) 1990 The Regents of the University of California.
  236. // All rights reserved.
  237. //
  238. // Redistribution and use in source and binary forms, with or without
  239. // modification, are permitted provided that the following conditions
  240. // are met:
  241. // 1. Redistributions of source code must retain the above copyright
  242. // notice, this list of conditions and the following disclaimer.
  243. // 2. Redistributions in binary form must reproduce the above copyright
  244. // notice, this list of conditions and the following disclaimer in the
  245. // documentation and/or other materials provided with the distribution.
  246. // 3. Neither the name of the University nor the names of its contributors
  247. // may be used to endorse or promote products derived from this software
  248. // without specific prior written permission.
  249. //
  250. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  251. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  252. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  253. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  254. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  255. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  256. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  257. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  258. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  259. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  260. // SUCH DAMAGE.
  261. //
  262. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  263. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  264. // -
  265. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  266. // All rights reserved.
  267. //
  268. // This code is derived from software contributed to The NetBSD Foundation
  269. // by Joerg Sonnenberger.
  270. //
  271. // Redistribution and use in source and binary forms, with or without
  272. // modification, are permitted provided that the following conditions
  273. // are met:
  274. // 1. Redistributions of source code must retain the above copyright
  275. // notice, this list of conditions and the following disclaimer.
  276. // 2. Redistributions in binary form must reproduce the above copyright
  277. // notice, this list of conditions and the following disclaimer in the
  278. // documentation and/or other materials provided with the distribution.
  279. //
  280. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  281. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  282. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  283. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  284. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  285. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  286. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  287. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  288. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  289. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  290. // POSSIBILITY OF SUCH DAMAGE.
  291. // 7.18.1 Integer types
  292. // 7.18.1.1 Exact-width integer types
  293. type X__int8_t = int8 /* common_int_types.h:45:27 */
  294. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  295. type X__int16_t = int16 /* common_int_types.h:47:27 */
  296. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  297. type X__int32_t = int32 /* common_int_types.h:49:27 */
  298. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  299. type X__int64_t = int64 /* common_int_types.h:51:27 */
  300. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  301. // 7.18.1.4 Integer types capable of holding object pointers
  302. type X__intptr_t = int64 /* common_int_types.h:58:27 */
  303. type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
  304. type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
  305. // Macro for manipulating signal masks.
  306. type Sigaltstack = struct {
  307. Fss_sp uintptr
  308. Fss_size Size_t
  309. Fss_flags int32
  310. F__ccgo_pad1 [4]byte
  311. } /* sigtypes.h:108:9 */
  312. // Macro for manipulating signal masks.
  313. type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
  314. var _ int8 /* gen.c:2:13: */