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