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