github.com/afumu/libc@v0.0.6/sys/types/types_linux_386.go (about) 1 // Code generated by 'ccgo sys/types/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/types/types_linux_386.go -pkgname types', DO NOT EDIT. 2 3 package types 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 BIG_ENDIAN = 4321 19 BYTE_ORDER = 1234 20 FD_SETSIZE = 1024 21 LITTLE_ENDIAN = 1234 22 PDP_ENDIAN = 3412 23 X_ATFILE_SOURCE = 1 24 X_BITS_BYTESWAP_H = 1 25 X_BITS_ENDIANNESS_H = 1 26 X_BITS_ENDIAN_H = 1 27 X_BITS_PTHREADTYPES_ARCH_H = 1 28 X_BITS_PTHREADTYPES_COMMON_H = 1 29 X_BITS_STDINT_INTN_H = 1 30 X_BITS_TIME64_H = 1 31 X_BITS_TYPESIZES_H = 1 32 X_BITS_TYPES_H = 1 33 X_BITS_UINTN_IDENTITY_H = 1 34 X_BSD_SIZE_T_ = 0 35 X_BSD_SIZE_T_DEFINED_ = 0 36 X_DEFAULT_SOURCE = 1 37 X_ENDIAN_H = 1 38 X_FEATURES_H = 1 39 X_FILE_OFFSET_BITS = 64 40 X_GCC_SIZE_T = 0 41 X_ILP32 = 1 42 X_POSIX_C_SOURCE = 200809 43 X_POSIX_SOURCE = 1 44 X_RWLOCK_INTERNAL_H = 0 45 X_SIZET_ = 0 46 X_SIZE_T = 0 47 X_SIZE_T_ = 0 48 X_SIZE_T_DECLARED = 0 49 X_SIZE_T_DEFINED = 0 50 X_SIZE_T_DEFINED_ = 0 51 X_STDC_PREDEF_H = 1 52 X_STRUCT_TIMESPEC = 1 53 X_SYS_CDEFS_H = 1 54 X_SYS_SELECT_H = 1 55 X_SYS_SIZE_T_H = 0 56 X_SYS_TYPES_H = 1 57 X_THREAD_MUTEX_INTERNAL_H = 1 58 X_THREAD_SHARED_TYPES_H = 1 59 X_T_SIZE = 0 60 X_T_SIZE_ = 0 61 I386 = 1 62 Linux = 1 63 Unix = 1 64 ) 65 66 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 67 68 type Size_t = uint32 /* <builtin>:9:23 */ 69 70 type Wchar_t = int32 /* <builtin>:15:24 */ 71 72 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 73 type X__float128 = float64 /* <builtin>:47:21 */ 74 75 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 76 // This file is part of the GNU C Library. 77 // 78 // The GNU C Library is free software; you can redistribute it and/or 79 // modify it under the terms of the GNU Lesser General Public 80 // License as published by the Free Software Foundation; either 81 // version 2.1 of the License, or (at your option) any later version. 82 // 83 // The GNU C Library is distributed in the hope that it will be useful, 84 // but WITHOUT ANY WARRANTY; without even the implied warranty of 85 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 86 // Lesser General Public License for more details. 87 // 88 // You should have received a copy of the GNU Lesser General Public 89 // License along with the GNU C Library; if not, see 90 // <https://www.gnu.org/licenses/>. 91 92 // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> 93 94 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 95 // This file is part of the GNU C Library. 96 // 97 // The GNU C Library is free software; you can redistribute it and/or 98 // modify it under the terms of the GNU Lesser General Public 99 // License as published by the Free Software Foundation; either 100 // version 2.1 of the License, or (at your option) any later version. 101 // 102 // The GNU C Library is distributed in the hope that it will be useful, 103 // but WITHOUT ANY WARRANTY; without even the implied warranty of 104 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 105 // Lesser General Public License for more details. 106 // 107 // You should have received a copy of the GNU Lesser General Public 108 // License along with the GNU C Library; if not, see 109 // <https://www.gnu.org/licenses/>. 110 111 // These are defined by the user (or the compiler) 112 // to specify the desired environment: 113 // 114 // __STRICT_ANSI__ ISO Standard C. 115 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 116 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 117 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 118 // __STDC_WANT_LIB_EXT2__ 119 // Extensions to ISO C99 from TR 27431-2:2010. 120 // __STDC_WANT_IEC_60559_BFP_EXT__ 121 // Extensions to ISO C11 from TS 18661-1:2014. 122 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 123 // Extensions to ISO C11 from TS 18661-4:2015. 124 // __STDC_WANT_IEC_60559_TYPES_EXT__ 125 // Extensions to ISO C11 from TS 18661-3:2015. 126 // 127 // _POSIX_SOURCE IEEE Std 1003.1. 128 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 129 // if >=199309L, add IEEE Std 1003.1b-1993; 130 // if >=199506L, add IEEE Std 1003.1c-1995; 131 // if >=200112L, all of IEEE 1003.1-2004 132 // if >=200809L, all of IEEE 1003.1-2008 133 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 134 // Single Unix conformance is wanted, to 600 for the 135 // sixth revision, to 700 for the seventh revision. 136 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 137 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 138 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 139 // _FILE_OFFSET_BITS=N Select default filesystem interface. 140 // _ATFILE_SOURCE Additional *at interfaces. 141 // _GNU_SOURCE All of the above, plus GNU extensions. 142 // _DEFAULT_SOURCE The default set of features (taking precedence over 143 // __STRICT_ANSI__). 144 // 145 // _FORTIFY_SOURCE Add security hardening to many library functions. 146 // Set to 1 or 2; 2 performs stricter checks than 1. 147 // 148 // _REENTRANT, _THREAD_SAFE 149 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 150 // 151 // The `-ansi' switch to the GNU C compiler, and standards conformance 152 // options such as `-std=c99', define __STRICT_ANSI__. If none of 153 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 154 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 155 // 200809L, as well as enabling miscellaneous functions from BSD and 156 // SVID. If more than one of these are defined, they accumulate. For 157 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 158 // give you ISO C, 1003.1, and 1003.2, but nothing else. 159 // 160 // These are defined by this file and are used by the 161 // header files to decide what to declare or define: 162 // 163 // __GLIBC_USE (F) Define things from feature set F. This is defined 164 // to 1 or 0; the subsequent macros are either defined 165 // or undefined, and those tests should be moved to 166 // __GLIBC_USE. 167 // __USE_ISOC11 Define ISO C11 things. 168 // __USE_ISOC99 Define ISO C99 things. 169 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 170 // __USE_ISOCXX11 Define ISO C++11 things. 171 // __USE_POSIX Define IEEE Std 1003.1 things. 172 // __USE_POSIX2 Define IEEE Std 1003.2 things. 173 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 174 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 175 // __USE_XOPEN Define XPG things. 176 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 177 // __USE_UNIX98 Define Single Unix V2 things. 178 // __USE_XOPEN2K Define XPG6 things. 179 // __USE_XOPEN2KXSI Define XPG6 XSI things. 180 // __USE_XOPEN2K8 Define XPG7 things. 181 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 182 // __USE_LARGEFILE Define correct standard I/O things. 183 // __USE_LARGEFILE64 Define LFS things with separate names. 184 // __USE_FILE_OFFSET64 Define 64bit interface as default. 185 // __USE_MISC Define things from 4.3BSD or System V Unix. 186 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 187 // __USE_GNU Define GNU extensions. 188 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 189 // 190 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 191 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 192 // only for compatibility. All new code should use the other symbols 193 // to test for features. 194 // 195 // All macros listed above as possibly being defined by this file are 196 // explicitly undefined if they are not explicitly defined. 197 // Feature-test macros that are not defined by the user or compiler 198 // but are implied by the other feature-test macros defined (or by the 199 // lack of any definitions) are defined by the file. 200 // 201 // ISO C feature test macros depend on the definition of the macro 202 // when an affected header is included, not when the first system 203 // header is included, and so they are handled in 204 // <bits/libc-header-start.h>, which does not have a multiple include 205 // guard. Feature test macros that can be handled from the first 206 // system header included are handled here. 207 208 // Undefine everything, so we get a clean slate. 209 210 // Suppress kernel-name space pollution unless user expressedly asks 211 // for it. 212 213 // Convenience macro to test the version of gcc. 214 // Use like this: 215 // #if __GNUC_PREREQ (2,8) 216 // ... code requiring gcc 2.8 or later ... 217 // #endif 218 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 219 // added in 2.0. 220 221 // Similarly for clang. Features added to GCC after version 4.2 may 222 // or may not also be available in clang, and clang's definitions of 223 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 224 // features can be queried via __has_extension/__has_feature. 225 226 // Whether to use feature set F. 227 228 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 229 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 230 // issue a warning; the expectation is that the source is being 231 // transitioned to use the new macro. 232 233 // If _GNU_SOURCE was defined by the user, turn on all the other features. 234 235 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 236 // define _DEFAULT_SOURCE. 237 238 // This is to enable the ISO C2X extension. 239 240 // This is to enable the ISO C11 extension. 241 242 // This is to enable the ISO C99 extension. 243 244 // This is to enable the ISO C90 Amendment 1:1995 extension. 245 246 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 247 // is defined, use POSIX.1-2008 (or another version depending on 248 // _XOPEN_SOURCE). 249 250 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 251 // defined in all multithreaded code. GNU libc has not required this 252 // for many years. We now treat them as compatibility synonyms for 253 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 254 // comprehensive support for multithreaded code. Using them never 255 // lowers the selected level of POSIX conformance, only raises it. 256 257 // The function 'gets' existed in C89, but is impossible to use 258 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 259 // compatibility with various implementations of <cstdio>, this test 260 // must consider only the value of __cplusplus when compiling C++. 261 262 // GNU formerly extended the scanf functions with modified format 263 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 264 // input using malloc. This extension conflicts with ISO C99, which 265 // defines %a as a standalone format specifier that reads a floating- 266 // point number; moreover, POSIX.1-2008 provides the same feature 267 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 268 // 269 // We now follow C99 unless GNU extensions are active and the compiler 270 // is specifically in C89 or C++98 mode (strict or not). For 271 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 272 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 273 // old extension. 274 275 // Get definitions of __STDC_* predefined macros, if the compiler has 276 // not preincluded this header automatically. 277 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 278 // This file is part of the GNU C Library. 279 // 280 // The GNU C Library is free software; you can redistribute it and/or 281 // modify it under the terms of the GNU Lesser General Public 282 // License as published by the Free Software Foundation; either 283 // version 2.1 of the License, or (at your option) any later version. 284 // 285 // The GNU C Library is distributed in the hope that it will be useful, 286 // but WITHOUT ANY WARRANTY; without even the implied warranty of 287 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 288 // Lesser General Public License for more details. 289 // 290 // You should have received a copy of the GNU Lesser General Public 291 // License along with the GNU C Library; if not, see 292 // <https://www.gnu.org/licenses/>. 293 294 // This macro indicates that the installed library is the GNU C Library. 295 // For historic reasons the value now is 6 and this will stay from now 296 // on. The use of this variable is deprecated. Use __GLIBC__ and 297 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 298 // GNU C library version and use the values in <gnu/lib-names.h> to get 299 // the sonames of the shared libraries. 300 301 // Major and minor version number of the GNU C library package. Use 302 // these macros to test for features in specific releases. 303 304 // This is here only because every header file already includes this one. 305 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 306 // This file is part of the GNU C Library. 307 // 308 // The GNU C Library is free software; you can redistribute it and/or 309 // modify it under the terms of the GNU Lesser General Public 310 // License as published by the Free Software Foundation; either 311 // version 2.1 of the License, or (at your option) any later version. 312 // 313 // The GNU C Library is distributed in the hope that it will be useful, 314 // but WITHOUT ANY WARRANTY; without even the implied warranty of 315 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 316 // Lesser General Public License for more details. 317 // 318 // You should have received a copy of the GNU Lesser General Public 319 // License along with the GNU C Library; if not, see 320 // <https://www.gnu.org/licenses/>. 321 322 // We are almost always included from features.h. 323 324 // The GNU libc does not support any K&R compilers or the traditional mode 325 // of ISO C compilers anymore. Check for some of the combinations not 326 // anymore supported. 327 328 // Some user header file might have defined this before. 329 330 // All functions, except those with callbacks or those that 331 // synchronize memory, are leaf functions. 332 333 // GCC can always grok prototypes. For C++ programs we add throw() 334 // to help it optimize the function calls. But this works only with 335 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 336 // as non-throwing using a function attribute since programs can use 337 // the -fexceptions options for C code as well. 338 339 // Compilers that are not clang may object to 340 // #if defined __clang__ && __has_extension(...) 341 // even though they do not need to evaluate the right-hand side of the &&. 342 343 // These two macros are not used in glibc anymore. They are kept here 344 // only because some other projects expect the macros to be defined. 345 346 // For these things, GCC behaves the ANSI way normally, 347 // and the non-ANSI way under -traditional. 348 349 // This is not a typedef so `const __ptr_t' does the right thing. 350 351 // C++ needs to know that types and declarations are C, not C++. 352 353 // Fortify support. 354 355 // Support for flexible arrays. 356 // Headers that should use flexible arrays only if they're "real" 357 // (e.g. only if they won't affect sizeof()) should test 358 // #if __glibc_c99_flexarr_available. 359 360 // __asm__ ("xyz") is used throughout the headers to rename functions 361 // at the assembly language level. This is wrapped by the __REDIRECT 362 // macro, in order to support compilers that can do this some other 363 // way. When compilers don't support asm-names at all, we have to do 364 // preprocessor tricks instead (which don't have exactly the right 365 // semantics, but it's the best we can do). 366 // 367 // Example: 368 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 369 370 // 371 // #elif __SOME_OTHER_COMPILER__ 372 // 373 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 374 375 // GCC has various useful declarations that can be made with the 376 // `__attribute__' syntax. All of the ways we use this do fine if 377 // they are omitted for compilers that don't understand it. 378 379 // At some point during the gcc 2.96 development the `malloc' attribute 380 // for functions was introduced. We don't want to use it unconditionally 381 // (although this would be possible) since it generates warnings. 382 383 // Tell the compiler which arguments to an allocation function 384 // indicate the size of the allocation. 385 386 // At some point during the gcc 2.96 development the `pure' attribute 387 // for functions was introduced. We don't want to use it unconditionally 388 // (although this would be possible) since it generates warnings. 389 390 // This declaration tells the compiler that the value is constant. 391 392 // At some point during the gcc 3.1 development the `used' attribute 393 // for functions was introduced. We don't want to use it unconditionally 394 // (although this would be possible) since it generates warnings. 395 396 // Since version 3.2, gcc allows marking deprecated functions. 397 398 // Since version 4.5, gcc also allows one to specify the message printed 399 // when a deprecated function is used. clang claims to be gcc 4.2, but 400 // may also support this feature. 401 402 // At some point during the gcc 2.8 development the `format_arg' attribute 403 // for functions was introduced. We don't want to use it unconditionally 404 // (although this would be possible) since it generates warnings. 405 // If several `format_arg' attributes are given for the same function, in 406 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 407 // all designated arguments are considered. 408 409 // At some point during the gcc 2.97 development the `strfmon' format 410 // attribute for functions was introduced. We don't want to use it 411 // unconditionally (although this would be possible) since it 412 // generates warnings. 413 414 // The nonull function attribute allows to mark pointer parameters which 415 // must not be NULL. 416 417 // If fortification mode, we warn about unused results of certain 418 // function calls which can lead to problems. 419 420 // Forces a function to be always inlined. 421 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 422 // it conflicts with this definition. Therefore undefine it first to 423 // allow either header to be included first. 424 425 // Associate error messages with the source location of the call site rather 426 // than with the source location inside the function. 427 428 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 429 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 430 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 431 // older than 4.3 may define these macros and still not guarantee GNU inlining 432 // semantics. 433 // 434 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 435 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 436 // __GNUC_GNU_INLINE__ macro definitions. 437 438 // GCC 4.3 and above allow passing all anonymous arguments of an 439 // __extern_always_inline function to some other vararg function. 440 441 // It is possible to compile containing GCC extensions even if GCC is 442 // run in pedantic mode if the uses are carefully marked using the 443 // `__extension__' keyword. But this is not generally available before 444 // version 2.8. 445 446 // __restrict is known in EGCS 1.2 and above. 447 448 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 449 // array_name[restrict] 450 // GCC 3.1 supports this. 451 452 // Describes a char array whose address can safely be passed as the first 453 // argument to strncpy and strncat, as the char array is not necessarily 454 // a NUL-terminated string. 455 456 // Undefine (also defined in libc-symbols.h). 457 // Copies attributes from the declaration or type referenced by 458 // the argument. 459 460 // Determine the wordsize from the preprocessor defines. 461 462 // Properties of long double type. ldbl-96 version. 463 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 464 // This file is part of the GNU C Library. 465 // 466 // The GNU C Library is free software; you can redistribute it and/or 467 // modify it under the terms of the GNU Lesser General Public 468 // License published by the Free Software Foundation; either 469 // version 2.1 of the License, or (at your option) any later version. 470 // 471 // The GNU C Library is distributed in the hope that it will be useful, 472 // but WITHOUT ANY WARRANTY; without even the implied warranty of 473 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 474 // Lesser General Public License for more details. 475 // 476 // You should have received a copy of the GNU Lesser General Public 477 // License along with the GNU C Library; if not, see 478 // <https://www.gnu.org/licenses/>. 479 480 // long double is distinct from double, so there is nothing to 481 // define here. 482 483 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 484 // intended for use in preprocessor macros. 485 // 486 // Note: MESSAGE must be a _single_ string; concatenation of string 487 // literals is not supported. 488 489 // Generic selection (ISO C11) is a C-only feature, available in GCC 490 // since version 4.9. Previous versions do not provide generic 491 // selection, even though they might set __STDC_VERSION__ to 201112L, 492 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 493 // when testing __STDC_VERSION__ for generic selection support. 494 // On the other hand, Clang also defines __GNUC__, so a clang-specific 495 // check is required to enable the use of generic selection. 496 497 // If we don't have __REDIRECT, prototypes will be missing if 498 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 499 500 // Decide whether we can define 'extern inline' functions in headers. 501 502 // This is here only because every header file already includes this one. 503 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 504 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 505 // that will always return failure (and set errno to ENOSYS). 506 // This file is automatically generated. 507 // This file selects the right generated file of `__stub_FUNCTION' macros 508 // based on the architecture being compiled for. 509 510 // This file is automatically generated. 511 // It defines a symbol `__stub_FUNCTION' for each function 512 // in the C library which is a stub, meaning it will fail 513 // every time called, usually setting errno to ENOSYS. 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, x86-64 and x32 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 // For others, time size is word size. 573 574 // Convenience types. 575 type X__u_char = uint8 /* types.h:31:23 */ 576 type X__u_short = uint16 /* types.h:32:28 */ 577 type X__u_int = uint32 /* types.h:33:22 */ 578 type X__u_long = uint32 /* types.h:34:27 */ 579 580 // Fixed-size types, underlying types depend on word size and compiler. 581 type X__int8_t = int8 /* types.h:37:21 */ 582 type X__uint8_t = uint8 /* types.h:38:23 */ 583 type X__int16_t = int16 /* types.h:39:26 */ 584 type X__uint16_t = uint16 /* types.h:40:28 */ 585 type X__int32_t = int32 /* types.h:41:20 */ 586 type X__uint32_t = uint32 /* types.h:42:22 */ 587 type X__int64_t = int64 /* types.h:47:44 */ 588 type X__uint64_t = uint64 /* types.h:48:46 */ 589 590 // Smallest types with at least a given width. 591 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 592 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 593 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 594 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 595 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 596 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 597 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 598 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 599 600 // quad_t is also 64 bits. 601 type X__quad_t = int64 /* types.h:66:37 */ 602 type X__u_quad_t = uint64 /* types.h:67:46 */ 603 604 // Largest integral types. 605 type X__intmax_t = int64 /* types.h:75:37 */ 606 type X__uintmax_t = uint64 /* types.h:76:46 */ 607 608 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 609 // macros for each of the OS types we define below. The definitions 610 // of those macros must use the following macros for underlying types. 611 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 612 // variants of each of the following integer types on this machine. 613 // 614 // 16 -- "natural" 16-bit type (always short) 615 // 32 -- "natural" 32-bit type (always int) 616 // 64 -- "natural" 64-bit type (long or long long) 617 // LONG32 -- 32-bit type, traditionally long 618 // QUAD -- 64-bit type, traditionally long long 619 // WORD -- natural type of __WORDSIZE bits (int or long) 620 // LONGWORD -- type of __WORDSIZE bits, traditionally long 621 // 622 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 623 // conventional uses of `long' or `long long' type modifiers match the 624 // types we define, even when a less-adorned type would be the same size. 625 // This matters for (somewhat) portably writing printf/scanf formats for 626 // these types, where using the appropriate l or ll format modifiers can 627 // make the typedefs and the formats match up across all GNU platforms. If 628 // we used `long' when it's 64 bits where `long long' is expected, then the 629 // compiler would warn about the formats not matching the argument types, 630 // and the programmer changing them to shut up the compiler would break the 631 // program's portability. 632 // 633 // Here we assume what is presently the case in all the GCC configurations 634 // we support: long long is always 64 bits, long is always word/address size, 635 // and int is always 32 bits. 636 637 // We want __extension__ before typedef's that use nonstandard base types 638 // such as `long long' in C89 mode. 639 // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. 640 // Copyright (C) 2012-2020 Free Software Foundation, Inc. 641 // This file is part of the GNU C Library. 642 // 643 // The GNU C Library is free software; you can redistribute it and/or 644 // modify it under the terms of the GNU Lesser General Public 645 // License as published by the Free Software Foundation; either 646 // version 2.1 of the License, or (at your option) any later version. 647 // 648 // The GNU C Library is distributed in the hope that it will be useful, 649 // but WITHOUT ANY WARRANTY; without even the implied warranty of 650 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 651 // Lesser General Public License for more details. 652 // 653 // You should have received a copy of the GNU Lesser General Public 654 // License along with the GNU C Library; if not, see 655 // <https://www.gnu.org/licenses/>. 656 657 // See <bits/types.h> for the meaning of these macros. This file exists so 658 // that <bits/types.h> need not vary across different GNU platforms. 659 660 // X32 kernel interface is 64-bit. 661 662 // Number of descriptors that can fit in an `fd_set'. 663 664 // bits/time64.h -- underlying types for __time64_t. Generic version. 665 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 666 // This file is part of the GNU C Library. 667 // 668 // The GNU C Library is free software; you can redistribute it and/or 669 // modify it under the terms of the GNU Lesser General Public 670 // License as published by the Free Software Foundation; either 671 // version 2.1 of the License, or (at your option) any later version. 672 // 673 // The GNU C Library is distributed in the hope that it will be useful, 674 // but WITHOUT ANY WARRANTY; without even the implied warranty of 675 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 676 // Lesser General Public License for more details. 677 // 678 // You should have received a copy of the GNU Lesser General Public 679 // License along with the GNU C Library; if not, see 680 // <https://www.gnu.org/licenses/>. 681 682 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 683 684 // Define a 64-bit time type alongsize the 32-bit one. 685 686 type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers. 687 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 688 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 689 type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers. 690 type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS). 691 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 692 type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. 693 type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets. 694 type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 695 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 696 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 697 type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts. 698 type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement. 699 type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS). 700 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 701 type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch. 702 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 703 type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds. 704 705 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 706 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 707 708 // Clock ID used in clock and timer functions. 709 type X__clockid_t = int32 /* types.h:168:29 */ 710 711 // Timer ID returned by `timer_create'. 712 type X__timer_t = uintptr /* types.h:171:12 */ 713 714 // Type to represent block size. 715 type X__blksize_t = int32 /* types.h:174:29 */ 716 717 // Types from the Large File Support interface. 718 719 // Type to count number of disk blocks. 720 type X__blkcnt_t = int32 /* types.h:179:28 */ 721 type X__blkcnt64_t = X__int64_t /* types.h:180:30 */ 722 723 // Type to count file system blocks. 724 type X__fsblkcnt_t = uint32 /* types.h:183:30 */ 725 type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */ 726 727 // Type to count file system nodes. 728 type X__fsfilcnt_t = uint32 /* types.h:187:30 */ 729 type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */ 730 731 // Type of miscellaneous file system fields. 732 type X__fsword_t = int32 /* types.h:191:28 */ 733 734 type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error. 735 736 // Signed long type used in system calls. 737 type X__syscall_slong_t = int32 /* types.h:196:33 */ 738 // Unsigned long type used in system calls. 739 type X__syscall_ulong_t = uint32 /* types.h:198:33 */ 740 741 // These few don't really vary by system, they always correspond 742 // 743 // to one of the other defined types. 744 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 745 type X__caddr_t = uintptr /* types.h:203:14 */ 746 747 // Duplicates info from stdint.h but this is used in unistd.h. 748 type X__intptr_t = int32 /* types.h:206:25 */ 749 750 // Duplicate info from sys/socket.h. 751 type X__socklen_t = uint32 /* types.h:209:23 */ 752 753 // C99: An integer type that can be accessed as an atomic entity, 754 // 755 // even in the presence of asynchronous interrupts. 756 // It is not currently necessary for this to be machine-specific. 757 type X__sig_atomic_t = int32 /* types.h:214:13 */ 758 759 // Seconds since the Epoch, visible to user code when time_t is too 760 // 761 // narrow only for consistency with the old way of widening too-narrow 762 // types. User code should never use __time64_t. 763 type X__time64_t = X__int64_t /* types.h:222:28 */ 764 765 type U_char = X__u_char /* types.h:33:18 */ 766 type U_short = X__u_short /* types.h:34:19 */ 767 type U_int = X__u_int /* types.h:35:17 */ 768 type U_long = X__u_long /* types.h:36:18 */ 769 type Quad_t = X__quad_t /* types.h:37:18 */ 770 type U_quad_t = X__u_quad_t /* types.h:38:20 */ 771 type Fsid_t = X__fsid_t /* types.h:39:18 */ 772 type Loff_t = X__loff_t /* types.h:42:18 */ 773 774 type Ino_t = X__ino64_t /* types.h:49:19 */ 775 776 type Dev_t = X__dev_t /* types.h:59:17 */ 777 778 type Gid_t = X__gid_t /* types.h:64:17 */ 779 780 type Mode_t = X__mode_t /* types.h:69:18 */ 781 782 type Nlink_t = X__nlink_t /* types.h:74:19 */ 783 784 type Uid_t = X__uid_t /* types.h:79:17 */ 785 786 type Off_t = X__off64_t /* types.h:87:19 */ 787 788 type Pid_t = X__pid_t /* types.h:97:17 */ 789 790 type Id_t = X__id_t /* types.h:103:16 */ 791 792 type Ssize_t = X__ssize_t /* types.h:108:19 */ 793 794 type Daddr_t = X__daddr_t /* types.h:114:19 */ 795 type Caddr_t = X__caddr_t /* types.h:115:19 */ 796 797 type Key_t = X__key_t /* types.h:121:17 */ 798 799 // bits/types.h -- definitions of __*_t types underlying *_t types. 800 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 801 // This file is part of the GNU C Library. 802 // 803 // The GNU C Library is free software; you can redistribute it and/or 804 // modify it under the terms of the GNU Lesser General Public 805 // License as published by the Free Software Foundation; either 806 // version 2.1 of the License, or (at your option) any later version. 807 // 808 // The GNU C Library is distributed in the hope that it will be useful, 809 // but WITHOUT ANY WARRANTY; without even the implied warranty of 810 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 811 // Lesser General Public License for more details. 812 // 813 // You should have received a copy of the GNU Lesser General Public 814 // License along with the GNU C Library; if not, see 815 // <https://www.gnu.org/licenses/>. 816 817 // Never include this file directly; use <sys/types.h> instead. 818 819 // Returned by `clock'. 820 type Clock_t = X__clock_t /* clock_t.h:7:19 */ 821 822 // bits/types.h -- definitions of __*_t types underlying *_t types. 823 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 824 // This file is part of the GNU C Library. 825 // 826 // The GNU C Library is free software; you can redistribute it and/or 827 // modify it under the terms of the GNU Lesser General Public 828 // License as published by the Free Software Foundation; either 829 // version 2.1 of the License, or (at your option) any later version. 830 // 831 // The GNU C Library is distributed in the hope that it will be useful, 832 // but WITHOUT ANY WARRANTY; without even the implied warranty of 833 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 834 // Lesser General Public License for more details. 835 // 836 // You should have received a copy of the GNU Lesser General Public 837 // License along with the GNU C Library; if not, see 838 // <https://www.gnu.org/licenses/>. 839 840 // Never include this file directly; use <sys/types.h> instead. 841 842 // Clock ID used in clock and timer functions. 843 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ 844 845 // bits/types.h -- definitions of __*_t types underlying *_t types. 846 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 847 // This file is part of the GNU C Library. 848 // 849 // The GNU C Library is free software; you can redistribute it and/or 850 // modify it under the terms of the GNU Lesser General Public 851 // License as published by the Free Software Foundation; either 852 // version 2.1 of the License, or (at your option) any later version. 853 // 854 // The GNU C Library is distributed in the hope that it will be useful, 855 // but WITHOUT ANY WARRANTY; without even the implied warranty of 856 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 857 // Lesser General Public License for more details. 858 // 859 // You should have received a copy of the GNU Lesser General Public 860 // License along with the GNU C Library; if not, see 861 // <https://www.gnu.org/licenses/>. 862 863 // Never include this file directly; use <sys/types.h> instead. 864 865 // Returned by `time'. 866 type Time_t = X__time_t /* time_t.h:7:18 */ 867 868 // bits/types.h -- definitions of __*_t types underlying *_t types. 869 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 870 // This file is part of the GNU C Library. 871 // 872 // The GNU C Library is free software; you can redistribute it and/or 873 // modify it under the terms of the GNU Lesser General Public 874 // License as published by the Free Software Foundation; either 875 // version 2.1 of the License, or (at your option) any later version. 876 // 877 // The GNU C Library is distributed in the hope that it will be useful, 878 // but WITHOUT ANY WARRANTY; without even the implied warranty of 879 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 880 // Lesser General Public License for more details. 881 // 882 // You should have received a copy of the GNU Lesser General Public 883 // License along with the GNU C Library; if not, see 884 // <https://www.gnu.org/licenses/>. 885 886 // Never include this file directly; use <sys/types.h> instead. 887 888 // Timer ID returned by `timer_create'. 889 type Timer_t = X__timer_t /* timer_t.h:7:19 */ 890 891 // Wide character type. 892 // Locale-writers should change this as necessary to 893 // be big enough to hold unique values not between 0 and 127, 894 // and not (wchar_t) -1, for each defined multibyte character. 895 896 // Define this type if we are doing the whole job, 897 // or if we want this type in particular. 898 899 // A null pointer constant. 900 901 // Old compatibility names for C types. 902 type Ulong = uint32 /* types.h:148:27 */ 903 type Ushort = uint16 /* types.h:149:28 */ 904 type Uint = uint32 /* types.h:150:22 */ 905 906 // These size-specific names are used by some of the inet code. 907 908 // Define intN_t types. 909 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 910 // This file is part of the GNU C Library. 911 // 912 // The GNU C Library is free software; you can redistribute it and/or 913 // modify it under the terms of the GNU Lesser General Public 914 // License as published by the Free Software Foundation; either 915 // version 2.1 of the License, or (at your option) any later version. 916 // 917 // The GNU C Library is distributed in the hope that it will be useful, 918 // but WITHOUT ANY WARRANTY; without even the implied warranty of 919 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 920 // Lesser General Public License for more details. 921 // 922 // You should have received a copy of the GNU Lesser General Public 923 // License along with the GNU C Library; if not, see 924 // <https://www.gnu.org/licenses/>. 925 926 // bits/types.h -- definitions of __*_t types underlying *_t types. 927 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 928 // This file is part of the GNU C Library. 929 // 930 // The GNU C Library is free software; you can redistribute it and/or 931 // modify it under the terms of the GNU Lesser General Public 932 // License as published by the Free Software Foundation; either 933 // version 2.1 of the License, or (at your option) any later version. 934 // 935 // The GNU C Library is distributed in the hope that it will be useful, 936 // but WITHOUT ANY WARRANTY; without even the implied warranty of 937 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 938 // Lesser General Public License for more details. 939 // 940 // You should have received a copy of the GNU Lesser General Public 941 // License along with the GNU C Library; if not, see 942 // <https://www.gnu.org/licenses/>. 943 944 // Never include this file directly; use <sys/types.h> instead. 945 946 type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ 947 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ 948 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ 949 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ 950 951 // These were defined by ISO C without the first `_'. 952 type U_int8_t = X__uint8_t /* types.h:158:19 */ 953 type U_int16_t = X__uint16_t /* types.h:159:20 */ 954 type U_int32_t = X__uint32_t /* types.h:160:20 */ 955 type U_int64_t = X__uint64_t /* types.h:161:20 */ 956 957 type Register_t = int32 /* types.h:164:13 */ 958 959 // It also defines `fd_set' and the FD_* macros for `select'. 960 // `fd_set' type and related macros, and `select'/`pselect' declarations. 961 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 962 // This file is part of the GNU C Library. 963 // 964 // The GNU C Library is free software; you can redistribute it and/or 965 // modify it under the terms of the GNU Lesser General Public 966 // License as published by the Free Software Foundation; either 967 // version 2.1 of the License, or (at your option) any later version. 968 // 969 // The GNU C Library is distributed in the hope that it will be useful, 970 // but WITHOUT ANY WARRANTY; without even the implied warranty of 971 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 972 // Lesser General Public License for more details. 973 // 974 // You should have received a copy of the GNU Lesser General Public 975 // License along with the GNU C Library; if not, see 976 // <https://www.gnu.org/licenses/>. 977 978 // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h> 979 980 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 981 // This file is part of the GNU C Library. 982 // 983 // The GNU C Library is free software; you can redistribute it and/or 984 // modify it under the terms of the GNU Lesser General Public 985 // License as published by the Free Software Foundation; either 986 // version 2.1 of the License, or (at your option) any later version. 987 // 988 // The GNU C Library is distributed in the hope that it will be useful, 989 // but WITHOUT ANY WARRANTY; without even the implied warranty of 990 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 991 // Lesser General Public License for more details. 992 // 993 // You should have received a copy of the GNU Lesser General Public 994 // License along with the GNU C Library; if not, see 995 // <https://www.gnu.org/licenses/>. 996 997 // Get definition of needed basic types. 998 // bits/types.h -- definitions of __*_t types underlying *_t types. 999 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1000 // This file is part of the GNU C Library. 1001 // 1002 // The GNU C Library is free software; you can redistribute it and/or 1003 // modify it under the terms of the GNU Lesser General Public 1004 // License as published by the Free Software Foundation; either 1005 // version 2.1 of the License, or (at your option) any later version. 1006 // 1007 // The GNU C Library is distributed in the hope that it will be useful, 1008 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1010 // Lesser General Public License for more details. 1011 // 1012 // You should have received a copy of the GNU Lesser General Public 1013 // License along with the GNU C Library; if not, see 1014 // <https://www.gnu.org/licenses/>. 1015 1016 // Never include this file directly; use <sys/types.h> instead. 1017 1018 // Get __FD_* definitions. 1019 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1020 // This file is part of the GNU C Library. 1021 // 1022 // The GNU C Library is free software; you can redistribute it and/or 1023 // modify it under the terms of the GNU Lesser General Public 1024 // License as published by the Free Software Foundation; either 1025 // version 2.1 of the License, or (at your option) any later version. 1026 // 1027 // The GNU C Library is distributed in the hope that it will be useful, 1028 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1029 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1030 // Lesser General Public License for more details. 1031 // 1032 // You should have received a copy of the GNU Lesser General Public 1033 // License along with the GNU C Library; if not, see 1034 // <https://www.gnu.org/licenses/>. 1035 1036 // Determine the wordsize from the preprocessor defines. 1037 1038 // Get sigset_t. 1039 1040 type X__sigset_t = struct{ F__val [32]uint32 } /* __sigset_t.h:8:3 */ 1041 1042 // A set of signals to be blocked, unblocked, or waited for. 1043 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ 1044 1045 // Get definition of timer specification structures. 1046 1047 // bits/types.h -- definitions of __*_t types underlying *_t types. 1048 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1049 // This file is part of the GNU C Library. 1050 // 1051 // The GNU C Library is free software; you can redistribute it and/or 1052 // modify it under the terms of the GNU Lesser General Public 1053 // License as published by the Free Software Foundation; either 1054 // version 2.1 of the License, or (at your option) any later version. 1055 // 1056 // The GNU C Library is distributed in the hope that it will be useful, 1057 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1058 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1059 // Lesser General Public License for more details. 1060 // 1061 // You should have received a copy of the GNU Lesser General Public 1062 // License along with the GNU C Library; if not, see 1063 // <https://www.gnu.org/licenses/>. 1064 1065 // Never include this file directly; use <sys/types.h> instead. 1066 1067 // A time value that is accurate to the nearest 1068 // 1069 // microsecond but also has a range of years. 1070 type Timeval = struct { 1071 Ftv_sec X__time_t 1072 Ftv_usec X__suseconds_t 1073 } /* struct_timeval.h:8:1 */ 1074 1075 // NB: Include guard matches what <linux/time.h> uses. 1076 1077 // bits/types.h -- definitions of __*_t types underlying *_t types. 1078 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1079 // This file is part of the GNU C Library. 1080 // 1081 // The GNU C Library is free software; you can redistribute it and/or 1082 // modify it under the terms of the GNU Lesser General Public 1083 // License as published by the Free Software Foundation; either 1084 // version 2.1 of the License, or (at your option) any later version. 1085 // 1086 // The GNU C Library is distributed in the hope that it will be useful, 1087 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1088 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1089 // Lesser General Public License for more details. 1090 // 1091 // You should have received a copy of the GNU Lesser General Public 1092 // License along with the GNU C Library; if not, see 1093 // <https://www.gnu.org/licenses/>. 1094 1095 // Never include this file directly; use <sys/types.h> instead. 1096 1097 // Endian macros for string.h functions 1098 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 1099 // This file is part of the GNU C Library. 1100 // 1101 // The GNU C Library is free software; you can redistribute it and/or 1102 // modify it under the terms of the GNU Lesser General Public 1103 // License as published by the Free Software Foundation; either 1104 // version 2.1 of the License, or (at your option) any later version. 1105 // 1106 // The GNU C Library is distributed in the hope that it will be useful, 1107 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1108 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1109 // Lesser General Public License for more details. 1110 // 1111 // You should have received a copy of the GNU Lesser General Public 1112 // License along with the GNU C Library; if not, see 1113 // <http://www.gnu.org/licenses/>. 1114 1115 // POSIX.1b structure for a time value. This is like a `struct timeval' but 1116 // 1117 // has nanoseconds instead of microseconds. 1118 type Timespec = struct { 1119 Ftv_sec X__time_t 1120 Ftv_nsec X__syscall_slong_t 1121 } /* struct_timespec.h:10:1 */ 1122 1123 type Suseconds_t = X__suseconds_t /* select.h:43:23 */ 1124 1125 // The fd_set member is required to be an array of longs. 1126 type X__fd_mask = int32 /* select.h:49:18 */ 1127 1128 // Some versions of <linux/posix_types.h> define this macros. 1129 // It's easier to assume 8-bit bytes than to get CHAR_BIT. 1130 1131 // fd_set for select and pselect. 1132 type Fd_set = struct{ F__fds_bits [32]X__fd_mask } /* select.h:70:5 */ 1133 1134 // Maximum number of file descriptors in `fd_set'. 1135 1136 // Sometimes the fd_set member is assumed to have this type. 1137 type Fd_mask = X__fd_mask /* select.h:77:19 */ 1138 1139 // Define some inlines helping to catch common problems. 1140 1141 type Blksize_t = X__blksize_t /* types.h:185:21 */ 1142 1143 // Types from the Large File Support interface. 1144 type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. 1145 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. 1146 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. 1147 1148 // Now add the thread types. 1149 // Declaration of common pthread types for all architectures. 1150 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1151 // This file is part of the GNU C Library. 1152 // 1153 // The GNU C Library is free software; you can redistribute it and/or 1154 // modify it under the terms of the GNU Lesser General Public 1155 // License as published by the Free Software Foundation; either 1156 // version 2.1 of the License, or (at your option) any later version. 1157 // 1158 // The GNU C Library is distributed in the hope that it will be useful, 1159 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1160 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1161 // Lesser General Public License for more details. 1162 // 1163 // You should have received a copy of the GNU Lesser General Public 1164 // License along with the GNU C Library; if not, see 1165 // <https://www.gnu.org/licenses/>. 1166 1167 // For internal mutex and condition variable definitions. 1168 // Common threading primitives definitions for both POSIX and C11. 1169 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1170 // This file is part of the GNU C Library. 1171 // 1172 // The GNU C Library is free software; you can redistribute it and/or 1173 // modify it under the terms of the GNU Lesser General Public 1174 // License as published by the Free Software Foundation; either 1175 // version 2.1 of the License, or (at your option) any later version. 1176 // 1177 // The GNU C Library is distributed in the hope that it will be useful, 1178 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1179 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1180 // Lesser General Public License for more details. 1181 // 1182 // You should have received a copy of the GNU Lesser General Public 1183 // License along with the GNU C Library; if not, see 1184 // <https://www.gnu.org/licenses/>. 1185 1186 // Arch-specific definitions. Each architecture must define the following 1187 // macros to define the expected sizes of pthread data types: 1188 // 1189 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1190 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1191 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1192 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1193 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1194 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1195 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1196 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1197 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1198 // 1199 // The additional macro defines any constraint for the lock alignment 1200 // inside the thread structures: 1201 // 1202 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1203 // 1204 // Same idea but for the once locking primitive: 1205 // 1206 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1207 1208 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1209 // This file is part of the GNU C Library. 1210 // 1211 // The GNU C Library is free software; you can redistribute it and/or 1212 // modify it under the terms of the GNU Lesser General Public 1213 // License as published by the Free Software Foundation; either 1214 // version 2.1 of the License, or (at your option) any later version. 1215 // 1216 // The GNU C Library is distributed in the hope that it will be useful, 1217 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1218 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1219 // Lesser General Public License for more details. 1220 // 1221 // You should have received a copy of the GNU Lesser General Public 1222 // License along with the GNU C Library; if not, see 1223 // <https://www.gnu.org/licenses/>. 1224 1225 // Determine the wordsize from the preprocessor defines. 1226 1227 // Extra attributes for the cleanup functions. 1228 1229 // Common definition of pthread_mutex_t. 1230 1231 type X__pthread_internal_list = struct { 1232 F__prev uintptr 1233 F__next uintptr 1234 } /* thread-shared-types.h:49:9 */ 1235 1236 // Type to count file system inodes. 1237 1238 // Now add the thread types. 1239 // Declaration of common pthread types for all architectures. 1240 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1241 // This file is part of the GNU C Library. 1242 // 1243 // The GNU C Library is free software; you can redistribute it and/or 1244 // modify it under the terms of the GNU Lesser General Public 1245 // License as published by the Free Software Foundation; either 1246 // version 2.1 of the License, or (at your option) any later version. 1247 // 1248 // The GNU C Library is distributed in the hope that it will be useful, 1249 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1250 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1251 // Lesser General Public License for more details. 1252 // 1253 // You should have received a copy of the GNU Lesser General Public 1254 // License along with the GNU C Library; if not, see 1255 // <https://www.gnu.org/licenses/>. 1256 1257 // For internal mutex and condition variable definitions. 1258 // Common threading primitives definitions for both POSIX and C11. 1259 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1260 // This file is part of the GNU C Library. 1261 // 1262 // The GNU C Library is free software; you can redistribute it and/or 1263 // modify it under the terms of the GNU Lesser General Public 1264 // License as published by the Free Software Foundation; either 1265 // version 2.1 of the License, or (at your option) any later version. 1266 // 1267 // The GNU C Library is distributed in the hope that it will be useful, 1268 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1269 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1270 // Lesser General Public License for more details. 1271 // 1272 // You should have received a copy of the GNU Lesser General Public 1273 // License along with the GNU C Library; if not, see 1274 // <https://www.gnu.org/licenses/>. 1275 1276 // Arch-specific definitions. Each architecture must define the following 1277 // macros to define the expected sizes of pthread data types: 1278 // 1279 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1280 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1281 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1282 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1283 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1284 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1285 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1286 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1287 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1288 // 1289 // The additional macro defines any constraint for the lock alignment 1290 // inside the thread structures: 1291 // 1292 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1293 // 1294 // Same idea but for the once locking primitive: 1295 // 1296 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1297 1298 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1299 // This file is part of the GNU C Library. 1300 // 1301 // The GNU C Library is free software; you can redistribute it and/or 1302 // modify it under the terms of the GNU Lesser General Public 1303 // License as published by the Free Software Foundation; either 1304 // version 2.1 of the License, or (at your option) any later version. 1305 // 1306 // The GNU C Library is distributed in the hope that it will be useful, 1307 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1308 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1309 // Lesser General Public License for more details. 1310 // 1311 // You should have received a copy of the GNU Lesser General Public 1312 // License along with the GNU C Library; if not, see 1313 // <https://www.gnu.org/licenses/>. 1314 1315 // Determine the wordsize from the preprocessor defines. 1316 1317 // Extra attributes for the cleanup functions. 1318 1319 // Common definition of pthread_mutex_t. 1320 1321 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ 1322 1323 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ 1324 1325 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ 1326 1327 // Arch-specific mutex definitions. A generic implementation is provided 1328 // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture 1329 // can override it by defining: 1330 // 1331 // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t 1332 // definition). It should contains at least the internal members 1333 // defined in the generic version. 1334 // 1335 // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with 1336 // atomic operations. 1337 // 1338 // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. 1339 // It should initialize the mutex internal flag. 1340 1341 // x86 internal mutex struct definitions. 1342 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1343 // This file is part of the GNU C Library. 1344 // 1345 // The GNU C Library is free software; you can redistribute it and/or 1346 // modify it under the terms of the GNU Lesser General Public 1347 // License as published by the Free Software Foundation; either 1348 // version 2.1 of the License, or (at your option) any later version. 1349 // 1350 // The GNU C Library is distributed in the hope that it will be useful, 1351 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1352 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1353 // Lesser General Public License for more details. 1354 // 1355 // You should have received a copy of the GNU Lesser General Public 1356 // License along with the GNU C Library; if not, see 1357 // <http://www.gnu.org/licenses/>. 1358 1359 type X__pthread_mutex_s = struct { 1360 F__lock int32 1361 F__count uint32 1362 F__owner int32 1363 F__kind int32 1364 F__nusers uint32 1365 F__20 struct { 1366 F__ccgo_pad1 [0]uint32 1367 F__elision_data struct { 1368 F__espins int16 1369 F__eelision int16 1370 } 1371 } 1372 } /* struct_mutex.h:22:1 */ 1373 1374 // Arch-sepecific read-write lock definitions. A generic implementation is 1375 // provided by struct_rwlock.h. If required, an architecture can override it 1376 // by defining: 1377 // 1378 // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). 1379 // It should contain at least the internal members defined in the 1380 // generic version. 1381 // 1382 // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. 1383 // It should initialize the rwlock internal type. 1384 1385 // x86 internal rwlock struct definitions. 1386 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1387 // 1388 // This file is part of the GNU C Library. 1389 // 1390 // The GNU C Library is free software; you can redistribute it and/or 1391 // modify it under the terms of the GNU Lesser General Public 1392 // License as published by the Free Software Foundation; either 1393 // version 2.1 of the License, or (at your option) any later version. 1394 // 1395 // The GNU C Library is distributed in the hope that it will be useful, 1396 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1397 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1398 // Lesser General Public License for more details. 1399 // 1400 // You should have received a copy of the GNU Lesser General Public 1401 // License along with the GNU C Library; if not, see 1402 // <http://www.gnu.org/licenses/>. 1403 1404 type X__pthread_rwlock_arch_t = struct { 1405 F__readers uint32 1406 F__writers uint32 1407 F__wrphase_futex uint32 1408 F__writers_futex uint32 1409 F__pad3 uint32 1410 F__pad4 uint32 1411 F__flags uint8 1412 F__shared uint8 1413 F__rwelision int8 1414 F__pad2 uint8 1415 F__cur_writer int32 1416 } /* struct_rwlock.h:23:1 */ 1417 1418 // Common definition of pthread_cond_t. 1419 1420 type X__pthread_cond_s = struct { 1421 F__0 struct{ F__wseq uint64 } 1422 F__8 struct{ F__g1_start uint64 } 1423 F__g_refs [2]uint32 1424 F__g_size [2]uint32 1425 F__g1_orig_size uint32 1426 F__wrefs uint32 1427 F__g_signals [2]uint32 1428 } /* thread-shared-types.h:92:1 */ 1429 1430 // Thread identifiers. The structure of the attribute type is not 1431 // 1432 // exposed on purpose. 1433 type Pthread_t = uint32 /* pthreadtypes.h:27:27 */ 1434 1435 // Data structures for mutex handling. The structure of the attribute 1436 // 1437 // type is not exposed on purpose. 1438 type Pthread_mutexattr_t = struct { 1439 F__ccgo_pad1 [0]uint32 1440 F__size [4]int8 1441 } /* pthreadtypes.h:36:3 */ 1442 1443 // Data structure for condition variable handling. The structure of 1444 // 1445 // the attribute type is not exposed on purpose. 1446 type Pthread_condattr_t = struct { 1447 F__ccgo_pad1 [0]uint32 1448 F__size [4]int8 1449 } /* pthreadtypes.h:45:3 */ 1450 1451 // Keys for thread-specific data 1452 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ 1453 1454 // Once-only execution 1455 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ 1456 1457 type Pthread_attr_t1 = struct { 1458 F__ccgo_pad1 [0]uint32 1459 F__size [36]int8 1460 } /* pthreadtypes.h:56:1 */ 1461 1462 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ 1463 1464 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ 1465 1466 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ 1467 1468 // Data structure for reader-writer lock variable handling. The 1469 // 1470 // structure of the attribute type is deliberately not exposed. 1471 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ 1472 1473 type Pthread_rwlockattr_t = struct { 1474 F__ccgo_pad1 [0]uint32 1475 F__size [8]int8 1476 } /* pthreadtypes.h:97:3 */ 1477 1478 // POSIX spinlock data type. 1479 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ 1480 1481 // POSIX barriers data type. The structure of the type is 1482 // 1483 // deliberately not exposed. 1484 type Pthread_barrier_t = struct { 1485 F__ccgo_pad1 [0]uint32 1486 F__size [20]int8 1487 } /* pthreadtypes.h:112:3 */ 1488 1489 type Pthread_barrierattr_t = struct { 1490 F__ccgo_pad1 [0]uint32 1491 F__size [4]int8 1492 } /* pthreadtypes.h:118:3 */ 1493 1494 var _ int8 /* gen.c:2:13: */