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