modernc.org/libc@v1.24.1/fts/fts_linux_ppc64le.go (about)

     1  // Code generated by 'ccgo fts/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 fts/fts_linux_ppc64le.go -pkgname fts', DO NOT EDIT.
     2  
     3  package fts
     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  	ACCESSPERMS                  = 511        // stat.h:195:1:
    19  	ALLPERMS                     = 4095       // stat.h:196:1:
    20  	BIG_ENDIAN                   = 4321       // endian.h:28:1:
    21  	BYTE_ORDER                   = 1234       // endian.h:30:1:
    22  	DEFFILEMODE                  = 438        // stat.h:197:1:
    23  	FD_SETSIZE                   = 1024       // select.h:73:1:
    24  	FTS_AGAIN                    = 1          // fts.h:139:1:
    25  	FTS_COMFOLLOW                = 0x0001     // fts.h:68:1:
    26  	FTS_D                        = 1          // fts.h:119:1:
    27  	FTS_DC                       = 2          // fts.h:120:1:
    28  	FTS_DEFAULT                  = 3          // fts.h:121:1:
    29  	FTS_DNR                      = 4          // fts.h:122:1:
    30  	FTS_DONTCHDIR                = 0x01       // fts.h:135:1:
    31  	FTS_DOT                      = 5          // fts.h:123:1:
    32  	FTS_DP                       = 6          // fts.h:124:1:
    33  	FTS_ERR                      = 7          // fts.h:125:1:
    34  	FTS_F                        = 8          // fts.h:126:1:
    35  	FTS_FOLLOW                   = 2          // fts.h:140:1:
    36  	FTS_INIT                     = 9          // fts.h:127:1:
    37  	FTS_LOGICAL                  = 0x0002     // fts.h:69:1:
    38  	FTS_NAMEONLY                 = 0x0100     // fts.h:78:1:
    39  	FTS_NOCHDIR                  = 0x0004     // fts.h:70:1:
    40  	FTS_NOINSTR                  = 3          // fts.h:141:1:
    41  	FTS_NOSTAT                   = 0x0008     // fts.h:71:1:
    42  	FTS_NS                       = 10         // fts.h:128:1:
    43  	FTS_NSOK                     = 11         // fts.h:129:1:
    44  	FTS_OPTIONMASK               = 0x00ff     // fts.h:76:1:
    45  	FTS_PHYSICAL                 = 0x0010     // fts.h:72:1:
    46  	FTS_ROOTLEVEL                = 0          // fts.h:116:1:
    47  	FTS_ROOTPARENTLEVEL          = -1         // fts.h:115:1:
    48  	FTS_SEEDOT                   = 0x0020     // fts.h:73:1:
    49  	FTS_SKIP                     = 4          // fts.h:142:1:
    50  	FTS_SL                       = 12         // fts.h:130:1:
    51  	FTS_SLNONE                   = 13         // fts.h:131:1:
    52  	FTS_STOP                     = 0x0200     // fts.h:79:1:
    53  	FTS_SYMFOLLOW                = 0x02       // fts.h:136:1:
    54  	FTS_W                        = 14         // fts.h:132:1:
    55  	FTS_WHITEOUT                 = 0x0080     // fts.h:75:1:
    56  	FTS_XDEV                     = 0x0040     // fts.h:74:1:
    57  	LITTLE_ENDIAN                = 1234       // endian.h:27:1:
    58  	PDP_ENDIAN                   = 3412       // endian.h:29:1:
    59  	S_BLKSIZE                    = 512        // stat.h:199:1:
    60  	S_IEXEC                      = 64         // stat.h:177:1:
    61  	S_IFBLK                      = 24576      // stat.h:107:1:
    62  	S_IFCHR                      = 8192       // stat.h:106:1:
    63  	S_IFDIR                      = 16384      // stat.h:105:1:
    64  	S_IFIFO                      = 4096       // stat.h:110:1:
    65  	S_IFLNK                      = 40960      // stat.h:113:1:
    66  	S_IFMT                       = 61440      // stat.h:104:1:
    67  	S_IFREG                      = 32768      // stat.h:108:1:
    68  	S_IFSOCK                     = 49152      // stat.h:117:1:
    69  	S_IREAD                      = 256        // stat.h:175:1:
    70  	S_IRGRP                      = 32         // stat.h:180:1:
    71  	S_IROTH                      = 4          // stat.h:186:1:
    72  	S_IRUSR                      = 256        // stat.h:168:1:
    73  	S_IRWXG                      = 56         // stat.h:184:1:
    74  	S_IRWXO                      = 7          // stat.h:190:1:
    75  	S_IRWXU                      = 448        // stat.h:172:1:
    76  	S_ISGID                      = 1024       // stat.h:161:1:
    77  	S_ISUID                      = 2048       // stat.h:160:1:
    78  	S_ISVTX                      = 512        // stat.h:165:1:
    79  	S_IWGRP                      = 16         // stat.h:181:1:
    80  	S_IWOTH                      = 2          // stat.h:187:1:
    81  	S_IWRITE                     = 128        // stat.h:176:1:
    82  	S_IWUSR                      = 128        // stat.h:169:1:
    83  	S_IXGRP                      = 8          // stat.h:182:1:
    84  	S_IXOTH                      = 1          // stat.h:188:1:
    85  	S_IXUSR                      = 64         // stat.h:170:1:
    86  	UTIME_NOW                    = 1073741823 // stat.h:271:1:
    87  	UTIME_OMIT                   = 1073741822 // stat.h:272:1:
    88  	X_ARCH_PPC                   = 1          // <predefined>:198:1:
    89  	X_ARCH_PPC64                 = 1          // <predefined>:402:1:
    90  	X_ARCH_PPCGR                 = 1          // <predefined>:15:1:
    91  	X_ARCH_PPCSQ                 = 1          // <predefined>:43:1:
    92  	X_ARCH_PWR4                  = 1          // <predefined>:381:1:
    93  	X_ARCH_PWR5                  = 1          // <predefined>:90:1:
    94  	X_ARCH_PWR5X                 = 1          // <predefined>:137:1:
    95  	X_ARCH_PWR6                  = 1          // <predefined>:91:1:
    96  	X_ARCH_PWR7                  = 1          // <predefined>:92:1:
    97  	X_ARCH_PWR8                  = 1          // <predefined>:93:1:
    98  	X_ATFILE_SOURCE              = 1          // features.h:342:1:
    99  	X_BITS_BYTESWAP_H            = 1          // byteswap.h:24:1:
   100  	X_BITS_ENDIANNESS_H          = 1          // endianness.h:2:1:
   101  	X_BITS_ENDIAN_H              = 1          // endian.h:20:1:
   102  	X_BITS_PTHREADTYPES_ARCH_H   = 1          // pthreadtypes-arch.h:21:1:
   103  	X_BITS_PTHREADTYPES_COMMON_H = 1          // pthreadtypes.h:20:1:
   104  	X_BITS_STAT_H                = 1          // stat.h:23:1:
   105  	X_BITS_STDINT_INTN_H         = 1          // stdint-intn.h:20:1:
   106  	X_BITS_TIME64_H              = 1          // time64.h:24:1:
   107  	X_BITS_TYPESIZES_H           = 1          // typesizes.h:24:1:
   108  	X_BITS_TYPES_H               = 1          // types.h:24:1:
   109  	X_BITS_UINTN_IDENTITY_H      = 1          // uintn-identity.h:24:1:
   110  	X_BSD_SIZE_T_                = 0          // stddef.h:189:1:
   111  	X_BSD_SIZE_T_DEFINED_        = 0          // stddef.h:192:1:
   112  	X_CALL_ELF                   = 2          // <predefined>:415:1:
   113  	X_CALL_LINUX                 = 1          // <predefined>:123:1:
   114  	X_DEFAULT_SOURCE             = 1          // features.h:227:1:
   115  	X_ENDIAN_H                   = 1          // endian.h:19:1:
   116  	X_FEATURES_H                 = 1          // features.h:19:1:
   117  	X_FILE_OFFSET_BITS           = 64         // <builtin>:25:1:
   118  	X_FTS_H                      = 1          // fts.h:51:1:
   119  	X_GCC_SIZE_T                 = 0          // stddef.h:195:1:
   120  	X_LITTLE_ENDIAN              = 1          // <predefined>:37:1:
   121  	X_LP64                       = 1          // <predefined>:335:1:
   122  	X_MKNOD_VER                  = 1          // stat.h:41:1:
   123  	X_MKNOD_VER_LINUX            = 1          // stat.h:39:1:
   124  	X_MKNOD_VER_SVR4             = 2          // stat.h:40:1:
   125  	X_POSIX_C_SOURCE             = 200809     // features.h:281:1:
   126  	X_POSIX_SOURCE               = 1          // features.h:279:1:
   127  	X_RWLOCK_INTERNAL_H          = 0          // struct_rwlock.h:21:1:
   128  	X_SIZET_                     = 0          // stddef.h:196:1:
   129  	X_SIZE_T                     = 0          // stddef.h:183:1:
   130  	X_SIZE_T_                    = 0          // stddef.h:188:1:
   131  	X_SIZE_T_DECLARED            = 0          // stddef.h:193:1:
   132  	X_SIZE_T_DEFINED             = 0          // stddef.h:191:1:
   133  	X_SIZE_T_DEFINED_            = 0          // stddef.h:190:1:
   134  	X_STATBUF_ST_BLKSIZE         = 0          // stat.h:237:1:
   135  	X_STATBUF_ST_NSEC            = 0          // stat.h:240:1:
   136  	X_STATBUF_ST_RDEV            = 0          // stat.h:238:1:
   137  	X_STAT_VER                   = 1          // stat.h:35:1:
   138  	X_STAT_VER_KERNEL            = 1          // stat.h:29:1:
   139  	X_STAT_VER_LINUX             = 3          // stat.h:31:1:
   140  	X_STAT_VER_LINUX_OLD         = 1          // stat.h:28:1:
   141  	X_STAT_VER_SVR4              = 2          // stat.h:30:1:
   142  	X_STDC_PREDEF_H              = 1          // <predefined>:203:1:
   143  	X_STRUCT_TIMESPEC            = 1          // struct_timespec.h:3:1:
   144  	X_SYS_CDEFS_H                = 1          // cdefs.h:19:1:
   145  	X_SYS_SELECT_H               = 1          // select.h:22:1:
   146  	X_SYS_SIZE_T_H               = 0          // stddef.h:184:1:
   147  	X_SYS_STAT_H                 = 1          // stat.h:23:1:
   148  	X_SYS_TYPES_H                = 1          // types.h:23:1:
   149  	X_THREAD_MUTEX_INTERNAL_H    = 1          // struct_mutex.h:20:1:
   150  	X_THREAD_SHARED_TYPES_H      = 1          // thread-shared-types.h:20:1:
   151  	X_T_SIZE                     = 0          // stddef.h:186:1:
   152  	X_T_SIZE_                    = 0          // stddef.h:185:1:
   153  	Linux                        = 1          // <predefined>:263:1:
   154  	Unix                         = 1          // <predefined>:222:1:
   155  )
   156  
   157  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   158  
   159  type Size_t = uint64 /* <builtin>:9:23 */
   160  
   161  type Wchar_t = int32 /* <builtin>:15:24 */
   162  
   163  type X__int128_t = struct {
   164  	Flo int64
   165  	Fhi int64
   166  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   167  type X__uint128_t = struct {
   168  	Flo uint64
   169  	Fhi uint64
   170  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   171  
   172  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   173  type X__ieee128 = float64         /* <builtin>:47:21 */
   174  
   175  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   176  //    This file is part of the GNU C Library.
   177  //
   178  //    The GNU C Library is free software; you can redistribute it and/or
   179  //    modify it under the terms of the GNU Lesser General Public
   180  //    License as published by the Free Software Foundation; either
   181  //    version 2.1 of the License, or (at your option) any later version.
   182  //
   183  //    The GNU C Library is distributed in the hope that it will be useful,
   184  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   185  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   186  //    Lesser General Public License for more details.
   187  //
   188  //    You should have received a copy of the GNU Lesser General Public
   189  //    License along with the GNU C Library; if not, see
   190  //    <https://www.gnu.org/licenses/>.
   191  
   192  //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
   193  
   194  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   195  //    This file is part of the GNU C Library.
   196  //
   197  //    The GNU C Library is free software; you can redistribute it and/or
   198  //    modify it under the terms of the GNU Lesser General Public
   199  //    License as published by the Free Software Foundation; either
   200  //    version 2.1 of the License, or (at your option) any later version.
   201  //
   202  //    The GNU C Library is distributed in the hope that it will be useful,
   203  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   204  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   205  //    Lesser General Public License for more details.
   206  //
   207  //    You should have received a copy of the GNU Lesser General Public
   208  //    License along with the GNU C Library; if not, see
   209  //    <https://www.gnu.org/licenses/>.
   210  
   211  // These are defined by the user (or the compiler)
   212  //    to specify the desired environment:
   213  //
   214  //    __STRICT_ANSI__	ISO Standard C.
   215  //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
   216  //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
   217  //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
   218  //    __STDC_WANT_LIB_EXT2__
   219  // 			Extensions to ISO C99 from TR 27431-2:2010.
   220  //    __STDC_WANT_IEC_60559_BFP_EXT__
   221  // 			Extensions to ISO C11 from TS 18661-1:2014.
   222  //    __STDC_WANT_IEC_60559_FUNCS_EXT__
   223  // 			Extensions to ISO C11 from TS 18661-4:2015.
   224  //    __STDC_WANT_IEC_60559_TYPES_EXT__
   225  // 			Extensions to ISO C11 from TS 18661-3:2015.
   226  //
   227  //    _POSIX_SOURCE	IEEE Std 1003.1.
   228  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   229  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   230  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   231  // 			if >=200112L, all of IEEE 1003.1-2004
   232  // 			if >=200809L, all of IEEE 1003.1-2008
   233  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   234  // 			Single Unix conformance is wanted, to 600 for the
   235  // 			sixth revision, to 700 for the seventh revision.
   236  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   237  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   238  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   239  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   240  //    _ATFILE_SOURCE	Additional *at interfaces.
   241  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   242  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   243  // 			__STRICT_ANSI__).
   244  //
   245  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   246  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   247  //
   248  //    _REENTRANT, _THREAD_SAFE
   249  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   250  //
   251  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   252  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   253  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   254  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   255  //    200809L, as well as enabling miscellaneous functions from BSD and
   256  //    SVID.  If more than one of these are defined, they accumulate.  For
   257  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   258  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   259  //
   260  //    These are defined by this file and are used by the
   261  //    header files to decide what to declare or define:
   262  //
   263  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   264  // 			to 1 or 0; the subsequent macros are either defined
   265  // 			or undefined, and those tests should be moved to
   266  // 			__GLIBC_USE.
   267  //    __USE_ISOC11		Define ISO C11 things.
   268  //    __USE_ISOC99		Define ISO C99 things.
   269  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   270  //    __USE_ISOCXX11	Define ISO C++11 things.
   271  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   272  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   273  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   274  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   275  //    __USE_XOPEN		Define XPG things.
   276  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   277  //    __USE_UNIX98		Define Single Unix V2 things.
   278  //    __USE_XOPEN2K        Define XPG6 things.
   279  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   280  //    __USE_XOPEN2K8       Define XPG7 things.
   281  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   282  //    __USE_LARGEFILE	Define correct standard I/O things.
   283  //    __USE_LARGEFILE64	Define LFS things with separate names.
   284  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   285  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   286  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   287  //    __USE_GNU		Define GNU extensions.
   288  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   289  //
   290  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   291  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   292  //    only for compatibility.  All new code should use the other symbols
   293  //    to test for features.
   294  //
   295  //    All macros listed above as possibly being defined by this file are
   296  //    explicitly undefined if they are not explicitly defined.
   297  //    Feature-test macros that are not defined by the user or compiler
   298  //    but are implied by the other feature-test macros defined (or by the
   299  //    lack of any definitions) are defined by the file.
   300  //
   301  //    ISO C feature test macros depend on the definition of the macro
   302  //    when an affected header is included, not when the first system
   303  //    header is included, and so they are handled in
   304  //    <bits/libc-header-start.h>, which does not have a multiple include
   305  //    guard.  Feature test macros that can be handled from the first
   306  //    system header included are handled here.
   307  
   308  // Undefine everything, so we get a clean slate.
   309  
   310  // Suppress kernel-name space pollution unless user expressedly asks
   311  //    for it.
   312  
   313  // Convenience macro to test the version of gcc.
   314  //    Use like this:
   315  //    #if __GNUC_PREREQ (2,8)
   316  //    ... code requiring gcc 2.8 or later ...
   317  //    #endif
   318  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   319  //    added in 2.0.
   320  
   321  // Similarly for clang.  Features added to GCC after version 4.2 may
   322  //    or may not also be available in clang, and clang's definitions of
   323  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   324  //    features can be queried via __has_extension/__has_feature.
   325  
   326  // Whether to use feature set F.
   327  
   328  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   329  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   330  //    issue a warning; the expectation is that the source is being
   331  //    transitioned to use the new macro.
   332  
   333  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   334  
   335  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   336  //    define _DEFAULT_SOURCE.
   337  
   338  // This is to enable the ISO C2X extension.
   339  
   340  // This is to enable the ISO C11 extension.
   341  
   342  // This is to enable the ISO C99 extension.
   343  
   344  // This is to enable the ISO C90 Amendment 1:1995 extension.
   345  
   346  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   347  //    is defined, use POSIX.1-2008 (or another version depending on
   348  //    _XOPEN_SOURCE).
   349  
   350  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   351  //    defined in all multithreaded code.  GNU libc has not required this
   352  //    for many years.  We now treat them as compatibility synonyms for
   353  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   354  //    comprehensive support for multithreaded code.  Using them never
   355  //    lowers the selected level of POSIX conformance, only raises it.
   356  
   357  // The function 'gets' existed in C89, but is impossible to use
   358  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   359  //    compatibility with various implementations of <cstdio>, this test
   360  //    must consider only the value of __cplusplus when compiling C++.
   361  
   362  // GNU formerly extended the scanf functions with modified format
   363  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   364  //    input using malloc.  This extension conflicts with ISO C99, which
   365  //    defines %a as a standalone format specifier that reads a floating-
   366  //    point number; moreover, POSIX.1-2008 provides the same feature
   367  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   368  //
   369  //    We now follow C99 unless GNU extensions are active and the compiler
   370  //    is specifically in C89 or C++98 mode (strict or not).  For
   371  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   372  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   373  //    old extension.
   374  
   375  // Get definitions of __STDC_* predefined macros, if the compiler has
   376  //    not preincluded this header automatically.
   377  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   378  //    This file is part of the GNU C Library.
   379  //
   380  //    The GNU C Library is free software; you can redistribute it and/or
   381  //    modify it under the terms of the GNU Lesser General Public
   382  //    License as published by the Free Software Foundation; either
   383  //    version 2.1 of the License, or (at your option) any later version.
   384  //
   385  //    The GNU C Library is distributed in the hope that it will be useful,
   386  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   387  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   388  //    Lesser General Public License for more details.
   389  //
   390  //    You should have received a copy of the GNU Lesser General Public
   391  //    License along with the GNU C Library; if not, see
   392  //    <https://www.gnu.org/licenses/>.
   393  
   394  // This macro indicates that the installed library is the GNU C Library.
   395  //    For historic reasons the value now is 6 and this will stay from now
   396  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   397  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   398  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   399  //    the sonames of the shared libraries.
   400  
   401  // Major and minor version number of the GNU C library package.  Use
   402  //    these macros to test for features in specific releases.
   403  
   404  // This is here only because every header file already includes this one.
   405  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   406  //    This file is part of the GNU C Library.
   407  //
   408  //    The GNU C Library is free software; you can redistribute it and/or
   409  //    modify it under the terms of the GNU Lesser General Public
   410  //    License as published by the Free Software Foundation; either
   411  //    version 2.1 of the License, or (at your option) any later version.
   412  //
   413  //    The GNU C Library is distributed in the hope that it will be useful,
   414  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   415  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   416  //    Lesser General Public License for more details.
   417  //
   418  //    You should have received a copy of the GNU Lesser General Public
   419  //    License along with the GNU C Library; if not, see
   420  //    <https://www.gnu.org/licenses/>.
   421  
   422  // We are almost always included from features.h.
   423  
   424  // The GNU libc does not support any K&R compilers or the traditional mode
   425  //    of ISO C compilers anymore.  Check for some of the combinations not
   426  //    anymore supported.
   427  
   428  // Some user header file might have defined this before.
   429  
   430  // All functions, except those with callbacks or those that
   431  //    synchronize memory, are leaf functions.
   432  
   433  // GCC can always grok prototypes.  For C++ programs we add throw()
   434  //    to help it optimize the function calls.  But this works only with
   435  //    gcc 2.8.x and egcs.  For gcc 3.2 and up we even mark C functions
   436  //    as non-throwing using a function attribute since programs can use
   437  //    the -fexceptions options for C code as well.
   438  
   439  // Compilers that are not clang may object to
   440  //        #if defined __clang__ && __has_extension(...)
   441  //    even though they do not need to evaluate the right-hand side of the &&.
   442  
   443  // These two macros are not used in glibc anymore.  They are kept here
   444  //    only because some other projects expect the macros to be defined.
   445  
   446  // For these things, GCC behaves the ANSI way normally,
   447  //    and the non-ANSI way under -traditional.
   448  
   449  // This is not a typedef so `const __ptr_t' does the right thing.
   450  
   451  // C++ needs to know that types and declarations are C, not C++.
   452  
   453  // Fortify support.
   454  
   455  // Support for flexible arrays.
   456  //    Headers that should use flexible arrays only if they're "real"
   457  //    (e.g. only if they won't affect sizeof()) should test
   458  //    #if __glibc_c99_flexarr_available.
   459  
   460  // __asm__ ("xyz") is used throughout the headers to rename functions
   461  //    at the assembly language level.  This is wrapped by the __REDIRECT
   462  //    macro, in order to support compilers that can do this some other
   463  //    way.  When compilers don't support asm-names at all, we have to do
   464  //    preprocessor tricks instead (which don't have exactly the right
   465  //    semantics, but it's the best we can do).
   466  //
   467  //    Example:
   468  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   469  
   470  //
   471  // #elif __SOME_OTHER_COMPILER__
   472  //
   473  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   474  
   475  // GCC has various useful declarations that can be made with the
   476  //    `__attribute__' syntax.  All of the ways we use this do fine if
   477  //    they are omitted for compilers that don't understand it.
   478  
   479  // At some point during the gcc 2.96 development the `malloc' attribute
   480  //    for functions was introduced.  We don't want to use it unconditionally
   481  //    (although this would be possible) since it generates warnings.
   482  
   483  // Tell the compiler which arguments to an allocation function
   484  //    indicate the size of the allocation.
   485  
   486  // At some point during the gcc 2.96 development the `pure' attribute
   487  //    for functions was introduced.  We don't want to use it unconditionally
   488  //    (although this would be possible) since it generates warnings.
   489  
   490  // This declaration tells the compiler that the value is constant.
   491  
   492  // At some point during the gcc 3.1 development the `used' attribute
   493  //    for functions was introduced.  We don't want to use it unconditionally
   494  //    (although this would be possible) since it generates warnings.
   495  
   496  // Since version 3.2, gcc allows marking deprecated functions.
   497  
   498  // Since version 4.5, gcc also allows one to specify the message printed
   499  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   500  //    may also support this feature.
   501  
   502  // At some point during the gcc 2.8 development the `format_arg' attribute
   503  //    for functions was introduced.  We don't want to use it unconditionally
   504  //    (although this would be possible) since it generates warnings.
   505  //    If several `format_arg' attributes are given for the same function, in
   506  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   507  //    all designated arguments are considered.
   508  
   509  // At some point during the gcc 2.97 development the `strfmon' format
   510  //    attribute for functions was introduced.  We don't want to use it
   511  //    unconditionally (although this would be possible) since it
   512  //    generates warnings.
   513  
   514  // The nonull function attribute allows to mark pointer parameters which
   515  //    must not be NULL.
   516  
   517  // If fortification mode, we warn about unused results of certain
   518  //    function calls which can lead to problems.
   519  
   520  // Forces a function to be always inlined.
   521  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   522  //    it conflicts with this definition.  Therefore undefine it first to
   523  //    allow either header to be included first.
   524  
   525  // Associate error messages with the source location of the call site rather
   526  //    than with the source location inside the function.
   527  
   528  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   529  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   530  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   531  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   532  //    semantics.
   533  //
   534  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   535  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   536  //    __GNUC_GNU_INLINE__ macro definitions.
   537  
   538  // GCC 4.3 and above allow passing all anonymous arguments of an
   539  //    __extern_always_inline function to some other vararg function.
   540  
   541  // It is possible to compile containing GCC extensions even if GCC is
   542  //    run in pedantic mode if the uses are carefully marked using the
   543  //    `__extension__' keyword.  But this is not generally available before
   544  //    version 2.8.
   545  
   546  // __restrict is known in EGCS 1.2 and above.
   547  
   548  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
   549  //      array_name[restrict]
   550  //    GCC 3.1 supports this.
   551  
   552  // Describes a char array whose address can safely be passed as the first
   553  //    argument to strncpy and strncat, as the char array is not necessarily
   554  //    a NUL-terminated string.
   555  
   556  // Undefine (also defined in libc-symbols.h).
   557  // Copies attributes from the declaration or type referenced by
   558  //    the argument.
   559  
   560  // Determine the wordsize from the preprocessor defines.
   561  
   562  // Properties of long double type.  ldbl-opt version.
   563  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   564  //    This file is part of the GNU C Library.
   565  //
   566  //    The GNU C Library is free software; you can redistribute it and/or
   567  //    modify it under the terms of the GNU Lesser General Public
   568  //    License  published by the Free Software Foundation; either
   569  //    version 2.1 of the License, or (at your option) any later version.
   570  //
   571  //    The GNU C Library is distributed in the hope that it will be useful,
   572  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   573  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   574  //    Lesser General Public License for more details.
   575  //
   576  //    You should have received a copy of the GNU Lesser General Public
   577  //    License along with the GNU C Library; if not, see
   578  //    <https://www.gnu.org/licenses/>.
   579  
   580  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
   581  //    intended for use in preprocessor macros.
   582  //
   583  //    Note: MESSAGE must be a _single_ string; concatenation of string
   584  //    literals is not supported.
   585  
   586  // Generic selection (ISO C11) is a C-only feature, available in GCC
   587  //    since version 4.9.  Previous versions do not provide generic
   588  //    selection, even though they might set __STDC_VERSION__ to 201112L,
   589  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
   590  //    when testing __STDC_VERSION__ for generic selection support.
   591  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
   592  //    check is required to enable the use of generic selection.
   593  
   594  // If we don't have __REDIRECT, prototypes will be missing if
   595  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
   596  
   597  // Decide whether we can define 'extern inline' functions in headers.
   598  
   599  // This is here only because every header file already includes this one.
   600  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
   601  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
   602  //    that will always return failure (and set errno to ENOSYS).
   603  // This file is automatically generated.
   604  //    This file selects the right generated file of `__stub_FUNCTION' macros
   605  //    based on the architecture being compiled for.
   606  
   607  // Determine the wordsize from the preprocessor defines.
   608  
   609  // This file is automatically generated.
   610  //    It defines a symbol `__stub_FUNCTION' for each function
   611  //    in the C library which is a stub, meaning it will fail
   612  //    every time called, usually setting errno to ENOSYS.
   613  
   614  // bits/types.h -- definitions of __*_t types underlying *_t types.
   615  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   616  //    This file is part of the GNU C Library.
   617  //
   618  //    The GNU C Library is free software; you can redistribute it and/or
   619  //    modify it under the terms of the GNU Lesser General Public
   620  //    License as published by the Free Software Foundation; either
   621  //    version 2.1 of the License, or (at your option) any later version.
   622  //
   623  //    The GNU C Library is distributed in the hope that it will be useful,
   624  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   625  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   626  //    Lesser General Public License for more details.
   627  //
   628  //    You should have received a copy of the GNU Lesser General Public
   629  //    License along with the GNU C Library; if not, see
   630  //    <https://www.gnu.org/licenses/>.
   631  
   632  // Never include this file directly; use <sys/types.h> instead.
   633  
   634  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   635  //    This file is part of the GNU C Library.
   636  //
   637  //    The GNU C Library is free software; you can redistribute it and/or
   638  //    modify it under the terms of the GNU Lesser General Public
   639  //    License as published by the Free Software Foundation; either
   640  //    version 2.1 of the License, or (at your option) any later version.
   641  //
   642  //    The GNU C Library is distributed in the hope that it will be useful,
   643  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   644  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   645  //    Lesser General Public License for more details.
   646  //
   647  //    You should have received a copy of the GNU Lesser General Public
   648  //    License along with the GNU C Library; if not, see
   649  //    <https://www.gnu.org/licenses/>.
   650  
   651  // Determine the wordsize from the preprocessor defines.
   652  
   653  // Bit size of the time_t type at glibc build time, general case.
   654  //    Copyright (C) 2018-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  // Determine the wordsize from the preprocessor defines.
   672  
   673  // Size in bits of the 'time_t' type of the default ABI.
   674  
   675  // Convenience types.
   676  type X__u_char = uint8   /* types.h:31:23 */
   677  type X__u_short = uint16 /* types.h:32:28 */
   678  type X__u_int = uint32   /* types.h:33:22 */
   679  type X__u_long = uint64  /* types.h:34:27 */
   680  
   681  // Fixed-size types, underlying types depend on word size and compiler.
   682  type X__int8_t = int8     /* types.h:37:21 */
   683  type X__uint8_t = uint8   /* types.h:38:23 */
   684  type X__int16_t = int16   /* types.h:39:26 */
   685  type X__uint16_t = uint16 /* types.h:40:28 */
   686  type X__int32_t = int32   /* types.h:41:20 */
   687  type X__uint32_t = uint32 /* types.h:42:22 */
   688  type X__int64_t = int64   /* types.h:44:25 */
   689  type X__uint64_t = uint64 /* types.h:45:27 */
   690  
   691  // Smallest types with at least a given width.
   692  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   693  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   694  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   695  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   696  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   697  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   698  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   699  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   700  
   701  // quad_t is also 64 bits.
   702  type X__quad_t = int64    /* types.h:63:18 */
   703  type X__u_quad_t = uint64 /* types.h:64:27 */
   704  
   705  // Largest integral types.
   706  type X__intmax_t = int64   /* types.h:72:18 */
   707  type X__uintmax_t = uint64 /* types.h:73:27 */
   708  
   709  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   710  //    macros for each of the OS types we define below.  The definitions
   711  //    of those macros must use the following macros for underlying types.
   712  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   713  //    variants of each of the following integer types on this machine.
   714  //
   715  // 	16		-- "natural" 16-bit type (always short)
   716  // 	32		-- "natural" 32-bit type (always int)
   717  // 	64		-- "natural" 64-bit type (long or long long)
   718  // 	LONG32		-- 32-bit type, traditionally long
   719  // 	QUAD		-- 64-bit type, traditionally long long
   720  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   721  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   722  //
   723  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   724  //    conventional uses of `long' or `long long' type modifiers match the
   725  //    types we define, even when a less-adorned type would be the same size.
   726  //    This matters for (somewhat) portably writing printf/scanf formats for
   727  //    these types, where using the appropriate l or ll format modifiers can
   728  //    make the typedefs and the formats match up across all GNU platforms.  If
   729  //    we used `long' when it's 64 bits where `long long' is expected, then the
   730  //    compiler would warn about the formats not matching the argument types,
   731  //    and the programmer changing them to shut up the compiler would break the
   732  //    program's portability.
   733  //
   734  //    Here we assume what is presently the case in all the GCC configurations
   735  //    we support: long long is always 64 bits, long is always word/address size,
   736  //    and int is always 32 bits.
   737  
   738  // No need to mark the typedef with __extension__.
   739  // bits/typesizes.h -- underlying types for *_t.  Generic version.
   740  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   741  //    This file is part of the GNU C Library.
   742  //
   743  //    The GNU C Library is free software; you can redistribute it and/or
   744  //    modify it under the terms of the GNU Lesser General Public
   745  //    License as published by the Free Software Foundation; either
   746  //    version 2.1 of the License, or (at your option) any later version.
   747  //
   748  //    The GNU C Library is distributed in the hope that it will be useful,
   749  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   750  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   751  //    Lesser General Public License for more details.
   752  //
   753  //    You should have received a copy of the GNU Lesser General Public
   754  //    License along with the GNU C Library; if not, see
   755  //    <https://www.gnu.org/licenses/>.
   756  
   757  // See <bits/types.h> for the meaning of these macros.  This file exists so
   758  //    that <bits/types.h> need not vary across different GNU platforms.
   759  
   760  // Tell the libc code that off_t and off64_t are actually the same type
   761  //    for all ABI purposes, even if possibly expressed as different base types
   762  //    for C type-checking purposes.
   763  
   764  // Same for ino_t and ino64_t.
   765  
   766  // And for rlim_t and rlim64_t.
   767  
   768  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   769  
   770  // Number of descriptors that can fit in an `fd_set'.
   771  
   772  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   773  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   774  //    This file is part of the GNU C Library.
   775  //
   776  //    The GNU C Library is free software; you can redistribute it and/or
   777  //    modify it under the terms of the GNU Lesser General Public
   778  //    License as published by the Free Software Foundation; either
   779  //    version 2.1 of the License, or (at your option) any later version.
   780  //
   781  //    The GNU C Library is distributed in the hope that it will be useful,
   782  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   783  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   784  //    Lesser General Public License for more details.
   785  //
   786  //    You should have received a copy of the GNU Lesser General Public
   787  //    License along with the GNU C Library; if not, see
   788  //    <https://www.gnu.org/licenses/>.
   789  
   790  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   791  
   792  // If we already have 64-bit time type then use it.
   793  
   794  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   795  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   796  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   797  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   798  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   799  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   800  type X__nlink_t = uint64                   /* types.h:151:27 */ // Type of file link counts.
   801  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   802  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   803  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   804  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   805  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   806  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   807  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   808  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   809  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   810  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   811  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   812  
   813  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   814  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   815  
   816  // Clock ID used in clock and timer functions.
   817  type X__clockid_t = int32 /* types.h:168:29 */
   818  
   819  // Timer ID returned by `timer_create'.
   820  type X__timer_t = uintptr /* types.h:171:12 */
   821  
   822  // Type to represent block size.
   823  type X__blksize_t = int64 /* types.h:174:29 */
   824  
   825  // Types from the Large File Support interface.
   826  
   827  // Type to count number of disk blocks.
   828  type X__blkcnt_t = int64   /* types.h:179:28 */
   829  type X__blkcnt64_t = int64 /* types.h:180:30 */
   830  
   831  // Type to count file system blocks.
   832  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   833  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   834  
   835  // Type to count file system nodes.
   836  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   837  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   838  
   839  // Type of miscellaneous file system fields.
   840  type X__fsword_t = int64 /* types.h:191:28 */
   841  
   842  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   843  
   844  // Signed long type used in system calls.
   845  type X__syscall_slong_t = int64 /* types.h:196:33 */
   846  // Unsigned long type used in system calls.
   847  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   848  
   849  // These few don't really vary by system, they always correspond
   850  //
   851  //	to one of the other defined types.
   852  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   853  type X__caddr_t = uintptr   /* types.h:203:14 */
   854  
   855  // Duplicates info from stdint.h but this is used in unistd.h.
   856  type X__intptr_t = int64 /* types.h:206:25 */
   857  
   858  // Duplicate info from sys/socket.h.
   859  type X__socklen_t = uint32 /* types.h:209:23 */
   860  
   861  // C99: An integer type that can be accessed as an atomic entity,
   862  //
   863  //	even in the presence of asynchronous interrupts.
   864  //	It is not currently necessary for this to be machine-specific.
   865  type X__sig_atomic_t = int32 /* types.h:214:13 */
   866  
   867  // Seconds since the Epoch, visible to user code when time_t is too
   868  //    narrow only for consistency with the old way of widening too-narrow
   869  //    types.  User code should never use __time64_t.
   870  
   871  type U_char = X__u_char     /* types.h:33:18 */
   872  type U_short = X__u_short   /* types.h:34:19 */
   873  type U_int = X__u_int       /* types.h:35:17 */
   874  type U_long = X__u_long     /* types.h:36:18 */
   875  type Quad_t = X__quad_t     /* types.h:37:18 */
   876  type U_quad_t = X__u_quad_t /* types.h:38:20 */
   877  type Fsid_t = X__fsid_t     /* types.h:39:18 */
   878  type Loff_t = X__loff_t     /* types.h:42:18 */
   879  
   880  type Ino_t = X__ino64_t /* types.h:49:19 */
   881  
   882  type Dev_t = X__dev_t /* types.h:59:17 */
   883  
   884  type Gid_t = X__gid_t /* types.h:64:17 */
   885  
   886  type Mode_t = X__mode_t /* types.h:69:18 */
   887  
   888  type Nlink_t = X__nlink_t /* types.h:74:19 */
   889  
   890  type Uid_t = X__uid_t /* types.h:79:17 */
   891  
   892  type Off_t = X__off64_t /* types.h:87:19 */
   893  
   894  type Pid_t = X__pid_t /* types.h:97:17 */
   895  
   896  type Id_t = X__id_t /* types.h:103:16 */
   897  
   898  type Ssize_t = X__ssize_t /* types.h:108:19 */
   899  
   900  type Daddr_t = X__daddr_t /* types.h:114:19 */
   901  type Caddr_t = X__caddr_t /* types.h:115:19 */
   902  
   903  type Key_t = X__key_t /* types.h:121:17 */
   904  
   905  // bits/types.h -- definitions of __*_t types underlying *_t types.
   906  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   907  //    This file is part of the GNU C Library.
   908  //
   909  //    The GNU C Library is free software; you can redistribute it and/or
   910  //    modify it under the terms of the GNU Lesser General Public
   911  //    License as published by the Free Software Foundation; either
   912  //    version 2.1 of the License, or (at your option) any later version.
   913  //
   914  //    The GNU C Library is distributed in the hope that it will be useful,
   915  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   916  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   917  //    Lesser General Public License for more details.
   918  //
   919  //    You should have received a copy of the GNU Lesser General Public
   920  //    License along with the GNU C Library; if not, see
   921  //    <https://www.gnu.org/licenses/>.
   922  
   923  // Never include this file directly; use <sys/types.h> instead.
   924  
   925  // Returned by `clock'.
   926  type Clock_t = X__clock_t /* clock_t.h:7:19 */
   927  
   928  // bits/types.h -- definitions of __*_t types underlying *_t types.
   929  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   930  //    This file is part of the GNU C Library.
   931  //
   932  //    The GNU C Library is free software; you can redistribute it and/or
   933  //    modify it under the terms of the GNU Lesser General Public
   934  //    License as published by the Free Software Foundation; either
   935  //    version 2.1 of the License, or (at your option) any later version.
   936  //
   937  //    The GNU C Library is distributed in the hope that it will be useful,
   938  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   939  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   940  //    Lesser General Public License for more details.
   941  //
   942  //    You should have received a copy of the GNU Lesser General Public
   943  //    License along with the GNU C Library; if not, see
   944  //    <https://www.gnu.org/licenses/>.
   945  
   946  // Never include this file directly; use <sys/types.h> instead.
   947  
   948  // Clock ID used in clock and timer functions.
   949  type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */
   950  
   951  // bits/types.h -- definitions of __*_t types underlying *_t types.
   952  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   953  //    This file is part of the GNU C Library.
   954  //
   955  //    The GNU C Library is free software; you can redistribute it and/or
   956  //    modify it under the terms of the GNU Lesser General Public
   957  //    License as published by the Free Software Foundation; either
   958  //    version 2.1 of the License, or (at your option) any later version.
   959  //
   960  //    The GNU C Library is distributed in the hope that it will be useful,
   961  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   962  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   963  //    Lesser General Public License for more details.
   964  //
   965  //    You should have received a copy of the GNU Lesser General Public
   966  //    License along with the GNU C Library; if not, see
   967  //    <https://www.gnu.org/licenses/>.
   968  
   969  // Never include this file directly; use <sys/types.h> instead.
   970  
   971  // Returned by `time'.
   972  type Time_t = X__time_t /* time_t.h:7:18 */
   973  
   974  // bits/types.h -- definitions of __*_t types underlying *_t types.
   975  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   976  //    This file is part of the GNU C Library.
   977  //
   978  //    The GNU C Library is free software; you can redistribute it and/or
   979  //    modify it under the terms of the GNU Lesser General Public
   980  //    License as published by the Free Software Foundation; either
   981  //    version 2.1 of the License, or (at your option) any later version.
   982  //
   983  //    The GNU C Library is distributed in the hope that it will be useful,
   984  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   985  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   986  //    Lesser General Public License for more details.
   987  //
   988  //    You should have received a copy of the GNU Lesser General Public
   989  //    License along with the GNU C Library; if not, see
   990  //    <https://www.gnu.org/licenses/>.
   991  
   992  // Never include this file directly; use <sys/types.h> instead.
   993  
   994  // Timer ID returned by `timer_create'.
   995  type Timer_t = X__timer_t /* timer_t.h:7:19 */
   996  
   997  // Wide character type.
   998  //    Locale-writers should change this as necessary to
   999  //    be big enough to hold unique values not between 0 and 127,
  1000  //    and not (wchar_t) -1, for each defined multibyte character.
  1001  
  1002  // Define this type if we are doing the whole job,
  1003  //    or if we want this type in particular.
  1004  
  1005  // A null pointer constant.
  1006  
  1007  // Old compatibility names for C types.
  1008  type Ulong = uint64  /* types.h:148:27 */
  1009  type Ushort = uint16 /* types.h:149:28 */
  1010  type Uint = uint32   /* types.h:150:22 */
  1011  
  1012  // These size-specific names are used by some of the inet code.
  1013  
  1014  // Define intN_t types.
  1015  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1016  //    This file is part of the GNU C Library.
  1017  //
  1018  //    The GNU C Library is free software; you can redistribute it and/or
  1019  //    modify it under the terms of the GNU Lesser General Public
  1020  //    License as published by the Free Software Foundation; either
  1021  //    version 2.1 of the License, or (at your option) any later version.
  1022  //
  1023  //    The GNU C Library is distributed in the hope that it will be useful,
  1024  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1025  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1026  //    Lesser General Public License for more details.
  1027  //
  1028  //    You should have received a copy of the GNU Lesser General Public
  1029  //    License along with the GNU C Library; if not, see
  1030  //    <https://www.gnu.org/licenses/>.
  1031  
  1032  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1033  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1034  //    This file is part of the GNU C Library.
  1035  //
  1036  //    The GNU C Library is free software; you can redistribute it and/or
  1037  //    modify it under the terms of the GNU Lesser General Public
  1038  //    License as published by the Free Software Foundation; either
  1039  //    version 2.1 of the License, or (at your option) any later version.
  1040  //
  1041  //    The GNU C Library is distributed in the hope that it will be useful,
  1042  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1043  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1044  //    Lesser General Public License for more details.
  1045  //
  1046  //    You should have received a copy of the GNU Lesser General Public
  1047  //    License along with the GNU C Library; if not, see
  1048  //    <https://www.gnu.org/licenses/>.
  1049  
  1050  // Never include this file directly; use <sys/types.h> instead.
  1051  
  1052  type Int8_t = X__int8_t   /* stdint-intn.h:24:18 */
  1053  type Int16_t = X__int16_t /* stdint-intn.h:25:19 */
  1054  type Int32_t = X__int32_t /* stdint-intn.h:26:19 */
  1055  type Int64_t = X__int64_t /* stdint-intn.h:27:19 */
  1056  
  1057  // These were defined by ISO C without the first `_'.
  1058  type U_int8_t = X__uint8_t   /* types.h:158:19 */
  1059  type U_int16_t = X__uint16_t /* types.h:159:20 */
  1060  type U_int32_t = X__uint32_t /* types.h:160:20 */
  1061  type U_int64_t = X__uint64_t /* types.h:161:20 */
  1062  
  1063  type Register_t = int32 /* types.h:164:13 */
  1064  
  1065  // It also defines `fd_set' and the FD_* macros for `select'.
  1066  // `fd_set' type and related macros, and `select'/`pselect' declarations.
  1067  //    Copyright (C) 1996-2020 Free Software Foundation, Inc.
  1068  //    This file is part of the GNU C Library.
  1069  //
  1070  //    The GNU C Library is free software; you can redistribute it and/or
  1071  //    modify it under the terms of the GNU Lesser General Public
  1072  //    License as published by the Free Software Foundation; either
  1073  //    version 2.1 of the License, or (at your option) any later version.
  1074  //
  1075  //    The GNU C Library is distributed in the hope that it will be useful,
  1076  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1077  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1078  //    Lesser General Public License for more details.
  1079  //
  1080  //    You should have received a copy of the GNU Lesser General Public
  1081  //    License along with the GNU C Library; if not, see
  1082  //    <https://www.gnu.org/licenses/>.
  1083  
  1084  //	POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h>
  1085  
  1086  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1087  //    This file is part of the GNU C Library.
  1088  //
  1089  //    The GNU C Library is free software; you can redistribute it and/or
  1090  //    modify it under the terms of the GNU Lesser General Public
  1091  //    License as published by the Free Software Foundation; either
  1092  //    version 2.1 of the License, or (at your option) any later version.
  1093  //
  1094  //    The GNU C Library is distributed in the hope that it will be useful,
  1095  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1096  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1097  //    Lesser General Public License for more details.
  1098  //
  1099  //    You should have received a copy of the GNU Lesser General Public
  1100  //    License along with the GNU C Library; if not, see
  1101  //    <https://www.gnu.org/licenses/>.
  1102  
  1103  // Get definition of needed basic types.
  1104  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1105  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1106  //    This file is part of the GNU C Library.
  1107  //
  1108  //    The GNU C Library is free software; you can redistribute it and/or
  1109  //    modify it under the terms of the GNU Lesser General Public
  1110  //    License as published by the Free Software Foundation; either
  1111  //    version 2.1 of the License, or (at your option) any later version.
  1112  //
  1113  //    The GNU C Library is distributed in the hope that it will be useful,
  1114  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1115  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1116  //    Lesser General Public License for more details.
  1117  //
  1118  //    You should have received a copy of the GNU Lesser General Public
  1119  //    License along with the GNU C Library; if not, see
  1120  //    <https://www.gnu.org/licenses/>.
  1121  
  1122  // Never include this file directly; use <sys/types.h> instead.
  1123  
  1124  // Get __FD_* definitions.
  1125  // Copyright (C) 1997-2020 Free Software Foundation, Inc.
  1126  //    This file is part of the GNU C Library.
  1127  //
  1128  //    The GNU C Library is free software; you can redistribute it and/or
  1129  //    modify it under the terms of the GNU Lesser General Public
  1130  //    License as published by the Free Software Foundation; either
  1131  //    version 2.1 of the License, or (at your option) any later version.
  1132  //
  1133  //    The GNU C Library is distributed in the hope that it will be useful,
  1134  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1135  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1136  //    Lesser General Public License for more details.
  1137  //
  1138  //    You should have received a copy of the GNU Lesser General Public
  1139  //    License along with the GNU C Library; if not, see
  1140  //    <https://www.gnu.org/licenses/>.
  1141  
  1142  // We don't use `memset' because this would require a prototype and
  1143  //    the array isn't too big.
  1144  
  1145  // Get sigset_t.
  1146  
  1147  type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */
  1148  
  1149  // A set of signals to be blocked, unblocked, or waited for.
  1150  type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
  1151  
  1152  // Get definition of timer specification structures.
  1153  
  1154  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1155  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1156  //    This file is part of the GNU C Library.
  1157  //
  1158  //    The GNU C Library is free software; you can redistribute it and/or
  1159  //    modify it under the terms of the GNU Lesser General Public
  1160  //    License as published by the Free Software Foundation; either
  1161  //    version 2.1 of the License, or (at your option) any later version.
  1162  //
  1163  //    The GNU C Library is distributed in the hope that it will be useful,
  1164  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1165  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1166  //    Lesser General Public License for more details.
  1167  //
  1168  //    You should have received a copy of the GNU Lesser General Public
  1169  //    License along with the GNU C Library; if not, see
  1170  //    <https://www.gnu.org/licenses/>.
  1171  
  1172  // Never include this file directly; use <sys/types.h> instead.
  1173  
  1174  // A time value that is accurate to the nearest
  1175  //
  1176  //	microsecond but also has a range of years.
  1177  type Timeval = struct {
  1178  	Ftv_sec  X__time_t
  1179  	Ftv_usec X__suseconds_t
  1180  } /* struct_timeval.h:8:1 */
  1181  
  1182  // NB: Include guard matches what <linux/time.h> uses.
  1183  
  1184  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1185  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1186  //    This file is part of the GNU C Library.
  1187  //
  1188  //    The GNU C Library is free software; you can redistribute it and/or
  1189  //    modify it under the terms of the GNU Lesser General Public
  1190  //    License as published by the Free Software Foundation; either
  1191  //    version 2.1 of the License, or (at your option) any later version.
  1192  //
  1193  //    The GNU C Library is distributed in the hope that it will be useful,
  1194  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1195  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1196  //    Lesser General Public License for more details.
  1197  //
  1198  //    You should have received a copy of the GNU Lesser General Public
  1199  //    License along with the GNU C Library; if not, see
  1200  //    <https://www.gnu.org/licenses/>.
  1201  
  1202  // Never include this file directly; use <sys/types.h> instead.
  1203  
  1204  // Endian macros for string.h functions
  1205  //    Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1206  //    This file is part of the GNU C Library.
  1207  //
  1208  //    The GNU C Library is free software; you can redistribute it and/or
  1209  //    modify it under the terms of the GNU Lesser General Public
  1210  //    License as published by the Free Software Foundation; either
  1211  //    version 2.1 of the License, or (at your option) any later version.
  1212  //
  1213  //    The GNU C Library is distributed in the hope that it will be useful,
  1214  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1215  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1216  //    Lesser General Public License for more details.
  1217  //
  1218  //    You should have received a copy of the GNU Lesser General Public
  1219  //    License along with the GNU C Library; if not, see
  1220  //    <http://www.gnu.org/licenses/>.
  1221  
  1222  // POSIX.1b structure for a time value.  This is like a `struct timeval' but
  1223  //
  1224  //	has nanoseconds instead of microseconds.
  1225  type Timespec = struct {
  1226  	Ftv_sec  X__time_t
  1227  	Ftv_nsec X__syscall_slong_t
  1228  } /* struct_timespec.h:10:1 */
  1229  
  1230  type Suseconds_t = X__suseconds_t /* select.h:43:23 */
  1231  
  1232  // The fd_set member is required to be an array of longs.
  1233  type X__fd_mask = int64 /* select.h:49:18 */
  1234  
  1235  // Some versions of <linux/posix_types.h> define this macros.
  1236  // It's easier to assume 8-bit bytes than to get CHAR_BIT.
  1237  
  1238  // fd_set for select and pselect.
  1239  type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */
  1240  
  1241  // Maximum number of file descriptors in `fd_set'.
  1242  
  1243  // Sometimes the fd_set member is assumed to have this type.
  1244  type Fd_mask = X__fd_mask /* select.h:77:19 */
  1245  
  1246  // Define some inlines helping to catch common problems.
  1247  
  1248  type Blksize_t = X__blksize_t /* types.h:185:21 */
  1249  
  1250  // Types from the Large File Support interface.
  1251  type Blkcnt_t = X__blkcnt64_t     /* types.h:205:22 */ // Type to count number of disk blocks.
  1252  type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks.
  1253  type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes.
  1254  
  1255  // Now add the thread types.
  1256  // Declaration of common pthread types for all architectures.
  1257  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1258  //    This file is part of the GNU C Library.
  1259  //
  1260  //    The GNU C Library is free software; you can redistribute it and/or
  1261  //    modify it under the terms of the GNU Lesser General Public
  1262  //    License as published by the Free Software Foundation; either
  1263  //    version 2.1 of the License, or (at your option) any later version.
  1264  //
  1265  //    The GNU C Library is distributed in the hope that it will be useful,
  1266  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1267  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1268  //    Lesser General Public License for more details.
  1269  //
  1270  //    You should have received a copy of the GNU Lesser General Public
  1271  //    License along with the GNU C Library; if not, see
  1272  //    <https://www.gnu.org/licenses/>.
  1273  
  1274  // For internal mutex and condition variable definitions.
  1275  // Common threading primitives definitions for both POSIX and C11.
  1276  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1277  //    This file is part of the GNU C Library.
  1278  //
  1279  //    The GNU C Library is free software; you can redistribute it and/or
  1280  //    modify it under the terms of the GNU Lesser General Public
  1281  //    License as published by the Free Software Foundation; either
  1282  //    version 2.1 of the License, or (at your option) any later version.
  1283  //
  1284  //    The GNU C Library is distributed in the hope that it will be useful,
  1285  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1286  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1287  //    Lesser General Public License for more details.
  1288  //
  1289  //    You should have received a copy of the GNU Lesser General Public
  1290  //    License along with the GNU C Library; if not, see
  1291  //    <https://www.gnu.org/licenses/>.
  1292  
  1293  // Arch-specific definitions.  Each architecture must define the following
  1294  //    macros to define the expected sizes of pthread data types:
  1295  //
  1296  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1297  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1298  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1299  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1300  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1301  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1302  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1303  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1304  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1305  //
  1306  //    The additional macro defines any constraint for the lock alignment
  1307  //    inside the thread structures:
  1308  //
  1309  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1310  //
  1311  //    Same idea but for the once locking primitive:
  1312  //
  1313  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1314  
  1315  // Machine-specific pthread type layouts.  Generic version.
  1316  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1317  //
  1318  //    This file is part of the GNU C Library.
  1319  //
  1320  //    The GNU C Library is free software; you can redistribute it and/or
  1321  //    modify it under the terms of the GNU Lesser General Public
  1322  //    License as published by the Free Software Foundation; either
  1323  //    version 2.1 of the License, or (at your option) any later version.
  1324  //
  1325  //    The GNU C Library is distributed in the hope that it will be useful,
  1326  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1327  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1328  //    Lesser General Public License for more details.
  1329  //
  1330  //    You should have received a copy of the GNU Lesser General Public
  1331  //    License along with the GNU C Library; if not, see
  1332  //    <http://www.gnu.org/licenses/>.
  1333  
  1334  // Determine the wordsize from the preprocessor defines.
  1335  
  1336  // Common definition of pthread_mutex_t.
  1337  
  1338  type X__pthread_internal_list = struct {
  1339  	F__prev uintptr
  1340  	F__next uintptr
  1341  } /* thread-shared-types.h:49:9 */
  1342  
  1343  // Type to count file system inodes.
  1344  
  1345  // Now add the thread types.
  1346  // Declaration of common pthread types for all architectures.
  1347  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1348  //    This file is part of the GNU C Library.
  1349  //
  1350  //    The GNU C Library is free software; you can redistribute it and/or
  1351  //    modify it under the terms of the GNU Lesser General Public
  1352  //    License as published by the Free Software Foundation; either
  1353  //    version 2.1 of the License, or (at your option) any later version.
  1354  //
  1355  //    The GNU C Library is distributed in the hope that it will be useful,
  1356  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1357  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1358  //    Lesser General Public License for more details.
  1359  //
  1360  //    You should have received a copy of the GNU Lesser General Public
  1361  //    License along with the GNU C Library; if not, see
  1362  //    <https://www.gnu.org/licenses/>.
  1363  
  1364  // For internal mutex and condition variable definitions.
  1365  // Common threading primitives definitions for both POSIX and C11.
  1366  //    Copyright (C) 2017-2020 Free Software Foundation, Inc.
  1367  //    This file is part of the GNU C Library.
  1368  //
  1369  //    The GNU C Library is free software; you can redistribute it and/or
  1370  //    modify it under the terms of the GNU Lesser General Public
  1371  //    License as published by the Free Software Foundation; either
  1372  //    version 2.1 of the License, or (at your option) any later version.
  1373  //
  1374  //    The GNU C Library is distributed in the hope that it will be useful,
  1375  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1376  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1377  //    Lesser General Public License for more details.
  1378  //
  1379  //    You should have received a copy of the GNU Lesser General Public
  1380  //    License along with the GNU C Library; if not, see
  1381  //    <https://www.gnu.org/licenses/>.
  1382  
  1383  // Arch-specific definitions.  Each architecture must define the following
  1384  //    macros to define the expected sizes of pthread data types:
  1385  //
  1386  //    __SIZEOF_PTHREAD_ATTR_T        - size of pthread_attr_t.
  1387  //    __SIZEOF_PTHREAD_MUTEX_T       - size of pthread_mutex_t.
  1388  //    __SIZEOF_PTHREAD_MUTEXATTR_T   - size of pthread_mutexattr_t.
  1389  //    __SIZEOF_PTHREAD_COND_T        - size of pthread_cond_t.
  1390  //    __SIZEOF_PTHREAD_CONDATTR_T    - size of pthread_condattr_t.
  1391  //    __SIZEOF_PTHREAD_RWLOCK_T      - size of pthread_rwlock_t.
  1392  //    __SIZEOF_PTHREAD_RWLOCKATTR_T  - size of pthread_rwlockattr_t.
  1393  //    __SIZEOF_PTHREAD_BARRIER_T     - size of pthread_barrier_t.
  1394  //    __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
  1395  //
  1396  //    The additional macro defines any constraint for the lock alignment
  1397  //    inside the thread structures:
  1398  //
  1399  //    __LOCK_ALIGNMENT - for internal lock/futex usage.
  1400  //
  1401  //    Same idea but for the once locking primitive:
  1402  //
  1403  //    __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
  1404  
  1405  // Machine-specific pthread type layouts.  Generic version.
  1406  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1407  //
  1408  //    This file is part of the GNU C Library.
  1409  //
  1410  //    The GNU C Library is free software; you can redistribute it and/or
  1411  //    modify it under the terms of the GNU Lesser General Public
  1412  //    License as published by the Free Software Foundation; either
  1413  //    version 2.1 of the License, or (at your option) any later version.
  1414  //
  1415  //    The GNU C Library is distributed in the hope that it will be useful,
  1416  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1417  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1418  //    Lesser General Public License for more details.
  1419  //
  1420  //    You should have received a copy of the GNU Lesser General Public
  1421  //    License along with the GNU C Library; if not, see
  1422  //    <http://www.gnu.org/licenses/>.
  1423  
  1424  // Determine the wordsize from the preprocessor defines.
  1425  
  1426  // Common definition of pthread_mutex_t.
  1427  
  1428  type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */
  1429  
  1430  type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */
  1431  
  1432  type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */
  1433  
  1434  // Arch-specific mutex definitions.  A generic implementation is provided
  1435  //    by sysdeps/nptl/bits/struct_mutex.h.  If required, an architecture
  1436  //    can override it by defining:
  1437  //
  1438  //    1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
  1439  //       definition).  It should contains at least the internal members
  1440  //       defined in the generic version.
  1441  //
  1442  //    2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
  1443  //       atomic operations.
  1444  //
  1445  //    3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
  1446  //       It should initialize the mutex internal flag.
  1447  
  1448  // PowerPC internal mutex struct definitions.
  1449  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1450  //    This file is part of the GNU C Library.
  1451  //
  1452  //    The GNU C Library is free software; you can redistribute it and/or
  1453  //    modify it under the terms of the GNU Lesser General Public
  1454  //    License as published by the Free Software Foundation; either
  1455  //    version 2.1 of the License, or (at your option) any later version.
  1456  //
  1457  //    The GNU C Library is distributed in the hope that it will be useful,
  1458  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1459  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1460  //    Lesser General Public License for more details.
  1461  //
  1462  //    You should have received a copy of the GNU Lesser General Public
  1463  //    License along with the GNU C Library; if not, see
  1464  //    <http://www.gnu.org/licenses/>.
  1465  
  1466  type X__pthread_mutex_s = struct {
  1467  	F__lock    int32
  1468  	F__count   uint32
  1469  	F__owner   int32
  1470  	F__nusers  uint32
  1471  	F__kind    int32
  1472  	F__spins   int16
  1473  	F__elision int16
  1474  	F__list    X__pthread_list_t
  1475  } /* struct_mutex.h:22:1 */
  1476  
  1477  // Arch-sepecific read-write lock definitions.  A generic implementation is
  1478  //    provided by struct_rwlock.h.  If required, an architecture can override it
  1479  //    by defining:
  1480  //
  1481  //    1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
  1482  //       It should contain at least the internal members defined in the
  1483  //       generic version.
  1484  //
  1485  //    2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
  1486  //       It should initialize the rwlock internal type.
  1487  
  1488  // PowerPC internal rwlock struct definitions.
  1489  //    Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1490  //
  1491  //    This file is part of the GNU C Library.
  1492  //
  1493  //    The GNU C Library is free software; you can redistribute it and/or
  1494  //    modify it under the terms of the GNU Lesser General Public
  1495  //    License as published by the Free Software Foundation; either
  1496  //    version 2.1 of the License, or (at your option) any later version.
  1497  //
  1498  //    The GNU C Library is distributed in the hope that it will be useful,
  1499  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1500  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1501  //    Lesser General Public License for more details.
  1502  //
  1503  //    You should have received a copy of the GNU Lesser General Public
  1504  //    License along with the GNU C Library; if not, see
  1505  //    <http://www.gnu.org/licenses/>.
  1506  
  1507  type X__pthread_rwlock_arch_t = struct {
  1508  	F__readers       uint32
  1509  	F__writers       uint32
  1510  	F__wrphase_futex uint32
  1511  	F__writers_futex uint32
  1512  	F__pad3          uint32
  1513  	F__pad4          uint32
  1514  	F__cur_writer    int32
  1515  	F__shared        int32
  1516  	F__rwelision     uint8
  1517  	F__pad1          [7]uint8
  1518  	F__pad2          uint64
  1519  	F__flags         uint32
  1520  	F__ccgo_pad1     [4]byte
  1521  } /* struct_rwlock.h:23:1 */
  1522  
  1523  // Common definition of pthread_cond_t.
  1524  
  1525  type X__pthread_cond_s = struct {
  1526  	F__0            struct{ F__wseq uint64 }
  1527  	F__8            struct{ F__g1_start uint64 }
  1528  	F__g_refs       [2]uint32
  1529  	F__g_size       [2]uint32
  1530  	F__g1_orig_size uint32
  1531  	F__wrefs        uint32
  1532  	F__g_signals    [2]uint32
  1533  } /* thread-shared-types.h:92:1 */
  1534  
  1535  // Thread identifiers.  The structure of the attribute type is not
  1536  //
  1537  //	exposed on purpose.
  1538  type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
  1539  
  1540  // Data structures for mutex handling.  The structure of the attribute
  1541  //
  1542  //	type is not exposed on purpose.
  1543  type Pthread_mutexattr_t = struct {
  1544  	F__ccgo_pad1 [0]uint32
  1545  	F__size      [4]uint8
  1546  } /* pthreadtypes.h:36:3 */
  1547  
  1548  // Data structure for condition variable handling.  The structure of
  1549  //
  1550  //	the attribute type is not exposed on purpose.
  1551  type Pthread_condattr_t = struct {
  1552  	F__ccgo_pad1 [0]uint32
  1553  	F__size      [4]uint8
  1554  } /* pthreadtypes.h:45:3 */
  1555  
  1556  // Keys for thread-specific data
  1557  type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
  1558  
  1559  // Once-only execution
  1560  type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
  1561  
  1562  type Pthread_attr_t1 = struct {
  1563  	F__ccgo_pad1 [0]uint64
  1564  	F__size      [56]uint8
  1565  } /* pthreadtypes.h:56:1 */
  1566  
  1567  type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
  1568  
  1569  type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */
  1570  
  1571  type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
  1572  
  1573  // Data structure for reader-writer lock variable handling.  The
  1574  //
  1575  //	structure of the attribute type is deliberately not exposed.
  1576  type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
  1577  
  1578  type Pthread_rwlockattr_t = struct {
  1579  	F__ccgo_pad1 [0]uint64
  1580  	F__size      [8]uint8
  1581  } /* pthreadtypes.h:97:3 */
  1582  
  1583  // POSIX spinlock data type.
  1584  type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
  1585  
  1586  // POSIX barriers data type.  The structure of the type is
  1587  //
  1588  //	deliberately not exposed.
  1589  type Pthread_barrier_t = struct {
  1590  	F__ccgo_pad1 [0]uint64
  1591  	F__size      [32]uint8
  1592  } /* pthreadtypes.h:112:3 */
  1593  
  1594  type Pthread_barrierattr_t = struct {
  1595  	F__ccgo_pad1 [0]uint32
  1596  	F__size      [4]uint8
  1597  } /* pthreadtypes.h:118:3 */
  1598  
  1599  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1600  //    This file is part of the GNU C Library.
  1601  //
  1602  //    The GNU C Library is free software; you can redistribute it and/or
  1603  //    modify it under the terms of the GNU Lesser General Public
  1604  //    License as published by the Free Software Foundation; either
  1605  //    version 2.1 of the License, or (at your option) any later version.
  1606  //
  1607  //    The GNU C Library is distributed in the hope that it will be useful,
  1608  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1609  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1610  //    Lesser General Public License for more details.
  1611  //
  1612  //    You should have received a copy of the GNU Lesser General Public
  1613  //    License along with the GNU C Library; if not, see
  1614  //    <https://www.gnu.org/licenses/>.
  1615  
  1616  //	POSIX Standard: 5.6 File Characteristics	<sys/stat.h>
  1617  
  1618  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1619  //    This file is part of the GNU C Library.
  1620  //
  1621  //    The GNU C Library is free software; you can redistribute it and/or
  1622  //    modify it under the terms of the GNU Lesser General Public
  1623  //    License as published by the Free Software Foundation; either
  1624  //    version 2.1 of the License, or (at your option) any later version.
  1625  //
  1626  //    The GNU C Library is distributed in the hope that it will be useful,
  1627  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1628  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1629  //    Lesser General Public License for more details.
  1630  //
  1631  //    You should have received a copy of the GNU Lesser General Public
  1632  //    License along with the GNU C Library; if not, see
  1633  //    <https://www.gnu.org/licenses/>.
  1634  
  1635  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1636  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1637  //    This file is part of the GNU C Library.
  1638  //
  1639  //    The GNU C Library is free software; you can redistribute it and/or
  1640  //    modify it under the terms of the GNU Lesser General Public
  1641  //    License as published by the Free Software Foundation; either
  1642  //    version 2.1 of the License, or (at your option) any later version.
  1643  //
  1644  //    The GNU C Library is distributed in the hope that it will be useful,
  1645  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1646  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1647  //    Lesser General Public License for more details.
  1648  //
  1649  //    You should have received a copy of the GNU Lesser General Public
  1650  //    License along with the GNU C Library; if not, see
  1651  //    <https://www.gnu.org/licenses/>.
  1652  
  1653  // Never include this file directly; use <sys/types.h> instead.
  1654  
  1655  // NB: Include guard matches what <linux/time.h> uses.
  1656  
  1657  // The Single Unix specification says that some more types are
  1658  //    available here.
  1659  
  1660  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  1661  //    This file is part of the GNU C Library.
  1662  //
  1663  //    The GNU C Library is free software; you can redistribute it and/or
  1664  //    modify it under the terms of the GNU Lesser General Public
  1665  //    License as published by the Free Software Foundation; either
  1666  //    version 2.1 of the License, or (at your option) any later version.
  1667  //
  1668  //    The GNU C Library is distributed in the hope that it will be useful,
  1669  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1670  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1671  //    Lesser General Public License for more details.
  1672  //
  1673  //    You should have received a copy of the GNU Lesser General Public
  1674  //    License along with the GNU C Library; if not, see
  1675  //    <https://www.gnu.org/licenses/>.
  1676  
  1677  // Determine the wordsize from the preprocessor defines.
  1678  
  1679  // Versions of the `struct stat' data structure.
  1680  
  1681  // Versions of the `xmknod' interface.
  1682  
  1683  type Stat = struct {
  1684  	Fst_dev     X__dev_t
  1685  	Fst_ino     X__ino64_t
  1686  	Fst_nlink   X__nlink_t
  1687  	Fst_mode    X__mode_t
  1688  	Fst_uid     X__uid_t
  1689  	Fst_gid     X__gid_t
  1690  	F__pad2     int32
  1691  	Fst_rdev    X__dev_t
  1692  	Fst_size    X__off64_t
  1693  	Fst_blksize X__blksize_t
  1694  	Fst_blocks  X__blkcnt64_t
  1695  	Fst_atim    struct {
  1696  		Ftv_sec  X__time_t
  1697  		Ftv_nsec X__syscall_slong_t
  1698  	}
  1699  	Fst_mtim struct {
  1700  		Ftv_sec  X__time_t
  1701  		Ftv_nsec X__syscall_slong_t
  1702  	}
  1703  	Fst_ctim struct {
  1704  		Ftv_sec  X__time_t
  1705  		Ftv_nsec X__syscall_slong_t
  1706  	}
  1707  	F__glibc_reserved4 uint64
  1708  	F__glibc_reserved5 uint64
  1709  	F__glibc_reserved6 uint64
  1710  } /* stat.h:141:1 */
  1711  
  1712  // File tree traversal functions declarations.
  1713  //    Copyright (C) 1994-2020 Free Software Foundation, Inc.
  1714  //    This file is part of the GNU C Library.
  1715  //
  1716  //    The GNU C Library is free software; you can redistribute it and/or
  1717  //    modify it under the terms of the GNU Lesser General Public
  1718  //    License as published by the Free Software Foundation; either
  1719  //    version 2.1 of the License, or (at your option) any later version.
  1720  //
  1721  //    The GNU C Library is distributed in the hope that it will be useful,
  1722  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1723  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1724  //    Lesser General Public License for more details.
  1725  //
  1726  //    You should have received a copy of the GNU Lesser General Public
  1727  //    License along with the GNU C Library; if not, see
  1728  //    <https://www.gnu.org/licenses/>.
  1729  
  1730  // Copyright (c) 1989, 1993
  1731  //	The Regents of the University of California.  All rights reserved.
  1732  //
  1733  // Redistribution and use in source and binary forms, with or without
  1734  // modification, are permitted provided that the following conditions
  1735  // are met:
  1736  // 1. Redistributions of source code must retain the above copyright
  1737  //    notice, this list of conditions and the following disclaimer.
  1738  // 2. Redistributions in binary form must reproduce the above copyright
  1739  //    notice, this list of conditions and the following disclaimer in the
  1740  //    documentation and/or other materials provided with the distribution.
  1741  // 4. Neither the name of the University nor the names of its contributors
  1742  //    may be used to endorse or promote products derived from this software
  1743  //    without specific prior written permission.
  1744  //
  1745  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1746  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1747  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1748  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1749  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1750  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1751  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1752  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1753  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1754  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1755  // SUCH DAMAGE.
  1756  //
  1757  //	@(#)fts.h	8.3 (Berkeley) 8/14/94
  1758  
  1759  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1760  //    This file is part of the GNU C Library.
  1761  //
  1762  //    The GNU C Library is free software; you can redistribute it and/or
  1763  //    modify it under the terms of the GNU Lesser General Public
  1764  //    License as published by the Free Software Foundation; either
  1765  //    version 2.1 of the License, or (at your option) any later version.
  1766  //
  1767  //    The GNU C Library is distributed in the hope that it will be useful,
  1768  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1769  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1770  //    Lesser General Public License for more details.
  1771  //
  1772  //    You should have received a copy of the GNU Lesser General Public
  1773  //    License along with the GNU C Library; if not, see
  1774  //    <https://www.gnu.org/licenses/>.
  1775  
  1776  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1777  //    This file is part of the GNU C Library.
  1778  //
  1779  //    The GNU C Library is free software; you can redistribute it and/or
  1780  //    modify it under the terms of the GNU Lesser General Public
  1781  //    License as published by the Free Software Foundation; either
  1782  //    version 2.1 of the License, or (at your option) any later version.
  1783  //
  1784  //    The GNU C Library is distributed in the hope that it will be useful,
  1785  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1786  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1787  //    Lesser General Public License for more details.
  1788  //
  1789  //    You should have received a copy of the GNU Lesser General Public
  1790  //    License along with the GNU C Library; if not, see
  1791  //    <https://www.gnu.org/licenses/>.
  1792  
  1793  //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
  1794  
  1795  type X_ftsent = struct {
  1796  	Ffts_cycle   uintptr
  1797  	Ffts_parent  uintptr
  1798  	Ffts_link    uintptr
  1799  	Ffts_number  int64
  1800  	Ffts_pointer uintptr
  1801  	Ffts_accpath uintptr
  1802  	Ffts_path    uintptr
  1803  	Ffts_errno   int32
  1804  	Ffts_symfd   int32
  1805  	Ffts_pathlen uint16
  1806  	Ffts_namelen uint16
  1807  	F__ccgo_pad1 [4]byte
  1808  	Ffts_ino     Ino_t
  1809  	Ffts_dev     Dev_t
  1810  	Ffts_nlink   Nlink_t
  1811  	Ffts_level   int16
  1812  	Ffts_info    uint16
  1813  	Ffts_flags   uint16
  1814  	Ffts_instr   uint16
  1815  	Ffts_statp   uintptr
  1816  	Ffts_name    [1]uint8
  1817  	F__ccgo_pad2 [7]byte
  1818  } /* fts.h:58:2 */
  1819  
  1820  // File tree traversal functions declarations.
  1821  //    Copyright (C) 1994-2020 Free Software Foundation, Inc.
  1822  //    This file is part of the GNU C Library.
  1823  //
  1824  //    The GNU C Library is free software; you can redistribute it and/or
  1825  //    modify it under the terms of the GNU Lesser General Public
  1826  //    License as published by the Free Software Foundation; either
  1827  //    version 2.1 of the License, or (at your option) any later version.
  1828  //
  1829  //    The GNU C Library is distributed in the hope that it will be useful,
  1830  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1831  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1832  //    Lesser General Public License for more details.
  1833  //
  1834  //    You should have received a copy of the GNU Lesser General Public
  1835  //    License along with the GNU C Library; if not, see
  1836  //    <https://www.gnu.org/licenses/>.
  1837  
  1838  // Copyright (c) 1989, 1993
  1839  //	The Regents of the University of California.  All rights reserved.
  1840  //
  1841  // Redistribution and use in source and binary forms, with or without
  1842  // modification, are permitted provided that the following conditions
  1843  // are met:
  1844  // 1. Redistributions of source code must retain the above copyright
  1845  //    notice, this list of conditions and the following disclaimer.
  1846  // 2. Redistributions in binary form must reproduce the above copyright
  1847  //    notice, this list of conditions and the following disclaimer in the
  1848  //    documentation and/or other materials provided with the distribution.
  1849  // 4. Neither the name of the University nor the names of its contributors
  1850  //    may be used to endorse or promote products derived from this software
  1851  //    without specific prior written permission.
  1852  //
  1853  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1854  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1855  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1856  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1857  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1858  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1859  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1860  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1861  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1862  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1863  // SUCH DAMAGE.
  1864  //
  1865  //	@(#)fts.h	8.3 (Berkeley) 8/14/94
  1866  
  1867  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1868  //    This file is part of the GNU C Library.
  1869  //
  1870  //    The GNU C Library is free software; you can redistribute it and/or
  1871  //    modify it under the terms of the GNU Lesser General Public
  1872  //    License as published by the Free Software Foundation; either
  1873  //    version 2.1 of the License, or (at your option) any later version.
  1874  //
  1875  //    The GNU C Library is distributed in the hope that it will be useful,
  1876  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1877  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1878  //    Lesser General Public License for more details.
  1879  //
  1880  //    You should have received a copy of the GNU Lesser General Public
  1881  //    License along with the GNU C Library; if not, see
  1882  //    <https://www.gnu.org/licenses/>.
  1883  
  1884  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1885  //    This file is part of the GNU C Library.
  1886  //
  1887  //    The GNU C Library is free software; you can redistribute it and/or
  1888  //    modify it under the terms of the GNU Lesser General Public
  1889  //    License as published by the Free Software Foundation; either
  1890  //    version 2.1 of the License, or (at your option) any later version.
  1891  //
  1892  //    The GNU C Library is distributed in the hope that it will be useful,
  1893  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1894  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1895  //    Lesser General Public License for more details.
  1896  //
  1897  //    You should have received a copy of the GNU Lesser General Public
  1898  //    License along with the GNU C Library; if not, see
  1899  //    <https://www.gnu.org/licenses/>.
  1900  
  1901  //	POSIX Standard: 2.6 Primitive System Data Types	<sys/types.h>
  1902  
  1903  type FTS = struct {
  1904  	Ffts_cur     uintptr
  1905  	Ffts_child   uintptr
  1906  	Ffts_array   uintptr
  1907  	Ffts_dev     Dev_t
  1908  	Ffts_path    uintptr
  1909  	Ffts_rfd     int32
  1910  	Ffts_pathlen int32
  1911  	Ffts_nitems  int32
  1912  	F__ccgo_pad1 [4]byte
  1913  	Ffts_compar  uintptr
  1914  	Ffts_options int32
  1915  	F__ccgo_pad2 [4]byte
  1916  } /* fts.h:81:3 */
  1917  
  1918  type FTSENT = X_ftsent /* fts.h:147:3 */
  1919  
  1920  var _ uint8 /* gen.c:5:13: */