poll_linux_arm.go (24897B)
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 -o poll/poll_linux_arm.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 POLLERR = 0x008 19 POLLHUP = 0x010 20 POLLIN = 0x001 21 POLLNVAL = 0x020 22 POLLOUT = 0x004 23 POLLPRI = 0x002 24 POLLRDBAND = 0x080 25 POLLRDNORM = 0x040 26 POLLWRBAND = 0x200 27 POLLWRNORM = 0x100 28 X_ATFILE_SOURCE = 1 29 X_DEFAULT_SOURCE = 1 30 X_FEATURES_H = 1 31 X_FILE_OFFSET_BITS = 64 32 X_POSIX_C_SOURCE = 200809 33 X_POSIX_SOURCE = 1 34 X_STDC_PREDEF_H = 1 35 X_SYS_CDEFS_H = 1 36 X_SYS_POLL_H = 1 37 Linux = 1 38 Unix = 1 39 ) 40 41 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 42 43 type Size_t = uint32 /* <builtin>:9:23 */ 44 45 type Wchar_t = uint32 /* <builtin>:15:24 */ 46 47 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 48 type X__float128 = float64 /* <builtin>:47:21 */ 49 50 // Compatibility definitions for System V `poll' interface. 51 // Copyright (C) 1994-2020 Free Software Foundation, Inc. 52 // This file is part of the GNU C Library. 53 // 54 // The GNU C Library is free software; you can redistribute it and/or 55 // modify it under the terms of the GNU Lesser General Public 56 // License as published by the Free Software Foundation; either 57 // version 2.1 of the License, or (at your option) any later version. 58 // 59 // The GNU C Library is distributed in the hope that it will be useful, 60 // but WITHOUT ANY WARRANTY; without even the implied warranty of 61 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 62 // Lesser General Public License for more details. 63 // 64 // You should have received a copy of the GNU Lesser General Public 65 // License along with the GNU C Library; if not, see 66 // <https://www.gnu.org/licenses/>. 67 68 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 69 // This file is part of the GNU C Library. 70 // 71 // The GNU C Library is free software; you can redistribute it and/or 72 // modify it under the terms of the GNU Lesser General Public 73 // License as published by the Free Software Foundation; either 74 // version 2.1 of the License, or (at your option) any later version. 75 // 76 // The GNU C Library is distributed in the hope that it will be useful, 77 // but WITHOUT ANY WARRANTY; without even the implied warranty of 78 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 79 // Lesser General Public License for more details. 80 // 81 // You should have received a copy of the GNU Lesser General Public 82 // License along with the GNU C Library; if not, see 83 // <https://www.gnu.org/licenses/>. 84 85 // These are defined by the user (or the compiler) 86 // to specify the desired environment: 87 // 88 // __STRICT_ANSI__ ISO Standard C. 89 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 90 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 91 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 92 // __STDC_WANT_LIB_EXT2__ 93 // Extensions to ISO C99 from TR 27431-2:2010. 94 // __STDC_WANT_IEC_60559_BFP_EXT__ 95 // Extensions to ISO C11 from TS 18661-1:2014. 96 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 97 // Extensions to ISO C11 from TS 18661-4:2015. 98 // __STDC_WANT_IEC_60559_TYPES_EXT__ 99 // Extensions to ISO C11 from TS 18661-3:2015. 100 // 101 // _POSIX_SOURCE IEEE Std 1003.1. 102 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 103 // if >=199309L, add IEEE Std 1003.1b-1993; 104 // if >=199506L, add IEEE Std 1003.1c-1995; 105 // if >=200112L, all of IEEE 1003.1-2004 106 // if >=200809L, all of IEEE 1003.1-2008 107 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 108 // Single Unix conformance is wanted, to 600 for the 109 // sixth revision, to 700 for the seventh revision. 110 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 111 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 112 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 113 // _FILE_OFFSET_BITS=N Select default filesystem interface. 114 // _ATFILE_SOURCE Additional *at interfaces. 115 // _GNU_SOURCE All of the above, plus GNU extensions. 116 // _DEFAULT_SOURCE The default set of features (taking precedence over 117 // __STRICT_ANSI__). 118 // 119 // _FORTIFY_SOURCE Add security hardening to many library functions. 120 // Set to 1 or 2; 2 performs stricter checks than 1. 121 // 122 // _REENTRANT, _THREAD_SAFE 123 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 124 // 125 // The `-ansi' switch to the GNU C compiler, and standards conformance 126 // options such as `-std=c99', define __STRICT_ANSI__. If none of 127 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 128 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 129 // 200809L, as well as enabling miscellaneous functions from BSD and 130 // SVID. If more than one of these are defined, they accumulate. For 131 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 132 // give you ISO C, 1003.1, and 1003.2, but nothing else. 133 // 134 // These are defined by this file and are used by the 135 // header files to decide what to declare or define: 136 // 137 // __GLIBC_USE (F) Define things from feature set F. This is defined 138 // to 1 or 0; the subsequent macros are either defined 139 // or undefined, and those tests should be moved to 140 // __GLIBC_USE. 141 // __USE_ISOC11 Define ISO C11 things. 142 // __USE_ISOC99 Define ISO C99 things. 143 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 144 // __USE_ISOCXX11 Define ISO C++11 things. 145 // __USE_POSIX Define IEEE Std 1003.1 things. 146 // __USE_POSIX2 Define IEEE Std 1003.2 things. 147 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 148 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 149 // __USE_XOPEN Define XPG things. 150 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 151 // __USE_UNIX98 Define Single Unix V2 things. 152 // __USE_XOPEN2K Define XPG6 things. 153 // __USE_XOPEN2KXSI Define XPG6 XSI things. 154 // __USE_XOPEN2K8 Define XPG7 things. 155 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 156 // __USE_LARGEFILE Define correct standard I/O things. 157 // __USE_LARGEFILE64 Define LFS things with separate names. 158 // __USE_FILE_OFFSET64 Define 64bit interface as default. 159 // __USE_MISC Define things from 4.3BSD or System V Unix. 160 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 161 // __USE_GNU Define GNU extensions. 162 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 163 // 164 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 165 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 166 // only for compatibility. All new code should use the other symbols 167 // to test for features. 168 // 169 // All macros listed above as possibly being defined by this file are 170 // explicitly undefined if they are not explicitly defined. 171 // Feature-test macros that are not defined by the user or compiler 172 // but are implied by the other feature-test macros defined (or by the 173 // lack of any definitions) are defined by the file. 174 // 175 // ISO C feature test macros depend on the definition of the macro 176 // when an affected header is included, not when the first system 177 // header is included, and so they are handled in 178 // <bits/libc-header-start.h>, which does not have a multiple include 179 // guard. Feature test macros that can be handled from the first 180 // system header included are handled here. 181 182 // Undefine everything, so we get a clean slate. 183 184 // Suppress kernel-name space pollution unless user expressedly asks 185 // for it. 186 187 // Convenience macro to test the version of gcc. 188 // Use like this: 189 // #if __GNUC_PREREQ (2,8) 190 // ... code requiring gcc 2.8 or later ... 191 // #endif 192 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 193 // added in 2.0. 194 195 // Similarly for clang. Features added to GCC after version 4.2 may 196 // or may not also be available in clang, and clang's definitions of 197 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 198 // features can be queried via __has_extension/__has_feature. 199 200 // Whether to use feature set F. 201 202 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 203 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 204 // issue a warning; the expectation is that the source is being 205 // transitioned to use the new macro. 206 207 // If _GNU_SOURCE was defined by the user, turn on all the other features. 208 209 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 210 // define _DEFAULT_SOURCE. 211 212 // This is to enable the ISO C2X extension. 213 214 // This is to enable the ISO C11 extension. 215 216 // This is to enable the ISO C99 extension. 217 218 // This is to enable the ISO C90 Amendment 1:1995 extension. 219 220 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 221 // is defined, use POSIX.1-2008 (or another version depending on 222 // _XOPEN_SOURCE). 223 224 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 225 // defined in all multithreaded code. GNU libc has not required this 226 // for many years. We now treat them as compatibility synonyms for 227 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 228 // comprehensive support for multithreaded code. Using them never 229 // lowers the selected level of POSIX conformance, only raises it. 230 231 // The function 'gets' existed in C89, but is impossible to use 232 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 233 // compatibility with various implementations of <cstdio>, this test 234 // must consider only the value of __cplusplus when compiling C++. 235 236 // GNU formerly extended the scanf functions with modified format 237 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 238 // input using malloc. This extension conflicts with ISO C99, which 239 // defines %a as a standalone format specifier that reads a floating- 240 // point number; moreover, POSIX.1-2008 provides the same feature 241 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 242 // 243 // We now follow C99 unless GNU extensions are active and the compiler 244 // is specifically in C89 or C++98 mode (strict or not). For 245 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 246 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 247 // old extension. 248 249 // Get definitions of __STDC_* predefined macros, if the compiler has 250 // not preincluded this header automatically. 251 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 252 // This file is part of the GNU C Library. 253 // 254 // The GNU C Library is free software; you can redistribute it and/or 255 // modify it under the terms of the GNU Lesser General Public 256 // License as published by the Free Software Foundation; either 257 // version 2.1 of the License, or (at your option) any later version. 258 // 259 // The GNU C Library is distributed in the hope that it will be useful, 260 // but WITHOUT ANY WARRANTY; without even the implied warranty of 261 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 262 // Lesser General Public License for more details. 263 // 264 // You should have received a copy of the GNU Lesser General Public 265 // License along with the GNU C Library; if not, see 266 // <https://www.gnu.org/licenses/>. 267 268 // This macro indicates that the installed library is the GNU C Library. 269 // For historic reasons the value now is 6 and this will stay from now 270 // on. The use of this variable is deprecated. Use __GLIBC__ and 271 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 272 // GNU C library version and use the values in <gnu/lib-names.h> to get 273 // the sonames of the shared libraries. 274 275 // Major and minor version number of the GNU C library package. Use 276 // these macros to test for features in specific releases. 277 278 // This is here only because every header file already includes this one. 279 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 280 // This file is part of the GNU C Library. 281 // 282 // The GNU C Library is free software; you can redistribute it and/or 283 // modify it under the terms of the GNU Lesser General Public 284 // License as published by the Free Software Foundation; either 285 // version 2.1 of the License, or (at your option) any later version. 286 // 287 // The GNU C Library is distributed in the hope that it will be useful, 288 // but WITHOUT ANY WARRANTY; without even the implied warranty of 289 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 290 // Lesser General Public License for more details. 291 // 292 // You should have received a copy of the GNU Lesser General Public 293 // License along with the GNU C Library; if not, see 294 // <https://www.gnu.org/licenses/>. 295 296 // We are almost always included from features.h. 297 298 // The GNU libc does not support any K&R compilers or the traditional mode 299 // of ISO C compilers anymore. Check for some of the combinations not 300 // anymore supported. 301 302 // Some user header file might have defined this before. 303 304 // All functions, except those with callbacks or those that 305 // synchronize memory, are leaf functions. 306 307 // GCC can always grok prototypes. For C++ programs we add throw() 308 // to help it optimize the function calls. But this works only with 309 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 310 // as non-throwing using a function attribute since programs can use 311 // the -fexceptions options for C code as well. 312 313 // Compilers that are not clang may object to 314 // #if defined __clang__ && __has_extension(...) 315 // even though they do not need to evaluate the right-hand side of the &&. 316 317 // These two macros are not used in glibc anymore. They are kept here 318 // only because some other projects expect the macros to be defined. 319 320 // For these things, GCC behaves the ANSI way normally, 321 // and the non-ANSI way under -traditional. 322 323 // This is not a typedef so `const __ptr_t' does the right thing. 324 325 // C++ needs to know that types and declarations are C, not C++. 326 327 // Fortify support. 328 329 // Support for flexible arrays. 330 // Headers that should use flexible arrays only if they're "real" 331 // (e.g. only if they won't affect sizeof()) should test 332 // #if __glibc_c99_flexarr_available. 333 334 // __asm__ ("xyz") is used throughout the headers to rename functions 335 // at the assembly language level. This is wrapped by the __REDIRECT 336 // macro, in order to support compilers that can do this some other 337 // way. When compilers don't support asm-names at all, we have to do 338 // preprocessor tricks instead (which don't have exactly the right 339 // semantics, but it's the best we can do). 340 // 341 // Example: 342 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 343 344 // 345 // #elif __SOME_OTHER_COMPILER__ 346 // 347 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 348 349 // GCC has various useful declarations that can be made with the 350 // `__attribute__' syntax. All of the ways we use this do fine if 351 // they are omitted for compilers that don't understand it. 352 353 // At some point during the gcc 2.96 development the `malloc' attribute 354 // for functions was introduced. We don't want to use it unconditionally 355 // (although this would be possible) since it generates warnings. 356 357 // Tell the compiler which arguments to an allocation function 358 // indicate the size of the allocation. 359 360 // At some point during the gcc 2.96 development the `pure' attribute 361 // for functions was introduced. We don't want to use it unconditionally 362 // (although this would be possible) since it generates warnings. 363 364 // This declaration tells the compiler that the value is constant. 365 366 // At some point during the gcc 3.1 development the `used' attribute 367 // for functions was introduced. We don't want to use it unconditionally 368 // (although this would be possible) since it generates warnings. 369 370 // Since version 3.2, gcc allows marking deprecated functions. 371 372 // Since version 4.5, gcc also allows one to specify the message printed 373 // when a deprecated function is used. clang claims to be gcc 4.2, but 374 // may also support this feature. 375 376 // At some point during the gcc 2.8 development the `format_arg' attribute 377 // for functions was introduced. We don't want to use it unconditionally 378 // (although this would be possible) since it generates warnings. 379 // If several `format_arg' attributes are given for the same function, in 380 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 381 // all designated arguments are considered. 382 383 // At some point during the gcc 2.97 development the `strfmon' format 384 // attribute for functions was introduced. We don't want to use it 385 // unconditionally (although this would be possible) since it 386 // generates warnings. 387 388 // The nonull function attribute allows to mark pointer parameters which 389 // must not be NULL. 390 391 // If fortification mode, we warn about unused results of certain 392 // function calls which can lead to problems. 393 394 // Forces a function to be always inlined. 395 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 396 // it conflicts with this definition. Therefore undefine it first to 397 // allow either header to be included first. 398 399 // Associate error messages with the source location of the call site rather 400 // than with the source location inside the function. 401 402 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 403 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 404 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 405 // older than 4.3 may define these macros and still not guarantee GNU inlining 406 // semantics. 407 // 408 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 409 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 410 // __GNUC_GNU_INLINE__ macro definitions. 411 412 // GCC 4.3 and above allow passing all anonymous arguments of an 413 // __extern_always_inline function to some other vararg function. 414 415 // It is possible to compile containing GCC extensions even if GCC is 416 // run in pedantic mode if the uses are carefully marked using the 417 // `__extension__' keyword. But this is not generally available before 418 // version 2.8. 419 420 // __restrict is known in EGCS 1.2 and above. 421 422 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 423 // array_name[restrict] 424 // GCC 3.1 supports this. 425 426 // Describes a char array whose address can safely be passed as the first 427 // argument to strncpy and strncat, as the char array is not necessarily 428 // a NUL-terminated string. 429 430 // Undefine (also defined in libc-symbols.h). 431 // Copies attributes from the declaration or type referenced by 432 // the argument. 433 434 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 435 // This file is part of the GNU C Library. 436 // 437 // The GNU C Library is free software; you can redistribute it and/or 438 // modify it under the terms of the GNU Lesser General Public 439 // License as published by the Free Software Foundation; either 440 // version 2.1 of the License, or (at your option) any later version. 441 // 442 // The GNU C Library is distributed in the hope that it will be useful, 443 // but WITHOUT ANY WARRANTY; without even the implied warranty of 444 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 445 // Lesser General Public License for more details. 446 // 447 // You should have received a copy of the GNU Lesser General Public 448 // License along with the GNU C Library; if not, see 449 // <https://www.gnu.org/licenses/>. 450 451 // Properties of long double type. 452 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 453 // This file is part of the GNU C Library. 454 // 455 // The GNU C Library is free software; you can redistribute it and/or 456 // modify it under the terms of the GNU Lesser General Public 457 // License published by the Free Software Foundation; either 458 // version 2.1 of the License, or (at your option) any later version. 459 // 460 // The GNU C Library is distributed in the hope that it will be useful, 461 // but WITHOUT ANY WARRANTY; without even the implied warranty of 462 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 463 // Lesser General Public License for more details. 464 // 465 // You should have received a copy of the GNU Lesser General Public 466 // License along with the GNU C Library; if not, see 467 // <https://www.gnu.org/licenses/>. 468 469 // This header is included by <sys/cdefs.h>. 470 // 471 // If long double is ABI-compatible with double, it should define 472 // __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave 473 // __NO_LONG_DOUBLE_MATH undefined. 474 // 475 // If this build of the GNU C Library supports both long double 476 // ABI-compatible with double and some other long double format not 477 // ABI-compatible with double, it should define 478 // __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave 479 // __LONG_DOUBLE_MATH_OPTIONAL undefined. 480 // 481 // If __NO_LONG_DOUBLE_MATH is already defined, this header must not 482 // define anything; this is needed to work with the definition of 483 // __NO_LONG_DOUBLE_MATH in nldbl-compat.h. 484 485 // In the default version of this header, long double is 486 // ABI-compatible with double. 487 488 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 489 // intended for use in preprocessor macros. 490 // 491 // Note: MESSAGE must be a _single_ string; concatenation of string 492 // literals is not supported. 493 494 // Generic selection (ISO C11) is a C-only feature, available in GCC 495 // since version 4.9. Previous versions do not provide generic 496 // selection, even though they might set __STDC_VERSION__ to 201112L, 497 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 498 // when testing __STDC_VERSION__ for generic selection support. 499 // On the other hand, Clang also defines __GNUC__, so a clang-specific 500 // check is required to enable the use of generic selection. 501 502 // If we don't have __REDIRECT, prototypes will be missing if 503 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 504 505 // Decide whether we can define 'extern inline' functions in headers. 506 507 // This is here only because every header file already includes this one. 508 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 509 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 510 // that will always return failure (and set errno to ENOSYS). 511 // This file is automatically generated. 512 // This file selects the right generated file of `__stub_FUNCTION' macros 513 // based on the architecture being compiled for. 514 515 // This file is automatically generated. 516 // It defines a symbol `__stub_FUNCTION' for each function 517 // in the C library which is a stub, meaning it will fail 518 // every time called, usually setting errno to ENOSYS. 519 520 // Get the platform dependent bits of `poll'. 521 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 522 // This file is part of the GNU C Library. 523 // 524 // The GNU C Library is free software; you can redistribute it and/or 525 // modify it under the terms of the GNU Lesser General Public 526 // License as published by the Free Software Foundation; either 527 // version 2.1 of the License, or (at your option) any later version. 528 // 529 // The GNU C Library is distributed in the hope that it will be useful, 530 // but WITHOUT ANY WARRANTY; without even the implied warranty of 531 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 532 // Lesser General Public License for more details. 533 // 534 // You should have received a copy of the GNU Lesser General Public 535 // License along with the GNU C Library; if not, see 536 // <https://www.gnu.org/licenses/>. 537 538 // Event types that can be polled for. These bits may be set in `events' 539 // to indicate the interesting event types; they will appear in `revents' 540 // to indicate the status of the file descriptor. 541 542 // These values are defined in XPG4.2. 543 544 // Event types always implicitly polled for. These bits need not be set in 545 // `events', but they will appear in `revents' to indicate the status of 546 // the file descriptor. 547 548 // Type used for the number of file descriptors. 549 type Nfds_t = uint32 /* poll.h:33:27 */ 550 551 // Data structure describing a polling request. 552 type Pollfd = struct { 553 Ffd int32 554 Fevents int16 555 Frevents int16 556 } /* poll.h:36:1 */ 557 558 // Define some inlines helping to catch common problems. 559 560 var _ uint8 /* gen.c:2:13: */