github.com/afumu/libc@v0.0.6/dirent/dirent_linux_arm64.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_arm64.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 = 131072 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 = 1 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_LP64 = 1 57 X_POSIX_AIO_LISTIO_MAX = 2 58 X_POSIX_AIO_MAX = 1 59 X_POSIX_ARG_MAX = 4096 60 X_POSIX_CHILD_MAX = 25 61 X_POSIX_CLOCKRES_MIN = 20000000 62 X_POSIX_C_SOURCE = 200809 63 X_POSIX_DELAYTIMER_MAX = 32 64 X_POSIX_HOST_NAME_MAX = 255 65 X_POSIX_LINK_MAX = 8 66 X_POSIX_LOGIN_NAME_MAX = 9 67 X_POSIX_MAX_CANON = 255 68 X_POSIX_MAX_INPUT = 255 69 X_POSIX_MQ_OPEN_MAX = 8 70 X_POSIX_MQ_PRIO_MAX = 32 71 X_POSIX_NAME_MAX = 14 72 X_POSIX_NGROUPS_MAX = 8 73 X_POSIX_OPEN_MAX = 20 74 X_POSIX_PATH_MAX = 256 75 X_POSIX_PIPE_BUF = 512 76 X_POSIX_RE_DUP_MAX = 255 77 X_POSIX_RTSIG_MAX = 8 78 X_POSIX_SEM_NSEMS_MAX = 256 79 X_POSIX_SEM_VALUE_MAX = 32767 80 X_POSIX_SIGQUEUE_MAX = 32 81 X_POSIX_SOURCE = 1 82 X_POSIX_SSIZE_MAX = 32767 83 X_POSIX_STREAM_MAX = 8 84 X_POSIX_SYMLINK_MAX = 255 85 X_POSIX_SYMLOOP_MAX = 8 86 X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 87 X_POSIX_THREAD_KEYS_MAX = 128 88 X_POSIX_THREAD_THREADS_MAX = 64 89 X_POSIX_TIMER_MAX = 32 90 X_POSIX_TTY_NAME_MAX = 9 91 X_POSIX_TZNAME_MAX = 6 92 X_SIZET_ = 0 93 X_SIZE_T = 0 94 X_SIZE_T_ = 0 95 X_SIZE_T_DECLARED = 0 96 X_SIZE_T_DEFINED = 0 97 X_SIZE_T_DEFINED_ = 0 98 X_STDC_PREDEF_H = 1 99 X_SYS_CDEFS_H = 1 100 X_SYS_SIZE_T_H = 0 101 X_T_SIZE = 0 102 X_T_SIZE_ = 0 103 Linux = 1 104 Unix = 1 105 ) 106 107 // Inform libc code that these two types are effectively identical. 108 109 // These macros extract size information from a `struct dirent *'. 110 // They may evaluate their argument multiple times, so it must not 111 // have side effects. Each of these may involve a relatively costly 112 // call to `strlen' on some systems, so these values should be cached. 113 // 114 // _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including 115 // its terminating null character. 116 // 117 // _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1); 118 // that is, the allocation size needed to hold the DP->d_name string. 119 // Use this macro when you don't need the exact length, just an upper bound. 120 // This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN. 121 // 122 123 // File types for `d_type'. 124 const ( /* dirent.h:97:1: */ 125 DT_UNKNOWN = 0 126 DT_FIFO = 1 127 DT_CHR = 2 128 DT_DIR = 4 129 DT_BLK = 6 130 DT_REG = 8 131 DT_LNK = 10 132 DT_SOCK = 12 133 DT_WHT = 14 134 ) 135 136 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 137 138 type Size_t = uint64 /* <builtin>:9:23 */ 139 140 type Wchar_t = uint32 /* <builtin>:15:24 */ 141 142 type X__int128_t = struct { 143 Flo int64 144 Fhi int64 145 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 146 type X__uint128_t = struct { 147 Flo uint64 148 Fhi uint64 149 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 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: 5.1.2 Directory Operations <dirent.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 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 542 // This file is part of the GNU C Library. 543 // 544 // The GNU C Library is free software; you can redistribute it and/or 545 // modify it under the terms of the GNU Lesser General Public 546 // License as published by the Free Software Foundation; either 547 // version 2.1 of the License, or (at your option) any later version. 548 // 549 // The GNU C Library is distributed in the hope that it will be useful, 550 // but WITHOUT ANY WARRANTY; without even the implied warranty of 551 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 552 // Lesser General Public License for more details. 553 // 554 // You should have received a copy of the GNU Lesser General Public 555 // License along with the GNU C Library; if not, see 556 // <https://www.gnu.org/licenses/>. 557 558 // Properties of long double type. ldbl-128 version. 559 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 560 // This file is part of the GNU C Library. 561 // 562 // The GNU C Library is free software; you can redistribute it and/or 563 // modify it under the terms of the GNU Lesser General Public 564 // License published by the Free Software Foundation; either 565 // version 2.1 of the License, or (at your option) any later version. 566 // 567 // The GNU C Library is distributed in the hope that it will be useful, 568 // but WITHOUT ANY WARRANTY; without even the implied warranty of 569 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 570 // Lesser General Public License for more details. 571 // 572 // You should have received a copy of the GNU Lesser General Public 573 // License along with the GNU C Library; if not, see 574 // <https://www.gnu.org/licenses/>. 575 576 // long double is distinct from double, so there is nothing to 577 // define here. 578 579 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 580 // intended for use in preprocessor macros. 581 // 582 // Note: MESSAGE must be a _single_ string; concatenation of string 583 // literals is not supported. 584 585 // Generic selection (ISO C11) is a C-only feature, available in GCC 586 // since version 4.9. Previous versions do not provide generic 587 // selection, even though they might set __STDC_VERSION__ to 201112L, 588 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 589 // when testing __STDC_VERSION__ for generic selection support. 590 // On the other hand, Clang also defines __GNUC__, so a clang-specific 591 // check is required to enable the use of generic selection. 592 593 // If we don't have __REDIRECT, prototypes will be missing if 594 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 595 596 // Decide whether we can define 'extern inline' functions in headers. 597 598 // This is here only because every header file already includes this one. 599 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 600 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 601 // that will always return failure (and set errno to ENOSYS). 602 // This file is automatically generated. 603 // This file selects the right generated file of `__stub_FUNCTION' macros 604 // based on the architecture being compiled for. 605 606 // Determine the wordsize from the preprocessor defines. 607 // 608 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 609 // This file is part of the GNU C Library. 610 // 611 // The GNU C Library is free software; you can redistribute it and/or 612 // modify it under the terms of the GNU Lesser General Public 613 // License as published by the Free Software Foundation; either 614 // version 2.1 of the License, or (at your option) any later version. 615 // 616 // The GNU C Library is distributed in the hope that it will be useful, 617 // but WITHOUT ANY WARRANTY; without even the implied warranty of 618 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 619 // Lesser General Public License for more details. 620 // 621 // You should have received a copy of the GNU Lesser General Public 622 // License along with the GNU C Library; if not, see 623 // <https://www.gnu.org/licenses/>. 624 625 // This file is automatically generated. 626 // It defines a symbol `__stub_FUNCTION' for each function 627 // in the C library which is a stub, meaning it will fail 628 // every time called, usually setting errno to ENOSYS. 629 630 // bits/types.h -- definitions of __*_t types underlying *_t types. 631 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 632 // This file is part of the GNU C Library. 633 // 634 // The GNU C Library is free software; you can redistribute it and/or 635 // modify it under the terms of the GNU Lesser General Public 636 // License as published by the Free Software Foundation; either 637 // version 2.1 of the License, or (at your option) any later version. 638 // 639 // The GNU C Library is distributed in the hope that it will be useful, 640 // but WITHOUT ANY WARRANTY; without even the implied warranty of 641 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 642 // Lesser General Public License for more details. 643 // 644 // You should have received a copy of the GNU Lesser General Public 645 // License along with the GNU C Library; if not, see 646 // <https://www.gnu.org/licenses/>. 647 648 // Never include this file directly; use <sys/types.h> instead. 649 650 // Copyright (C) 1991-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 // Determine the wordsize from the preprocessor defines. 668 // 669 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 670 // This file is part of the GNU C Library. 671 // 672 // The GNU C Library is free software; you can redistribute it and/or 673 // modify it under the terms of the GNU Lesser General Public 674 // License as published by the Free Software Foundation; either 675 // version 2.1 of the License, or (at your option) any later version. 676 // 677 // The GNU C Library is distributed in the hope that it will be useful, 678 // but WITHOUT ANY WARRANTY; without even the implied warranty of 679 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 680 // Lesser General Public License for more details. 681 // 682 // You should have received a copy of the GNU Lesser General Public 683 // License along with the GNU C Library; if not, see 684 // <https://www.gnu.org/licenses/>. 685 686 // Bit size of the time_t type at glibc build time, general case. 687 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 688 // This file is part of the GNU C Library. 689 // 690 // The GNU C Library is free software; you can redistribute it and/or 691 // modify it under the terms of the GNU Lesser General Public 692 // License as published by the Free Software Foundation; either 693 // version 2.1 of the License, or (at your option) any later version. 694 // 695 // The GNU C Library is distributed in the hope that it will be useful, 696 // but WITHOUT ANY WARRANTY; without even the implied warranty of 697 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 698 // Lesser General Public License for more details. 699 // 700 // You should have received a copy of the GNU Lesser General Public 701 // License along with the GNU C Library; if not, see 702 // <https://www.gnu.org/licenses/>. 703 704 // Determine the wordsize from the preprocessor defines. 705 // 706 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 707 // This file is part of the GNU C Library. 708 // 709 // The GNU C Library is free software; you can redistribute it and/or 710 // modify it under the terms of the GNU Lesser General Public 711 // License as published by the Free Software Foundation; either 712 // version 2.1 of the License, or (at your option) any later version. 713 // 714 // The GNU C Library is distributed in the hope that it will be useful, 715 // but WITHOUT ANY WARRANTY; without even the implied warranty of 716 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 717 // Lesser General Public License for more details. 718 // 719 // You should have received a copy of the GNU Lesser General Public 720 // License along with the GNU C Library; if not, see 721 // <https://www.gnu.org/licenses/>. 722 723 // Size in bits of the 'time_t' type of the default ABI. 724 725 // Convenience types. 726 type X__u_char = uint8 /* types.h:31:23 */ 727 type X__u_short = uint16 /* types.h:32:28 */ 728 type X__u_int = uint32 /* types.h:33:22 */ 729 type X__u_long = uint64 /* types.h:34:27 */ 730 731 // Fixed-size types, underlying types depend on word size and compiler. 732 type X__int8_t = int8 /* types.h:37:21 */ 733 type X__uint8_t = uint8 /* types.h:38:23 */ 734 type X__int16_t = int16 /* types.h:39:26 */ 735 type X__uint16_t = uint16 /* types.h:40:28 */ 736 type X__int32_t = int32 /* types.h:41:20 */ 737 type X__uint32_t = uint32 /* types.h:42:22 */ 738 type X__int64_t = int64 /* types.h:44:25 */ 739 type X__uint64_t = uint64 /* types.h:45:27 */ 740 741 // Smallest types with at least a given width. 742 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 743 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 744 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 745 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 746 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 747 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 748 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 749 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 750 751 // quad_t is also 64 bits. 752 type X__quad_t = int64 /* types.h:63:18 */ 753 type X__u_quad_t = uint64 /* types.h:64:27 */ 754 755 // Largest integral types. 756 type X__intmax_t = int64 /* types.h:72:18 */ 757 type X__uintmax_t = uint64 /* types.h:73:27 */ 758 759 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 760 // macros for each of the OS types we define below. The definitions 761 // of those macros must use the following macros for underlying types. 762 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 763 // variants of each of the following integer types on this machine. 764 // 765 // 16 -- "natural" 16-bit type (always short) 766 // 32 -- "natural" 32-bit type (always int) 767 // 64 -- "natural" 64-bit type (long or long long) 768 // LONG32 -- 32-bit type, traditionally long 769 // QUAD -- 64-bit type, traditionally long long 770 // WORD -- natural type of __WORDSIZE bits (int or long) 771 // LONGWORD -- type of __WORDSIZE bits, traditionally long 772 // 773 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 774 // conventional uses of `long' or `long long' type modifiers match the 775 // types we define, even when a less-adorned type would be the same size. 776 // This matters for (somewhat) portably writing printf/scanf formats for 777 // these types, where using the appropriate l or ll format modifiers can 778 // make the typedefs and the formats match up across all GNU platforms. If 779 // we used `long' when it's 64 bits where `long long' is expected, then the 780 // compiler would warn about the formats not matching the argument types, 781 // and the programmer changing them to shut up the compiler would break the 782 // program's portability. 783 // 784 // Here we assume what is presently the case in all the GCC configurations 785 // we support: long long is always 64 bits, long is always word/address size, 786 // and int is always 32 bits. 787 788 // No need to mark the typedef with __extension__. 789 // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. 790 // Copyright (C) 2011-2020 Free Software Foundation, Inc. 791 // This file is part of the GNU C Library. 792 // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011. 793 // 794 // The GNU C Library is free software; you can redistribute it and/or 795 // modify it under the terms of the GNU Lesser General Public 796 // License as published by the Free Software Foundation; either 797 // version 2.1 of the License, or (at your option) any later version. 798 // 799 // The GNU C Library is distributed in the hope that it will be useful, 800 // but WITHOUT ANY WARRANTY; without even the implied warranty of 801 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 802 // Lesser General Public License for more details. 803 // 804 // You should have received a copy of the GNU Lesser General Public 805 // License along with the GNU C Library. If not, see 806 // <https://www.gnu.org/licenses/>. 807 808 // See <bits/types.h> for the meaning of these macros. This file exists so 809 // that <bits/types.h> need not vary across different GNU platforms. 810 811 // Tell the libc code that off_t and off64_t are actually the same type 812 // for all ABI purposes, even if possibly expressed as different base types 813 // for C type-checking purposes. 814 815 // Same for ino_t and ino64_t. 816 817 // And for __rlim_t and __rlim64_t. 818 819 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 820 // Number of descriptors that can fit in an `fd_set'. 821 822 // bits/time64.h -- underlying types for __time64_t. Generic version. 823 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 824 // This file is part of the GNU C Library. 825 // 826 // The GNU C Library is free software; you can redistribute it and/or 827 // modify it under the terms of the GNU Lesser General Public 828 // License as published by the Free Software Foundation; either 829 // version 2.1 of the License, or (at your option) any later version. 830 // 831 // The GNU C Library is distributed in the hope that it will be useful, 832 // but WITHOUT ANY WARRANTY; without even the implied warranty of 833 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 834 // Lesser General Public License for more details. 835 // 836 // You should have received a copy of the GNU Lesser General Public 837 // License along with the GNU C Library; if not, see 838 // <https://www.gnu.org/licenses/>. 839 840 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 841 842 // If we already have 64-bit time type then use it. 843 844 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 845 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 846 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 847 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 848 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 849 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 850 type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. 851 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 852 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 853 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 854 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 855 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 856 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 857 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 858 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 859 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 860 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 861 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 862 863 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 864 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 865 866 // Clock ID used in clock and timer functions. 867 type X__clockid_t = int32 /* types.h:168:29 */ 868 869 // Timer ID returned by `timer_create'. 870 type X__timer_t = uintptr /* types.h:171:12 */ 871 872 // Type to represent block size. 873 type X__blksize_t = int32 /* types.h:174:29 */ 874 875 // Types from the Large File Support interface. 876 877 // Type to count number of disk blocks. 878 type X__blkcnt_t = int64 /* types.h:179:28 */ 879 type X__blkcnt64_t = int64 /* types.h:180:30 */ 880 881 // Type to count file system blocks. 882 type X__fsblkcnt_t = uint64 /* types.h:183:30 */ 883 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ 884 885 // Type to count file system nodes. 886 type X__fsfilcnt_t = uint64 /* types.h:187:30 */ 887 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ 888 889 // Type of miscellaneous file system fields. 890 type X__fsword_t = int64 /* types.h:191:28 */ 891 892 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. 893 894 // Signed long type used in system calls. 895 type X__syscall_slong_t = int64 /* types.h:196:33 */ 896 // Unsigned long type used in system calls. 897 type X__syscall_ulong_t = uint64 /* types.h:198:33 */ 898 899 // These few don't really vary by system, they always correspond 900 // 901 // to one of the other defined types. 902 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 903 type X__caddr_t = uintptr /* types.h:203:14 */ 904 905 // Duplicates info from stdint.h but this is used in unistd.h. 906 type X__intptr_t = int64 /* types.h:206:25 */ 907 908 // Duplicate info from sys/socket.h. 909 type X__socklen_t = uint32 /* types.h:209:23 */ 910 911 // C99: An integer type that can be accessed as an atomic entity, 912 // 913 // even in the presence of asynchronous interrupts. 914 // It is not currently necessary for this to be machine-specific. 915 type X__sig_atomic_t = int32 /* types.h:214:13 */ 916 917 // Seconds since the Epoch, visible to user code when time_t is too 918 // narrow only for consistency with the old way of widening too-narrow 919 // types. User code should never use __time64_t. 920 921 // This file defines `struct dirent'. 922 // 923 // It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen' 924 // member that gives the length of `d_name'. 925 // 926 // It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen' 927 // member that gives the size of the entire directory entry. 928 // 929 // It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off' 930 // member that gives the file offset of the next directory entry. 931 // 932 // It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type' 933 // member that gives the type of the file. 934 // 935 936 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 937 // This file is part of the GNU C Library. 938 // 939 // The GNU C Library is free software; you can redistribute it and/or 940 // modify it under the terms of the GNU Lesser General Public 941 // License as published by the Free Software Foundation; either 942 // version 2.1 of the License, or (at your option) any later version. 943 // 944 // The GNU C Library is distributed in the hope that it will be useful, 945 // but WITHOUT ANY WARRANTY; without even the implied warranty of 946 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 947 // Lesser General Public License for more details. 948 // 949 // You should have received a copy of the GNU Lesser General Public 950 // License along with the GNU C Library; if not, see 951 // <https://www.gnu.org/licenses/>. 952 953 type Dirent = struct { 954 Fd_ino X__ino64_t 955 Fd_off X__off64_t 956 Fd_reclen uint16 957 Fd_type uint8 958 Fd_name [256]uint8 959 F__ccgo_pad1 [5]byte 960 } /* dirent.h:22:1 */ 961 962 // System-specific extensions of <dirent.h>. Linux version. 963 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 964 // This file is part of the GNU C Library. 965 // 966 // The GNU C Library is free software; you can redistribute it and/or 967 // modify it under the terms of the GNU Lesser General Public 968 // License as published by the Free Software Foundation; either 969 // version 2.1 of the License, or (at your option) any later version. 970 // 971 // The GNU C Library is distributed in the hope that it will be useful, 972 // but WITHOUT ANY WARRANTY; without even the implied warranty of 973 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 974 // Lesser General Public License for more details. 975 // 976 // You should have received a copy of the GNU Lesser General Public 977 // License along with the GNU C Library; if not, see 978 // <https://www.gnu.org/licenses/>. 979 980 var _ uint8 /* gen.c:2:13: */