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