gtsocial-umbx

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

poll_linux_riscv64.go (30511B)


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