gtsocial-umbx

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

fcntl_linux_386.go (45629B)


      1 // Code generated by 'ccgo fcntl/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 fcntl/fcntl_linux_386.go -pkgname fcntl', DO NOT EDIT.
      2 
      3 package fcntl
      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 	AT_EACCESS            = 0x200
     19 	AT_FDCWD              = -100
     20 	AT_REMOVEDIR          = 0x200
     21 	AT_SYMLINK_FOLLOW     = 0x400
     22 	AT_SYMLINK_NOFOLLOW   = 0x100
     23 	FAPPEND               = 1024
     24 	FASYNC                = 8192
     25 	FD_CLOEXEC            = 1
     26 	FFSYNC                = 1052672
     27 	FNDELAY               = 2048
     28 	FNONBLOCK             = 2048
     29 	F_DUPFD               = 0
     30 	F_DUPFD_CLOEXEC       = 1030
     31 	F_EXLCK               = 4
     32 	F_GETFD               = 1
     33 	F_GETFL               = 3
     34 	F_GETLK               = 12
     35 	F_GETLK64             = 12
     36 	F_GETOWN              = 9
     37 	F_LOCK                = 1
     38 	F_OK                  = 0
     39 	F_RDLCK               = 0
     40 	F_SETFD               = 2
     41 	F_SETFL               = 4
     42 	F_SETLK               = 13
     43 	F_SETLK64             = 13
     44 	F_SETLKW              = 14
     45 	F_SETLKW64            = 14
     46 	F_SETOWN              = 8
     47 	F_SHLCK               = 8
     48 	F_TEST                = 3
     49 	F_TLOCK               = 2
     50 	F_ULOCK               = 0
     51 	F_UNLCK               = 2
     52 	F_WRLCK               = 1
     53 	LOCK_EX               = 2
     54 	LOCK_NB               = 4
     55 	LOCK_SH               = 1
     56 	LOCK_UN               = 8
     57 	O_ACCMODE             = 0003
     58 	O_APPEND              = 02000
     59 	O_ASYNC               = 020000
     60 	O_CLOEXEC             = 524288
     61 	O_CREAT               = 0100
     62 	O_DIRECTORY           = 65536
     63 	O_DSYNC               = 4096
     64 	O_EXCL                = 0200
     65 	O_FSYNC               = 1052672
     66 	O_NDELAY              = 2048
     67 	O_NOCTTY              = 0400
     68 	O_NOFOLLOW            = 131072
     69 	O_NONBLOCK            = 04000
     70 	O_RDONLY              = 00
     71 	O_RDWR                = 02
     72 	O_RSYNC               = 1052672
     73 	O_SYNC                = 04010000
     74 	O_TRUNC               = 01000
     75 	O_WRONLY              = 01
     76 	POSIX_FADV_DONTNEED   = 4
     77 	POSIX_FADV_NOREUSE    = 5
     78 	POSIX_FADV_NORMAL     = 0
     79 	POSIX_FADV_RANDOM     = 1
     80 	POSIX_FADV_SEQUENTIAL = 2
     81 	POSIX_FADV_WILLNEED   = 3
     82 	R_OK                  = 4
     83 	SEEK_CUR              = 1
     84 	SEEK_END              = 2
     85 	SEEK_SET              = 0
     86 	S_IFBLK               = 24576
     87 	S_IFCHR               = 8192
     88 	S_IFDIR               = 16384
     89 	S_IFIFO               = 4096
     90 	S_IFLNK               = 40960
     91 	S_IFMT                = 61440
     92 	S_IFREG               = 32768
     93 	S_IFSOCK              = 49152
     94 	S_IRGRP               = 32
     95 	S_IROTH               = 4
     96 	S_IRUSR               = 256
     97 	S_IRWXG               = 56
     98 	S_IRWXO               = 7
     99 	S_IRWXU               = 448
    100 	S_ISGID               = 1024
    101 	S_ISUID               = 2048
    102 	S_ISVTX               = 512
    103 	S_IWGRP               = 16
    104 	S_IWOTH               = 2
    105 	S_IWUSR               = 128
    106 	S_IXGRP               = 8
    107 	S_IXOTH               = 1
    108 	S_IXUSR               = 64
    109 	UTIME_NOW             = 1073741823
    110 	UTIME_OMIT            = 1073741822
    111 	W_OK                  = 2
    112 	X_OK                  = 1
    113 	X_ATFILE_SOURCE       = 1
    114 	X_BITS_ENDIANNESS_H   = 1
    115 	X_BITS_ENDIAN_H       = 1
    116 	X_BITS_STAT_H         = 1
    117 	X_BITS_TIME64_H       = 1
    118 	X_BITS_TYPESIZES_H    = 1
    119 	X_BITS_TYPES_H        = 1
    120 	X_DEFAULT_SOURCE      = 1
    121 	X_FCNTL_H             = 1
    122 	X_FEATURES_H          = 1
    123 	X_FILE_OFFSET_BITS    = 64
    124 	X_ILP32               = 1
    125 	X_MKNOD_VER           = 1
    126 	X_MKNOD_VER_LINUX     = 1
    127 	X_MKNOD_VER_SVR4      = 2
    128 	X_POSIX_C_SOURCE      = 200809
    129 	X_POSIX_SOURCE        = 1
    130 	X_STATBUF_ST_BLKSIZE  = 0
    131 	X_STATBUF_ST_NSEC     = 0
    132 	X_STATBUF_ST_RDEV     = 0
    133 	X_STAT_VER            = 3
    134 	X_STAT_VER_KERNEL     = 1
    135 	X_STAT_VER_LINUX      = 3
    136 	X_STAT_VER_LINUX_OLD  = 1
    137 	X_STAT_VER_SVR4       = 2
    138 	X_STDC_PREDEF_H       = 1
    139 	X_STRUCT_TIMESPEC     = 1
    140 	X_SYS_CDEFS_H         = 1
    141 	I386                  = 1
    142 	Linux                 = 1
    143 	Unix                  = 1
    144 )
    145 
    146 type Ptrdiff_t = int32 /* <builtin>:3:26 */
    147 
    148 type Size_t = uint32 /* <builtin>:9:23 */
    149 
    150 type Wchar_t = int32 /* <builtin>:15:24 */
    151 
    152 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    153 type X__float128 = float64        /* <builtin>:47:21 */
    154 
    155 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    156 //    This file is part of the GNU C Library.
    157 //
    158 //    The GNU C Library is free software; you can redistribute it and/or
    159 //    modify it under the terms of the GNU Lesser General Public
    160 //    License as published by the Free Software Foundation; either
    161 //    version 2.1 of the License, or (at your option) any later version.
    162 //
    163 //    The GNU C Library is distributed in the hope that it will be useful,
    164 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    165 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    166 //    Lesser General Public License for more details.
    167 //
    168 //    You should have received a copy of the GNU Lesser General Public
    169 //    License along with the GNU C Library; if not, see
    170 //    <https://www.gnu.org/licenses/>.
    171 
    172 //	POSIX Standard: 6.5 File Control Operations	<fcntl.h>
    173 
    174 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    175 //    This file is part of the GNU C Library.
    176 //
    177 //    The GNU C Library is free software; you can redistribute it and/or
    178 //    modify it under the terms of the GNU Lesser General Public
    179 //    License as published by the Free Software Foundation; either
    180 //    version 2.1 of the License, or (at your option) any later version.
    181 //
    182 //    The GNU C Library is distributed in the hope that it will be useful,
    183 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    184 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    185 //    Lesser General Public License for more details.
    186 //
    187 //    You should have received a copy of the GNU Lesser General Public
    188 //    License along with the GNU C Library; if not, see
    189 //    <https://www.gnu.org/licenses/>.
    190 
    191 // These are defined by the user (or the compiler)
    192 //    to specify the desired environment:
    193 //
    194 //    __STRICT_ANSI__	ISO Standard C.
    195 //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
    196 //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
    197 //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
    198 //    __STDC_WANT_LIB_EXT2__
    199 // 			Extensions to ISO C99 from TR 27431-2:2010.
    200 //    __STDC_WANT_IEC_60559_BFP_EXT__
    201 // 			Extensions to ISO C11 from TS 18661-1:2014.
    202 //    __STDC_WANT_IEC_60559_FUNCS_EXT__
    203 // 			Extensions to ISO C11 from TS 18661-4:2015.
    204 //    __STDC_WANT_IEC_60559_TYPES_EXT__
    205 // 			Extensions to ISO C11 from TS 18661-3:2015.
    206 //
    207 //    _POSIX_SOURCE	IEEE Std 1003.1.
    208 //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
    209 // 			if >=199309L, add IEEE Std 1003.1b-1993;
    210 // 			if >=199506L, add IEEE Std 1003.1c-1995;
    211 // 			if >=200112L, all of IEEE 1003.1-2004
    212 // 			if >=200809L, all of IEEE 1003.1-2008
    213 //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
    214 // 			Single Unix conformance is wanted, to 600 for the
    215 // 			sixth revision, to 700 for the seventh revision.
    216 //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
    217 //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
    218 //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
    219 //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
    220 //    _ATFILE_SOURCE	Additional *at interfaces.
    221 //    _GNU_SOURCE		All of the above, plus GNU extensions.
    222 //    _DEFAULT_SOURCE	The default set of features (taking precedence over
    223 // 			__STRICT_ANSI__).
    224 //
    225 //    _FORTIFY_SOURCE	Add security hardening to many library functions.
    226 // 			Set to 1 or 2; 2 performs stricter checks than 1.
    227 //
    228 //    _REENTRANT, _THREAD_SAFE
    229 // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
    230 //
    231 //    The `-ansi' switch to the GNU C compiler, and standards conformance
    232 //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
    233 //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
    234 //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
    235 //    200809L, as well as enabling miscellaneous functions from BSD and
    236 //    SVID.  If more than one of these are defined, they accumulate.  For
    237 //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
    238 //    give you ISO C, 1003.1, and 1003.2, but nothing else.
    239 //
    240 //    These are defined by this file and are used by the
    241 //    header files to decide what to declare or define:
    242 //
    243 //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
    244 // 			to 1 or 0; the subsequent macros are either defined
    245 // 			or undefined, and those tests should be moved to
    246 // 			__GLIBC_USE.
    247 //    __USE_ISOC11		Define ISO C11 things.
    248 //    __USE_ISOC99		Define ISO C99 things.
    249 //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
    250 //    __USE_ISOCXX11	Define ISO C++11 things.
    251 //    __USE_POSIX		Define IEEE Std 1003.1 things.
    252 //    __USE_POSIX2		Define IEEE Std 1003.2 things.
    253 //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
    254 //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
    255 //    __USE_XOPEN		Define XPG things.
    256 //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
    257 //    __USE_UNIX98		Define Single Unix V2 things.
    258 //    __USE_XOPEN2K        Define XPG6 things.
    259 //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
    260 //    __USE_XOPEN2K8       Define XPG7 things.
    261 //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
    262 //    __USE_LARGEFILE	Define correct standard I/O things.
    263 //    __USE_LARGEFILE64	Define LFS things with separate names.
    264 //    __USE_FILE_OFFSET64	Define 64bit interface as default.
    265 //    __USE_MISC		Define things from 4.3BSD or System V Unix.
    266 //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
    267 //    __USE_GNU		Define GNU extensions.
    268 //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
    269 //
    270 //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
    271 //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
    272 //    only for compatibility.  All new code should use the other symbols
    273 //    to test for features.
    274 //
    275 //    All macros listed above as possibly being defined by this file are
    276 //    explicitly undefined if they are not explicitly defined.
    277 //    Feature-test macros that are not defined by the user or compiler
    278 //    but are implied by the other feature-test macros defined (or by the
    279 //    lack of any definitions) are defined by the file.
    280 //
    281 //    ISO C feature test macros depend on the definition of the macro
    282 //    when an affected header is included, not when the first system
    283 //    header is included, and so they are handled in
    284 //    <bits/libc-header-start.h>, which does not have a multiple include
    285 //    guard.  Feature test macros that can be handled from the first
    286 //    system header included are handled here.
    287 
    288 // Undefine everything, so we get a clean slate.
    289 
    290 // Suppress kernel-name space pollution unless user expressedly asks
    291 //    for it.
    292 
    293 // Convenience macro to test the version of gcc.
    294 //    Use like this:
    295 //    #if __GNUC_PREREQ (2,8)
    296 //    ... code requiring gcc 2.8 or later ...
    297 //    #endif
    298 //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
    299 //    added in 2.0.
    300 
    301 // Similarly for clang.  Features added to GCC after version 4.2 may
    302 //    or may not also be available in clang, and clang's definitions of
    303 //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
    304 //    features can be queried via __has_extension/__has_feature.
    305 
    306 // Whether to use feature set F.
    307 
    308 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
    309 //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
    310 //    issue a warning; the expectation is that the source is being
    311 //    transitioned to use the new macro.
    312 
    313 // If _GNU_SOURCE was defined by the user, turn on all the other features.
    314 
    315 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
    316 //    define _DEFAULT_SOURCE.
    317 
    318 // This is to enable the ISO C2X extension.
    319 
    320 // This is to enable the ISO C11 extension.
    321 
    322 // This is to enable the ISO C99 extension.
    323 
    324 // This is to enable the ISO C90 Amendment 1:1995 extension.
    325 
    326 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
    327 //    is defined, use POSIX.1-2008 (or another version depending on
    328 //    _XOPEN_SOURCE).
    329 
    330 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
    331 //    defined in all multithreaded code.  GNU libc has not required this
    332 //    for many years.  We now treat them as compatibility synonyms for
    333 //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
    334 //    comprehensive support for multithreaded code.  Using them never
    335 //    lowers the selected level of POSIX conformance, only raises it.
    336 
    337 // The function 'gets' existed in C89, but is impossible to use
    338 //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
    339 //    compatibility with various implementations of <cstdio>, this test
    340 //    must consider only the value of __cplusplus when compiling C++.
    341 
    342 // GNU formerly extended the scanf functions with modified format
    343 //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
    344 //    input using malloc.  This extension conflicts with ISO C99, which
    345 //    defines %a as a standalone format specifier that reads a floating-
    346 //    point number; moreover, POSIX.1-2008 provides the same feature
    347 //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
    348 //
    349 //    We now follow C99 unless GNU extensions are active and the compiler
    350 //    is specifically in C89 or C++98 mode (strict or not).  For
    351 //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
    352 //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
    353 //    old extension.
    354 
    355 // Get definitions of __STDC_* predefined macros, if the compiler has
    356 //    not preincluded this header automatically.
    357 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    358 //    This file is part of the GNU C Library.
    359 //
    360 //    The GNU C Library is free software; you can redistribute it and/or
    361 //    modify it under the terms of the GNU Lesser General Public
    362 //    License as published by the Free Software Foundation; either
    363 //    version 2.1 of the License, or (at your option) any later version.
    364 //
    365 //    The GNU C Library is distributed in the hope that it will be useful,
    366 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    367 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    368 //    Lesser General Public License for more details.
    369 //
    370 //    You should have received a copy of the GNU Lesser General Public
    371 //    License along with the GNU C Library; if not, see
    372 //    <https://www.gnu.org/licenses/>.
    373 
    374 // This macro indicates that the installed library is the GNU C Library.
    375 //    For historic reasons the value now is 6 and this will stay from now
    376 //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
    377 //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
    378 //    GNU C library version and use the values in <gnu/lib-names.h> to get
    379 //    the sonames of the shared libraries.
    380 
    381 // Major and minor version number of the GNU C library package.  Use
    382 //    these macros to test for features in specific releases.
    383 
    384 // This is here only because every header file already includes this one.
    385 // Copyright (C) 1992-2020 Free Software Foundation, Inc.
    386 //    This file is part of the GNU C Library.
    387 //
    388 //    The GNU C Library is free software; you can redistribute it and/or
    389 //    modify it under the terms of the GNU Lesser General Public
    390 //    License as published by the Free Software Foundation; either
    391 //    version 2.1 of the License, or (at your option) any later version.
    392 //
    393 //    The GNU C Library is distributed in the hope that it will be useful,
    394 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    395 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    396 //    Lesser General Public License for more details.
    397 //
    398 //    You should have received a copy of the GNU Lesser General Public
    399 //    License along with the GNU C Library; if not, see
    400 //    <https://www.gnu.org/licenses/>.
    401 
    402 // We are almost always included from features.h.
    403 
    404 // The GNU libc does not support any K&R compilers or the traditional mode
    405 //    of ISO C compilers anymore.  Check for some of the combinations not
    406 //    anymore supported.
    407 
    408 // Some user header file might have defined this before.
    409 
    410 // All functions, except those with callbacks or those that
    411 //    synchronize memory, are leaf functions.
    412 
    413 // GCC can always grok prototypes.  For C++ programs we add throw()
    414 //    to help it optimize the function calls.  But this works only with
    415 //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
    416 //    as non-throwing using a function attribute since programs can use
    417 //    the -fexceptions options for C code as well.
    418 
    419 // Compilers that are not clang may object to
    420 //        #if defined __clang__ && __has_extension(...)
    421 //    even though they do not need to evaluate the right-hand side of the &&.
    422 
    423 // These two macros are not used in glibc anymore.  They are kept here
    424 //    only because some other projects expect the macros to be defined.
    425 
    426 // For these things, GCC behaves the ANSI way normally,
    427 //    and the non-ANSI way under -traditional.
    428 
    429 // This is not a typedef so `const __ptr_t' does the right thing.
    430 
    431 // C++ needs to know that types and declarations are C, not C++.
    432 
    433 // Fortify support.
    434 
    435 // Support for flexible arrays.
    436 //    Headers that should use flexible arrays only if they're "real"
    437 //    (e.g. only if they won't affect sizeof()) should test
    438 //    #if __glibc_c99_flexarr_available.
    439 
    440 // __asm__ ("xyz") is used throughout the headers to rename functions
    441 //    at the assembly language level.  This is wrapped by the __REDIRECT
    442 //    macro, in order to support compilers that can do this some other
    443 //    way.  When compilers don't support asm-names at all, we have to do
    444 //    preprocessor tricks instead (which don't have exactly the right
    445 //    semantics, but it's the best we can do).
    446 //
    447 //    Example:
    448 //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
    449 
    450 //
    451 // #elif __SOME_OTHER_COMPILER__
    452 //
    453 // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
    454 
    455 // GCC has various useful declarations that can be made with the
    456 //    `__attribute__' syntax.  All of the ways we use this do fine if
    457 //    they are omitted for compilers that don't understand it.
    458 
    459 // At some point during the gcc 2.96 development the `malloc' attribute
    460 //    for functions was introduced.  We don't want to use it unconditionally
    461 //    (although this would be possible) since it generates warnings.
    462 
    463 // Tell the compiler which arguments to an allocation function
    464 //    indicate the size of the allocation.
    465 
    466 // At some point during the gcc 2.96 development the `pure' attribute
    467 //    for functions was introduced.  We don't want to use it unconditionally
    468 //    (although this would be possible) since it generates warnings.
    469 
    470 // This declaration tells the compiler that the value is constant.
    471 
    472 // At some point during the gcc 3.1 development the `used' attribute
    473 //    for functions was introduced.  We don't want to use it unconditionally
    474 //    (although this would be possible) since it generates warnings.
    475 
    476 // Since version 3.2, gcc allows marking deprecated functions.
    477 
    478 // Since version 4.5, gcc also allows one to specify the message printed
    479 //    when a deprecated function is used.  clang claims to be gcc 4.2, but
    480 //    may also support this feature.
    481 
    482 // At some point during the gcc 2.8 development the `format_arg' attribute
    483 //    for functions was introduced.  We don't want to use it unconditionally
    484 //    (although this would be possible) since it generates warnings.
    485 //    If several `format_arg' attributes are given for the same function, in
    486 //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
    487 //    all designated arguments are considered.
    488 
    489 // At some point during the gcc 2.97 development the `strfmon' format
    490 //    attribute for functions was introduced.  We don't want to use it
    491 //    unconditionally (although this would be possible) since it
    492 //    generates warnings.
    493 
    494 // The nonull function attribute allows to mark pointer parameters which
    495 //    must not be NULL.
    496 
    497 // If fortification mode, we warn about unused results of certain
    498 //    function calls which can lead to problems.
    499 
    500 // Forces a function to be always inlined.
    501 // The Linux kernel defines __always_inline in stddef.h (283d7573), and
    502 //    it conflicts with this definition.  Therefore undefine it first to
    503 //    allow either header to be included first.
    504 
    505 // Associate error messages with the source location of the call site rather
    506 //    than with the source location inside the function.
    507 
    508 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
    509 //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
    510 //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
    511 //    older than 4.3 may define these macros and still not guarantee GNU inlining
    512 //    semantics.
    513 //
    514 //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
    515 //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
    516 //    __GNUC_GNU_INLINE__ macro definitions.
    517 
    518 // GCC 4.3 and above allow passing all anonymous arguments of an
    519 //    __extern_always_inline function to some other vararg function.
    520 
    521 // It is possible to compile containing GCC extensions even if GCC is
    522 //    run in pedantic mode if the uses are carefully marked using the
    523 //    `__extension__' keyword.  But this is not generally available before
    524 //    version 2.8.
    525 
    526 // __restrict is known in EGCS 1.2 and above.
    527 
    528 // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
    529 //      array_name[restrict]
    530 //    GCC 3.1 supports this.
    531 
    532 // Describes a char array whose address can safely be passed as the first
    533 //    argument to strncpy and strncat, as the char array is not necessarily
    534 //    a NUL-terminated string.
    535 
    536 // Undefine (also defined in libc-symbols.h).
    537 // Copies attributes from the declaration or type referenced by
    538 //    the argument.
    539 
    540 // Determine the wordsize from the preprocessor defines.
    541 
    542 // Properties of long double type.  ldbl-96 version.
    543 //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
    544 //    This file is part of the GNU C Library.
    545 //
    546 //    The GNU C Library is free software; you can redistribute it and/or
    547 //    modify it under the terms of the GNU Lesser General Public
    548 //    License  published by the Free Software Foundation; either
    549 //    version 2.1 of the License, or (at your option) any later version.
    550 //
    551 //    The GNU C Library is distributed in the hope that it will be useful,
    552 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    553 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    554 //    Lesser General Public License for more details.
    555 //
    556 //    You should have received a copy of the GNU Lesser General Public
    557 //    License along with the GNU C Library; if not, see
    558 //    <https://www.gnu.org/licenses/>.
    559 
    560 // long double is distinct from double, so there is nothing to
    561 //    define here.
    562 
    563 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    564 //    intended for use in preprocessor macros.
    565 //
    566 //    Note: MESSAGE must be a _single_ string; concatenation of string
    567 //    literals is not supported.
    568 
    569 // Generic selection (ISO C11) is a C-only feature, available in GCC
    570 //    since version 4.9.  Previous versions do not provide generic
    571 //    selection, even though they might set __STDC_VERSION__ to 201112L,
    572 //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
    573 //    when testing __STDC_VERSION__ for generic selection support.
    574 //    On the other hand, Clang also defines __GNUC__, so a clang-specific
    575 //    check is required to enable the use of generic selection.
    576 
    577 // If we don't have __REDIRECT, prototypes will be missing if
    578 //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
    579 
    580 // Decide whether we can define 'extern inline' functions in headers.
    581 
    582 // This is here only because every header file already includes this one.
    583 //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
    584 //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
    585 //    that will always return failure (and set errno to ENOSYS).
    586 // This file is automatically generated.
    587 //    This file selects the right generated file of `__stub_FUNCTION' macros
    588 //    based on the architecture being compiled for.
    589 
    590 // This file is automatically generated.
    591 //    It defines a symbol `__stub_FUNCTION' for each function
    592 //    in the C library which is a stub, meaning it will fail
    593 //    every time called, usually setting errno to ENOSYS.
    594 
    595 // This must be early so <bits/fcntl.h> can define types winningly.
    596 
    597 // Get __mode_t, __dev_t and __off_t  .
    598 // bits/types.h -- definitions of __*_t types underlying *_t types.
    599 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    600 //    This file is part of the GNU C Library.
    601 //
    602 //    The GNU C Library is free software; you can redistribute it and/or
    603 //    modify it under the terms of the GNU Lesser General Public
    604 //    License as published by the Free Software Foundation; either
    605 //    version 2.1 of the License, or (at your option) any later version.
    606 //
    607 //    The GNU C Library is distributed in the hope that it will be useful,
    608 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    609 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    610 //    Lesser General Public License for more details.
    611 //
    612 //    You should have received a copy of the GNU Lesser General Public
    613 //    License along with the GNU C Library; if not, see
    614 //    <https://www.gnu.org/licenses/>.
    615 
    616 // Never include this file directly; use <sys/types.h> instead.
    617 
    618 // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    619 //    This file is part of the GNU C Library.
    620 //
    621 //    The GNU C Library is free software; you can redistribute it and/or
    622 //    modify it under the terms of the GNU Lesser General Public
    623 //    License as published by the Free Software Foundation; either
    624 //    version 2.1 of the License, or (at your option) any later version.
    625 //
    626 //    The GNU C Library is distributed in the hope that it will be useful,
    627 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    628 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    629 //    Lesser General Public License for more details.
    630 //
    631 //    You should have received a copy of the GNU Lesser General Public
    632 //    License along with the GNU C Library; if not, see
    633 //    <https://www.gnu.org/licenses/>.
    634 
    635 // Determine the wordsize from the preprocessor defines.
    636 
    637 // Bit size of the time_t type at glibc build time, x86-64 and x32 case.
    638 //    Copyright (C) 2018-2020 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 // For others, time size is word size.
    656 
    657 // Convenience types.
    658 type X__u_char = uint8   /* types.h:31:23 */
    659 type X__u_short = uint16 /* types.h:32:28 */
    660 type X__u_int = uint32   /* types.h:33:22 */
    661 type X__u_long = uint32  /* types.h:34:27 */
    662 
    663 // Fixed-size types, underlying types depend on word size and compiler.
    664 type X__int8_t = int8     /* types.h:37:21 */
    665 type X__uint8_t = uint8   /* types.h:38:23 */
    666 type X__int16_t = int16   /* types.h:39:26 */
    667 type X__uint16_t = uint16 /* types.h:40:28 */
    668 type X__int32_t = int32   /* types.h:41:20 */
    669 type X__uint32_t = uint32 /* types.h:42:22 */
    670 type X__int64_t = int64   /* types.h:47:44 */
    671 type X__uint64_t = uint64 /* types.h:48:46 */
    672 
    673 // Smallest types with at least a given width.
    674 type X__int_least8_t = X__int8_t     /* types.h:52:18 */
    675 type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
    676 type X__int_least16_t = X__int16_t   /* types.h:54:19 */
    677 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
    678 type X__int_least32_t = X__int32_t   /* types.h:56:19 */
    679 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
    680 type X__int_least64_t = X__int64_t   /* types.h:58:19 */
    681 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
    682 
    683 // quad_t is also 64 bits.
    684 type X__quad_t = int64    /* types.h:66:37 */
    685 type X__u_quad_t = uint64 /* types.h:67:46 */
    686 
    687 // Largest integral types.
    688 type X__intmax_t = int64   /* types.h:75:37 */
    689 type X__uintmax_t = uint64 /* types.h:76:46 */
    690 
    691 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
    692 //    macros for each of the OS types we define below.  The definitions
    693 //    of those macros must use the following macros for underlying types.
    694 //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
    695 //    variants of each of the following integer types on this machine.
    696 //
    697 // 	16		-- "natural" 16-bit type (always short)
    698 // 	32		-- "natural" 32-bit type (always int)
    699 // 	64		-- "natural" 64-bit type (long or long long)
    700 // 	LONG32		-- 32-bit type, traditionally long
    701 // 	QUAD		-- 64-bit type, traditionally long long
    702 // 	WORD		-- natural type of __WORDSIZE bits (int or long)
    703 // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
    704 //
    705 //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
    706 //    conventional uses of `long' or `long long' type modifiers match the
    707 //    types we define, even when a less-adorned type would be the same size.
    708 //    This matters for (somewhat) portably writing printf/scanf formats for
    709 //    these types, where using the appropriate l or ll format modifiers can
    710 //    make the typedefs and the formats match up across all GNU platforms.  If
    711 //    we used `long' when it's 64 bits where `long long' is expected, then the
    712 //    compiler would warn about the formats not matching the argument types,
    713 //    and the programmer changing them to shut up the compiler would break the
    714 //    program's portability.
    715 //
    716 //    Here we assume what is presently the case in all the GCC configurations
    717 //    we support: long long is always 64 bits, long is always word/address size,
    718 //    and int is always 32 bits.
    719 
    720 // We want __extension__ before typedef's that use nonstandard base types
    721 //    such as `long long' in C89 mode.
    722 // bits/typesizes.h -- underlying types for *_t.  Linux/x86-64 version.
    723 //    Copyright (C) 2012-2020 Free Software Foundation, Inc.
    724 //    This file is part of the GNU C Library.
    725 //
    726 //    The GNU C Library is free software; you can redistribute it and/or
    727 //    modify it under the terms of the GNU Lesser General Public
    728 //    License as published by the Free Software Foundation; either
    729 //    version 2.1 of the License, or (at your option) any later version.
    730 //
    731 //    The GNU C Library is distributed in the hope that it will be useful,
    732 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    733 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    734 //    Lesser General Public License for more details.
    735 //
    736 //    You should have received a copy of the GNU Lesser General Public
    737 //    License along with the GNU C Library; if not, see
    738 //    <https://www.gnu.org/licenses/>.
    739 
    740 // See <bits/types.h> for the meaning of these macros.  This file exists so
    741 //    that <bits/types.h> need not vary across different GNU platforms.
    742 
    743 // X32 kernel interface is 64-bit.
    744 
    745 // Number of descriptors that can fit in an `fd_set'.
    746 
    747 // bits/time64.h -- underlying types for __time64_t.  Generic version.
    748 //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
    749 //    This file is part of the GNU C Library.
    750 //
    751 //    The GNU C Library is free software; you can redistribute it and/or
    752 //    modify it under the terms of the GNU Lesser General Public
    753 //    License as published by the Free Software Foundation; either
    754 //    version 2.1 of the License, or (at your option) any later version.
    755 //
    756 //    The GNU C Library is distributed in the hope that it will be useful,
    757 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    758 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    759 //    Lesser General Public License for more details.
    760 //
    761 //    You should have received a copy of the GNU Lesser General Public
    762 //    License along with the GNU C Library; if not, see
    763 //    <https://www.gnu.org/licenses/>.
    764 
    765 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
    766 
    767 // Define a 64-bit time type alongsize the 32-bit one.
    768 
    769 type X__dev_t = X__uint64_t                /* types.h:145:25 */ // Type of device numbers.
    770 type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
    771 type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
    772 type X__ino_t = uint32                     /* types.h:148:25 */ // Type of file serial numbers.
    773 type X__ino64_t = X__uint64_t              /* types.h:149:27 */ // Type of file serial numbers (LFS).
    774 type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
    775 type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
    776 type X__off_t = int32                      /* types.h:152:25 */ // Type of file sizes and offsets.
    777 type X__off64_t = X__int64_t               /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
    778 type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
    779 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
    780 type X__clock_t = int32                    /* types.h:156:27 */ // Type of CPU usage counts.
    781 type X__rlim_t = uint32                    /* types.h:157:26 */ // Type for resource measurement.
    782 type X__rlim64_t = X__uint64_t             /* types.h:158:28 */ // Type for resource measurement (LFS).
    783 type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
    784 type X__time_t = int32                     /* types.h:160:26 */ // Seconds since the Epoch.
    785 type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
    786 type X__suseconds_t = int32                /* types.h:162:31 */ // Signed count of microseconds.
    787 
    788 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
    789 type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
    790 
    791 // Clock ID used in clock and timer functions.
    792 type X__clockid_t = int32 /* types.h:168:29 */
    793 
    794 // Timer ID returned by `timer_create'.
    795 type X__timer_t = uintptr /* types.h:171:12 */
    796 
    797 // Type to represent block size.
    798 type X__blksize_t = int32 /* types.h:174:29 */
    799 
    800 // Types from the Large File Support interface.
    801 
    802 // Type to count number of disk blocks.
    803 type X__blkcnt_t = int32        /* types.h:179:28 */
    804 type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
    805 
    806 // Type to count file system blocks.
    807 type X__fsblkcnt_t = uint32        /* types.h:183:30 */
    808 type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
    809 
    810 // Type to count file system nodes.
    811 type X__fsfilcnt_t = uint32        /* types.h:187:30 */
    812 type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
    813 
    814 // Type of miscellaneous file system fields.
    815 type X__fsword_t = int32 /* types.h:191:28 */
    816 
    817 type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
    818 
    819 // Signed long type used in system calls.
    820 type X__syscall_slong_t = int32 /* types.h:196:33 */
    821 // Unsigned long type used in system calls.
    822 type X__syscall_ulong_t = uint32 /* types.h:198:33 */
    823 
    824 // These few don't really vary by system, they always correspond
    825 //
    826 //	to one of the other defined types.
    827 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
    828 type X__caddr_t = uintptr   /* types.h:203:14 */
    829 
    830 // Duplicates info from stdint.h but this is used in unistd.h.
    831 type X__intptr_t = int32 /* types.h:206:25 */
    832 
    833 // Duplicate info from sys/socket.h.
    834 type X__socklen_t = uint32 /* types.h:209:23 */
    835 
    836 // C99: An integer type that can be accessed as an atomic entity,
    837 //
    838 //	even in the presence of asynchronous interrupts.
    839 //	It is not currently necessary for this to be machine-specific.
    840 type X__sig_atomic_t = int32 /* types.h:214:13 */
    841 
    842 // Seconds since the Epoch, visible to user code when time_t is too
    843 //
    844 //	narrow only for consistency with the old way of widening too-narrow
    845 //	types.  User code should never use __time64_t.
    846 type X__time64_t = X__int64_t /* types.h:222:28 */
    847 
    848 // Get the definitions of O_*, F_*, FD_*: all the
    849 //    numbers and flag bits for `open', `fcntl', et al.
    850 // O_*, F_*, FD_* bit values for Linux/x86.
    851 //    Copyright (C) 2001-2020 Free Software Foundation, Inc.
    852 //    This file is part of the GNU C Library.
    853 //
    854 //    The GNU C Library is free software; you can redistribute it and/or
    855 //    modify it under the terms of the GNU Lesser General Public
    856 //    License as published by the Free Software Foundation; either
    857 //    version 2.1 of the License, or (at your option) any later version.
    858 //
    859 //    The GNU C Library is distributed in the hope that it will be useful,
    860 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    861 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    862 //    Lesser General Public License for more details.
    863 //
    864 //    You should have received a copy of the GNU Lesser General Public
    865 //    License along with the GNU C Library; if not, see
    866 //    <https://www.gnu.org/licenses/>.
    867 
    868 type Flock = struct {
    869 	Fl_type   int16
    870 	Fl_whence int16
    871 	Fl_start  X__off64_t
    872 	Fl_len    X__off64_t
    873 	Fl_pid    X__pid_t
    874 } /* fcntl.h:35:1 */
    875 
    876 // Include generic Linux declarations.
    877 // O_*, F_*, FD_* bit values for Linux.
    878 //    Copyright (C) 2001-2020 Free Software Foundation, Inc.
    879 //    This file is part of the GNU C Library.
    880 //
    881 //    The GNU C Library is free software; you can redistribute it and/or
    882 //    modify it under the terms of the GNU Lesser General Public
    883 //    License as published by the Free Software Foundation; either
    884 //    version 2.1 of the License, or (at your option) any later version.
    885 //
    886 //    The GNU C Library is distributed in the hope that it will be useful,
    887 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    888 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    889 //    Lesser General Public License for more details.
    890 //
    891 //    You should have received a copy of the GNU Lesser General Public
    892 //    License along with the GNU C Library; if not, see
    893 //    <https://www.gnu.org/licenses/>.
    894 
    895 // This file contains shared definitions between Linux architectures
    896 //    and is included by <bits/fcntl.h> to declare them.  The various
    897 //    #ifndef cases allow the architecture specific file to define those
    898 //    values with different values.
    899 //
    900 //    A minimal <bits/fcntl.h> contains just:
    901 //
    902 //    struct flock {...}
    903 //    #ifdef __USE_LARGEFILE64
    904 //    struct flock64 {...}
    905 //    #endif
    906 //    #include <bits/fcntl-linux.h>
    907 
    908 // open/fcntl.
    909 
    910 // open file description locks.
    911 //
    912 //    Usually record locks held by a process are released on *any* close and are
    913 //    not inherited across a fork.
    914 //
    915 //    These cmd values will set locks that conflict with process-associated record
    916 //    locks, but are "owned" by the opened file description, not the process.
    917 //    This means that they are inherited across fork or clone with CLONE_FILES
    918 //    like BSD (flock) locks, and they are only released automatically when the
    919 //    last reference to the the file description against which they were acquired
    920 //    is put.
    921 
    922 // For now, Linux has no separate synchronicity options for read
    923 //    operations.  We define O_RSYNC therefore as the same as O_SYNC
    924 //    since this is a superset.
    925 
    926 // Values for the second argument to `fcntl'.
    927 
    928 // For F_[GET|SET]FD.
    929 
    930 // For posix fcntl() and `l_type' field of a `struct flock' for lockf().
    931 
    932 // For old implementation of BSD flock.
    933 
    934 // Operations for BSD flock, also used by the kernel implementation.
    935 
    936 // Define some more compatibility macros to be backward compatible with
    937 //    BSD systems which did not managed to hide these kernel macros.
    938 
    939 // Advise to `posix_fadvise'.
    940 
    941 // Values for `*at' functions.
    942 
    943 // Detect if open needs mode as a third argument (or for openat as a fourth
    944 //    argument).
    945 
    946 // POSIX.1-2001 specifies that these types are defined by <fcntl.h>.
    947 //
    948 //	Earlier POSIX standards permitted any type ending in `_t' to be defined
    949 //	by any POSIX header, so we don't conditionalize the definitions here.
    950 type Mode_t = X__mode_t /* fcntl.h:50:18 */
    951 
    952 type Off_t = X__off64_t /* fcntl.h:58:19 */
    953 
    954 type Pid_t = X__pid_t /* fcntl.h:69:17 */
    955 
    956 // For XPG all symbols from <sys/stat.h> should also be available.
    957 // NB: Include guard matches what <linux/time.h> uses.
    958 
    959 // bits/types.h -- definitions of __*_t types underlying *_t types.
    960 //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
    961 //    This file is part of the GNU C Library.
    962 //
    963 //    The GNU C Library is free software; you can redistribute it and/or
    964 //    modify it under the terms of the GNU Lesser General Public
    965 //    License as published by the Free Software Foundation; either
    966 //    version 2.1 of the License, or (at your option) any later version.
    967 //
    968 //    The GNU C Library is distributed in the hope that it will be useful,
    969 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    970 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    971 //    Lesser General Public License for more details.
    972 //
    973 //    You should have received a copy of the GNU Lesser General Public
    974 //    License along with the GNU C Library; if not, see
    975 //    <https://www.gnu.org/licenses/>.
    976 
    977 // Never include this file directly; use <sys/types.h> instead.
    978 
    979 // Endian macros for string.h functions
    980 //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
    981 //    This file is part of the GNU C Library.
    982 //
    983 //    The GNU C Library is free software; you can redistribute it and/or
    984 //    modify it under the terms of the GNU Lesser General Public
    985 //    License as published by the Free Software Foundation; either
    986 //    version 2.1 of the License, or (at your option) any later version.
    987 //
    988 //    The GNU C Library is distributed in the hope that it will be useful,
    989 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    990 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    991 //    Lesser General Public License for more details.
    992 //
    993 //    You should have received a copy of the GNU Lesser General Public
    994 //    License along with the GNU C Library; if not, see
    995 //    <http://www.gnu.org/licenses/>.
    996 
    997 // Definitions for byte order, according to significance of bytes,
    998 //    from low addresses to high addresses.  The value is what you get by
    999 //    putting '4' in the most significant byte, '3' in the second most
   1000 //    significant byte, '2' in the second least significant byte, and '1'
   1001 //    in the least significant byte, and then writing down one digit for
   1002 //    each byte, starting with the byte at the lowest address at the left,
   1003 //    and proceeding to the byte with the highest address at the right.
   1004 
   1005 // This file defines `__BYTE_ORDER' for the particular machine.
   1006 
   1007 // i386/x86_64 are little-endian.
   1008 
   1009 // Some machines may need to use a different endianness for floating point
   1010 //    values.
   1011 
   1012 // POSIX.1b structure for a time value.  This is like a `struct timeval' but
   1013 //
   1014 //	has nanoseconds instead of microseconds.
   1015 type Timespec = struct {
   1016 	Ftv_sec  X__time_t
   1017 	Ftv_nsec X__syscall_slong_t
   1018 } /* struct_timespec.h:10:1 */
   1019 
   1020 // Copyright (C) 1999-2020 Free Software Foundation, Inc.
   1021 //    This file is part of the GNU C Library.
   1022 //
   1023 //    The GNU C Library is free software; you can redistribute it and/or
   1024 //    modify it under the terms of the GNU Lesser General Public
   1025 //    License as published by the Free Software Foundation; either
   1026 //    version 2.1 of the License, or (at your option) any later version.
   1027 //
   1028 //    The GNU C Library is distributed in the hope that it will be useful,
   1029 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1030 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1031 //    Lesser General Public License for more details.
   1032 //
   1033 //    You should have received a copy of the GNU Lesser General Public
   1034 //    License along with the GNU C Library; if not, see
   1035 //    <https://www.gnu.org/licenses/>.
   1036 
   1037 // Versions of the `struct stat' data structure.
   1038 
   1039 // i386 versions of the `xmknod' interface.
   1040 
   1041 type Stat = struct {
   1042 	Fst_dev      X__dev_t
   1043 	F__pad1      uint16
   1044 	F__ccgo_pad1 [2]byte
   1045 	F__st_ino    X__ino_t
   1046 	Fst_mode     X__mode_t
   1047 	Fst_nlink    X__nlink_t
   1048 	Fst_uid      X__uid_t
   1049 	Fst_gid      X__gid_t
   1050 	Fst_rdev     X__dev_t
   1051 	F__pad2      uint16
   1052 	F__ccgo_pad2 [2]byte
   1053 	Fst_size     X__off64_t
   1054 	Fst_blksize  X__blksize_t
   1055 	Fst_blocks   X__blkcnt64_t
   1056 	Fst_atim     struct {
   1057 		Ftv_sec  X__time_t
   1058 		Ftv_nsec X__syscall_slong_t
   1059 	}
   1060 	Fst_mtim struct {
   1061 		Ftv_sec  X__time_t
   1062 		Ftv_nsec X__syscall_slong_t
   1063 	}
   1064 	Fst_ctim struct {
   1065 		Ftv_sec  X__time_t
   1066 		Ftv_nsec X__syscall_slong_t
   1067 	}
   1068 	Fst_ino X__ino64_t
   1069 } /* stat.h:46:1 */
   1070 
   1071 // Define some inlines helping to catch common problems.
   1072 
   1073 var _ int8 /* gen.c:2:13: */