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