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