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