github.com/afumu/libc@v0.0.6/fcntl/fcntl_linux_ppc64le.go (about)

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