poll_netbsd_arm.go 15 KB

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