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