signal_linux_arm.go (95476B)
1 // Code generated by 'ccgo signal/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 signal/signal_linux_arm.go -pkgname signal', DO NOT EDIT. 2 3 package signal 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 MINSIGSTKSZ = 2048 19 NGREG = 18 20 NSIG = 65 21 SA_INTERRUPT = 0x20000000 22 SA_NOCLDSTOP = 1 23 SA_NOCLDWAIT = 2 24 SA_NODEFER = 0x40000000 25 SA_NOMASK = 1073741824 26 SA_ONESHOT = 2147483648 27 SA_ONSTACK = 0x08000000 28 SA_RESETHAND = 0x80000000 29 SA_RESTART = 0x10000000 30 SA_SIGINFO = 4 31 SA_STACK = 134217728 32 SIGABRT = 6 33 SIGALRM = 14 34 SIGBUS = 7 35 SIGCHLD = 17 36 SIGCLD = 17 37 SIGCONT = 18 38 SIGFPE = 8 39 SIGHUP = 1 40 SIGILL = 4 41 SIGINT = 2 42 SIGIO = 29 43 SIGIOT = 6 44 SIGKILL = 9 45 SIGPIPE = 13 46 SIGPOLL = 29 47 SIGPROF = 27 48 SIGPWR = 30 49 SIGQUIT = 3 50 SIGSEGV = 11 51 SIGSTKFLT = 16 52 SIGSTKSZ = 8192 53 SIGSTOP = 19 54 SIGSYS = 31 55 SIGTERM = 15 56 SIGTRAP = 5 57 SIGTSTP = 20 58 SIGTTIN = 21 59 SIGTTOU = 22 60 SIGURG = 23 61 SIGUSR1 = 10 62 SIGUSR2 = 12 63 SIGVTALRM = 26 64 SIGWINCH = 28 65 SIGXCPU = 24 66 SIGXFSZ = 25 67 SIG_BLOCK = 0 68 SIG_SETMASK = 2 69 SIG_UNBLOCK = 1 70 X_ASMARM_SIGCONTEXT_H = 0 71 X_ATFILE_SOURCE = 1 72 X_BITS_ENDIANNESS_H = 1 73 X_BITS_ENDIAN_H = 1 74 X_BITS_PTHREADTYPES_ARCH_H = 1 75 X_BITS_PTHREADTYPES_COMMON_H = 1 76 X_BITS_SIGACTION_H = 1 77 X_BITS_SIGCONTEXT_H = 1 78 X_BITS_SIGEVENT_CONSTS_H = 1 79 X_BITS_SIGINFO_ARCH_H = 1 80 X_BITS_SIGINFO_CONSTS_H = 1 81 X_BITS_SIGNUM_GENERIC_H = 1 82 X_BITS_SIGNUM_H = 1 83 X_BITS_SIGSTACK_H = 1 84 X_BITS_SIGTHREAD_H = 1 85 X_BITS_SS_FLAGS_H = 1 86 X_BITS_TIME64_H = 1 87 X_BITS_TYPESIZES_H = 1 88 X_BITS_TYPES_H = 1 89 X_BSD_SIZE_T_ = 0 90 X_BSD_SIZE_T_DEFINED_ = 0 91 X_DEFAULT_SOURCE = 1 92 X_FEATURES_H = 1 93 X_FILE_OFFSET_BITS = 64 94 X_GCC_SIZE_T = 0 95 X_NSIG = 65 96 X_POSIX_C_SOURCE = 200809 97 X_POSIX_SOURCE = 1 98 X_SIGNAL_H = 0 99 X_SIZET_ = 0 100 X_SIZE_T = 0 101 X_SIZE_T_ = 0 102 X_SIZE_T_DECLARED = 0 103 X_SIZE_T_DEFINED = 0 104 X_SIZE_T_DEFINED_ = 0 105 X_STDC_PREDEF_H = 1 106 X_STRUCT_TIMESPEC = 1 107 X_SYS_CDEFS_H = 1 108 X_SYS_SIZE_T_H = 0 109 X_SYS_UCONTEXT_H = 1 110 X_THREAD_MUTEX_INTERNAL_H = 1 111 X_THREAD_SHARED_TYPES_H = 1 112 X_T_SIZE = 0 113 X_T_SIZE_ = 0 114 Linux = 1 115 Unix = 1 116 ) 117 118 // POSIX names to access some of the members. 119 120 // sigevent constants. Linux version. 121 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 122 // This file is part of the GNU C Library. 123 // 124 // The GNU C Library is free software; you can redistribute it and/or 125 // modify it under the terms of the GNU Lesser General Public 126 // License as published by the Free Software Foundation; either 127 // version 2.1 of the License, or (at your option) any later version. 128 // 129 // The GNU C Library is distributed in the hope that it will be useful, 130 // but WITHOUT ANY WARRANTY; without even the implied warranty of 131 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 132 // Lesser General Public License for more details. 133 // 134 // You should have received a copy of the GNU Lesser General Public 135 // License along with the GNU C Library; if not, see 136 // <https://www.gnu.org/licenses/>. 137 138 // `sigev_notify' values. 139 const ( /* sigevent-consts.h:27:1: */ 140 SIGEV_SIGNAL = 0 // Notify via signal. 141 SIGEV_NONE = 1 // Other notification: meaningless. 142 SIGEV_THREAD = 2 // Deliver via thread creation. 143 144 SIGEV_THREAD_ID = 4 145 ) 146 147 // `si_code' values for SIGSEGV signal. 148 const ( /* siginfo-consts.h:119:1: */ 149 SEGV_MAPERR = 1 // Address not mapped to object. 150 SEGV_ACCERR = 2 // Invalid permissions for mapped object. 151 SEGV_BNDERR = 3 // Bounds checking failure. 152 SEGV_PKUERR = 4 // Protection key checking failure. 153 SEGV_ACCADI = 5 // ADI not enabled for mapped object. 154 SEGV_ADIDERR = 6 // Disrupting MCD error. 155 SEGV_ADIPERR = 7 156 ) 157 158 // `si_code' values for SIGBUS signal. 159 const ( /* siginfo-consts.h:138:1: */ 160 BUS_ADRALN = 1 // Invalid address alignment. 161 BUS_ADRERR = 2 // Non-existant physical address. 162 BUS_OBJERR = 3 // Object specific hardware error. 163 BUS_MCEERR_AR = 4 // Hardware memory error: action required. 164 BUS_MCEERR_AO = 5 165 ) 166 167 // `si_code' values for SIGCHLD signal. 168 const ( /* siginfo-consts.h:172:1: */ 169 CLD_EXITED = 1 // Child has exited. 170 CLD_KILLED = 2 // Child was killed. 171 CLD_DUMPED = 3 // Child terminated abnormally. 172 CLD_TRAPPED = 4 // Traced child has trapped. 173 CLD_STOPPED = 5 // Child has stopped. 174 CLD_CONTINUED = 6 175 ) 176 177 // `si_code' values for SIGPOLL signal. 178 const ( /* siginfo-consts.h:189:1: */ 179 POLL_IN = 1 // Data input available. 180 POLL_OUT = 2 // Output buffers available. 181 POLL_MSG = 3 // Input message available. 182 POLL_ERR = 4 // I/O error. 183 POLL_PRI = 5 // High priority input available. 184 POLL_HUP = 6 185 ) 186 187 // X/Open requires some more fields with fixed names. 188 189 // siginfo constants. Linux version. 190 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 191 // This file is part of the GNU C Library. 192 // 193 // The GNU C Library is free software; you can redistribute it and/or 194 // modify it under the terms of the GNU Lesser General Public 195 // License as published by the Free Software Foundation; either 196 // version 2.1 of the License, or (at your option) any later version. 197 // 198 // The GNU C Library is distributed in the hope that it will be useful, 199 // but WITHOUT ANY WARRANTY; without even the implied warranty of 200 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 201 // Lesser General Public License for more details. 202 // 203 // You should have received a copy of the GNU Lesser General Public 204 // License along with the GNU C Library; if not, see 205 // <https://www.gnu.org/licenses/>. 206 207 // Most of these constants are uniform across all architectures, but there 208 // is one exception. 209 // Architecture-specific adjustments to siginfo_t. 210 211 // Values for `si_code'. Positive values are reserved for kernel-generated 212 // 213 // signals. 214 const ( /* siginfo-consts.h:35:1: */ 215 SI_ASYNCNL = -60 // Sent by asynch name lookup completion. 216 SI_DETHREAD = -7 // Sent by execve killing subsidiary 217 // threads. 218 SI_TKILL = -6 // Sent by tkill. 219 SI_SIGIO = -5 // Sent by queued SIGIO. 220 SI_ASYNCIO = -4 // Sent by AIO completion. 221 SI_MESGQ = -3 // Sent by real time mesq state change. 222 SI_TIMER = -2 // Sent by timer expiration. 223 SI_QUEUE = -1 // Sent by sigqueue. 224 SI_USER = 0 // Sent by kill, sigsend. 225 SI_KERNEL = 128 226 ) 227 228 // `si_code' values for SIGILL signal. 229 const ( /* siginfo-consts.h:71:1: */ 230 ILL_ILLOPC = 1 // Illegal opcode. 231 ILL_ILLOPN = 2 // Illegal operand. 232 ILL_ILLADR = 3 // Illegal addressing mode. 233 ILL_ILLTRP = 4 // Illegal trap. 234 ILL_PRVOPC = 5 // Privileged opcode. 235 ILL_PRVREG = 6 // Privileged register. 236 ILL_COPROC = 7 // Coprocessor error. 237 ILL_BADSTK = 8 // Internal stack error. 238 ILL_BADIADDR = 9 239 ) 240 241 // `si_code' values for SIGFPE signal. 242 const ( /* siginfo-consts.h:94:1: */ 243 FPE_INTDIV = 1 // Integer divide by zero. 244 FPE_INTOVF = 2 // Integer overflow. 245 FPE_FLTDIV = 3 // Floating point divide by zero. 246 FPE_FLTOVF = 4 // Floating point overflow. 247 FPE_FLTUND = 5 // Floating point underflow. 248 FPE_FLTRES = 6 // Floating point inexact result. 249 FPE_FLTINV = 7 // Floating point invalid operation. 250 FPE_FLTSUB = 8 // Subscript out of range. 251 FPE_FLTUNK = 14 // Undiagnosed floating-point exception. 252 FPE_CONDTRAP = 15 253 ) 254 255 // sigstack, sigaltstack definitions. 256 // Copyright (C) 1998-2020 Free Software Foundation, Inc. 257 // This file is part of the GNU C Library. 258 // 259 // The GNU C Library is free software; you can redistribute it and/or 260 // modify it under the terms of the GNU Lesser General Public 261 // License as published by the Free Software Foundation; either 262 // version 2.1 of the License, or (at your option) any later version. 263 // 264 // The GNU C Library is distributed in the hope that it will be useful, 265 // but WITHOUT ANY WARRANTY; without even the implied warranty of 266 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 267 // Lesser General Public License for more details. 268 // 269 // You should have received a copy of the GNU Lesser General Public 270 // License along with the GNU C Library; if not, see 271 // <https://www.gnu.org/licenses/>. 272 273 // Minimum stack size for a signal handler. 274 275 // System default stack size. 276 277 // ss_flags values for stack_t. Linux version. 278 // Copyright (C) 1998-2020 Free Software Foundation, Inc. 279 // This file is part of the GNU C Library. 280 // 281 // The GNU C Library is free software; you can redistribute it and/or 282 // modify it under the terms of the GNU Lesser General Public 283 // License as published by the Free Software Foundation; either 284 // version 2.1 of the License, or (at your option) any later version. 285 // 286 // The GNU C Library is distributed in the hope that it will be useful, 287 // but WITHOUT ANY WARRANTY; without even the implied warranty of 288 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 289 // Lesser General Public License for more details. 290 // 291 // You should have received a copy of the GNU Lesser General Public 292 // License along with the GNU C Library; if not, see 293 // <https://www.gnu.org/licenses/>. 294 295 // Possible values for `ss_flags'. 296 const ( /* ss_flags.h:27:1: */ 297 SS_ONSTACK = 1 298 SS_DISABLE = 2 299 ) 300 301 // Number of each register is the `gregset_t' array. 302 const ( /* ucontext.h:45:1: */ 303 REG_R0 = 0 304 REG_R1 = 1 305 REG_R2 = 2 306 REG_R3 = 3 307 REG_R4 = 4 308 REG_R5 = 5 309 REG_R6 = 6 310 REG_R7 = 7 311 REG_R8 = 8 312 REG_R9 = 9 313 REG_R10 = 10 314 REG_R11 = 11 315 REG_R12 = 12 316 REG_R13 = 13 317 REG_R14 = 14 318 REG_R15 = 15 319 ) 320 321 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 322 323 type Size_t = uint32 /* <builtin>:9:23 */ 324 325 type Wchar_t = uint32 /* <builtin>:15:24 */ 326 327 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 328 type X__float128 = float64 /* <builtin>:47:21 */ 329 330 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 331 // This file is part of the GNU C Library. 332 // 333 // The GNU C Library is free software; you can redistribute it and/or 334 // modify it under the terms of the GNU Lesser General Public 335 // License as published by the Free Software Foundation; either 336 // version 2.1 of the License, or (at your option) any later version. 337 // 338 // The GNU C Library is distributed in the hope that it will be useful, 339 // but WITHOUT ANY WARRANTY; without even the implied warranty of 340 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 341 // Lesser General Public License for more details. 342 // 343 // You should have received a copy of the GNU Lesser General Public 344 // License along with the GNU C Library; if not, see 345 // <https://www.gnu.org/licenses/>. 346 347 // ISO C99 Standard: 7.14 Signal handling <signal.h> 348 349 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 350 // This file is part of the GNU C Library. 351 // 352 // The GNU C Library is free software; you can redistribute it and/or 353 // modify it under the terms of the GNU Lesser General Public 354 // License as published by the Free Software Foundation; either 355 // version 2.1 of the License, or (at your option) any later version. 356 // 357 // The GNU C Library is distributed in the hope that it will be useful, 358 // but WITHOUT ANY WARRANTY; without even the implied warranty of 359 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 360 // Lesser General Public License for more details. 361 // 362 // You should have received a copy of the GNU Lesser General Public 363 // License along with the GNU C Library; if not, see 364 // <https://www.gnu.org/licenses/>. 365 366 // These are defined by the user (or the compiler) 367 // to specify the desired environment: 368 // 369 // __STRICT_ANSI__ ISO Standard C. 370 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 371 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 372 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 373 // __STDC_WANT_LIB_EXT2__ 374 // Extensions to ISO C99 from TR 27431-2:2010. 375 // __STDC_WANT_IEC_60559_BFP_EXT__ 376 // Extensions to ISO C11 from TS 18661-1:2014. 377 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 378 // Extensions to ISO C11 from TS 18661-4:2015. 379 // __STDC_WANT_IEC_60559_TYPES_EXT__ 380 // Extensions to ISO C11 from TS 18661-3:2015. 381 // 382 // _POSIX_SOURCE IEEE Std 1003.1. 383 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 384 // if >=199309L, add IEEE Std 1003.1b-1993; 385 // if >=199506L, add IEEE Std 1003.1c-1995; 386 // if >=200112L, all of IEEE 1003.1-2004 387 // if >=200809L, all of IEEE 1003.1-2008 388 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 389 // Single Unix conformance is wanted, to 600 for the 390 // sixth revision, to 700 for the seventh revision. 391 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 392 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 393 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 394 // _FILE_OFFSET_BITS=N Select default filesystem interface. 395 // _ATFILE_SOURCE Additional *at interfaces. 396 // _GNU_SOURCE All of the above, plus GNU extensions. 397 // _DEFAULT_SOURCE The default set of features (taking precedence over 398 // __STRICT_ANSI__). 399 // 400 // _FORTIFY_SOURCE Add security hardening to many library functions. 401 // Set to 1 or 2; 2 performs stricter checks than 1. 402 // 403 // _REENTRANT, _THREAD_SAFE 404 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 405 // 406 // The `-ansi' switch to the GNU C compiler, and standards conformance 407 // options such as `-std=c99', define __STRICT_ANSI__. If none of 408 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 409 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 410 // 200809L, as well as enabling miscellaneous functions from BSD and 411 // SVID. If more than one of these are defined, they accumulate. For 412 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 413 // give you ISO C, 1003.1, and 1003.2, but nothing else. 414 // 415 // These are defined by this file and are used by the 416 // header files to decide what to declare or define: 417 // 418 // __GLIBC_USE (F) Define things from feature set F. This is defined 419 // to 1 or 0; the subsequent macros are either defined 420 // or undefined, and those tests should be moved to 421 // __GLIBC_USE. 422 // __USE_ISOC11 Define ISO C11 things. 423 // __USE_ISOC99 Define ISO C99 things. 424 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 425 // __USE_ISOCXX11 Define ISO C++11 things. 426 // __USE_POSIX Define IEEE Std 1003.1 things. 427 // __USE_POSIX2 Define IEEE Std 1003.2 things. 428 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 429 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 430 // __USE_XOPEN Define XPG things. 431 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 432 // __USE_UNIX98 Define Single Unix V2 things. 433 // __USE_XOPEN2K Define XPG6 things. 434 // __USE_XOPEN2KXSI Define XPG6 XSI things. 435 // __USE_XOPEN2K8 Define XPG7 things. 436 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 437 // __USE_LARGEFILE Define correct standard I/O things. 438 // __USE_LARGEFILE64 Define LFS things with separate names. 439 // __USE_FILE_OFFSET64 Define 64bit interface as default. 440 // __USE_MISC Define things from 4.3BSD or System V Unix. 441 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 442 // __USE_GNU Define GNU extensions. 443 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 444 // 445 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 446 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 447 // only for compatibility. All new code should use the other symbols 448 // to test for features. 449 // 450 // All macros listed above as possibly being defined by this file are 451 // explicitly undefined if they are not explicitly defined. 452 // Feature-test macros that are not defined by the user or compiler 453 // but are implied by the other feature-test macros defined (or by the 454 // lack of any definitions) are defined by the file. 455 // 456 // ISO C feature test macros depend on the definition of the macro 457 // when an affected header is included, not when the first system 458 // header is included, and so they are handled in 459 // <bits/libc-header-start.h>, which does not have a multiple include 460 // guard. Feature test macros that can be handled from the first 461 // system header included are handled here. 462 463 // Undefine everything, so we get a clean slate. 464 465 // Suppress kernel-name space pollution unless user expressedly asks 466 // for it. 467 468 // Convenience macro to test the version of gcc. 469 // Use like this: 470 // #if __GNUC_PREREQ (2,8) 471 // ... code requiring gcc 2.8 or later ... 472 // #endif 473 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 474 // added in 2.0. 475 476 // Similarly for clang. Features added to GCC after version 4.2 may 477 // or may not also be available in clang, and clang's definitions of 478 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 479 // features can be queried via __has_extension/__has_feature. 480 481 // Whether to use feature set F. 482 483 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 484 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 485 // issue a warning; the expectation is that the source is being 486 // transitioned to use the new macro. 487 488 // If _GNU_SOURCE was defined by the user, turn on all the other features. 489 490 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 491 // define _DEFAULT_SOURCE. 492 493 // This is to enable the ISO C2X extension. 494 495 // This is to enable the ISO C11 extension. 496 497 // This is to enable the ISO C99 extension. 498 499 // This is to enable the ISO C90 Amendment 1:1995 extension. 500 501 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 502 // is defined, use POSIX.1-2008 (or another version depending on 503 // _XOPEN_SOURCE). 504 505 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 506 // defined in all multithreaded code. GNU libc has not required this 507 // for many years. We now treat them as compatibility synonyms for 508 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 509 // comprehensive support for multithreaded code. Using them never 510 // lowers the selected level of POSIX conformance, only raises it. 511 512 // The function 'gets' existed in C89, but is impossible to use 513 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 514 // compatibility with various implementations of <cstdio>, this test 515 // must consider only the value of __cplusplus when compiling C++. 516 517 // GNU formerly extended the scanf functions with modified format 518 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 519 // input using malloc. This extension conflicts with ISO C99, which 520 // defines %a as a standalone format specifier that reads a floating- 521 // point number; moreover, POSIX.1-2008 provides the same feature 522 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 523 // 524 // We now follow C99 unless GNU extensions are active and the compiler 525 // is specifically in C89 or C++98 mode (strict or not). For 526 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 527 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 528 // old extension. 529 530 // Get definitions of __STDC_* predefined macros, if the compiler has 531 // not preincluded this header automatically. 532 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 533 // This file is part of the GNU C Library. 534 // 535 // The GNU C Library is free software; you can redistribute it and/or 536 // modify it under the terms of the GNU Lesser General Public 537 // License as published by the Free Software Foundation; either 538 // version 2.1 of the License, or (at your option) any later version. 539 // 540 // The GNU C Library is distributed in the hope that it will be useful, 541 // but WITHOUT ANY WARRANTY; without even the implied warranty of 542 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 543 // Lesser General Public License for more details. 544 // 545 // You should have received a copy of the GNU Lesser General Public 546 // License along with the GNU C Library; if not, see 547 // <https://www.gnu.org/licenses/>. 548 549 // This macro indicates that the installed library is the GNU C Library. 550 // For historic reasons the value now is 6 and this will stay from now 551 // on. The use of this variable is deprecated. Use __GLIBC__ and 552 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 553 // GNU C library version and use the values in <gnu/lib-names.h> to get 554 // the sonames of the shared libraries. 555 556 // Major and minor version number of the GNU C library package. Use 557 // these macros to test for features in specific releases. 558 559 // This is here only because every header file already includes this one. 560 // Copyright (C) 1992-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 as 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 // We are almost always included from features.h. 578 579 // The GNU libc does not support any K&R compilers or the traditional mode 580 // of ISO C compilers anymore. Check for some of the combinations not 581 // anymore supported. 582 583 // Some user header file might have defined this before. 584 585 // All functions, except those with callbacks or those that 586 // synchronize memory, are leaf functions. 587 588 // GCC can always grok prototypes. For C++ programs we add throw() 589 // to help it optimize the function calls. But this works only with 590 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 591 // as non-throwing using a function attribute since programs can use 592 // the -fexceptions options for C code as well. 593 594 // Compilers that are not clang may object to 595 // #if defined __clang__ && __has_extension(...) 596 // even though they do not need to evaluate the right-hand side of the &&. 597 598 // These two macros are not used in glibc anymore. They are kept here 599 // only because some other projects expect the macros to be defined. 600 601 // For these things, GCC behaves the ANSI way normally, 602 // and the non-ANSI way under -traditional. 603 604 // This is not a typedef so `const __ptr_t' does the right thing. 605 606 // C++ needs to know that types and declarations are C, not C++. 607 608 // Fortify support. 609 610 // Support for flexible arrays. 611 // Headers that should use flexible arrays only if they're "real" 612 // (e.g. only if they won't affect sizeof()) should test 613 // #if __glibc_c99_flexarr_available. 614 615 // __asm__ ("xyz") is used throughout the headers to rename functions 616 // at the assembly language level. This is wrapped by the __REDIRECT 617 // macro, in order to support compilers that can do this some other 618 // way. When compilers don't support asm-names at all, we have to do 619 // preprocessor tricks instead (which don't have exactly the right 620 // semantics, but it's the best we can do). 621 // 622 // Example: 623 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 624 625 // 626 // #elif __SOME_OTHER_COMPILER__ 627 // 628 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 629 630 // GCC has various useful declarations that can be made with the 631 // `__attribute__' syntax. All of the ways we use this do fine if 632 // they are omitted for compilers that don't understand it. 633 634 // At some point during the gcc 2.96 development the `malloc' attribute 635 // for functions was introduced. We don't want to use it unconditionally 636 // (although this would be possible) since it generates warnings. 637 638 // Tell the compiler which arguments to an allocation function 639 // indicate the size of the allocation. 640 641 // At some point during the gcc 2.96 development the `pure' attribute 642 // for functions was introduced. We don't want to use it unconditionally 643 // (although this would be possible) since it generates warnings. 644 645 // This declaration tells the compiler that the value is constant. 646 647 // At some point during the gcc 3.1 development the `used' attribute 648 // for functions was introduced. We don't want to use it unconditionally 649 // (although this would be possible) since it generates warnings. 650 651 // Since version 3.2, gcc allows marking deprecated functions. 652 653 // Since version 4.5, gcc also allows one to specify the message printed 654 // when a deprecated function is used. clang claims to be gcc 4.2, but 655 // may also support this feature. 656 657 // At some point during the gcc 2.8 development the `format_arg' attribute 658 // for functions was introduced. We don't want to use it unconditionally 659 // (although this would be possible) since it generates warnings. 660 // If several `format_arg' attributes are given for the same function, in 661 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 662 // all designated arguments are considered. 663 664 // At some point during the gcc 2.97 development the `strfmon' format 665 // attribute for functions was introduced. We don't want to use it 666 // unconditionally (although this would be possible) since it 667 // generates warnings. 668 669 // The nonull function attribute allows to mark pointer parameters which 670 // must not be NULL. 671 672 // If fortification mode, we warn about unused results of certain 673 // function calls which can lead to problems. 674 675 // Forces a function to be always inlined. 676 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 677 // it conflicts with this definition. Therefore undefine it first to 678 // allow either header to be included first. 679 680 // Associate error messages with the source location of the call site rather 681 // than with the source location inside the function. 682 683 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 684 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 685 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 686 // older than 4.3 may define these macros and still not guarantee GNU inlining 687 // semantics. 688 // 689 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 690 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 691 // __GNUC_GNU_INLINE__ macro definitions. 692 693 // GCC 4.3 and above allow passing all anonymous arguments of an 694 // __extern_always_inline function to some other vararg function. 695 696 // It is possible to compile containing GCC extensions even if GCC is 697 // run in pedantic mode if the uses are carefully marked using the 698 // `__extension__' keyword. But this is not generally available before 699 // version 2.8. 700 701 // __restrict is known in EGCS 1.2 and above. 702 703 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 704 // array_name[restrict] 705 // GCC 3.1 supports this. 706 707 // Describes a char array whose address can safely be passed as the first 708 // argument to strncpy and strncat, as the char array is not necessarily 709 // a NUL-terminated string. 710 711 // Undefine (also defined in libc-symbols.h). 712 // Copies attributes from the declaration or type referenced by 713 // the argument. 714 715 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 716 // This file is part of the GNU C Library. 717 // 718 // The GNU C Library is free software; you can redistribute it and/or 719 // modify it under the terms of the GNU Lesser General Public 720 // License as published by the Free Software Foundation; either 721 // version 2.1 of the License, or (at your option) any later version. 722 // 723 // The GNU C Library is distributed in the hope that it will be useful, 724 // but WITHOUT ANY WARRANTY; without even the implied warranty of 725 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 726 // Lesser General Public License for more details. 727 // 728 // You should have received a copy of the GNU Lesser General Public 729 // License along with the GNU C Library; if not, see 730 // <https://www.gnu.org/licenses/>. 731 732 // Properties of long double type. 733 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 734 // This file is part of the GNU C Library. 735 // 736 // The GNU C Library is free software; you can redistribute it and/or 737 // modify it under the terms of the GNU Lesser General Public 738 // License published by the Free Software Foundation; either 739 // version 2.1 of the License, or (at your option) any later version. 740 // 741 // The GNU C Library is distributed in the hope that it will be useful, 742 // but WITHOUT ANY WARRANTY; without even the implied warranty of 743 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 744 // Lesser General Public License for more details. 745 // 746 // You should have received a copy of the GNU Lesser General Public 747 // License along with the GNU C Library; if not, see 748 // <https://www.gnu.org/licenses/>. 749 750 // This header is included by <sys/cdefs.h>. 751 // 752 // If long double is ABI-compatible with double, it should define 753 // __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave 754 // __NO_LONG_DOUBLE_MATH undefined. 755 // 756 // If this build of the GNU C Library supports both long double 757 // ABI-compatible with double and some other long double format not 758 // ABI-compatible with double, it should define 759 // __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave 760 // __LONG_DOUBLE_MATH_OPTIONAL undefined. 761 // 762 // If __NO_LONG_DOUBLE_MATH is already defined, this header must not 763 // define anything; this is needed to work with the definition of 764 // __NO_LONG_DOUBLE_MATH in nldbl-compat.h. 765 766 // In the default version of this header, long double is 767 // ABI-compatible with double. 768 769 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 770 // intended for use in preprocessor macros. 771 // 772 // Note: MESSAGE must be a _single_ string; concatenation of string 773 // literals is not supported. 774 775 // Generic selection (ISO C11) is a C-only feature, available in GCC 776 // since version 4.9. Previous versions do not provide generic 777 // selection, even though they might set __STDC_VERSION__ to 201112L, 778 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 779 // when testing __STDC_VERSION__ for generic selection support. 780 // On the other hand, Clang also defines __GNUC__, so a clang-specific 781 // check is required to enable the use of generic selection. 782 783 // If we don't have __REDIRECT, prototypes will be missing if 784 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 785 786 // Decide whether we can define 'extern inline' functions in headers. 787 788 // This is here only because every header file already includes this one. 789 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 790 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 791 // that will always return failure (and set errno to ENOSYS). 792 // This file is automatically generated. 793 // This file selects the right generated file of `__stub_FUNCTION' macros 794 // based on the architecture being compiled for. 795 796 // This file is automatically generated. 797 // It defines a symbol `__stub_FUNCTION' for each function 798 // in the C library which is a stub, meaning it will fail 799 // every time called, usually setting errno to ENOSYS. 800 801 // bits/types.h -- definitions of __*_t types underlying *_t types. 802 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 803 // This file is part of the GNU C Library. 804 // 805 // The GNU C Library is free software; you can redistribute it and/or 806 // modify it under the terms of the GNU Lesser General Public 807 // License as published by the Free Software Foundation; either 808 // version 2.1 of the License, or (at your option) any later version. 809 // 810 // The GNU C Library is distributed in the hope that it will be useful, 811 // but WITHOUT ANY WARRANTY; without even the implied warranty of 812 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 813 // Lesser General Public License for more details. 814 // 815 // You should have received a copy of the GNU Lesser General Public 816 // License along with the GNU C Library; if not, see 817 // <https://www.gnu.org/licenses/>. 818 819 // Never include this file directly; use <sys/types.h> instead. 820 821 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 822 // This file is part of the GNU C Library. 823 // 824 // The GNU C Library is free software; you can redistribute it and/or 825 // modify it under the terms of the GNU Lesser General Public 826 // License as published by the Free Software Foundation; either 827 // version 2.1 of the License, or (at your option) any later version. 828 // 829 // The GNU C Library is distributed in the hope that it will be useful, 830 // but WITHOUT ANY WARRANTY; without even the implied warranty of 831 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 832 // Lesser General Public License for more details. 833 // 834 // You should have received a copy of the GNU Lesser General Public 835 // License along with the GNU C Library; if not, see 836 // <https://www.gnu.org/licenses/>. 837 838 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 839 // This file is part of the GNU C Library. 840 // 841 // The GNU C Library is free software; you can redistribute it and/or 842 // modify it under the terms of the GNU Lesser General Public 843 // License as published by the Free Software Foundation; either 844 // version 2.1 of the License, or (at your option) any later version. 845 // 846 // The GNU C Library is distributed in the hope that it will be useful, 847 // but WITHOUT ANY WARRANTY; without even the implied warranty of 848 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 849 // Lesser General Public License for more details. 850 // 851 // You should have received a copy of the GNU Lesser General Public 852 // License along with the GNU C Library; if not, see 853 // <https://www.gnu.org/licenses/>. 854 855 // Bit size of the time_t type at glibc build time, general case. 856 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 857 // This file is part of the GNU C Library. 858 // 859 // The GNU C Library is free software; you can redistribute it and/or 860 // modify it under the terms of the GNU Lesser General Public 861 // License as published by the Free Software Foundation; either 862 // version 2.1 of the License, or (at your option) any later version. 863 // 864 // The GNU C Library is distributed in the hope that it will be useful, 865 // but WITHOUT ANY WARRANTY; without even the implied warranty of 866 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 867 // Lesser General Public License for more details. 868 // 869 // You should have received a copy of the GNU Lesser General Public 870 // License along with the GNU C Library; if not, see 871 // <https://www.gnu.org/licenses/>. 872 873 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 874 // This file is part of the GNU C Library. 875 // 876 // The GNU C Library is free software; you can redistribute it and/or 877 // modify it under the terms of the GNU Lesser General Public 878 // License as published by the Free Software Foundation; either 879 // version 2.1 of the License, or (at your option) any later version. 880 // 881 // The GNU C Library is distributed in the hope that it will be useful, 882 // but WITHOUT ANY WARRANTY; without even the implied warranty of 883 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 884 // Lesser General Public License for more details. 885 // 886 // You should have received a copy of the GNU Lesser General Public 887 // License along with the GNU C Library; if not, see 888 // <https://www.gnu.org/licenses/>. 889 890 // Size in bits of the 'time_t' type of the default ABI. 891 892 // Convenience types. 893 type X__u_char = uint8 /* types.h:31:23 */ 894 type X__u_short = uint16 /* types.h:32:28 */ 895 type X__u_int = uint32 /* types.h:33:22 */ 896 type X__u_long = uint32 /* types.h:34:27 */ 897 898 // Fixed-size types, underlying types depend on word size and compiler. 899 type X__int8_t = int8 /* types.h:37:21 */ 900 type X__uint8_t = uint8 /* types.h:38:23 */ 901 type X__int16_t = int16 /* types.h:39:26 */ 902 type X__uint16_t = uint16 /* types.h:40:28 */ 903 type X__int32_t = int32 /* types.h:41:20 */ 904 type X__uint32_t = uint32 /* types.h:42:22 */ 905 type X__int64_t = int64 /* types.h:47:44 */ 906 type X__uint64_t = uint64 /* types.h:48:46 */ 907 908 // Smallest types with at least a given width. 909 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 910 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 911 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 912 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 913 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 914 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 915 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 916 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 917 918 // quad_t is also 64 bits. 919 type X__quad_t = int64 /* types.h:66:37 */ 920 type X__u_quad_t = uint64 /* types.h:67:46 */ 921 922 // Largest integral types. 923 type X__intmax_t = int64 /* types.h:75:37 */ 924 type X__uintmax_t = uint64 /* types.h:76:46 */ 925 926 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 927 // macros for each of the OS types we define below. The definitions 928 // of those macros must use the following macros for underlying types. 929 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 930 // variants of each of the following integer types on this machine. 931 // 932 // 16 -- "natural" 16-bit type (always short) 933 // 32 -- "natural" 32-bit type (always int) 934 // 64 -- "natural" 64-bit type (long or long long) 935 // LONG32 -- 32-bit type, traditionally long 936 // QUAD -- 64-bit type, traditionally long long 937 // WORD -- natural type of __WORDSIZE bits (int or long) 938 // LONGWORD -- type of __WORDSIZE bits, traditionally long 939 // 940 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 941 // conventional uses of `long' or `long long' type modifiers match the 942 // types we define, even when a less-adorned type would be the same size. 943 // This matters for (somewhat) portably writing printf/scanf formats for 944 // these types, where using the appropriate l or ll format modifiers can 945 // make the typedefs and the formats match up across all GNU platforms. If 946 // we used `long' when it's 64 bits where `long long' is expected, then the 947 // compiler would warn about the formats not matching the argument types, 948 // and the programmer changing them to shut up the compiler would break the 949 // program's portability. 950 // 951 // Here we assume what is presently the case in all the GCC configurations 952 // we support: long long is always 64 bits, long is always word/address size, 953 // and int is always 32 bits. 954 955 // We want __extension__ before typedef's that use nonstandard base types 956 // such as `long long' in C89 mode. 957 // bits/typesizes.h -- underlying types for *_t. Generic version. 958 // Copyright (C) 2002-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 // <https://www.gnu.org/licenses/>. 974 975 // See <bits/types.h> for the meaning of these macros. This file exists so 976 // that <bits/types.h> need not vary across different GNU platforms. 977 978 // Number of descriptors that can fit in an `fd_set'. 979 980 // bits/time64.h -- underlying types for __time64_t. Generic version. 981 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 982 // This file is part of the GNU C Library. 983 // 984 // The GNU C Library is free software; you can redistribute it and/or 985 // modify it under the terms of the GNU Lesser General Public 986 // License as published by the Free Software Foundation; either 987 // version 2.1 of the License, or (at your option) any later version. 988 // 989 // The GNU C Library is distributed in the hope that it will be useful, 990 // but WITHOUT ANY WARRANTY; without even the implied warranty of 991 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 992 // Lesser General Public License for more details. 993 // 994 // You should have received a copy of the GNU Lesser General Public 995 // License along with the GNU C Library; if not, see 996 // <https://www.gnu.org/licenses/>. 997 998 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 999 1000 // Define a 64-bit time type alongsize the 32-bit one. 1001 1002 type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers. 1003 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 1004 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 1005 type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers. 1006 type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS). 1007 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 1008 type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. 1009 type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets. 1010 type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 1011 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 1012 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 1013 type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts. 1014 type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement. 1015 type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS). 1016 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 1017 type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch. 1018 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 1019 type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds. 1020 1021 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 1022 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 1023 1024 // Clock ID used in clock and timer functions. 1025 type X__clockid_t = int32 /* types.h:168:29 */ 1026 1027 // Timer ID returned by `timer_create'. 1028 type X__timer_t = uintptr /* types.h:171:12 */ 1029 1030 // Type to represent block size. 1031 type X__blksize_t = int32 /* types.h:174:29 */ 1032 1033 // Types from the Large File Support interface. 1034 1035 // Type to count number of disk blocks. 1036 type X__blkcnt_t = int32 /* types.h:179:28 */ 1037 type X__blkcnt64_t = X__int64_t /* types.h:180:30 */ 1038 1039 // Type to count file system blocks. 1040 type X__fsblkcnt_t = uint32 /* types.h:183:30 */ 1041 type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */ 1042 1043 // Type to count file system nodes. 1044 type X__fsfilcnt_t = uint32 /* types.h:187:30 */ 1045 type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */ 1046 1047 // Type of miscellaneous file system fields. 1048 type X__fsword_t = int32 /* types.h:191:28 */ 1049 1050 type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error. 1051 1052 // Signed long type used in system calls. 1053 type X__syscall_slong_t = int32 /* types.h:196:33 */ 1054 // Unsigned long type used in system calls. 1055 type X__syscall_ulong_t = uint32 /* types.h:198:33 */ 1056 1057 // These few don't really vary by system, they always correspond 1058 // 1059 // to one of the other defined types. 1060 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 1061 type X__caddr_t = uintptr /* types.h:203:14 */ 1062 1063 // Duplicates info from stdint.h but this is used in unistd.h. 1064 type X__intptr_t = int32 /* types.h:206:25 */ 1065 1066 // Duplicate info from sys/socket.h. 1067 type X__socklen_t = uint32 /* types.h:209:23 */ 1068 1069 // C99: An integer type that can be accessed as an atomic entity, 1070 // 1071 // even in the presence of asynchronous interrupts. 1072 // It is not currently necessary for this to be machine-specific. 1073 type X__sig_atomic_t = int32 /* types.h:214:13 */ 1074 1075 // Seconds since the Epoch, visible to user code when time_t is too 1076 // 1077 // narrow only for consistency with the old way of widening too-narrow 1078 // types. User code should never use __time64_t. 1079 type X__time64_t = X__int64_t /* types.h:222:28 */ 1080 1081 // Signal number definitions. Linux version. 1082 // Copyright (C) 1995-2020 Free Software Foundation, Inc. 1083 // This file is part of the GNU C Library. 1084 // 1085 // The GNU C Library is free software; you can redistribute it and/or 1086 // modify it under the terms of the GNU Lesser General Public 1087 // License as published by the Free Software Foundation; either 1088 // version 2.1 of the License, or (at your option) any later version. 1089 // 1090 // The GNU C Library is distributed in the hope that it will be useful, 1091 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1092 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1093 // Lesser General Public License for more details. 1094 // 1095 // You should have received a copy of the GNU Lesser General Public 1096 // License along with the GNU C Library; if not, see 1097 // <https://www.gnu.org/licenses/>. 1098 1099 // Signal number constants. Generic template. 1100 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1101 // This file is part of the GNU C Library. 1102 // 1103 // The GNU C Library is free software; you can redistribute it and/or 1104 // modify it under the terms of the GNU Lesser General Public 1105 // License as published by the Free Software Foundation; either 1106 // version 2.1 of the License, or (at your option) any later version. 1107 // 1108 // The GNU C Library is distributed in the hope that it will be useful, 1109 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1110 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1111 // Lesser General Public License for more details. 1112 // 1113 // You should have received a copy of the GNU Lesser General Public 1114 // License along with the GNU C Library; if not, see 1115 // <https://www.gnu.org/licenses/>. 1116 1117 // Fake signal functions. 1118 1119 // We define here all the signal names listed in POSIX (1003.1-2008); 1120 // as of 1003.1-2013, no additional signals have been added by POSIX. 1121 // We also define here signal names that historically exist in every 1122 // real-world POSIX variant (e.g. SIGWINCH). 1123 // 1124 // Signals in the 1-15 range are defined with their historical numbers. 1125 // For other signals, we use the BSD numbers. 1126 // There are two unallocated signal numbers in the 1-31 range: 7 and 29. 1127 // Signal number 0 is reserved for use as kill(pid, 0), to test whether 1128 // a process exists without sending it a signal. 1129 1130 // ISO C99 signals. 1131 1132 // Historical signals specified by POSIX. 1133 1134 // New(er) POSIX signals (1003.1-2008, 1003.1-2013). 1135 1136 // Nonstandard signals found in all modern POSIX systems 1137 // (including both BSD and Linux). 1138 1139 // Archaic names for compatibility. 1140 1141 // Not all systems support real-time signals. bits/signum.h indicates 1142 // that they are supported by overriding __SIGRTMAX to a value greater 1143 // than __SIGRTMIN. These constants give the kernel-level hard limits, 1144 // but some real-time signals may be used internally by glibc. Do not 1145 // use these constants in application code; use SIGRTMIN and SIGRTMAX 1146 // (defined in signal.h) instead. 1147 1148 // Biggest signal number + 1 (including real-time signals). 1149 1150 // Adjustments and additions to the signal number constants for 1151 // most Linux systems. 1152 1153 // bits/types.h -- definitions of __*_t types underlying *_t types. 1154 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1155 // This file is part of the GNU C Library. 1156 // 1157 // The GNU C Library is free software; you can redistribute it and/or 1158 // modify it under the terms of the GNU Lesser General Public 1159 // License as published by the Free Software Foundation; either 1160 // version 2.1 of the License, or (at your option) any later version. 1161 // 1162 // The GNU C Library is distributed in the hope that it will be useful, 1163 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1164 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1165 // Lesser General Public License for more details. 1166 // 1167 // You should have received a copy of the GNU Lesser General Public 1168 // License along with the GNU C Library; if not, see 1169 // <https://www.gnu.org/licenses/>. 1170 1171 // Never include this file directly; use <sys/types.h> instead. 1172 1173 // An integral type that can be modified atomically, without the 1174 // 1175 // possibility of a signal arriving in the middle of the operation. 1176 type Sig_atomic_t = X__sig_atomic_t /* sig_atomic_t.h:8:24 */ 1177 1178 type X__sigset_t = struct{ F__val [32]uint32 } /* __sigset_t.h:8:3 */ 1179 1180 // A set of signals to be blocked, unblocked, or waited for. 1181 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ 1182 1183 type Pid_t = X__pid_t /* signal.h:40:17 */ 1184 type Uid_t = X__uid_t /* signal.h:46:17 */ 1185 1186 // We need `struct timespec' later on. 1187 // NB: Include guard matches what <linux/time.h> uses. 1188 1189 // bits/types.h -- definitions of __*_t types underlying *_t types. 1190 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1191 // This file is part of the GNU C Library. 1192 // 1193 // The GNU C Library is free software; you can redistribute it and/or 1194 // modify it under the terms of the GNU Lesser General Public 1195 // License as published by the Free Software Foundation; either 1196 // version 2.1 of the License, or (at your option) any later version. 1197 // 1198 // The GNU C Library is distributed in the hope that it will be useful, 1199 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1200 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1201 // Lesser General Public License for more details. 1202 // 1203 // You should have received a copy of the GNU Lesser General Public 1204 // License along with the GNU C Library; if not, see 1205 // <https://www.gnu.org/licenses/>. 1206 1207 // Never include this file directly; use <sys/types.h> instead. 1208 1209 // Endian macros for string.h functions 1210 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 1211 // This file is part of the GNU C Library. 1212 // 1213 // The GNU C Library is free software; you can redistribute it and/or 1214 // modify it under the terms of the GNU Lesser General Public 1215 // License as published by the Free Software Foundation; either 1216 // version 2.1 of the License, or (at your option) any later version. 1217 // 1218 // The GNU C Library is distributed in the hope that it will be useful, 1219 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1220 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1221 // Lesser General Public License for more details. 1222 // 1223 // You should have received a copy of the GNU Lesser General Public 1224 // License along with the GNU C Library; if not, see 1225 // <http://www.gnu.org/licenses/>. 1226 1227 // Definitions for byte order, according to significance of bytes, 1228 // from low addresses to high addresses. The value is what you get by 1229 // putting '4' in the most significant byte, '3' in the second most 1230 // significant byte, '2' in the second least significant byte, and '1' 1231 // in the least significant byte, and then writing down one digit for 1232 // each byte, starting with the byte at the lowest address at the left, 1233 // and proceeding to the byte with the highest address at the right. 1234 1235 // This file defines `__BYTE_ORDER' for the particular machine. 1236 1237 // ARM has selectable endianness. 1238 1239 // Some machines may need to use a different endianness for floating point 1240 // values. 1241 1242 // POSIX.1b structure for a time value. This is like a `struct timeval' but 1243 // 1244 // has nanoseconds instead of microseconds. 1245 type Timespec = struct { 1246 Ftv_sec X__time_t 1247 Ftv_nsec X__syscall_slong_t 1248 } /* struct_timespec.h:10:1 */ 1249 1250 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 1251 // This file is part of the GNU C Library. 1252 // 1253 // The GNU C Library is free software; you can redistribute it and/or 1254 // modify it under the terms of the GNU Lesser General Public 1255 // License as published by the Free Software Foundation; either 1256 // version 2.1 of the License, or (at your option) any later version. 1257 // 1258 // The GNU C Library is distributed in the hope that it will be useful, 1259 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1260 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1261 // Lesser General Public License for more details. 1262 // 1263 // You should have received a copy of the GNU Lesser General Public 1264 // License along with the GNU C Library; if not, see 1265 // <https://www.gnu.org/licenses/>. 1266 1267 // bits/types.h -- definitions of __*_t types underlying *_t types. 1268 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1269 // This file is part of the GNU C Library. 1270 // 1271 // The GNU C Library is free software; you can redistribute it and/or 1272 // modify it under the terms of the GNU Lesser General Public 1273 // License as published by the Free Software Foundation; either 1274 // version 2.1 of the License, or (at your option) any later version. 1275 // 1276 // The GNU C Library is distributed in the hope that it will be useful, 1277 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1278 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1279 // Lesser General Public License for more details. 1280 // 1281 // You should have received a copy of the GNU Lesser General Public 1282 // License along with the GNU C Library; if not, see 1283 // <https://www.gnu.org/licenses/>. 1284 1285 // Never include this file directly; use <sys/types.h> instead. 1286 1287 // Define __sigval_t. 1288 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1289 // This file is part of the GNU C Library. 1290 // 1291 // The GNU C Library is free software; you can redistribute it and/or 1292 // modify it under the terms of the GNU Lesser General Public 1293 // License as published by the Free Software Foundation; either 1294 // version 2.1 of the License, or (at your option) any later version. 1295 // 1296 // The GNU C Library is distributed in the hope that it will be useful, 1297 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1298 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1299 // Lesser General Public License for more details. 1300 // 1301 // You should have received a copy of the GNU Lesser General Public 1302 // License along with the GNU C Library; if not, see 1303 // <https://www.gnu.org/licenses/>. 1304 1305 // Type for data associated with a signal. 1306 type Sigval = struct{ Fsival_int int32 } /* __sigval_t.h:24:1 */ 1307 1308 type X__sigval_t = Sigval /* __sigval_t.h:30:22 */ 1309 1310 // Some fields of siginfo_t have architecture-specific variations. 1311 // Architecture-specific adjustments to siginfo_t. 1312 1313 // This architecture has no adjustments to make to siginfo_t. 1314 1315 type Siginfo_t = struct { 1316 Fsi_signo int32 1317 Fsi_errno int32 1318 Fsi_code int32 1319 F_sifields struct{ F_pad [29]int32 } 1320 } /* siginfo_t.h:124:5 */ 1321 1322 // Architectures might also add architecture-specific constants. 1323 // These are all considered GNU extensions. 1324 1325 // Define __sigval_t. 1326 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1327 // This file is part of the GNU C Library. 1328 // 1329 // The GNU C Library is free software; you can redistribute it and/or 1330 // modify it under the terms of the GNU Lesser General Public 1331 // License as published by the Free Software Foundation; either 1332 // version 2.1 of the License, or (at your option) any later version. 1333 // 1334 // The GNU C Library is distributed in the hope that it will be useful, 1335 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1336 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1337 // Lesser General Public License for more details. 1338 // 1339 // You should have received a copy of the GNU Lesser General Public 1340 // License along with the GNU C Library; if not, see 1341 // <https://www.gnu.org/licenses/>. 1342 1343 // To avoid sigval_t (not a standard type name) having C++ name 1344 // mangling depending on whether the selected standard includes union 1345 // sigval, it should not be defined at all when using a standard for 1346 // which the sigval name is not reserved; in that case, headers should 1347 // not include <bits/types/sigval_t.h> and should use only the 1348 // internal __sigval_t name. 1349 1350 type Sigval_t = X__sigval_t /* sigval_t.h:16:20 */ 1351 1352 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 1353 // This file is part of the GNU C Library. 1354 // 1355 // The GNU C Library is free software; you can redistribute it and/or 1356 // modify it under the terms of the GNU Lesser General Public 1357 // License as published by the Free Software Foundation; either 1358 // version 2.1 of the License, or (at your option) any later version. 1359 // 1360 // The GNU C Library is distributed in the hope that it will be useful, 1361 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1362 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1363 // Lesser General Public License for more details. 1364 // 1365 // You should have received a copy of the GNU Lesser General Public 1366 // License along with the GNU C Library; if not, see 1367 // <https://www.gnu.org/licenses/>. 1368 1369 // bits/types.h -- definitions of __*_t types underlying *_t types. 1370 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1371 // This file is part of the GNU C Library. 1372 // 1373 // The GNU C Library is free software; you can redistribute it and/or 1374 // modify it under the terms of the GNU Lesser General Public 1375 // License as published by the Free Software Foundation; either 1376 // version 2.1 of the License, or (at your option) any later version. 1377 // 1378 // The GNU C Library is distributed in the hope that it will be useful, 1379 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1380 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1381 // Lesser General Public License for more details. 1382 // 1383 // You should have received a copy of the GNU Lesser General Public 1384 // License along with the GNU C Library; if not, see 1385 // <https://www.gnu.org/licenses/>. 1386 1387 // Never include this file directly; use <sys/types.h> instead. 1388 1389 // Define __sigval_t. 1390 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1391 // This file is part of the GNU C Library. 1392 // 1393 // The GNU C Library is free software; you can redistribute it and/or 1394 // modify it under the terms of the GNU Lesser General Public 1395 // License as published by the Free Software Foundation; either 1396 // version 2.1 of the License, or (at your option) any later version. 1397 // 1398 // The GNU C Library is distributed in the hope that it will be useful, 1399 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1400 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1401 // Lesser General Public License for more details. 1402 // 1403 // You should have received a copy of the GNU Lesser General Public 1404 // License along with the GNU C Library; if not, see 1405 // <https://www.gnu.org/licenses/>. 1406 1407 // Forward declaration. 1408 type Pthread_attr_t1 = struct { 1409 F__ccgo_pad1 [0]uint32 1410 F__size [36]uint8 1411 } /* sigevent_t.h:17:9 */ 1412 1413 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 1414 // This file is part of the GNU C Library. 1415 // 1416 // The GNU C Library is free software; you can redistribute it and/or 1417 // modify it under the terms of the GNU Lesser General Public 1418 // License as published by the Free Software Foundation; either 1419 // version 2.1 of the License, or (at your option) any later version. 1420 // 1421 // The GNU C Library is distributed in the hope that it will be useful, 1422 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1423 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1424 // Lesser General Public License for more details. 1425 // 1426 // You should have received a copy of the GNU Lesser General Public 1427 // License along with the GNU C Library; if not, see 1428 // <https://www.gnu.org/licenses/>. 1429 1430 // bits/types.h -- definitions of __*_t types underlying *_t types. 1431 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1432 // This file is part of the GNU C Library. 1433 // 1434 // The GNU C Library is free software; you can redistribute it and/or 1435 // modify it under the terms of the GNU Lesser General Public 1436 // License as published by the Free Software Foundation; either 1437 // version 2.1 of the License, or (at your option) any later version. 1438 // 1439 // The GNU C Library is distributed in the hope that it will be useful, 1440 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1441 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1442 // Lesser General Public License for more details. 1443 // 1444 // You should have received a copy of the GNU Lesser General Public 1445 // License along with the GNU C Library; if not, see 1446 // <https://www.gnu.org/licenses/>. 1447 1448 // Never include this file directly; use <sys/types.h> instead. 1449 1450 // Define __sigval_t. 1451 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1452 // This file is part of the GNU C Library. 1453 // 1454 // The GNU C Library is free software; you can redistribute it and/or 1455 // modify it under the terms of the GNU Lesser General Public 1456 // License as published by the Free Software Foundation; either 1457 // version 2.1 of the License, or (at your option) any later version. 1458 // 1459 // The GNU C Library is distributed in the hope that it will be useful, 1460 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1461 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1462 // Lesser General Public License for more details. 1463 // 1464 // You should have received a copy of the GNU Lesser General Public 1465 // License along with the GNU C Library; if not, see 1466 // <https://www.gnu.org/licenses/>. 1467 1468 // Forward declaration. 1469 type Pthread_attr_t = Pthread_attr_t1 /* sigevent_t.h:17:30 */ 1470 1471 // Structure to transport application-defined values with signals. 1472 type Sigevent = struct { 1473 Fsigev_value X__sigval_t 1474 Fsigev_signo int32 1475 Fsigev_notify int32 1476 F_sigev_un struct{ F_pad [13]int32 } 1477 } /* sigevent_t.h:22:9 */ 1478 1479 // Structure to transport application-defined values with signals. 1480 type Sigevent_t = Sigevent /* sigevent_t.h:42:5 */ 1481 1482 // Type of a signal handler. 1483 type X__sighandler_t = uintptr /* signal.h:72:14 */ 1484 1485 // 4.4 BSD uses the name `sig_t' for this. 1486 type Sig_t = X__sighandler_t /* signal.h:190:24 */ 1487 1488 // Get the system-specific definitions of `struct sigaction' 1489 // and the `SA_*' and `SIG_*'. constants. 1490 // The proper definitions for Linux's sigaction. 1491 // Copyright (C) 1993-2020 Free Software Foundation, Inc. 1492 // This file is part of the GNU C Library. 1493 // 1494 // The GNU C Library is free software; you can redistribute it and/or 1495 // modify it under the terms of the GNU Lesser General Public 1496 // License as published by the Free Software Foundation; either 1497 // version 2.1 of the License, or (at your option) any later version. 1498 // 1499 // The GNU C Library is distributed in the hope that it will be useful, 1500 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1501 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1502 // Lesser General Public License for more details. 1503 // 1504 // You should have received a copy of the GNU Lesser General Public 1505 // License along with the GNU C Library; if not, see 1506 // <https://www.gnu.org/licenses/>. 1507 1508 // Structure describing the action to be taken when a signal arrives. 1509 type Sigaction = struct { 1510 F__sigaction_handler struct{ Fsa_handler X__sighandler_t } 1511 Fsa_mask X__sigset_t 1512 Fsa_flags int32 1513 Fsa_restorer uintptr 1514 } /* sigaction.h:27:1 */ 1515 1516 // Get machine-dependent `struct sigcontext' and signal subcodes. 1517 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 1518 // This file is part of the GNU C Library. 1519 // 1520 // The GNU C Library is free software; you can redistribute it and/or 1521 // modify it under the terms of the GNU Lesser General Public 1522 // License as published by the Free Software Foundation; either 1523 // version 2.1 of the License, or (at your option) any later version. 1524 // 1525 // The GNU C Library is distributed in the hope that it will be useful, 1526 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1527 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1528 // Lesser General Public License for more details. 1529 // 1530 // You should have received a copy of the GNU Lesser General Public 1531 // License along with the GNU C Library; if not, see 1532 // <https://www.gnu.org/licenses/>. 1533 1534 // Kernel headers before 2.1.1 define a struct sigcontext_struct, but 1535 // we need sigcontext. 1536 1537 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note 1538 1539 // Signal context structure - contains all info to do with the state 1540 // before the signal handler was invoked. Note: only add new entries 1541 // to the end of the structure. 1542 type Sigcontext = struct { 1543 Ftrap_no uint32 1544 Ferror_code uint32 1545 Foldmask uint32 1546 Farm_r0 uint32 1547 Farm_r1 uint32 1548 Farm_r2 uint32 1549 Farm_r3 uint32 1550 Farm_r4 uint32 1551 Farm_r5 uint32 1552 Farm_r6 uint32 1553 Farm_r7 uint32 1554 Farm_r8 uint32 1555 Farm_r9 uint32 1556 Farm_r10 uint32 1557 Farm_fp uint32 1558 Farm_ip uint32 1559 Farm_sp uint32 1560 Farm_lr uint32 1561 Farm_pc uint32 1562 Farm_cpsr uint32 1563 Ffault_address uint32 1564 } /* sigcontext.h:10:1 */ 1565 1566 // Wide character type. 1567 // Locale-writers should change this as necessary to 1568 // be big enough to hold unique values not between 0 and 127, 1569 // and not (wchar_t) -1, for each defined multibyte character. 1570 1571 // Define this type if we are doing the whole job, 1572 // or if we want this type in particular. 1573 1574 // A null pointer constant. 1575 1576 // Define stack_t. Linux version. 1577 // Copyright (C) 1998-2020 Free Software Foundation, Inc. 1578 // This file is part of the GNU C Library. 1579 // 1580 // The GNU C Library is free software; you can redistribute it and/or 1581 // modify it under the terms of the GNU Lesser General Public 1582 // License as published by the Free Software Foundation; either 1583 // version 2.1 of the License, or (at your option) any later version. 1584 // 1585 // The GNU C Library is distributed in the hope that it will be useful, 1586 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1587 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1588 // Lesser General Public License for more details. 1589 // 1590 // You should have received a copy of the GNU Lesser General Public 1591 // License along with the GNU C Library; if not, see 1592 // <https://www.gnu.org/licenses/>. 1593 1594 // Copyright (C) 1989-2020 Free Software Foundation, Inc. 1595 // 1596 // This file is part of GCC. 1597 // 1598 // GCC is free software; you can redistribute it and/or modify 1599 // it under the terms of the GNU General Public License as published by 1600 // the Free Software Foundation; either version 3, or (at your option) 1601 // any later version. 1602 // 1603 // GCC is distributed in the hope that it will be useful, 1604 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1605 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1606 // GNU General Public License for more details. 1607 // 1608 // Under Section 7 of GPL version 3, you are granted additional 1609 // permissions described in the GCC Runtime Library Exception, version 1610 // 3.1, as published by the Free Software Foundation. 1611 // 1612 // You should have received a copy of the GNU General Public License and 1613 // a copy of the GCC Runtime Library Exception along with this program; 1614 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 1615 // <http://www.gnu.org/licenses/>. 1616 1617 // ISO C Standard: 7.17 Common definitions <stddef.h> 1618 1619 // Any one of these symbols __need_* means that GNU libc 1620 // wants us just to define one data type. So don't define 1621 // the symbols that indicate this file's entire job has been done. 1622 1623 // This avoids lossage on SunOS but only if stdtypes.h comes first. 1624 // There's no way to win with the other order! Sun lossage. 1625 1626 // Sequent's header files use _PTRDIFF_T_ in some conflicting way. 1627 // Just ignore it. 1628 1629 // On VxWorks, <type/vxTypesBase.h> may have defined macros like 1630 // _TYPE_size_t which will typedef size_t. fixincludes patched the 1631 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is 1632 // not defined, and so that defining this macro defines _GCC_SIZE_T. 1633 // If we find that the macros are still defined at this point, we must 1634 // invoke them so that the type is defined as expected. 1635 1636 // In case nobody has defined these types, but we aren't running under 1637 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and 1638 // __WCHAR_TYPE__ have reasonable values. This can happen if the 1639 // parts of GCC is compiled by an older compiler, that actually 1640 // include gstddef.h, such as collect2. 1641 1642 // Signed type of difference of two pointers. 1643 1644 // Define this type if we are doing the whole job, 1645 // or if we want this type in particular. 1646 1647 // Unsigned type of `sizeof' something. 1648 1649 // Define this type if we are doing the whole job, 1650 // or if we want this type in particular. 1651 1652 // Wide character type. 1653 // Locale-writers should change this as necessary to 1654 // be big enough to hold unique values not between 0 and 127, 1655 // and not (wchar_t) -1, for each defined multibyte character. 1656 1657 // Define this type if we are doing the whole job, 1658 // or if we want this type in particular. 1659 1660 // A null pointer constant. 1661 1662 // Structure describing a signal stack. 1663 type Stack_t = struct { 1664 Fss_sp uintptr 1665 Fss_flags int32 1666 Fss_size Size_t 1667 } /* stack_t.h:31:5 */ 1668 1669 // This will define `ucontext_t' and `mcontext_t'. 1670 // Copyright (C) 1998-2020 Free Software Foundation, Inc. 1671 // This file is part of the GNU C Library. 1672 // 1673 // The GNU C Library is free software; you can redistribute it and/or 1674 // modify it under the terms of the GNU Lesser General Public 1675 // License as published by the Free Software Foundation; either 1676 // version 2.1 of the License, or (at your option) any later version. 1677 // 1678 // The GNU C Library is distributed in the hope that it will be useful, 1679 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1680 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1681 // Lesser General Public License for more details. 1682 // 1683 // You should have received a copy of the GNU Lesser General Public 1684 // License along with the GNU C Library. If not, see 1685 // <https://www.gnu.org/licenses/>. 1686 1687 // System V/ARM ABI compliant context switching support. 1688 1689 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1690 // This file is part of the GNU C Library. 1691 // 1692 // The GNU C Library is free software; you can redistribute it and/or 1693 // modify it under the terms of the GNU Lesser General Public 1694 // License as published by the Free Software Foundation; either 1695 // version 2.1 of the License, or (at your option) any later version. 1696 // 1697 // The GNU C Library is distributed in the hope that it will be useful, 1698 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1699 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1700 // Lesser General Public License for more details. 1701 // 1702 // You should have received a copy of the GNU Lesser General Public 1703 // License along with the GNU C Library; if not, see 1704 // <https://www.gnu.org/licenses/>. 1705 1706 // Define stack_t. Linux version. 1707 // Copyright (C) 1998-2020 Free Software Foundation, Inc. 1708 // This file is part of the GNU C Library. 1709 // 1710 // The GNU C Library is free software; you can redistribute it and/or 1711 // modify it under the terms of the GNU Lesser General Public 1712 // License as published by the Free Software Foundation; either 1713 // version 2.1 of the License, or (at your option) any later version. 1714 // 1715 // The GNU C Library is distributed in the hope that it will be useful, 1716 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1717 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1718 // Lesser General Public License for more details. 1719 // 1720 // You should have received a copy of the GNU Lesser General Public 1721 // License along with the GNU C Library; if not, see 1722 // <https://www.gnu.org/licenses/>. 1723 1724 type Greg_t = int32 /* ucontext.h:36:13 */ 1725 1726 // Number of general registers. 1727 1728 // Container for all general registers. 1729 type Gregset_t = [18]Greg_t /* ucontext.h:42:16 */ 1730 1731 type X_libc_fpstate = struct { 1732 Ffpregs [8]struct { 1733 F__ccgo_pad1 [0]uint32 1734 Fsign1 uint32 /* unsigned sign1: 1, unsigned unused: 15, unsigned sign2: 1, unsigned exponent: 14, unsigned j: 1 */ 1735 Fmantissa1 uint32 /* unsigned mantissa1: 31 */ 1736 Fmantissa0 uint32 /* unsigned mantissa0: 32 */ 1737 } 1738 Ffpsr uint32 /* unsigned fpsr: 32 */ 1739 Ffpcr uint32 /* unsigned fpcr: 32 */ 1740 Fftype [8]uint8 1741 Finit_flag uint32 1742 } /* ucontext.h:81:1 */ 1743 1744 // Structure to describe FPU registers. 1745 type Fpregset_t = X_libc_fpstate /* ucontext.h:99:30 */ 1746 1747 // Context to describe whole processor state. This only describes 1748 // 1749 // the core registers; coprocessor registers get saved elsewhere 1750 // (e.g. in uc_regspace, or somewhere unspecified on the stack 1751 // during non-RT signal handlers). 1752 type Mcontext_t = struct { 1753 Ftrap_no uint32 1754 Ferror_code uint32 1755 Foldmask uint32 1756 Farm_r0 uint32 1757 Farm_r1 uint32 1758 Farm_r2 uint32 1759 Farm_r3 uint32 1760 Farm_r4 uint32 1761 Farm_r5 uint32 1762 Farm_r6 uint32 1763 Farm_r7 uint32 1764 Farm_r8 uint32 1765 Farm_r9 uint32 1766 Farm_r10 uint32 1767 Farm_fp uint32 1768 Farm_ip uint32 1769 Farm_sp uint32 1770 Farm_lr uint32 1771 Farm_pc uint32 1772 Farm_cpsr uint32 1773 Ffault_address uint32 1774 } /* ucontext.h:129:5 */ 1775 1776 // Userlevel context. 1777 type Ucontext_t1 = struct { 1778 Fuc_flags uint32 1779 Fuc_link uintptr 1780 Fuc_stack Stack_t 1781 Fuc_mcontext Mcontext_t 1782 Fuc_sigmask Sigset_t 1783 Fuc_regspace [128]uint32 1784 } /* ucontext.h:132:9 */ 1785 1786 // Userlevel context. 1787 type Ucontext_t = Ucontext_t1 /* ucontext.h:140:5 */ 1788 1789 // Define struct sigstack. 1790 // Copyright (C) 1998-2020 Free Software Foundation, Inc. 1791 // This file is part of the GNU C Library. 1792 // 1793 // The GNU C Library is free software; you can redistribute it and/or 1794 // modify it under the terms of the GNU Lesser General Public 1795 // License as published by the Free Software Foundation; either 1796 // version 2.1 of the License, or (at your option) any later version. 1797 // 1798 // The GNU C Library is distributed in the hope that it will be useful, 1799 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1800 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1801 // Lesser General Public License for more details. 1802 // 1803 // You should have received a copy of the GNU Lesser General Public 1804 // License along with the GNU C Library; if not, see 1805 // <https://www.gnu.org/licenses/>. 1806 1807 // Structure describing a signal stack (obsolete). 1808 type Sigstack = struct { 1809 Fss_sp uintptr 1810 Fss_onstack int32 1811 } /* struct_sigstack.h:23:1 */ 1812 1813 // Some of the functions for handling signals in threaded programs must 1814 // be defined here. 1815 // Declaration of common pthread types for all architectures. 1816 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1817 // This file is part of the GNU C Library. 1818 // 1819 // The GNU C Library is free software; you can redistribute it and/or 1820 // modify it under the terms of the GNU Lesser General Public 1821 // License as published by the Free Software Foundation; either 1822 // version 2.1 of the License, or (at your option) any later version. 1823 // 1824 // The GNU C Library is distributed in the hope that it will be useful, 1825 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1826 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1827 // Lesser General Public License for more details. 1828 // 1829 // You should have received a copy of the GNU Lesser General Public 1830 // License along with the GNU C Library; if not, see 1831 // <https://www.gnu.org/licenses/>. 1832 1833 // For internal mutex and condition variable definitions. 1834 // Common threading primitives definitions for both POSIX and C11. 1835 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1836 // This file is part of the GNU C Library. 1837 // 1838 // The GNU C Library is free software; you can redistribute it and/or 1839 // modify it under the terms of the GNU Lesser General Public 1840 // License as published by the Free Software Foundation; either 1841 // version 2.1 of the License, or (at your option) any later version. 1842 // 1843 // The GNU C Library is distributed in the hope that it will be useful, 1844 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1845 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1846 // Lesser General Public License for more details. 1847 // 1848 // You should have received a copy of the GNU Lesser General Public 1849 // License along with the GNU C Library; if not, see 1850 // <https://www.gnu.org/licenses/>. 1851 1852 // Arch-specific definitions. Each architecture must define the following 1853 // macros to define the expected sizes of pthread data types: 1854 // 1855 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1856 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1857 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1858 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1859 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1860 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1861 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1862 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1863 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1864 // 1865 // The additional macro defines any constraint for the lock alignment 1866 // inside the thread structures: 1867 // 1868 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1869 // 1870 // Same idea but for the once locking primitive: 1871 // 1872 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1873 1874 // Machine-specific pthread type layouts. Generic version. 1875 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1876 // 1877 // This file is part of the GNU C Library. 1878 // 1879 // The GNU C Library is free software; you can redistribute it and/or 1880 // modify it under the terms of the GNU Lesser General Public 1881 // License as published by the Free Software Foundation; either 1882 // version 2.1 of the License, or (at your option) any later version. 1883 // 1884 // The GNU C Library is distributed in the hope that it will be useful, 1885 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1886 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1887 // Lesser General Public License for more details. 1888 // 1889 // You should have received a copy of the GNU Lesser General Public 1890 // License along with the GNU C Library; if not, see 1891 // <http://www.gnu.org/licenses/>. 1892 1893 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 1894 // This file is part of the GNU C Library. 1895 // 1896 // The GNU C Library is free software; you can redistribute it and/or 1897 // modify it under the terms of the GNU Lesser General Public 1898 // License as published by the Free Software Foundation; either 1899 // version 2.1 of the License, or (at your option) any later version. 1900 // 1901 // The GNU C Library is distributed in the hope that it will be useful, 1902 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1903 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1904 // Lesser General Public License for more details. 1905 // 1906 // You should have received a copy of the GNU Lesser General Public 1907 // License along with the GNU C Library; if not, see 1908 // <https://www.gnu.org/licenses/>. 1909 1910 // Common definition of pthread_mutex_t. 1911 1912 type X__pthread_internal_list = struct { 1913 F__prev uintptr 1914 F__next uintptr 1915 } /* thread-shared-types.h:49:9 */ 1916 1917 // Some of the functions for handling signals in threaded programs must 1918 // be defined here. 1919 // Declaration of common pthread types for all architectures. 1920 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1921 // This file is part of the GNU C Library. 1922 // 1923 // The GNU C Library is free software; you can redistribute it and/or 1924 // modify it under the terms of the GNU Lesser General Public 1925 // License as published by the Free Software Foundation; either 1926 // version 2.1 of the License, or (at your option) any later version. 1927 // 1928 // The GNU C Library is distributed in the hope that it will be useful, 1929 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1930 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1931 // Lesser General Public License for more details. 1932 // 1933 // You should have received a copy of the GNU Lesser General Public 1934 // License along with the GNU C Library; if not, see 1935 // <https://www.gnu.org/licenses/>. 1936 1937 // For internal mutex and condition variable definitions. 1938 // Common threading primitives definitions for both POSIX and C11. 1939 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1940 // This file is part of the GNU C Library. 1941 // 1942 // The GNU C Library is free software; you can redistribute it and/or 1943 // modify it under the terms of the GNU Lesser General Public 1944 // License as published by the Free Software Foundation; either 1945 // version 2.1 of the License, or (at your option) any later version. 1946 // 1947 // The GNU C Library is distributed in the hope that it will be useful, 1948 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1949 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1950 // Lesser General Public License for more details. 1951 // 1952 // You should have received a copy of the GNU Lesser General Public 1953 // License along with the GNU C Library; if not, see 1954 // <https://www.gnu.org/licenses/>. 1955 1956 // Arch-specific definitions. Each architecture must define the following 1957 // macros to define the expected sizes of pthread data types: 1958 // 1959 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1960 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1961 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1962 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1963 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1964 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1965 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1966 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1967 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1968 // 1969 // The additional macro defines any constraint for the lock alignment 1970 // inside the thread structures: 1971 // 1972 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1973 // 1974 // Same idea but for the once locking primitive: 1975 // 1976 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1977 1978 // Machine-specific pthread type layouts. Generic version. 1979 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1980 // 1981 // This file is part of the GNU C Library. 1982 // 1983 // The GNU C Library is free software; you can redistribute it and/or 1984 // modify it under the terms of the GNU Lesser General Public 1985 // License as published by the Free Software Foundation; either 1986 // version 2.1 of the License, or (at your option) any later version. 1987 // 1988 // The GNU C Library is distributed in the hope that it will be useful, 1989 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1990 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1991 // Lesser General Public License for more details. 1992 // 1993 // You should have received a copy of the GNU Lesser General Public 1994 // License along with the GNU C Library; if not, see 1995 // <http://www.gnu.org/licenses/>. 1996 1997 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 1998 // This file is part of the GNU C Library. 1999 // 2000 // The GNU C Library is free software; you can redistribute it and/or 2001 // modify it under the terms of the GNU Lesser General Public 2002 // License as published by the Free Software Foundation; either 2003 // version 2.1 of the License, or (at your option) any later version. 2004 // 2005 // The GNU C Library is distributed in the hope that it will be useful, 2006 // but WITHOUT ANY WARRANTY; without even the implied warranty of 2007 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2008 // Lesser General Public License for more details. 2009 // 2010 // You should have received a copy of the GNU Lesser General Public 2011 // License along with the GNU C Library; if not, see 2012 // <https://www.gnu.org/licenses/>. 2013 2014 // Common definition of pthread_mutex_t. 2015 2016 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ 2017 2018 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ 2019 2020 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ 2021 2022 // Arch-specific mutex definitions. A generic implementation is provided 2023 // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture 2024 // can override it by defining: 2025 // 2026 // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t 2027 // definition). It should contains at least the internal members 2028 // defined in the generic version. 2029 // 2030 // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with 2031 // atomic operations. 2032 // 2033 // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. 2034 // It should initialize the mutex internal flag. 2035 2036 // Default mutex implementation struct definitions. 2037 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 2038 // This file is part of the GNU C Library. 2039 // 2040 // The GNU C Library is free software; you can redistribute it and/or 2041 // modify it under the terms of the GNU Lesser General Public 2042 // License as published by the Free Software Foundation; either 2043 // version 2.1 of the License, or (at your option) any later version. 2044 // 2045 // The GNU C Library is distributed in the hope that it will be useful, 2046 // but WITHOUT ANY WARRANTY; without even the implied warranty of 2047 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2048 // Lesser General Public License for more details. 2049 // 2050 // You should have received a copy of the GNU Lesser General Public 2051 // License along with the GNU C Library; if not, see 2052 // <http://www.gnu.org/licenses/>. 2053 2054 // Generic struct for both POSIX and C11 mutexes. New ports are expected 2055 // to use the default layout, however architecture can redefine it to 2056 // add arch-specific extension (such as lock-elision). The struct have 2057 // a size of 32 bytes on LP32 and 40 bytes on LP64 architectures. 2058 2059 type X__pthread_mutex_s = struct { 2060 F__lock int32 2061 F__count uint32 2062 F__owner int32 2063 F__kind int32 2064 F__nusers uint32 2065 F__20 struct{ F__spins int32 } 2066 } /* struct_mutex.h:27:1 */ 2067 2068 // Arch-sepecific read-write lock definitions. A generic implementation is 2069 // provided by struct_rwlock.h. If required, an architecture can override it 2070 // by defining: 2071 // 2072 // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). 2073 // It should contain at least the internal members defined in the 2074 // generic version. 2075 // 2076 // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. 2077 // It should initialize the rwlock internal type. 2078 2079 // Default read-write lock implementation struct definitions. 2080 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 2081 // This file is part of the GNU C Library. 2082 // 2083 // The GNU C Library is free software; you can redistribute it and/or 2084 // modify it under the terms of the GNU Lesser General Public 2085 // License as published by the Free Software Foundation; either 2086 // version 2.1 of the License, or (at your option) any later version. 2087 // 2088 // The GNU C Library is distributed in the hope that it will be useful, 2089 // but WITHOUT ANY WARRANTY; without even the implied warranty of 2090 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2091 // Lesser General Public License for more details. 2092 // 2093 // You should have received a copy of the GNU Lesser General Public 2094 // License along with the GNU C Library; if not, see 2095 // <http://www.gnu.org/licenses/>. 2096 2097 // Endian macros for string.h functions 2098 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 2099 // This file is part of the GNU C Library. 2100 // 2101 // The GNU C Library is free software; you can redistribute it and/or 2102 // modify it under the terms of the GNU Lesser General Public 2103 // License as published by the Free Software Foundation; either 2104 // version 2.1 of the License, or (at your option) any later version. 2105 // 2106 // The GNU C Library is distributed in the hope that it will be useful, 2107 // but WITHOUT ANY WARRANTY; without even the implied warranty of 2108 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2109 // Lesser General Public License for more details. 2110 // 2111 // You should have received a copy of the GNU Lesser General Public 2112 // License along with the GNU C Library; if not, see 2113 // <http://www.gnu.org/licenses/>. 2114 2115 // Generic struct for both POSIX read-write lock. New ports are expected 2116 // to use the default layout, however archictetures can redefine it to add 2117 // arch-specific extensions (such as lock-elision). The struct have a size 2118 // of 32 bytes on both LP32 and LP64 architectures. 2119 2120 type X__pthread_rwlock_arch_t = struct { 2121 F__readers uint32 2122 F__writers uint32 2123 F__wrphase_futex uint32 2124 F__writers_futex uint32 2125 F__pad3 uint32 2126 F__pad4 uint32 2127 F__flags uint8 2128 F__shared uint8 2129 F__pad1 uint8 2130 F__pad2 uint8 2131 F__cur_writer int32 2132 } /* struct_rwlock.h:29:1 */ 2133 2134 // Common definition of pthread_cond_t. 2135 2136 type X__pthread_cond_s = struct { 2137 F__0 struct{ F__wseq uint64 } 2138 F__8 struct{ F__g1_start uint64 } 2139 F__g_refs [2]uint32 2140 F__g_size [2]uint32 2141 F__g1_orig_size uint32 2142 F__wrefs uint32 2143 F__g_signals [2]uint32 2144 } /* thread-shared-types.h:92:1 */ 2145 2146 // Thread identifiers. The structure of the attribute type is not 2147 // 2148 // exposed on purpose. 2149 type Pthread_t = uint32 /* pthreadtypes.h:27:27 */ 2150 2151 // Data structures for mutex handling. The structure of the attribute 2152 // 2153 // type is not exposed on purpose. 2154 type Pthread_mutexattr_t = struct { 2155 F__ccgo_pad1 [0]uint32 2156 F__size [4]uint8 2157 } /* pthreadtypes.h:36:3 */ 2158 2159 // Data structure for condition variable handling. The structure of 2160 // 2161 // the attribute type is not exposed on purpose. 2162 type Pthread_condattr_t = struct { 2163 F__ccgo_pad1 [0]uint32 2164 F__size [4]uint8 2165 } /* pthreadtypes.h:45:3 */ 2166 2167 // Keys for thread-specific data 2168 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ 2169 2170 // Once-only execution 2171 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ 2172 2173 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ 2174 2175 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ 2176 2177 // Data structure for reader-writer lock variable handling. The 2178 // 2179 // structure of the attribute type is deliberately not exposed. 2180 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ 2181 2182 type Pthread_rwlockattr_t = struct { 2183 F__ccgo_pad1 [0]uint32 2184 F__size [8]uint8 2185 } /* pthreadtypes.h:97:3 */ 2186 2187 // POSIX spinlock data type. 2188 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ 2189 2190 // POSIX barriers data type. The structure of the type is 2191 // 2192 // deliberately not exposed. 2193 type Pthread_barrier_t = struct { 2194 F__ccgo_pad1 [0]uint32 2195 F__size [20]uint8 2196 } /* pthreadtypes.h:112:3 */ 2197 2198 type Pthread_barrierattr_t = struct { 2199 F__ccgo_pad1 [0]uint32 2200 F__size [4]uint8 2201 } /* pthreadtypes.h:118:3 */ 2202 2203 // System-specific extensions. 2204 // System-specific extensions of <signal.h>, Linux version. 2205 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 2206 // This file is part of the GNU C Library. 2207 // 2208 // The GNU C Library is free software; you can redistribute it and/or 2209 // modify it under the terms of the GNU Lesser General Public 2210 // License as published by the Free Software Foundation; either 2211 // version 2.1 of the License, or (at your option) any later version. 2212 // 2213 // The GNU C Library is distributed in the hope that it will be useful, 2214 // but WITHOUT ANY WARRANTY; without even the implied warranty of 2215 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2216 // Lesser General Public License for more details. 2217 // 2218 // You should have received a copy of the GNU Lesser General Public 2219 // License along with the GNU C Library; if not, see 2220 // <https://www.gnu.org/licenses/>. 2221 2222 var _ uint8 /* gen.c:2:13: */