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