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