gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

poll_linux_ppc64le.go (24833B)


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