github.com/afumu/libc@v0.0.6/sys/vfs/vfs_linux_ppc64le.go (about)

     1  // Code generated by 'ccgo sys/vfs/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 sys/vfs/vfs_linux_ppc64le.go -pkgname vfs', DO NOT EDIT.
     2  
     3  package vfs
     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  	X_ARCH_PPC         = 1      // <predefined>:198:1:
    19  	X_ARCH_PPC64       = 1      // <predefined>:402:1:
    20  	X_ARCH_PPCGR       = 1      // <predefined>:15:1:
    21  	X_ARCH_PPCSQ       = 1      // <predefined>:43:1:
    22  	X_ARCH_PWR4        = 1      // <predefined>:381:1:
    23  	X_ARCH_PWR5        = 1      // <predefined>:90:1:
    24  	X_ARCH_PWR5X       = 1      // <predefined>:137:1:
    25  	X_ARCH_PWR6        = 1      // <predefined>:91:1:
    26  	X_ARCH_PWR7        = 1      // <predefined>:92:1:
    27  	X_ARCH_PWR8        = 1      // <predefined>:93:1:
    28  	X_ATFILE_SOURCE    = 1      // features.h:342:1:
    29  	X_BITS_TIME64_H    = 1      // time64.h:24:1:
    30  	X_BITS_TYPESIZES_H = 1      // typesizes.h:24:1:
    31  	X_BITS_TYPES_H     = 1      // types.h:24:1:
    32  	X_CALL_ELF         = 2      // <predefined>:415:1:
    33  	X_CALL_LINUX       = 1      // <predefined>:123:1:
    34  	X_DEFAULT_SOURCE   = 1      // features.h:227:1:
    35  	X_FEATURES_H       = 1      // features.h:19:1:
    36  	X_FILE_OFFSET_BITS = 64     // <builtin>:25:1:
    37  	X_LITTLE_ENDIAN    = 1      // <predefined>:37:1:
    38  	X_LP64             = 1      // <predefined>:335:1:
    39  	X_POSIX_C_SOURCE   = 200809 // features.h:281:1:
    40  	X_POSIX_SOURCE     = 1      // features.h:279:1:
    41  	X_STATFS_F_FLAGS   = 0      // statfs.h:69:1:
    42  	X_STATFS_F_FRSIZE  = 0      // statfs.h:68:1:
    43  	X_STATFS_F_NAMELEN = 0      // statfs.h:67:1:
    44  	X_STDC_PREDEF_H    = 1      // <predefined>:203:1:
    45  	X_SYS_CDEFS_H      = 1      // cdefs.h:19:1:
    46  	X_SYS_STATFS_H     = 1      // statfs.h:20:1:
    47  	Linux              = 1      // <predefined>:263:1:
    48  	Unix               = 1      // <predefined>:222:1:
    49  )
    50  
    51  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    52  
    53  type Size_t = uint64 /* <builtin>:9:23 */
    54  
    55  type Wchar_t = int32 /* <builtin>:15:24 */
    56  
    57  type X__int128_t = struct {
    58  	Flo int64
    59  	Fhi int64
    60  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    61  type X__uint128_t = struct {
    62  	Flo uint64
    63  	Fhi uint64
    64  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    65  
    66  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    67  type X__ieee128 = float64         /* <builtin>:47:21 */
    68  
    69  // Other systems declare `struct statfs' et al in <sys/vfs.h>,
    70  //    so we have this file to be compatible with programs expecting it.
    71  
    72  // Definitions for getting information about a filesystem.
    73  //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
    74  //    This file is part of the GNU C Library.
    75  //
    76  //    The GNU C Library is free software; you can redistribute it and/or
    77  //    modify it under the terms of the GNU Lesser General Public
    78  //    License as published by the Free Software Foundation; either
    79  //    version 2.1 of the License, or (at your option) any later version.
    80  //
    81  //    The GNU C Library is distributed in the hope that it will be useful,
    82  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    83  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    84  //    Lesser General Public License for more details.
    85  //
    86  //    You should have received a copy of the GNU Lesser General Public
    87  //    License along with the GNU C Library; if not, see
    88  //    <https://www.gnu.org/licenses/>.
    89  
    90  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
    91  //    This file is part of the GNU C Library.
    92  //
    93  //    The GNU C Library is free software; you can redistribute it and/or
    94  //    modify it under the terms of the GNU Lesser General Public
    95  //    License as published by the Free Software Foundation; either
    96  //    version 2.1 of the License, or (at your option) any later version.
    97  //
    98  //    The GNU C Library is distributed in the hope that it will be useful,
    99  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   100  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   101  //    Lesser General Public License for more details.
   102  //
   103  //    You should have received a copy of the GNU Lesser General Public
   104  //    License along with the GNU C Library; if not, see
   105  //    <https://www.gnu.org/licenses/>.
   106  
   107  // These are defined by the user (or the compiler)
   108  //    to specify the desired environment:
   109  //
   110  //    __STRICT_ANSI__	ISO Standard C.
   111  //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
   112  //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
   113  //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
   114  //    __STDC_WANT_LIB_EXT2__
   115  // 			Extensions to ISO C99 from TR 27431-2:2010.
   116  //    __STDC_WANT_IEC_60559_BFP_EXT__
   117  // 			Extensions to ISO C11 from TS 18661-1:2014.
   118  //    __STDC_WANT_IEC_60559_FUNCS_EXT__
   119  // 			Extensions to ISO C11 from TS 18661-4:2015.
   120  //    __STDC_WANT_IEC_60559_TYPES_EXT__
   121  // 			Extensions to ISO C11 from TS 18661-3:2015.
   122  //
   123  //    _POSIX_SOURCE	IEEE Std 1003.1.
   124  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   125  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   126  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   127  // 			if >=200112L, all of IEEE 1003.1-2004
   128  // 			if >=200809L, all of IEEE 1003.1-2008
   129  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   130  // 			Single Unix conformance is wanted, to 600 for the
   131  // 			sixth revision, to 700 for the seventh revision.
   132  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   133  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   134  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   135  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   136  //    _ATFILE_SOURCE	Additional *at interfaces.
   137  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   138  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   139  // 			__STRICT_ANSI__).
   140  //
   141  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   142  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   143  //
   144  //    _REENTRANT, _THREAD_SAFE
   145  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   146  //
   147  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   148  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   149  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   150  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   151  //    200809L, as well as enabling miscellaneous functions from BSD and
   152  //    SVID.  If more than one of these are defined, they accumulate.  For
   153  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   154  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   155  //
   156  //    These are defined by this file and are used by the
   157  //    header files to decide what to declare or define:
   158  //
   159  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   160  // 			to 1 or 0; the subsequent macros are either defined
   161  // 			or undefined, and those tests should be moved to
   162  // 			__GLIBC_USE.
   163  //    __USE_ISOC11		Define ISO C11 things.
   164  //    __USE_ISOC99		Define ISO C99 things.
   165  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   166  //    __USE_ISOCXX11	Define ISO C++11 things.
   167  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   168  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   169  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   170  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   171  //    __USE_XOPEN		Define XPG things.
   172  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   173  //    __USE_UNIX98		Define Single Unix V2 things.
   174  //    __USE_XOPEN2K        Define XPG6 things.
   175  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   176  //    __USE_XOPEN2K8       Define XPG7 things.
   177  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   178  //    __USE_LARGEFILE	Define correct standard I/O things.
   179  //    __USE_LARGEFILE64	Define LFS things with separate names.
   180  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   181  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   182  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   183  //    __USE_GNU		Define GNU extensions.
   184  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   185  //
   186  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   187  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   188  //    only for compatibility.  All new code should use the other symbols
   189  //    to test for features.
   190  //
   191  //    All macros listed above as possibly being defined by this file are
   192  //    explicitly undefined if they are not explicitly defined.
   193  //    Feature-test macros that are not defined by the user or compiler
   194  //    but are implied by the other feature-test macros defined (or by the
   195  //    lack of any definitions) are defined by the file.
   196  //
   197  //    ISO C feature test macros depend on the definition of the macro
   198  //    when an affected header is included, not when the first system
   199  //    header is included, and so they are handled in
   200  //    <bits/libc-header-start.h>, which does not have a multiple include
   201  //    guard.  Feature test macros that can be handled from the first
   202  //    system header included are handled here.
   203  
   204  // Undefine everything, so we get a clean slate.
   205  
   206  // Suppress kernel-name space pollution unless user expressedly asks
   207  //    for it.
   208  
   209  // Convenience macro to test the version of gcc.
   210  //    Use like this:
   211  //    #if __GNUC_PREREQ (2,8)
   212  //    ... code requiring gcc 2.8 or later ...
   213  //    #endif
   214  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   215  //    added in 2.0.
   216  
   217  // Similarly for clang.  Features added to GCC after version 4.2 may
   218  //    or may not also be available in clang, and clang's definitions of
   219  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   220  //    features can be queried via __has_extension/__has_feature.
   221  
   222  // Whether to use feature set F.
   223  
   224  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   225  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   226  //    issue a warning; the expectation is that the source is being
   227  //    transitioned to use the new macro.
   228  
   229  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   230  
   231  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   232  //    define _DEFAULT_SOURCE.
   233  
   234  // This is to enable the ISO C2X extension.
   235  
   236  // This is to enable the ISO C11 extension.
   237  
   238  // This is to enable the ISO C99 extension.
   239  
   240  // This is to enable the ISO C90 Amendment 1:1995 extension.
   241  
   242  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   243  //    is defined, use POSIX.1-2008 (or another version depending on
   244  //    _XOPEN_SOURCE).
   245  
   246  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   247  //    defined in all multithreaded code.  GNU libc has not required this
   248  //    for many years.  We now treat them as compatibility synonyms for
   249  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   250  //    comprehensive support for multithreaded code.  Using them never
   251  //    lowers the selected level of POSIX conformance, only raises it.
   252  
   253  // The function 'gets' existed in C89, but is impossible to use
   254  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   255  //    compatibility with various implementations of <cstdio>, this test
   256  //    must consider only the value of __cplusplus when compiling C++.
   257  
   258  // GNU formerly extended the scanf functions with modified format
   259  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   260  //    input using malloc.  This extension conflicts with ISO C99, which
   261  //    defines %a as a standalone format specifier that reads a floating-
   262  //    point number; moreover, POSIX.1-2008 provides the same feature
   263  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   264  //
   265  //    We now follow C99 unless GNU extensions are active and the compiler
   266  //    is specifically in C89 or C++98 mode (strict or not).  For
   267  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   268  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   269  //    old extension.
   270  
   271  // Get definitions of __STDC_* predefined macros, if the compiler has
   272  //    not preincluded this header automatically.
   273  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   274  //    This file is part of the GNU C Library.
   275  //
   276  //    The GNU C Library is free software; you can redistribute it and/or
   277  //    modify it under the terms of the GNU Lesser General Public
   278  //    License as published by the Free Software Foundation; either
   279  //    version 2.1 of the License, or (at your option) any later version.
   280  //
   281  //    The GNU C Library is distributed in the hope that it will be useful,
   282  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   283  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   284  //    Lesser General Public License for more details.
   285  //
   286  //    You should have received a copy of the GNU Lesser General Public
   287  //    License along with the GNU C Library; if not, see
   288  //    <https://www.gnu.org/licenses/>.
   289  
   290  // This macro indicates that the installed library is the GNU C Library.
   291  //    For historic reasons the value now is 6 and this will stay from now
   292  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   293  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   294  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   295  //    the sonames of the shared libraries.
   296  
   297  // Major and minor version number of the GNU C library package.  Use
   298  //    these macros to test for features in specific releases.
   299  
   300  // This is here only because every header file already includes this one.
   301  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   302  //    This file is part of the GNU C Library.
   303  //
   304  //    The GNU C Library is free software; you can redistribute it and/or
   305  //    modify it under the terms of the GNU Lesser General Public
   306  //    License as published by the Free Software Foundation; either
   307  //    version 2.1 of the License, or (at your option) any later version.
   308  //
   309  //    The GNU C Library is distributed in the hope that it will be useful,
   310  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   311  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   312  //    Lesser General Public License for more details.
   313  //
   314  //    You should have received a copy of the GNU Lesser General Public
   315  //    License along with the GNU C Library; if not, see
   316  //    <https://www.gnu.org/licenses/>.
   317  
   318  // We are almost always included from features.h.
   319  
   320  // The GNU libc does not support any K&R compilers or the traditional mode
   321  //    of ISO C compilers anymore.  Check for some of the combinations not
   322  //    anymore supported.
   323  
   324  // Some user header file might have defined this before.
   325  
   326  // All functions, except those with callbacks or those that
   327  //    synchronize memory, are leaf functions.
   328  
   329  // GCC can always grok prototypes.  For C++ programs we add throw()
   330  //    to help it optimize the function calls.  But this works only with
   331  //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
   332  //    as non-throwing using a function attribute since programs can use
   333  //    the -fexceptions options for C code as well.
   334  
   335  // Compilers that are not clang may object to
   336  //        #if defined __clang__ && __has_extension(...)
   337  //    even though they do not need to evaluate the right-hand side of the &&.
   338  
   339  // These two macros are not used in glibc anymore.  They are kept here
   340  //    only because some other projects expect the macros to be defined.
   341  
   342  // For these things, GCC behaves the ANSI way normally,
   343  //    and the non-ANSI way under -traditional.
   344  
   345  // This is not a typedef so `const __ptr_t' does the right thing.
   346  
   347  // C++ needs to know that types and declarations are C, not C++.
   348  
   349  // Fortify support.
   350  
   351  // Support for flexible arrays.
   352  //    Headers that should use flexible arrays only if they're "real"
   353  //    (e.g. only if they won't affect sizeof()) should test
   354  //    #if __glibc_c99_flexarr_available.
   355  
   356  // __asm__ ("xyz") is used throughout the headers to rename functions
   357  //    at the assembly language level.  This is wrapped by the __REDIRECT
   358  //    macro, in order to support compilers that can do this some other
   359  //    way.  When compilers don't support asm-names at all, we have to do
   360  //    preprocessor tricks instead (which don't have exactly the right
   361  //    semantics, but it's the best we can do).
   362  //
   363  //    Example:
   364  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   365  
   366  //
   367  // #elif __SOME_OTHER_COMPILER__
   368  //
   369  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   370  
   371  // GCC has various useful declarations that can be made with the
   372  //    `__attribute__' syntax.  All of the ways we use this do fine if
   373  //    they are omitted for compilers that don't understand it.
   374  
   375  // At some point during the gcc 2.96 development the `malloc' attribute
   376  //    for functions was introduced.  We don't want to use it unconditionally
   377  //    (although this would be possible) since it generates warnings.
   378  
   379  // Tell the compiler which arguments to an allocation function
   380  //    indicate the size of the allocation.
   381  
   382  // At some point during the gcc 2.96 development the `pure' attribute
   383  //    for functions was introduced.  We don't want to use it unconditionally
   384  //    (although this would be possible) since it generates warnings.
   385  
   386  // This declaration tells the compiler that the value is constant.
   387  
   388  // At some point during the gcc 3.1 development the `used' attribute
   389  //    for functions was introduced.  We don't want to use it unconditionally
   390  //    (although this would be possible) since it generates warnings.
   391  
   392  // Since version 3.2, gcc allows marking deprecated functions.
   393  
   394  // Since version 4.5, gcc also allows one to specify the message printed
   395  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   396  //    may also support this feature.
   397  
   398  // At some point during the gcc 2.8 development the `format_arg' attribute
   399  //    for functions was introduced.  We don't want to use it unconditionally
   400  //    (although this would be possible) since it generates warnings.
   401  //    If several `format_arg' attributes are given for the same function, in
   402  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   403  //    all designated arguments are considered.
   404  
   405  // At some point during the gcc 2.97 development the `strfmon' format
   406  //    attribute for functions was introduced.  We don't want to use it
   407  //    unconditionally (although this would be possible) since it
   408  //    generates warnings.
   409  
   410  // The nonull function attribute allows to mark pointer parameters which
   411  //    must not be NULL.
   412  
   413  // If fortification mode, we warn about unused results of certain
   414  //    function calls which can lead to problems.
   415  
   416  // Forces a function to be always inlined.
   417  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   418  //    it conflicts with this definition.  Therefore undefine it first to
   419  //    allow either header to be included first.
   420  
   421  // Associate error messages with the source location of the call site rather
   422  //    than with the source location inside the function.
   423  
   424  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   425  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   426  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   427  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   428  //    semantics.
   429  //
   430  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   431  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   432  //    __GNUC_GNU_INLINE__ macro definitions.
   433  
   434  // GCC 4.3 and above allow passing all anonymous arguments of an
   435  //    __extern_always_inline function to some other vararg function.
   436  
   437  // It is possible to compile containing GCC extensions even if GCC is
   438  //    run in pedantic mode if the uses are carefully marked using the
   439  //    `__extension__' keyword.  But this is not generally available before
   440  //    version 2.8.
   441  
   442  // __restrict is known in EGCS 1.2 and above.
   443  
   444  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
   445  //      array_name[restrict]
   446  //    GCC 3.1 supports this.
   447  
   448  // Describes a char array whose address can safely be passed as the first
   449  //    argument to strncpy and strncat, as the char array is not necessarily
   450  //    a NUL-terminated string.
   451  
   452  // Undefine (also defined in libc-symbols.h).
   453  // Copies attributes from the declaration or type referenced by
   454  //    the argument.
   455  
   456  // Determine the wordsize from the preprocessor defines.
   457  
   458  // Properties of long double type.  ldbl-opt version.
   459  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   460  //    This file is part of the GNU C Library.
   461  //
   462  //    The GNU C Library is free software; you can redistribute it and/or
   463  //    modify it under the terms of the GNU Lesser General Public
   464  //    License  published by the Free Software Foundation; either
   465  //    version 2.1 of the License, or (at your option) any later version.
   466  //
   467  //    The GNU C Library is distributed in the hope that it will be useful,
   468  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   469  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   470  //    Lesser General Public License for more details.
   471  //
   472  //    You should have received a copy of the GNU Lesser General Public
   473  //    License along with the GNU C Library; if not, see
   474  //    <https://www.gnu.org/licenses/>.
   475  
   476  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   477  //    intended for use in preprocessor macros.
   478  //
   479  //    Note: MESSAGE must be a _single_ string; concatenation of string
   480  //    literals is not supported.
   481  
   482  // Generic selection (ISO C11) is a C-only feature, available in GCC
   483  //    since version 4.9.  Previous versions do not provide generic
   484  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   485  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   486  //    when testing __STDC_VERSION__ for generic selection support.
   487  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   488  //    check is required to enable the use of generic selection.
   489  
   490  // If we don't have __REDIRECT, prototypes will be missing if
   491  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   492  
   493  // Decide whether we can define 'extern inline' functions in headers.
   494  
   495  // This is here only because every header file already includes this one.
   496  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   497  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   498  //    that will always return failure (and set errno to ENOSYS).
   499  // This file is automatically generated.
   500  //    This file selects the right generated file of `__stub_FUNCTION' macros
   501  //    based on the architecture being compiled for.
   502  
   503  // Determine the wordsize from the preprocessor defines.
   504  
   505  // This file is automatically generated.
   506  //    It defines a symbol `__stub_FUNCTION' for each function
   507  //    in the C library which is a stub, meaning it will fail
   508  //    every time called, usually setting errno to ENOSYS.
   509  
   510  // Get the system-specific definition of `struct statfs'.
   511  // Copyright (C) 1997-2020 Free Software Foundation, Inc.
   512  //    This file is part of the GNU C Library.
   513  //
   514  //    The GNU C Library is free software; you can redistribute it and/or
   515  //    modify it under the terms of the GNU Lesser General Public
   516  //    License as published by the Free Software Foundation; either
   517  //    version 2.1 of the License, or (at your option) any later version.
   518  //
   519  //    The GNU C Library is distributed in the hope that it will be useful,
   520  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   521  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   522  //    Lesser General Public License for more details.
   523  //
   524  //    You should have received a copy of the GNU Lesser General Public
   525  //    License along with the GNU C Library; if not, see
   526  //    <https://www.gnu.org/licenses/>.
   527  
   528  // bits/types.h -- definitions of __*_t types underlying *_t types.
   529  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   530  //    This file is part of the GNU C Library.
   531  //
   532  //    The GNU C Library is free software; you can redistribute it and/or
   533  //    modify it under the terms of the GNU Lesser General Public
   534  //    License as published by the Free Software Foundation; either
   535  //    version 2.1 of the License, or (at your option) any later version.
   536  //
   537  //    The GNU C Library is distributed in the hope that it will be useful,
   538  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   539  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   540  //    Lesser General Public License for more details.
   541  //
   542  //    You should have received a copy of the GNU Lesser General Public
   543  //    License along with the GNU C Library; if not, see
   544  //    <https://www.gnu.org/licenses/>.
   545  
   546  // Never include this file directly; use <sys/types.h> instead.
   547  
   548  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   549  //    This file is part of the GNU C Library.
   550  //
   551  //    The GNU C Library is free software; you can redistribute it and/or
   552  //    modify it under the terms of the GNU Lesser General Public
   553  //    License as published by the Free Software Foundation; either
   554  //    version 2.1 of the License, or (at your option) any later version.
   555  //
   556  //    The GNU C Library is distributed in the hope that it will be useful,
   557  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   558  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   559  //    Lesser General Public License for more details.
   560  //
   561  //    You should have received a copy of the GNU Lesser General Public
   562  //    License along with the GNU C Library; if not, see
   563  //    <https://www.gnu.org/licenses/>.
   564  
   565  // Determine the wordsize from the preprocessor defines.
   566  
   567  // Bit size of the time_t type at glibc build time, general case.
   568  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   569  //    This file is part of the GNU C Library.
   570  //
   571  //    The GNU C Library is free software; you can redistribute it and/or
   572  //    modify it under the terms of the GNU Lesser General Public
   573  //    License as published by the Free Software Foundation; either
   574  //    version 2.1 of the License, or (at your option) any later version.
   575  //
   576  //    The GNU C Library is distributed in the hope that it will be useful,
   577  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   578  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   579  //    Lesser General Public License for more details.
   580  //
   581  //    You should have received a copy of the GNU Lesser General Public
   582  //    License along with the GNU C Library; if not, see
   583  //    <https://www.gnu.org/licenses/>.
   584  
   585  // Determine the wordsize from the preprocessor defines.
   586  
   587  // Size in bits of the 'time_t' type of the default ABI.
   588  
   589  // Convenience types.
   590  type X__u_char = uint8   /* types.h:31:23 */
   591  type X__u_short = uint16 /* types.h:32:28 */
   592  type X__u_int = uint32   /* types.h:33:22 */
   593  type X__u_long = uint64  /* types.h:34:27 */
   594  
   595  // Fixed-size types, underlying types depend on word size and compiler.
   596  type X__int8_t = int8     /* types.h:37:21 */
   597  type X__uint8_t = uint8   /* types.h:38:23 */
   598  type X__int16_t = int16   /* types.h:39:26 */
   599  type X__uint16_t = uint16 /* types.h:40:28 */
   600  type X__int32_t = int32   /* types.h:41:20 */
   601  type X__uint32_t = uint32 /* types.h:42:22 */
   602  type X__int64_t = int64   /* types.h:44:25 */
   603  type X__uint64_t = uint64 /* types.h:45:27 */
   604  
   605  // Smallest types with at least a given width.
   606  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   607  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   608  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   609  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   610  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   611  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   612  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   613  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   614  
   615  // quad_t is also 64 bits.
   616  type X__quad_t = int64    /* types.h:63:18 */
   617  type X__u_quad_t = uint64 /* types.h:64:27 */
   618  
   619  // Largest integral types.
   620  type X__intmax_t = int64   /* types.h:72:18 */
   621  type X__uintmax_t = uint64 /* types.h:73:27 */
   622  
   623  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   624  //    macros for each of the OS types we define below.  The definitions
   625  //    of those macros must use the following macros for underlying types.
   626  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   627  //    variants of each of the following integer types on this machine.
   628  //
   629  // 	16		-- "natural" 16-bit type (always short)
   630  // 	32		-- "natural" 32-bit type (always int)
   631  // 	64		-- "natural" 64-bit type (long or long long)
   632  // 	LONG32		-- 32-bit type, traditionally long
   633  // 	QUAD		-- 64-bit type, traditionally long long
   634  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   635  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   636  //
   637  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   638  //    conventional uses of `long' or `long long' type modifiers match the
   639  //    types we define, even when a less-adorned type would be the same size.
   640  //    This matters for (somewhat) portably writing printf/scanf formats for
   641  //    these types, where using the appropriate l or ll format modifiers can
   642  //    make the typedefs and the formats match up across all GNU platforms.  If
   643  //    we used `long' when it's 64 bits where `long long' is expected, then the
   644  //    compiler would warn about the formats not matching the argument types,
   645  //    and the programmer changing them to shut up the compiler would break the
   646  //    program's portability.
   647  //
   648  //    Here we assume what is presently the case in all the GCC configurations
   649  //    we support: long long is always 64 bits, long is always word/address size,
   650  //    and int is always 32 bits.
   651  
   652  // No need to mark the typedef with __extension__.
   653  // bits/typesizes.h -- underlying types for *_t.  Generic version.
   654  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   655  //    This file is part of the GNU C Library.
   656  //
   657  //    The GNU C Library is free software; you can redistribute it and/or
   658  //    modify it under the terms of the GNU Lesser General Public
   659  //    License as published by the Free Software Foundation; either
   660  //    version 2.1 of the License, or (at your option) any later version.
   661  //
   662  //    The GNU C Library is distributed in the hope that it will be useful,
   663  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   664  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   665  //    Lesser General Public License for more details.
   666  //
   667  //    You should have received a copy of the GNU Lesser General Public
   668  //    License along with the GNU C Library; if not, see
   669  //    <https://www.gnu.org/licenses/>.
   670  
   671  // See <bits/types.h> for the meaning of these macros.  This file exists so
   672  //    that <bits/types.h> need not vary across different GNU platforms.
   673  
   674  // Tell the libc code that off_t and off64_t are actually the same type
   675  //    for all ABI purposes, even if possibly expressed as different base types
   676  //    for C type-checking purposes.
   677  
   678  // Same for ino_t and ino64_t.
   679  
   680  // And for rlim_t and rlim64_t.
   681  
   682  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   683  
   684  // Number of descriptors that can fit in an `fd_set'.
   685  
   686  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   687  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   688  //    This file is part of the GNU C Library.
   689  //
   690  //    The GNU C Library is free software; you can redistribute it and/or
   691  //    modify it under the terms of the GNU Lesser General Public
   692  //    License as published by the Free Software Foundation; either
   693  //    version 2.1 of the License, or (at your option) any later version.
   694  //
   695  //    The GNU C Library is distributed in the hope that it will be useful,
   696  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   697  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   698  //    Lesser General Public License for more details.
   699  //
   700  //    You should have received a copy of the GNU Lesser General Public
   701  //    License along with the GNU C Library; if not, see
   702  //    <https://www.gnu.org/licenses/>.
   703  
   704  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   705  
   706  // If we already have 64-bit time type then use it.
   707  
   708  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   709  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   710  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   711  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   712  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   713  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   714  type X__nlink_t = uint64                   /* types.h:151:27 */ // Type of file link counts.
   715  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   716  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   717  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   718  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   719  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   720  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   721  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   722  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   723  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   724  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   725  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   726  
   727  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   728  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   729  
   730  // Clock ID used in clock and timer functions.
   731  type X__clockid_t = int32 /* types.h:168:29 */
   732  
   733  // Timer ID returned by `timer_create'.
   734  type X__timer_t = uintptr /* types.h:171:12 */
   735  
   736  // Type to represent block size.
   737  type X__blksize_t = int64 /* types.h:174:29 */
   738  
   739  // Types from the Large File Support interface.
   740  
   741  // Type to count number of disk blocks.
   742  type X__blkcnt_t = int64   /* types.h:179:28 */
   743  type X__blkcnt64_t = int64 /* types.h:180:30 */
   744  
   745  // Type to count file system blocks.
   746  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   747  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   748  
   749  // Type to count file system nodes.
   750  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   751  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   752  
   753  // Type of miscellaneous file system fields.
   754  type X__fsword_t = int64 /* types.h:191:28 */
   755  
   756  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   757  
   758  // Signed long type used in system calls.
   759  type X__syscall_slong_t = int64 /* types.h:196:33 */
   760  // Unsigned long type used in system calls.
   761  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   762  
   763  // These few don't really vary by system, they always correspond
   764  //
   765  //	to one of the other defined types.
   766  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   767  type X__caddr_t = uintptr   /* types.h:203:14 */
   768  
   769  // Duplicates info from stdint.h but this is used in unistd.h.
   770  type X__intptr_t = int64 /* types.h:206:25 */
   771  
   772  // Duplicate info from sys/socket.h.
   773  type X__socklen_t = uint32 /* types.h:209:23 */
   774  
   775  // C99: An integer type that can be accessed as an atomic entity,
   776  //
   777  //	even in the presence of asynchronous interrupts.
   778  //	It is not currently necessary for this to be machine-specific.
   779  type X__sig_atomic_t = int32 /* types.h:214:13 */
   780  
   781  // Seconds since the Epoch, visible to user code when time_t is too
   782  //    narrow only for consistency with the old way of widening too-narrow
   783  //    types.  User code should never use __time64_t.
   784  
   785  type Statfs = struct {
   786  	Ff_type    X__fsword_t
   787  	Ff_bsize   X__fsword_t
   788  	Ff_blocks  X__fsblkcnt64_t
   789  	Ff_bfree   X__fsblkcnt64_t
   790  	Ff_bavail  X__fsblkcnt64_t
   791  	Ff_files   X__fsfilcnt64_t
   792  	Ff_ffree   X__fsfilcnt64_t
   793  	Ff_fsid    X__fsid_t
   794  	Ff_namelen X__fsword_t
   795  	Ff_frsize  X__fsword_t
   796  	Ff_flags   X__fsword_t
   797  	Ff_spare   [4]X__fsword_t
   798  } /* statfs.h:24:1 */
   799  
   800  var _ uint8 /* gen.c:2:13: */