gtsocial-umbx

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

fcntl_linux_arm.go (48691B)


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