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