pthread_linux_s390x.go (80906B)
1 // Code generated by 'ccgo pthread/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 pthread/pthread_linux_s390x.go -pkgname pthread', DO NOT EDIT. 2 3 package pthread 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 CLOCK_BOOTTIME = 7 19 CLOCK_BOOTTIME_ALARM = 9 20 CLOCK_MONOTONIC = 1 21 CLOCK_MONOTONIC_COARSE = 6 22 CLOCK_MONOTONIC_RAW = 4 23 CLOCK_PROCESS_CPUTIME_ID = 2 24 CLOCK_REALTIME = 0 25 CLOCK_REALTIME_ALARM = 8 26 CLOCK_REALTIME_COARSE = 5 27 CLOCK_TAI = 11 28 CLOCK_THREAD_CPUTIME_ID = 3 29 PTHREAD_BARRIER_SERIAL_THREAD = -1 30 PTHREAD_ONCE_INIT = 0 31 SCHED_FIFO = 1 32 SCHED_OTHER = 0 33 SCHED_RR = 2 34 TIMER_ABSTIME = 1 35 TIME_UTC = 1 36 X_ATFILE_SOURCE = 1 37 X_BITS_CPU_SET_H = 1 38 X_BITS_ENDIANNESS_H = 1 39 X_BITS_ENDIAN_H = 1 40 X_BITS_PTHREADTYPES_ARCH_H = 1 41 X_BITS_PTHREADTYPES_COMMON_H = 1 42 X_BITS_SCHED_H = 1 43 X_BITS_TIME64_H = 1 44 X_BITS_TIME_H = 1 45 X_BITS_TYPESIZES_H = 1 46 X_BITS_TYPES_H = 1 47 X_BITS_TYPES_LOCALE_T_H = 1 48 X_BITS_TYPES_STRUCT_SCHED_PARAM = 1 49 X_BITS_TYPES___LOCALE_T_H = 1 50 X_BSD_SIZE_T_ = 0 51 X_BSD_SIZE_T_DEFINED_ = 0 52 X_DEFAULT_SOURCE = 1 53 X_FEATURES_H = 1 54 X_FILE_OFFSET_BITS = 64 55 X_GCC_SIZE_T = 0 56 X_LP64 = 1 57 X_POSIX_C_SOURCE = 200809 58 X_POSIX_SOURCE = 1 59 X_PTHREAD_H = 1 60 X_RWLOCK_INTERNAL_H = 0 61 X_SCHED_H = 1 62 X_SIZET_ = 0 63 X_SIZE_T = 0 64 X_SIZE_T_ = 0 65 X_SIZE_T_DECLARED = 0 66 X_SIZE_T_DEFINED = 0 67 X_SIZE_T_DEFINED_ = 0 68 X_STDC_PREDEF_H = 1 69 X_STRUCT_TIMESPEC = 1 70 X_SYS_CDEFS_H = 1 71 X_SYS_SIZE_T_H = 0 72 X_THREAD_MUTEX_INTERNAL_H = 1 73 X_THREAD_SHARED_TYPES_H = 1 74 X_TIME_H = 1 75 X_T_SIZE = 0 76 X_T_SIZE_ = 0 77 Linux = 1 78 Unix = 1 79 ) 80 81 // Read-write lock types. 82 const ( /* pthread.h:100:1: */ 83 PTHREAD_RWLOCK_PREFER_READER_NP = 0 84 PTHREAD_RWLOCK_PREFER_WRITER_NP = 1 85 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP = 2 86 PTHREAD_RWLOCK_DEFAULT_NP = 0 87 ) 88 89 // Read-write lock initializers. 90 91 // Scheduler inheritance. 92 const ( /* pthread.h:120:1: */ 93 PTHREAD_INHERIT_SCHED = 0 94 PTHREAD_EXPLICIT_SCHED = 1 95 ) 96 97 // Scope handling. 98 const ( /* pthread.h:130:1: */ 99 PTHREAD_SCOPE_SYSTEM = 0 100 PTHREAD_SCOPE_PROCESS = 1 101 ) 102 103 // Process shared or private flag. 104 const ( /* pthread.h:140:1: */ 105 PTHREAD_PROCESS_PRIVATE = 0 106 PTHREAD_PROCESS_SHARED = 1 107 ) 108 109 // Cancellation 110 const ( /* pthread.h:164:1: */ 111 PTHREAD_CANCEL_ENABLE = 0 112 PTHREAD_CANCEL_DISABLE = 1 113 ) 114 const ( /* pthread.h:171:1: */ 115 PTHREAD_CANCEL_DEFERRED = 0 116 PTHREAD_CANCEL_ASYNCHRONOUS = 1 117 ) 118 119 // Determine the wordsize from the preprocessor defines. 120 121 // NB: Include guard matches what <linux/time.h> uses. 122 123 // Detach state. 124 const ( /* pthread.h:33:1: */ 125 PTHREAD_CREATE_JOINABLE = 0 126 PTHREAD_CREATE_DETACHED = 1 127 ) 128 129 // Mutex types. 130 const ( /* pthread.h:43:1: */ 131 PTHREAD_MUTEX_TIMED_NP = 0 132 PTHREAD_MUTEX_RECURSIVE_NP = 1 133 PTHREAD_MUTEX_ERRORCHECK_NP = 2 134 PTHREAD_MUTEX_ADAPTIVE_NP = 3 135 PTHREAD_MUTEX_NORMAL = 0 136 PTHREAD_MUTEX_RECURSIVE = 1 137 PTHREAD_MUTEX_ERRORCHECK = 2 138 PTHREAD_MUTEX_DEFAULT = 0 139 ) 140 141 // Robust mutex or not flags. 142 const ( /* pthread.h:65:1: */ 143 PTHREAD_MUTEX_STALLED = 0 144 PTHREAD_MUTEX_STALLED_NP = 0 145 PTHREAD_MUTEX_ROBUST = 1 146 PTHREAD_MUTEX_ROBUST_NP = 1 147 ) 148 149 // Mutex protocols. 150 const ( /* pthread.h:77:1: */ 151 PTHREAD_PRIO_NONE = 0 152 PTHREAD_PRIO_INHERIT = 1 153 PTHREAD_PRIO_PROTECT = 2 154 ) 155 156 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 157 158 type Size_t = uint64 /* <builtin>:9:23 */ 159 160 type Wchar_t = int32 /* <builtin>:15:24 */ 161 162 type X__int128_t = struct { 163 Flo int64 164 Fhi int64 165 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 166 type X__uint128_t = struct { 167 Flo uint64 168 Fhi uint64 169 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 170 171 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 172 type X__float128 = float64 /* <builtin>:47:21 */ 173 174 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 175 // This file is part of the GNU C Library. 176 // 177 // The GNU C Library is free software; you can redistribute it and/or 178 // modify it under the terms of the GNU Lesser General Public 179 // License as published by the Free Software Foundation; either 180 // version 2.1 of the License, or (at your option) any later version. 181 // 182 // The GNU C Library is distributed in the hope that it will be useful, 183 // but WITHOUT ANY WARRANTY; without even the implied warranty of 184 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 185 // Lesser General Public License for more details. 186 // 187 // You should have received a copy of the GNU Lesser General Public 188 // License along with the GNU C Library; if not, see 189 // <https://www.gnu.org/licenses/>. 190 191 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 192 // This file is part of the GNU C Library. 193 // 194 // The GNU C Library is free software; you can redistribute it and/or 195 // modify it under the terms of the GNU Lesser General Public 196 // License as published by the Free Software Foundation; either 197 // version 2.1 of the License, or (at your option) any later version. 198 // 199 // The GNU C Library is distributed in the hope that it will be useful, 200 // but WITHOUT ANY WARRANTY; without even the implied warranty of 201 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 202 // Lesser General Public License for more details. 203 // 204 // You should have received a copy of the GNU Lesser General Public 205 // License along with the GNU C Library; if not, see 206 // <https://www.gnu.org/licenses/>. 207 208 // These are defined by the user (or the compiler) 209 // to specify the desired environment: 210 // 211 // __STRICT_ANSI__ ISO Standard C. 212 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 213 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 214 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 215 // __STDC_WANT_LIB_EXT2__ 216 // Extensions to ISO C99 from TR 27431-2:2010. 217 // __STDC_WANT_IEC_60559_BFP_EXT__ 218 // Extensions to ISO C11 from TS 18661-1:2014. 219 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 220 // Extensions to ISO C11 from TS 18661-4:2015. 221 // __STDC_WANT_IEC_60559_TYPES_EXT__ 222 // Extensions to ISO C11 from TS 18661-3:2015. 223 // 224 // _POSIX_SOURCE IEEE Std 1003.1. 225 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 226 // if >=199309L, add IEEE Std 1003.1b-1993; 227 // if >=199506L, add IEEE Std 1003.1c-1995; 228 // if >=200112L, all of IEEE 1003.1-2004 229 // if >=200809L, all of IEEE 1003.1-2008 230 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 231 // Single Unix conformance is wanted, to 600 for the 232 // sixth revision, to 700 for the seventh revision. 233 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 234 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 235 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 236 // _FILE_OFFSET_BITS=N Select default filesystem interface. 237 // _ATFILE_SOURCE Additional *at interfaces. 238 // _GNU_SOURCE All of the above, plus GNU extensions. 239 // _DEFAULT_SOURCE The default set of features (taking precedence over 240 // __STRICT_ANSI__). 241 // 242 // _FORTIFY_SOURCE Add security hardening to many library functions. 243 // Set to 1 or 2; 2 performs stricter checks than 1. 244 // 245 // _REENTRANT, _THREAD_SAFE 246 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 247 // 248 // The `-ansi' switch to the GNU C compiler, and standards conformance 249 // options such as `-std=c99', define __STRICT_ANSI__. If none of 250 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 251 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 252 // 200809L, as well as enabling miscellaneous functions from BSD and 253 // SVID. If more than one of these are defined, they accumulate. For 254 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 255 // give you ISO C, 1003.1, and 1003.2, but nothing else. 256 // 257 // These are defined by this file and are used by the 258 // header files to decide what to declare or define: 259 // 260 // __GLIBC_USE (F) Define things from feature set F. This is defined 261 // to 1 or 0; the subsequent macros are either defined 262 // or undefined, and those tests should be moved to 263 // __GLIBC_USE. 264 // __USE_ISOC11 Define ISO C11 things. 265 // __USE_ISOC99 Define ISO C99 things. 266 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 267 // __USE_ISOCXX11 Define ISO C++11 things. 268 // __USE_POSIX Define IEEE Std 1003.1 things. 269 // __USE_POSIX2 Define IEEE Std 1003.2 things. 270 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 271 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 272 // __USE_XOPEN Define XPG things. 273 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 274 // __USE_UNIX98 Define Single Unix V2 things. 275 // __USE_XOPEN2K Define XPG6 things. 276 // __USE_XOPEN2KXSI Define XPG6 XSI things. 277 // __USE_XOPEN2K8 Define XPG7 things. 278 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 279 // __USE_LARGEFILE Define correct standard I/O things. 280 // __USE_LARGEFILE64 Define LFS things with separate names. 281 // __USE_FILE_OFFSET64 Define 64bit interface as default. 282 // __USE_MISC Define things from 4.3BSD or System V Unix. 283 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 284 // __USE_GNU Define GNU extensions. 285 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 286 // 287 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 288 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 289 // only for compatibility. All new code should use the other symbols 290 // to test for features. 291 // 292 // All macros listed above as possibly being defined by this file are 293 // explicitly undefined if they are not explicitly defined. 294 // Feature-test macros that are not defined by the user or compiler 295 // but are implied by the other feature-test macros defined (or by the 296 // lack of any definitions) are defined by the file. 297 // 298 // ISO C feature test macros depend on the definition of the macro 299 // when an affected header is included, not when the first system 300 // header is included, and so they are handled in 301 // <bits/libc-header-start.h>, which does not have a multiple include 302 // guard. Feature test macros that can be handled from the first 303 // system header included are handled here. 304 305 // Undefine everything, so we get a clean slate. 306 307 // Suppress kernel-name space pollution unless user expressedly asks 308 // for it. 309 310 // Convenience macro to test the version of gcc. 311 // Use like this: 312 // #if __GNUC_PREREQ (2,8) 313 // ... code requiring gcc 2.8 or later ... 314 // #endif 315 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 316 // added in 2.0. 317 318 // Similarly for clang. Features added to GCC after version 4.2 may 319 // or may not also be available in clang, and clang's definitions of 320 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 321 // features can be queried via __has_extension/__has_feature. 322 323 // Whether to use feature set F. 324 325 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 326 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 327 // issue a warning; the expectation is that the source is being 328 // transitioned to use the new macro. 329 330 // If _GNU_SOURCE was defined by the user, turn on all the other features. 331 332 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 333 // define _DEFAULT_SOURCE. 334 335 // This is to enable the ISO C2X extension. 336 337 // This is to enable the ISO C11 extension. 338 339 // This is to enable the ISO C99 extension. 340 341 // This is to enable the ISO C90 Amendment 1:1995 extension. 342 343 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 344 // is defined, use POSIX.1-2008 (or another version depending on 345 // _XOPEN_SOURCE). 346 347 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 348 // defined in all multithreaded code. GNU libc has not required this 349 // for many years. We now treat them as compatibility synonyms for 350 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 351 // comprehensive support for multithreaded code. Using them never 352 // lowers the selected level of POSIX conformance, only raises it. 353 354 // The function 'gets' existed in C89, but is impossible to use 355 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 356 // compatibility with various implementations of <cstdio>, this test 357 // must consider only the value of __cplusplus when compiling C++. 358 359 // GNU formerly extended the scanf functions with modified format 360 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 361 // input using malloc. This extension conflicts with ISO C99, which 362 // defines %a as a standalone format specifier that reads a floating- 363 // point number; moreover, POSIX.1-2008 provides the same feature 364 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 365 // 366 // We now follow C99 unless GNU extensions are active and the compiler 367 // is specifically in C89 or C++98 mode (strict or not). For 368 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 369 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 370 // old extension. 371 372 // Get definitions of __STDC_* predefined macros, if the compiler has 373 // not preincluded this header automatically. 374 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 375 // This file is part of the GNU C Library. 376 // 377 // The GNU C Library is free software; you can redistribute it and/or 378 // modify it under the terms of the GNU Lesser General Public 379 // License as published by the Free Software Foundation; either 380 // version 2.1 of the License, or (at your option) any later version. 381 // 382 // The GNU C Library is distributed in the hope that it will be useful, 383 // but WITHOUT ANY WARRANTY; without even the implied warranty of 384 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 385 // Lesser General Public License for more details. 386 // 387 // You should have received a copy of the GNU Lesser General Public 388 // License along with the GNU C Library; if not, see 389 // <https://www.gnu.org/licenses/>. 390 391 // This macro indicates that the installed library is the GNU C Library. 392 // For historic reasons the value now is 6 and this will stay from now 393 // on. The use of this variable is deprecated. Use __GLIBC__ and 394 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 395 // GNU C library version and use the values in <gnu/lib-names.h> to get 396 // the sonames of the shared libraries. 397 398 // Major and minor version number of the GNU C library package. Use 399 // these macros to test for features in specific releases. 400 401 // This is here only because every header file already includes this one. 402 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 403 // This file is part of the GNU C Library. 404 // 405 // The GNU C Library is free software; you can redistribute it and/or 406 // modify it under the terms of the GNU Lesser General Public 407 // License as published by the Free Software Foundation; either 408 // version 2.1 of the License, or (at your option) any later version. 409 // 410 // The GNU C Library is distributed in the hope that it will be useful, 411 // but WITHOUT ANY WARRANTY; without even the implied warranty of 412 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 413 // Lesser General Public License for more details. 414 // 415 // You should have received a copy of the GNU Lesser General Public 416 // License along with the GNU C Library; if not, see 417 // <https://www.gnu.org/licenses/>. 418 419 // We are almost always included from features.h. 420 421 // The GNU libc does not support any K&R compilers or the traditional mode 422 // of ISO C compilers anymore. Check for some of the combinations not 423 // anymore supported. 424 425 // Some user header file might have defined this before. 426 427 // All functions, except those with callbacks or those that 428 // synchronize memory, are leaf functions. 429 430 // GCC can always grok prototypes. For C++ programs we add throw() 431 // to help it optimize the function calls. But this works only with 432 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 433 // as non-throwing using a function attribute since programs can use 434 // the -fexceptions options for C code as well. 435 436 // Compilers that are not clang may object to 437 // #if defined __clang__ && __has_extension(...) 438 // even though they do not need to evaluate the right-hand side of the &&. 439 440 // These two macros are not used in glibc anymore. They are kept here 441 // only because some other projects expect the macros to be defined. 442 443 // For these things, GCC behaves the ANSI way normally, 444 // and the non-ANSI way under -traditional. 445 446 // This is not a typedef so `const __ptr_t' does the right thing. 447 448 // C++ needs to know that types and declarations are C, not C++. 449 450 // Fortify support. 451 452 // Support for flexible arrays. 453 // Headers that should use flexible arrays only if they're "real" 454 // (e.g. only if they won't affect sizeof()) should test 455 // #if __glibc_c99_flexarr_available. 456 457 // __asm__ ("xyz") is used throughout the headers to rename functions 458 // at the assembly language level. This is wrapped by the __REDIRECT 459 // macro, in order to support compilers that can do this some other 460 // way. When compilers don't support asm-names at all, we have to do 461 // preprocessor tricks instead (which don't have exactly the right 462 // semantics, but it's the best we can do). 463 // 464 // Example: 465 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 466 467 // 468 // #elif __SOME_OTHER_COMPILER__ 469 // 470 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 471 472 // GCC has various useful declarations that can be made with the 473 // `__attribute__' syntax. All of the ways we use this do fine if 474 // they are omitted for compilers that don't understand it. 475 476 // At some point during the gcc 2.96 development the `malloc' attribute 477 // for functions was introduced. We don't want to use it unconditionally 478 // (although this would be possible) since it generates warnings. 479 480 // Tell the compiler which arguments to an allocation function 481 // indicate the size of the allocation. 482 483 // At some point during the gcc 2.96 development the `pure' attribute 484 // for functions was introduced. We don't want to use it unconditionally 485 // (although this would be possible) since it generates warnings. 486 487 // This declaration tells the compiler that the value is constant. 488 489 // At some point during the gcc 3.1 development the `used' attribute 490 // for functions was introduced. We don't want to use it unconditionally 491 // (although this would be possible) since it generates warnings. 492 493 // Since version 3.2, gcc allows marking deprecated functions. 494 495 // Since version 4.5, gcc also allows one to specify the message printed 496 // when a deprecated function is used. clang claims to be gcc 4.2, but 497 // may also support this feature. 498 499 // At some point during the gcc 2.8 development the `format_arg' attribute 500 // for functions was introduced. We don't want to use it unconditionally 501 // (although this would be possible) since it generates warnings. 502 // If several `format_arg' attributes are given for the same function, in 503 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 504 // all designated arguments are considered. 505 506 // At some point during the gcc 2.97 development the `strfmon' format 507 // attribute for functions was introduced. We don't want to use it 508 // unconditionally (although this would be possible) since it 509 // generates warnings. 510 511 // The nonull function attribute allows to mark pointer parameters which 512 // must not be NULL. 513 514 // If fortification mode, we warn about unused results of certain 515 // function calls which can lead to problems. 516 517 // Forces a function to be always inlined. 518 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 519 // it conflicts with this definition. Therefore undefine it first to 520 // allow either header to be included first. 521 522 // Associate error messages with the source location of the call site rather 523 // than with the source location inside the function. 524 525 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 526 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 527 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 528 // older than 4.3 may define these macros and still not guarantee GNU inlining 529 // semantics. 530 // 531 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 532 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 533 // __GNUC_GNU_INLINE__ macro definitions. 534 535 // GCC 4.3 and above allow passing all anonymous arguments of an 536 // __extern_always_inline function to some other vararg function. 537 538 // It is possible to compile containing GCC extensions even if GCC is 539 // run in pedantic mode if the uses are carefully marked using the 540 // `__extension__' keyword. But this is not generally available before 541 // version 2.8. 542 543 // __restrict is known in EGCS 1.2 and above. 544 545 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 546 // array_name[restrict] 547 // GCC 3.1 supports this. 548 549 // Describes a char array whose address can safely be passed as the first 550 // argument to strncpy and strncat, as the char array is not necessarily 551 // a NUL-terminated string. 552 553 // Undefine (also defined in libc-symbols.h). 554 // Copies attributes from the declaration or type referenced by 555 // the argument. 556 557 // Determine the wordsize from the preprocessor defines. 558 559 // Properties of long double type. ldbl-opt version. 560 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 561 // This file is part of the GNU C Library. 562 // 563 // The GNU C Library is free software; you can redistribute it and/or 564 // modify it under the terms of the GNU Lesser General Public 565 // License published by the Free Software Foundation; either 566 // version 2.1 of the License, or (at your option) any later version. 567 // 568 // The GNU C Library is distributed in the hope that it will be useful, 569 // but WITHOUT ANY WARRANTY; without even the implied warranty of 570 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 571 // Lesser General Public License for more details. 572 // 573 // You should have received a copy of the GNU Lesser General Public 574 // License along with the GNU C Library; if not, see 575 // <https://www.gnu.org/licenses/>. 576 577 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 578 // intended for use in preprocessor macros. 579 // 580 // Note: MESSAGE must be a _single_ string; concatenation of string 581 // literals is not supported. 582 583 // Generic selection (ISO C11) is a C-only feature, available in GCC 584 // since version 4.9. Previous versions do not provide generic 585 // selection, even though they might set __STDC_VERSION__ to 201112L, 586 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 587 // when testing __STDC_VERSION__ for generic selection support. 588 // On the other hand, Clang also defines __GNUC__, so a clang-specific 589 // check is required to enable the use of generic selection. 590 591 // If we don't have __REDIRECT, prototypes will be missing if 592 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 593 594 // Decide whether we can define 'extern inline' functions in headers. 595 596 // This is here only because every header file already includes this one. 597 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 598 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 599 // that will always return failure (and set errno to ENOSYS). 600 // This file is automatically generated. 601 // This file selects the right generated file of `__stub_FUNCTION' macros 602 // based on the architecture being compiled for. 603 604 // Determine the wordsize from the preprocessor defines. 605 606 // This file is automatically generated. 607 // It defines a symbol `__stub_FUNCTION' for each function 608 // in the C library which is a stub, meaning it will fail 609 // every time called, usually setting errno to ENOSYS. 610 611 // Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface. 612 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 613 // This file is part of the GNU C Library. 614 // 615 // The GNU C Library is free software; you can redistribute it and/or 616 // modify it under the terms of the GNU Lesser General Public 617 // License as published by the Free Software Foundation; either 618 // version 2.1 of the License, or (at your option) any later version. 619 // 620 // The GNU C Library is distributed in the hope that it will be useful, 621 // but WITHOUT ANY WARRANTY; without even the implied warranty of 622 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 623 // Lesser General Public License for more details. 624 // 625 // You should have received a copy of the GNU Lesser General Public 626 // License along with the GNU C Library; if not, see 627 // <https://www.gnu.org/licenses/>. 628 629 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 630 // This file is part of the GNU C Library. 631 // 632 // The GNU C Library is free software; you can redistribute it and/or 633 // modify it under the terms of the GNU Lesser General Public 634 // License as published by the Free Software Foundation; either 635 // version 2.1 of the License, or (at your option) any later version. 636 // 637 // The GNU C Library is distributed in the hope that it will be useful, 638 // but WITHOUT ANY WARRANTY; without even the implied warranty of 639 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 640 // Lesser General Public License for more details. 641 // 642 // You should have received a copy of the GNU Lesser General Public 643 // License along with the GNU C Library; if not, see 644 // <https://www.gnu.org/licenses/>. 645 646 // Get type definitions. 647 // bits/types.h -- definitions of __*_t types underlying *_t types. 648 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 649 // This file is part of the GNU C Library. 650 // 651 // The GNU C Library is free software; you can redistribute it and/or 652 // modify it under the terms of the GNU Lesser General Public 653 // License as published by the Free Software Foundation; either 654 // version 2.1 of the License, or (at your option) any later version. 655 // 656 // The GNU C Library is distributed in the hope that it will be useful, 657 // but WITHOUT ANY WARRANTY; without even the implied warranty of 658 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 659 // Lesser General Public License for more details. 660 // 661 // You should have received a copy of the GNU Lesser General Public 662 // License along with the GNU C Library; if not, see 663 // <https://www.gnu.org/licenses/>. 664 665 // Never include this file directly; use <sys/types.h> instead. 666 667 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 668 // This file is part of the GNU C Library. 669 // 670 // The GNU C Library is free software; you can redistribute it and/or 671 // modify it under the terms of the GNU Lesser General Public 672 // License as published by the Free Software Foundation; either 673 // version 2.1 of the License, or (at your option) any later version. 674 // 675 // The GNU C Library is distributed in the hope that it will be useful, 676 // but WITHOUT ANY WARRANTY; without even the implied warranty of 677 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 678 // Lesser General Public License for more details. 679 // 680 // You should have received a copy of the GNU Lesser General Public 681 // License along with the GNU C Library; if not, see 682 // <https://www.gnu.org/licenses/>. 683 684 // Determine the wordsize from the preprocessor defines. 685 686 // Bit size of the time_t type at glibc build time, general case. 687 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 688 // This file is part of the GNU C Library. 689 // 690 // The GNU C Library is free software; you can redistribute it and/or 691 // modify it under the terms of the GNU Lesser General Public 692 // License as published by the Free Software Foundation; either 693 // version 2.1 of the License, or (at your option) any later version. 694 // 695 // The GNU C Library is distributed in the hope that it will be useful, 696 // but WITHOUT ANY WARRANTY; without even the implied warranty of 697 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 698 // Lesser General Public License for more details. 699 // 700 // You should have received a copy of the GNU Lesser General Public 701 // License along with the GNU C Library; if not, see 702 // <https://www.gnu.org/licenses/>. 703 704 // Determine the wordsize from the preprocessor defines. 705 706 // Size in bits of the 'time_t' type of the default ABI. 707 708 // Convenience types. 709 type X__u_char = uint8 /* types.h:31:23 */ 710 type X__u_short = uint16 /* types.h:32:28 */ 711 type X__u_int = uint32 /* types.h:33:22 */ 712 type X__u_long = uint64 /* types.h:34:27 */ 713 714 // Fixed-size types, underlying types depend on word size and compiler. 715 type X__int8_t = int8 /* types.h:37:21 */ 716 type X__uint8_t = uint8 /* types.h:38:23 */ 717 type X__int16_t = int16 /* types.h:39:26 */ 718 type X__uint16_t = uint16 /* types.h:40:28 */ 719 type X__int32_t = int32 /* types.h:41:20 */ 720 type X__uint32_t = uint32 /* types.h:42:22 */ 721 type X__int64_t = int64 /* types.h:44:25 */ 722 type X__uint64_t = uint64 /* types.h:45:27 */ 723 724 // Smallest types with at least a given width. 725 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 726 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 727 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 728 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 729 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 730 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 731 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 732 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 733 734 // quad_t is also 64 bits. 735 type X__quad_t = int64 /* types.h:63:18 */ 736 type X__u_quad_t = uint64 /* types.h:64:27 */ 737 738 // Largest integral types. 739 type X__intmax_t = int64 /* types.h:72:18 */ 740 type X__uintmax_t = uint64 /* types.h:73:27 */ 741 742 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 743 // macros for each of the OS types we define below. The definitions 744 // of those macros must use the following macros for underlying types. 745 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 746 // variants of each of the following integer types on this machine. 747 // 748 // 16 -- "natural" 16-bit type (always short) 749 // 32 -- "natural" 32-bit type (always int) 750 // 64 -- "natural" 64-bit type (long or long long) 751 // LONG32 -- 32-bit type, traditionally long 752 // QUAD -- 64-bit type, traditionally long long 753 // WORD -- natural type of __WORDSIZE bits (int or long) 754 // LONGWORD -- type of __WORDSIZE bits, traditionally long 755 // 756 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 757 // conventional uses of `long' or `long long' type modifiers match the 758 // types we define, even when a less-adorned type would be the same size. 759 // This matters for (somewhat) portably writing printf/scanf formats for 760 // these types, where using the appropriate l or ll format modifiers can 761 // make the typedefs and the formats match up across all GNU platforms. If 762 // we used `long' when it's 64 bits where `long long' is expected, then the 763 // compiler would warn about the formats not matching the argument types, 764 // and the programmer changing them to shut up the compiler would break the 765 // program's portability. 766 // 767 // Here we assume what is presently the case in all the GCC configurations 768 // we support: long long is always 64 bits, long is always word/address size, 769 // and int is always 32 bits. 770 771 // No need to mark the typedef with __extension__. 772 // bits/typesizes.h -- underlying types for *_t. Linux/s390 version. 773 // Copyright (C) 2003-2020 Free Software Foundation, Inc. 774 // This file is part of the GNU C Library. 775 // 776 // The GNU C Library is free software; you can redistribute it and/or 777 // modify it under the terms of the GNU Lesser General Public 778 // License as published by the Free Software Foundation; either 779 // version 2.1 of the License, or (at your option) any later version. 780 // 781 // The GNU C Library is distributed in the hope that it will be useful, 782 // but WITHOUT ANY WARRANTY; without even the implied warranty of 783 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 784 // Lesser General Public License for more details. 785 // 786 // You should have received a copy of the GNU Lesser General Public 787 // License along with the GNU C Library; if not, see 788 // <https://www.gnu.org/licenses/>. 789 790 // See <bits/types.h> for the meaning of these macros. This file exists so 791 // that <bits/types.h> need not vary across different GNU platforms. 792 793 // size_t is unsigned long int on s390 -m31. 794 795 // Tell the libc code that off_t and off64_t are actually the same type 796 // for all ABI purposes, even if possibly expressed as different base types 797 // for C type-checking purposes. 798 799 // Same for ino_t and ino64_t. 800 801 // And for __rlim_t and __rlim64_t. 802 803 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 804 805 // Number of descriptors that can fit in an `fd_set'. 806 807 // bits/time64.h -- underlying types for __time64_t. Generic version. 808 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 809 // This file is part of the GNU C Library. 810 // 811 // The GNU C Library is free software; you can redistribute it and/or 812 // modify it under the terms of the GNU Lesser General Public 813 // License as published by the Free Software Foundation; either 814 // version 2.1 of the License, or (at your option) any later version. 815 // 816 // The GNU C Library is distributed in the hope that it will be useful, 817 // but WITHOUT ANY WARRANTY; without even the implied warranty of 818 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 819 // Lesser General Public License for more details. 820 // 821 // You should have received a copy of the GNU Lesser General Public 822 // License along with the GNU C Library; if not, see 823 // <https://www.gnu.org/licenses/>. 824 825 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 826 827 // If we already have 64-bit time type then use it. 828 829 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 830 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 831 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 832 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 833 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 834 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 835 type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. 836 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 837 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 838 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 839 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 840 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 841 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 842 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 843 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 844 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 845 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 846 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 847 848 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 849 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 850 851 // Clock ID used in clock and timer functions. 852 type X__clockid_t = int32 /* types.h:168:29 */ 853 854 // Timer ID returned by `timer_create'. 855 type X__timer_t = uintptr /* types.h:171:12 */ 856 857 // Type to represent block size. 858 type X__blksize_t = int64 /* types.h:174:29 */ 859 860 // Types from the Large File Support interface. 861 862 // Type to count number of disk blocks. 863 type X__blkcnt_t = int64 /* types.h:179:28 */ 864 type X__blkcnt64_t = int64 /* types.h:180:30 */ 865 866 // Type to count file system blocks. 867 type X__fsblkcnt_t = uint64 /* types.h:183:30 */ 868 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ 869 870 // Type to count file system nodes. 871 type X__fsfilcnt_t = uint64 /* types.h:187:30 */ 872 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ 873 874 // Type of miscellaneous file system fields. 875 type X__fsword_t = int64 /* types.h:191:28 */ 876 877 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. 878 879 // Signed long type used in system calls. 880 type X__syscall_slong_t = int64 /* types.h:196:33 */ 881 // Unsigned long type used in system calls. 882 type X__syscall_ulong_t = uint64 /* types.h:198:33 */ 883 884 // These few don't really vary by system, they always correspond 885 // 886 // to one of the other defined types. 887 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 888 type X__caddr_t = uintptr /* types.h:203:14 */ 889 890 // Duplicates info from stdint.h but this is used in unistd.h. 891 type X__intptr_t = int64 /* types.h:206:25 */ 892 893 // Duplicate info from sys/socket.h. 894 type X__socklen_t = uint32 /* types.h:209:23 */ 895 896 // C99: An integer type that can be accessed as an atomic entity, 897 // 898 // even in the presence of asynchronous interrupts. 899 // It is not currently necessary for this to be machine-specific. 900 type X__sig_atomic_t = int32 /* types.h:214:13 */ 901 902 // Wide character type. 903 // Locale-writers should change this as necessary to 904 // be big enough to hold unique values not between 0 and 127, 905 // and not (wchar_t) -1, for each defined multibyte character. 906 907 // Define this type if we are doing the whole job, 908 // or if we want this type in particular. 909 910 // A null pointer constant. 911 912 // bits/types.h -- definitions of __*_t types underlying *_t types. 913 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 914 // This file is part of the GNU C Library. 915 // 916 // The GNU C Library is free software; you can redistribute it and/or 917 // modify it under the terms of the GNU Lesser General Public 918 // License as published by the Free Software Foundation; either 919 // version 2.1 of the License, or (at your option) any later version. 920 // 921 // The GNU C Library is distributed in the hope that it will be useful, 922 // but WITHOUT ANY WARRANTY; without even the implied warranty of 923 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 924 // Lesser General Public License for more details. 925 // 926 // You should have received a copy of the GNU Lesser General Public 927 // License along with the GNU C Library; if not, see 928 // <https://www.gnu.org/licenses/>. 929 930 // Never include this file directly; use <sys/types.h> instead. 931 932 // Returned by `time'. 933 type Time_t = X__time_t /* time_t.h:7:18 */ 934 935 // NB: Include guard matches what <linux/time.h> uses. 936 937 // bits/types.h -- definitions of __*_t types underlying *_t types. 938 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 939 // This file is part of the GNU C Library. 940 // 941 // The GNU C Library is free software; you can redistribute it and/or 942 // modify it under the terms of the GNU Lesser General Public 943 // License as published by the Free Software Foundation; either 944 // version 2.1 of the License, or (at your option) any later version. 945 // 946 // The GNU C Library is distributed in the hope that it will be useful, 947 // but WITHOUT ANY WARRANTY; without even the implied warranty of 948 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 949 // Lesser General Public License for more details. 950 // 951 // You should have received a copy of the GNU Lesser General Public 952 // License along with the GNU C Library; if not, see 953 // <https://www.gnu.org/licenses/>. 954 955 // Never include this file directly; use <sys/types.h> instead. 956 957 // Endian macros for string.h functions 958 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 959 // This file is part of the GNU C Library. 960 // 961 // The GNU C Library is free software; you can redistribute it and/or 962 // modify it under the terms of the GNU Lesser General Public 963 // License as published by the Free Software Foundation; either 964 // version 2.1 of the License, or (at your option) any later version. 965 // 966 // The GNU C Library is distributed in the hope that it will be useful, 967 // but WITHOUT ANY WARRANTY; without even the implied warranty of 968 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 969 // Lesser General Public License for more details. 970 // 971 // You should have received a copy of the GNU Lesser General Public 972 // License along with the GNU C Library; if not, see 973 // <http://www.gnu.org/licenses/>. 974 975 // Definitions for byte order, according to significance of bytes, 976 // from low addresses to high addresses. The value is what you get by 977 // putting '4' in the most significant byte, '3' in the second most 978 // significant byte, '2' in the second least significant byte, and '1' 979 // in the least significant byte, and then writing down one digit for 980 // each byte, starting with the byte at the lowest address at the left, 981 // and proceeding to the byte with the highest address at the right. 982 983 // This file defines `__BYTE_ORDER' for the particular machine. 984 985 // S/390 is big-endian. 986 987 // Some machines may need to use a different endianness for floating point 988 // values. 989 990 // POSIX.1b structure for a time value. This is like a `struct timeval' but 991 // 992 // has nanoseconds instead of microseconds. 993 type Timespec = struct { 994 Ftv_sec X__time_t 995 Ftv_nsec X__syscall_slong_t 996 } /* struct_timespec.h:10:1 */ 997 998 type Pid_t = X__pid_t /* sched.h:38:17 */ 999 1000 // Get system specific constant and data structure definitions. 1001 // Definitions of constants and data structure for POSIX 1003.1b-1993 1002 // scheduling interface. 1003 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 1004 // This file is part of the GNU C Library. 1005 // 1006 // The GNU C Library is free software; you can redistribute it and/or 1007 // modify it under the terms of the GNU Lesser General Public 1008 // License as published by the Free Software Foundation; either 1009 // version 2.1 of the License, or (at your option) any later version. 1010 // 1011 // The GNU C Library is distributed in the hope that it will be useful, 1012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1014 // Lesser General Public License for more details. 1015 // 1016 // You should have received a copy of the GNU Lesser General Public 1017 // License along with the GNU C Library; if not, see 1018 // <https://www.gnu.org/licenses/>. 1019 1020 // Scheduling algorithms. 1021 1022 // Sched parameter structure. Generic version. 1023 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 1024 // This file is part of the GNU C Library. 1025 // 1026 // The GNU C Library is free software; you can redistribute it and/or 1027 // modify it under the terms of the GNU Lesser General Public 1028 // License as published by the Free Software Foundation; either 1029 // version 2.1 of the License, or (at your option) any later version. 1030 // 1031 // The GNU C Library is distributed in the hope that it will be useful, 1032 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1033 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1034 // Lesser General Public License for more details. 1035 // 1036 // You should have received a copy of the GNU Lesser General Public 1037 // License along with the GNU C Library; if not, see 1038 // <https://www.gnu.org/licenses/>. 1039 1040 // Data structure to describe a process' schedulability. 1041 type Sched_param = struct{ Fsched_priority int32 } /* struct_sched_param.h:23:1 */ 1042 1043 // Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993 1044 // scheduling interface. 1045 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 1046 // This file is part of the GNU C Library. 1047 // 1048 // The GNU C Library is free software; you can redistribute it and/or 1049 // modify it under the terms of the GNU Lesser General Public 1050 // License as published by the Free Software Foundation; either 1051 // version 2.1 of the License, or (at your option) any later version. 1052 // 1053 // The GNU C Library is distributed in the hope that it will be useful, 1054 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1055 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1056 // Lesser General Public License for more details. 1057 // 1058 // You should have received a copy of the GNU Lesser General Public 1059 // License along with the GNU C Library; if not, see 1060 // <https://www.gnu.org/licenses/>. 1061 1062 // Size definition for CPU sets. 1063 1064 // Type for array elements in 'cpu_set_t'. 1065 type X__cpu_mask = uint64 /* cpu-set.h:32:25 */ 1066 1067 // Basic access functions. 1068 1069 // Data structure to describe CPU mask. 1070 type Cpu_set_t = struct{ F__bits [16]X__cpu_mask } /* cpu-set.h:42:3 */ 1071 1072 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1073 // This file is part of the GNU C Library. 1074 // 1075 // The GNU C Library is free software; you can redistribute it and/or 1076 // modify it under the terms of the GNU Lesser General Public 1077 // License as published by the Free Software Foundation; either 1078 // version 2.1 of the License, or (at your option) any later version. 1079 // 1080 // The GNU C Library is distributed in the hope that it will be useful, 1081 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1082 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1083 // Lesser General Public License for more details. 1084 // 1085 // You should have received a copy of the GNU Lesser General Public 1086 // License along with the GNU C Library; if not, see 1087 // <https://www.gnu.org/licenses/>. 1088 1089 // ISO C99 Standard: 7.23 Date and time <time.h> 1090 1091 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1092 // This file is part of the GNU C Library. 1093 // 1094 // The GNU C Library is free software; you can redistribute it and/or 1095 // modify it under the terms of the GNU Lesser General Public 1096 // License as published by the Free Software Foundation; either 1097 // version 2.1 of the License, or (at your option) any later version. 1098 // 1099 // The GNU C Library is distributed in the hope that it will be useful, 1100 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1101 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1102 // Lesser General Public License for more details. 1103 // 1104 // You should have received a copy of the GNU Lesser General Public 1105 // License along with the GNU C Library; if not, see 1106 // <https://www.gnu.org/licenses/>. 1107 1108 // Copyright (C) 1989-2020 Free Software Foundation, Inc. 1109 // 1110 // This file is part of GCC. 1111 // 1112 // GCC is free software; you can redistribute it and/or modify 1113 // it under the terms of the GNU General Public License as published by 1114 // the Free Software Foundation; either version 3, or (at your option) 1115 // any later version. 1116 // 1117 // GCC is distributed in the hope that it will be useful, 1118 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1119 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1120 // GNU General Public License for more details. 1121 // 1122 // Under Section 7 of GPL version 3, you are granted additional 1123 // permissions described in the GCC Runtime Library Exception, version 1124 // 3.1, as published by the Free Software Foundation. 1125 // 1126 // You should have received a copy of the GNU General Public License and 1127 // a copy of the GCC Runtime Library Exception along with this program; 1128 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 1129 // <http://www.gnu.org/licenses/>. 1130 1131 // ISO C Standard: 7.17 Common definitions <stddef.h> 1132 1133 // Any one of these symbols __need_* means that GNU libc 1134 // wants us just to define one data type. So don't define 1135 // the symbols that indicate this file's entire job has been done. 1136 1137 // This avoids lossage on SunOS but only if stdtypes.h comes first. 1138 // There's no way to win with the other order! Sun lossage. 1139 1140 // Sequent's header files use _PTRDIFF_T_ in some conflicting way. 1141 // Just ignore it. 1142 1143 // On VxWorks, <type/vxTypesBase.h> may have defined macros like 1144 // _TYPE_size_t which will typedef size_t. fixincludes patched the 1145 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is 1146 // not defined, and so that defining this macro defines _GCC_SIZE_T. 1147 // If we find that the macros are still defined at this point, we must 1148 // invoke them so that the type is defined as expected. 1149 1150 // In case nobody has defined these types, but we aren't running under 1151 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and 1152 // __WCHAR_TYPE__ have reasonable values. This can happen if the 1153 // parts of GCC is compiled by an older compiler, that actually 1154 // include gstddef.h, such as collect2. 1155 1156 // Signed type of difference of two pointers. 1157 1158 // Define this type if we are doing the whole job, 1159 // or if we want this type in particular. 1160 1161 // Unsigned type of `sizeof' something. 1162 1163 // Define this type if we are doing the whole job, 1164 // or if we want this type in particular. 1165 1166 // Wide character type. 1167 // Locale-writers should change this as necessary to 1168 // be big enough to hold unique values not between 0 and 127, 1169 // and not (wchar_t) -1, for each defined multibyte character. 1170 1171 // Define this type if we are doing the whole job, 1172 // or if we want this type in particular. 1173 1174 // A null pointer constant. 1175 1176 // This defines CLOCKS_PER_SEC, which is the number of processor clock 1177 // ticks per second, and possibly a number of other constants. 1178 // System-dependent timing definitions. Linux version. 1179 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 1180 // This file is part of the GNU C Library. 1181 // 1182 // The GNU C Library is free software; you can redistribute it and/or 1183 // modify it under the terms of the GNU Lesser General Public 1184 // License as published by the Free Software Foundation; either 1185 // version 2.1 of the License, or (at your option) any later version. 1186 // 1187 // The GNU C Library is distributed in the hope that it will be useful, 1188 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1189 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1190 // Lesser General Public License for more details. 1191 // 1192 // You should have received a copy of the GNU Lesser General Public 1193 // License along with the GNU C Library; if not, see 1194 // <https://www.gnu.org/licenses/>. 1195 1196 // Never include this file directly; use <time.h> instead. 1197 1198 // bits/types.h -- definitions of __*_t types underlying *_t types. 1199 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1200 // This file is part of the GNU C Library. 1201 // 1202 // The GNU C Library is free software; you can redistribute it and/or 1203 // modify it under the terms of the GNU Lesser General Public 1204 // License as published by the Free Software Foundation; either 1205 // version 2.1 of the License, or (at your option) any later version. 1206 // 1207 // The GNU C Library is distributed in the hope that it will be useful, 1208 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1209 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1210 // Lesser General Public License for more details. 1211 // 1212 // You should have received a copy of the GNU Lesser General Public 1213 // License along with the GNU C Library; if not, see 1214 // <https://www.gnu.org/licenses/>. 1215 1216 // Never include this file directly; use <sys/types.h> instead. 1217 1218 // ISO/IEC 9899:1999 7.23.1: Components of time 1219 // The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is 1220 // the number per second of the value returned by the `clock' function. 1221 // CAE XSH, Issue 4, Version 2: <time.h> 1222 // The value of CLOCKS_PER_SEC is required to be 1 million on all 1223 // XSI-conformant systems. 1224 1225 // Identifier for system-wide realtime clock. 1226 // Monotonic system-wide clock. 1227 // High-resolution timer from the CPU. 1228 // Thread-specific CPU-time clock. 1229 // Monotonic system-wide clock, not adjusted for frequency scaling. 1230 // Identifier for system-wide realtime clock, updated only on ticks. 1231 // Monotonic system-wide clock, updated only on ticks. 1232 // Monotonic system-wide clock that includes time spent in suspension. 1233 // Like CLOCK_REALTIME but also wakes suspended system. 1234 // Like CLOCK_BOOTTIME but also wakes suspended system. 1235 // Like CLOCK_REALTIME but in International Atomic Time. 1236 1237 // Flag to indicate time is absolute. 1238 1239 // Many of the typedefs and structs whose official home is this header 1240 // may also need to be defined by other headers. 1241 1242 // bits/types.h -- definitions of __*_t types underlying *_t types. 1243 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1244 // This file is part of the GNU C Library. 1245 // 1246 // The GNU C Library is free software; you can redistribute it and/or 1247 // modify it under the terms of the GNU Lesser General Public 1248 // License as published by the Free Software Foundation; either 1249 // version 2.1 of the License, or (at your option) any later version. 1250 // 1251 // The GNU C Library is distributed in the hope that it will be useful, 1252 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1253 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1254 // Lesser General Public License for more details. 1255 // 1256 // You should have received a copy of the GNU Lesser General Public 1257 // License along with the GNU C Library; if not, see 1258 // <https://www.gnu.org/licenses/>. 1259 1260 // Never include this file directly; use <sys/types.h> instead. 1261 1262 // Returned by `clock'. 1263 type Clock_t = X__clock_t /* clock_t.h:7:19 */ 1264 1265 // bits/types.h -- definitions of __*_t types underlying *_t types. 1266 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1267 // This file is part of the GNU C Library. 1268 // 1269 // The GNU C Library is free software; you can redistribute it and/or 1270 // modify it under the terms of the GNU Lesser General Public 1271 // License as published by the Free Software Foundation; either 1272 // version 2.1 of the License, or (at your option) any later version. 1273 // 1274 // The GNU C Library is distributed in the hope that it will be useful, 1275 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1276 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1277 // Lesser General Public License for more details. 1278 // 1279 // You should have received a copy of the GNU Lesser General Public 1280 // License along with the GNU C Library; if not, see 1281 // <https://www.gnu.org/licenses/>. 1282 1283 // Never include this file directly; use <sys/types.h> instead. 1284 1285 // ISO C `broken-down time' structure. 1286 type Tm = struct { 1287 Ftm_sec int32 1288 Ftm_min int32 1289 Ftm_hour int32 1290 Ftm_mday int32 1291 Ftm_mon int32 1292 Ftm_year int32 1293 Ftm_wday int32 1294 Ftm_yday int32 1295 Ftm_isdst int32 1296 F__ccgo_pad1 [4]byte 1297 Ftm_gmtoff int64 1298 Ftm_zone uintptr 1299 } /* struct_tm.h:7:1 */ 1300 1301 // NB: Include guard matches what <linux/time.h> uses. 1302 1303 // bits/types.h -- definitions of __*_t types underlying *_t types. 1304 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1305 // This file is part of the GNU C Library. 1306 // 1307 // The GNU C Library is free software; you can redistribute it and/or 1308 // modify it under the terms of the GNU Lesser General Public 1309 // License as published by the Free Software Foundation; either 1310 // version 2.1 of the License, or (at your option) any later version. 1311 // 1312 // The GNU C Library is distributed in the hope that it will be useful, 1313 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1314 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1315 // Lesser General Public License for more details. 1316 // 1317 // You should have received a copy of the GNU Lesser General Public 1318 // License along with the GNU C Library; if not, see 1319 // <https://www.gnu.org/licenses/>. 1320 1321 // Never include this file directly; use <sys/types.h> instead. 1322 1323 // Clock ID used in clock and timer functions. 1324 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ 1325 1326 // bits/types.h -- definitions of __*_t types underlying *_t types. 1327 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1328 // This file is part of the GNU C Library. 1329 // 1330 // The GNU C Library is free software; you can redistribute it and/or 1331 // modify it under the terms of the GNU Lesser General Public 1332 // License as published by the Free Software Foundation; either 1333 // version 2.1 of the License, or (at your option) any later version. 1334 // 1335 // The GNU C Library is distributed in the hope that it will be useful, 1336 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1337 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1338 // Lesser General Public License for more details. 1339 // 1340 // You should have received a copy of the GNU Lesser General Public 1341 // License along with the GNU C Library; if not, see 1342 // <https://www.gnu.org/licenses/>. 1343 1344 // Never include this file directly; use <sys/types.h> instead. 1345 1346 // Timer ID returned by `timer_create'. 1347 type Timer_t = X__timer_t /* timer_t.h:7:19 */ 1348 1349 // bits/types.h -- definitions of __*_t types underlying *_t types. 1350 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1351 // This file is part of the GNU C Library. 1352 // 1353 // The GNU C Library is free software; you can redistribute it and/or 1354 // modify it under the terms of the GNU Lesser General Public 1355 // License as published by the Free Software Foundation; either 1356 // version 2.1 of the License, or (at your option) any later version. 1357 // 1358 // The GNU C Library is distributed in the hope that it will be useful, 1359 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1360 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1361 // Lesser General Public License for more details. 1362 // 1363 // You should have received a copy of the GNU Lesser General Public 1364 // License along with the GNU C Library; if not, see 1365 // <https://www.gnu.org/licenses/>. 1366 1367 // Never include this file directly; use <sys/types.h> instead. 1368 1369 // NB: Include guard matches what <linux/time.h> uses. 1370 1371 // POSIX.1b structure for timer start values and intervals. 1372 type Itimerspec = struct { 1373 Fit_interval struct { 1374 Ftv_sec X__time_t 1375 Ftv_nsec X__syscall_slong_t 1376 } 1377 Fit_value struct { 1378 Ftv_sec X__time_t 1379 Ftv_nsec X__syscall_slong_t 1380 } 1381 } /* struct_itimerspec.h:8:1 */ 1382 1383 // Definition of locale_t. 1384 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1385 // This file is part of the GNU C Library. 1386 // 1387 // The GNU C Library is free software; you can redistribute it and/or 1388 // modify it under the terms of the GNU Lesser General Public 1389 // License as published by the Free Software Foundation; either 1390 // version 2.1 of the License, or (at your option) any later version. 1391 // 1392 // The GNU C Library is distributed in the hope that it will be useful, 1393 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1394 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1395 // Lesser General Public License for more details. 1396 // 1397 // You should have received a copy of the GNU Lesser General Public 1398 // License along with the GNU C Library; if not, see 1399 // <https://www.gnu.org/licenses/>. 1400 1401 // Definition of struct __locale_struct and __locale_t. 1402 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1403 // This file is part of the GNU C Library. 1404 // Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. 1405 // 1406 // The GNU C Library is free software; you can redistribute it and/or 1407 // modify it under the terms of the GNU Lesser General Public 1408 // License as published by the Free Software Foundation; either 1409 // version 2.1 of the License, or (at your option) any later version. 1410 // 1411 // The GNU C Library is distributed in the hope that it will be useful, 1412 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1413 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1414 // Lesser General Public License for more details. 1415 // 1416 // You should have received a copy of the GNU Lesser General Public 1417 // License along with the GNU C Library; if not, see 1418 // <https://www.gnu.org/licenses/>. 1419 1420 // POSIX.1-2008: the locale_t type, representing a locale context 1421 // (implementation-namespace version). This type should be treated 1422 // as opaque by applications; some details are exposed for the sake of 1423 // efficiency in e.g. ctype functions. 1424 1425 type X__locale_struct = struct { 1426 F__locales [13]uintptr 1427 F__ctype_b uintptr 1428 F__ctype_tolower uintptr 1429 F__ctype_toupper uintptr 1430 F__names [13]uintptr 1431 } /* __locale_t.h:28:1 */ 1432 1433 type X__locale_t = uintptr /* __locale_t.h:42:32 */ 1434 1435 type Locale_t = X__locale_t /* locale_t.h:24:20 */ 1436 1437 // Endian macros for string.h functions 1438 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 1439 // This file is part of the GNU C Library. 1440 // 1441 // The GNU C Library is free software; you can redistribute it and/or 1442 // modify it under the terms of the GNU Lesser General Public 1443 // License as published by the Free Software Foundation; either 1444 // version 2.1 of the License, or (at your option) any later version. 1445 // 1446 // The GNU C Library is distributed in the hope that it will be useful, 1447 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1448 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1449 // Lesser General Public License for more details. 1450 // 1451 // You should have received a copy of the GNU Lesser General Public 1452 // License along with the GNU C Library; if not, see 1453 // <http://www.gnu.org/licenses/>. 1454 1455 // Declaration of common pthread types for all architectures. 1456 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1457 // This file is part of the GNU C Library. 1458 // 1459 // The GNU C Library is free software; you can redistribute it and/or 1460 // modify it under the terms of the GNU Lesser General Public 1461 // License as published by the Free Software Foundation; either 1462 // version 2.1 of the License, or (at your option) any later version. 1463 // 1464 // The GNU C Library is distributed in the hope that it will be useful, 1465 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1466 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1467 // Lesser General Public License for more details. 1468 // 1469 // You should have received a copy of the GNU Lesser General Public 1470 // License along with the GNU C Library; if not, see 1471 // <https://www.gnu.org/licenses/>. 1472 1473 // For internal mutex and condition variable definitions. 1474 // Common threading primitives definitions for both POSIX and C11. 1475 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1476 // This file is part of the GNU C Library. 1477 // 1478 // The GNU C Library is free software; you can redistribute it and/or 1479 // modify it under the terms of the GNU Lesser General Public 1480 // License as published by the Free Software Foundation; either 1481 // version 2.1 of the License, or (at your option) any later version. 1482 // 1483 // The GNU C Library is distributed in the hope that it will be useful, 1484 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1485 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1486 // Lesser General Public License for more details. 1487 // 1488 // You should have received a copy of the GNU Lesser General Public 1489 // License along with the GNU C Library; if not, see 1490 // <https://www.gnu.org/licenses/>. 1491 1492 // Arch-specific definitions. Each architecture must define the following 1493 // macros to define the expected sizes of pthread data types: 1494 // 1495 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1496 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1497 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1498 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1499 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1500 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1501 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1502 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1503 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1504 // 1505 // The additional macro defines any constraint for the lock alignment 1506 // inside the thread structures: 1507 // 1508 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1509 // 1510 // Same idea but for the once locking primitive: 1511 // 1512 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1513 1514 // Machine-specific pthread type layouts. Generic version. 1515 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1516 // 1517 // This file is part of the GNU C Library. 1518 // 1519 // The GNU C Library is free software; you can redistribute it and/or 1520 // modify it under the terms of the GNU Lesser General Public 1521 // License as published by the Free Software Foundation; either 1522 // version 2.1 of the License, or (at your option) any later version. 1523 // 1524 // The GNU C Library is distributed in the hope that it will be useful, 1525 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1526 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1527 // Lesser General Public License for more details. 1528 // 1529 // You should have received a copy of the GNU Lesser General Public 1530 // License along with the GNU C Library; if not, see 1531 // <http://www.gnu.org/licenses/>. 1532 1533 // Determine the wordsize from the preprocessor defines. 1534 1535 // Common definition of pthread_mutex_t. 1536 1537 type X__pthread_internal_list = struct { 1538 F__prev uintptr 1539 F__next uintptr 1540 } /* thread-shared-types.h:49:9 */ 1541 1542 // Endian macros for string.h functions 1543 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 1544 // This file is part of the GNU C Library. 1545 // 1546 // The GNU C Library is free software; you can redistribute it and/or 1547 // modify it under the terms of the GNU Lesser General Public 1548 // License as published by the Free Software Foundation; either 1549 // version 2.1 of the License, or (at your option) any later version. 1550 // 1551 // The GNU C Library is distributed in the hope that it will be useful, 1552 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1553 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1554 // Lesser General Public License for more details. 1555 // 1556 // You should have received a copy of the GNU Lesser General Public 1557 // License along with the GNU C Library; if not, see 1558 // <http://www.gnu.org/licenses/>. 1559 1560 // Declaration of common pthread types for all architectures. 1561 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1562 // This file is part of the GNU C Library. 1563 // 1564 // The GNU C Library is free software; you can redistribute it and/or 1565 // modify it under the terms of the GNU Lesser General Public 1566 // License as published by the Free Software Foundation; either 1567 // version 2.1 of the License, or (at your option) any later version. 1568 // 1569 // The GNU C Library is distributed in the hope that it will be useful, 1570 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1571 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1572 // Lesser General Public License for more details. 1573 // 1574 // You should have received a copy of the GNU Lesser General Public 1575 // License along with the GNU C Library; if not, see 1576 // <https://www.gnu.org/licenses/>. 1577 1578 // For internal mutex and condition variable definitions. 1579 // Common threading primitives definitions for both POSIX and C11. 1580 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1581 // This file is part of the GNU C Library. 1582 // 1583 // The GNU C Library is free software; you can redistribute it and/or 1584 // modify it under the terms of the GNU Lesser General Public 1585 // License as published by the Free Software Foundation; either 1586 // version 2.1 of the License, or (at your option) any later version. 1587 // 1588 // The GNU C Library is distributed in the hope that it will be useful, 1589 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1590 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1591 // Lesser General Public License for more details. 1592 // 1593 // You should have received a copy of the GNU Lesser General Public 1594 // License along with the GNU C Library; if not, see 1595 // <https://www.gnu.org/licenses/>. 1596 1597 // Arch-specific definitions. Each architecture must define the following 1598 // macros to define the expected sizes of pthread data types: 1599 // 1600 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1601 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1602 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1603 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1604 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1605 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1606 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1607 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1608 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1609 // 1610 // The additional macro defines any constraint for the lock alignment 1611 // inside the thread structures: 1612 // 1613 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1614 // 1615 // Same idea but for the once locking primitive: 1616 // 1617 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1618 1619 // Machine-specific pthread type layouts. Generic version. 1620 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1621 // 1622 // This file is part of the GNU C Library. 1623 // 1624 // The GNU C Library is free software; you can redistribute it and/or 1625 // modify it under the terms of the GNU Lesser General Public 1626 // License as published by the Free Software Foundation; either 1627 // version 2.1 of the License, or (at your option) any later version. 1628 // 1629 // The GNU C Library is distributed in the hope that it will be useful, 1630 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1631 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1632 // Lesser General Public License for more details. 1633 // 1634 // You should have received a copy of the GNU Lesser General Public 1635 // License along with the GNU C Library; if not, see 1636 // <http://www.gnu.org/licenses/>. 1637 1638 // Determine the wordsize from the preprocessor defines. 1639 1640 // Common definition of pthread_mutex_t. 1641 1642 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ 1643 1644 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ 1645 1646 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ 1647 1648 // Arch-specific mutex definitions. A generic implementation is provided 1649 // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture 1650 // can override it by defining: 1651 // 1652 // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t 1653 // definition). It should contains at least the internal members 1654 // defined in the generic version. 1655 // 1656 // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with 1657 // atomic operations. 1658 // 1659 // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. 1660 // It should initialize the mutex internal flag. 1661 1662 // S390 internal mutex struct definitions. 1663 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1664 // This file is part of the GNU C Library. 1665 // 1666 // The GNU C Library is free software; you can redistribute it and/or 1667 // modify it under the terms of the GNU Lesser General Public 1668 // License as published by the Free Software Foundation; either 1669 // version 2.1 of the License, or (at your option) any later version. 1670 // 1671 // The GNU C Library is distributed in the hope that it will be useful, 1672 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1673 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1674 // Lesser General Public License for more details. 1675 // 1676 // You should have received a copy of the GNU Lesser General Public 1677 // License along with the GNU C Library; if not, see 1678 // <http://www.gnu.org/licenses/>. 1679 1680 type X__pthread_mutex_s = struct { 1681 F__lock int32 1682 F__count uint32 1683 F__owner int32 1684 F__nusers uint32 1685 F__kind int32 1686 F__spins int16 1687 F__elision int16 1688 F__list X__pthread_list_t 1689 } /* struct_mutex.h:22:1 */ 1690 1691 // Arch-sepecific read-write lock definitions. A generic implementation is 1692 // provided by struct_rwlock.h. If required, an architecture can override it 1693 // by defining: 1694 // 1695 // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). 1696 // It should contain at least the internal members defined in the 1697 // generic version. 1698 // 1699 // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. 1700 // It should initialize the rwlock internal type. 1701 1702 // S390 internal rwlock struct definitions. 1703 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1704 // 1705 // This file is part of the GNU C Library. 1706 // 1707 // The GNU C Library is free software; you can redistribute it and/or 1708 // modify it under the terms of the GNU Lesser General Public 1709 // License as published by the Free Software Foundation; either 1710 // version 2.1 of the License, or (at your option) any later version. 1711 // 1712 // The GNU C Library is distributed in the hope that it will be useful, 1713 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1714 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1715 // Lesser General Public License for more details. 1716 // 1717 // You should have received a copy of the GNU Lesser General Public 1718 // License along with the GNU C Library; if not, see 1719 // <http://www.gnu.org/licenses/>. 1720 1721 type X__pthread_rwlock_arch_t = struct { 1722 F__readers uint32 1723 F__writers uint32 1724 F__wrphase_futex uint32 1725 F__writers_futex uint32 1726 F__pad3 uint32 1727 F__pad4 uint32 1728 F__cur_writer int32 1729 F__shared int32 1730 F__pad1 uint64 1731 F__pad2 uint64 1732 F__flags uint32 1733 F__ccgo_pad1 [4]byte 1734 } /* struct_rwlock.h:23:1 */ 1735 1736 // Common definition of pthread_cond_t. 1737 1738 type X__pthread_cond_s = struct { 1739 F__0 struct{ F__wseq uint64 } 1740 F__8 struct{ F__g1_start uint64 } 1741 F__g_refs [2]uint32 1742 F__g_size [2]uint32 1743 F__g1_orig_size uint32 1744 F__wrefs uint32 1745 F__g_signals [2]uint32 1746 } /* thread-shared-types.h:92:1 */ 1747 1748 // Thread identifiers. The structure of the attribute type is not 1749 // 1750 // exposed on purpose. 1751 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ 1752 1753 // Data structures for mutex handling. The structure of the attribute 1754 // 1755 // type is not exposed on purpose. 1756 type Pthread_mutexattr_t = struct { 1757 F__ccgo_pad1 [0]uint32 1758 F__size [4]uint8 1759 } /* pthreadtypes.h:36:3 */ 1760 1761 // Data structure for condition variable handling. The structure of 1762 // 1763 // the attribute type is not exposed on purpose. 1764 type Pthread_condattr_t = struct { 1765 F__ccgo_pad1 [0]uint32 1766 F__size [4]uint8 1767 } /* pthreadtypes.h:45:3 */ 1768 1769 // Keys for thread-specific data 1770 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ 1771 1772 // Once-only execution 1773 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ 1774 1775 type Pthread_attr_t1 = struct { 1776 F__ccgo_pad1 [0]uint64 1777 F__size [56]uint8 1778 } /* pthreadtypes.h:56:1 */ 1779 1780 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ 1781 1782 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ 1783 1784 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ 1785 1786 // Data structure for reader-writer lock variable handling. The 1787 // 1788 // structure of the attribute type is deliberately not exposed. 1789 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ 1790 1791 type Pthread_rwlockattr_t = struct { 1792 F__ccgo_pad1 [0]uint64 1793 F__size [8]uint8 1794 } /* pthreadtypes.h:97:3 */ 1795 1796 // POSIX spinlock data type. 1797 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ 1798 1799 // POSIX barriers data type. The structure of the type is 1800 // 1801 // deliberately not exposed. 1802 type Pthread_barrier_t = struct { 1803 F__ccgo_pad1 [0]uint64 1804 F__size [32]uint8 1805 } /* pthreadtypes.h:112:3 */ 1806 1807 type Pthread_barrierattr_t = struct { 1808 F__ccgo_pad1 [0]uint32 1809 F__size [4]uint8 1810 } /* pthreadtypes.h:118:3 */ 1811 1812 // Copyright (C) 2000-2020 Free Software Foundation, Inc. 1813 // This file is part of the GNU C Library. 1814 // 1815 // The GNU C Library is free software; you can redistribute it and/or 1816 // modify it under the terms of the GNU Lesser General Public 1817 // License as published by the Free Software Foundation; either 1818 // version 2.1 of the License, or (at your option) any later version. 1819 // 1820 // The GNU C Library is distributed in the hope that it will be useful, 1821 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1822 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1823 // Lesser General Public License for more details. 1824 // 1825 // You should have received a copy of the GNU Lesser General Public 1826 // License along with the GNU C Library; if not, see 1827 // <https://www.gnu.org/licenses/>. 1828 1829 // Define the machine-dependent type `jmp_buf'. IBM s390 version. 1830 1831 // Determine the wordsize from the preprocessor defines. 1832 1833 type X__s390_jmp_buf = struct { 1834 F__gregs [10]int64 1835 F__fpregs [8]int64 1836 } /* setjmp.h:31:9 */ 1837 1838 // Copyright (C) 2000-2020 Free Software Foundation, Inc. 1839 // This file is part of the GNU C Library. 1840 // 1841 // The GNU C Library is free software; you can redistribute it and/or 1842 // modify it under the terms of the GNU Lesser General Public 1843 // License as published by the Free Software Foundation; either 1844 // version 2.1 of the License, or (at your option) any later version. 1845 // 1846 // The GNU C Library is distributed in the hope that it will be useful, 1847 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1848 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1849 // Lesser General Public License for more details. 1850 // 1851 // You should have received a copy of the GNU Lesser General Public 1852 // License along with the GNU C Library; if not, see 1853 // <https://www.gnu.org/licenses/>. 1854 1855 // Define the machine-dependent type `jmp_buf'. IBM s390 version. 1856 1857 // Determine the wordsize from the preprocessor defines. 1858 1859 type X__jmp_buf = [1]X__s390_jmp_buf /* setjmp.h:43:3 */ 1860 1861 // Conditional variable handling. 1862 1863 // Cleanup buffers 1864 type X_pthread_cleanup_buffer = struct { 1865 F__routine uintptr 1866 F__arg uintptr 1867 F__canceltype int32 1868 F__ccgo_pad1 [4]byte 1869 F__prev uintptr 1870 } /* pthread.h:155:1 */ 1871 1872 // Cancellation handling with integration into exception handling. 1873 1874 type X__pthread_unwind_buf_t = struct { 1875 F__cancel_jmp_buf [1]struct { 1876 F__cancel_jmp_buf X__jmp_buf 1877 F__mask_was_saved int32 1878 F__ccgo_pad1 [4]byte 1879 } 1880 F__pad [4]uintptr 1881 } /* pthread.h:507:3 */ 1882 1883 // No special attributes by default. 1884 1885 // Structure to hold the cleanup handler information. 1886 type X__pthread_cleanup_frame = struct { 1887 F__cancel_routine uintptr 1888 F__cancel_arg uintptr 1889 F__do_it int32 1890 F__cancel_type int32 1891 } /* pthread.h:516:1 */ 1892 1893 var _ uint8 /* gen.c:2:13: */