stdlib_linux_amd64.go (66974B)
1 // Code generated by 'ccgo stdlib/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o stdlib/stdlib_linux_amd64.go -pkgname stdlib', DO NOT EDIT. 2 3 package stdlib 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 // endian.h:28:1: 19 BYTE_ORDER = 1234 // endian.h:30:1: 20 EXIT_FAILURE = 1 // stdlib.h:91:1: 21 EXIT_SUCCESS = 0 // stdlib.h:92:1: 22 FD_SETSIZE = 1024 // select.h:73:1: 23 LITTLE_ENDIAN = 1234 // endian.h:27:1: 24 PDP_ENDIAN = 3412 // endian.h:29:1: 25 RAND_MAX = 2147483647 // stdlib.h:86:1: 26 WCONTINUED = 8 // waitflags.h:32:1: 27 WEXITED = 4 // waitflags.h:31:1: 28 WNOHANG = 1 // waitflags.h:25:1: 29 WNOWAIT = 0x01000000 // waitflags.h:33:1: 30 WSTOPPED = 2 // waitflags.h:30:1: 31 WUNTRACED = 2 // waitflags.h:26:1: 32 X_ALLOCA_H = 1 // alloca.h:19:1: 33 X_ATFILE_SOURCE = 1 // features.h:342:1: 34 X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: 35 X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: 36 X_BITS_ENDIAN_H = 1 // endian.h:20:1: 37 X_BITS_FLOATN_COMMON_H = 0 // floatn-common.h:21:1: 38 X_BITS_FLOATN_H = 0 // floatn.h:20:1: 39 X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: 40 X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: 41 X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: 42 X_BITS_TIME64_H = 1 // time64.h:24:1: 43 X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: 44 X_BITS_TYPES_H = 1 // types.h:24:1: 45 X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: 46 X_BSD_SIZE_T_ = 0 // stddef.h:189:1: 47 X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: 48 X_DEFAULT_SOURCE = 1 // features.h:227:1: 49 X_ENDIAN_H = 1 // endian.h:19:1: 50 X_FEATURES_H = 1 // features.h:19:1: 51 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 52 X_GCC_SIZE_T = 0 // stddef.h:195:1: 53 X_GCC_WCHAR_T = 0 // stddef.h:273:1: 54 X_LP64 = 1 // <predefined>:284:1: 55 X_POSIX_C_SOURCE = 200809 // features.h:281:1: 56 X_POSIX_SOURCE = 1 // features.h:279:1: 57 X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: 58 X_SIZET_ = 0 // stddef.h:196:1: 59 X_SIZE_T = 0 // stddef.h:183:1: 60 X_SIZE_T_ = 0 // stddef.h:188:1: 61 X_SIZE_T_DECLARED = 0 // stddef.h:193:1: 62 X_SIZE_T_DEFINED = 0 // stddef.h:191:1: 63 X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: 64 X_STDC_PREDEF_H = 1 // <predefined>:162:1: 65 X_STDLIB_H = 1 // stdlib.h:35:1: 66 X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: 67 X_SYS_CDEFS_H = 1 // cdefs.h:19:1: 68 X_SYS_SELECT_H = 1 // select.h:22:1: 69 X_SYS_SIZE_T_H = 0 // stddef.h:184:1: 70 X_SYS_TYPES_H = 1 // types.h:23:1: 71 X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: 72 X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: 73 X_T_SIZE = 0 // stddef.h:186:1: 74 X_T_SIZE_ = 0 // stddef.h:185:1: 75 X_T_WCHAR = 0 // stddef.h:264:1: 76 X_T_WCHAR_ = 0 // stddef.h:263:1: 77 X_WCHAR_T = 0 // stddef.h:262:1: 78 X_WCHAR_T_ = 0 // stddef.h:266:1: 79 X_WCHAR_T_DECLARED = 0 // stddef.h:274:1: 80 X_WCHAR_T_DEFINED = 0 // stddef.h:269:1: 81 X_WCHAR_T_DEFINED_ = 0 // stddef.h:268:1: 82 X_WCHAR_T_H = 0 // stddef.h:270:1: 83 Linux = 1 // <predefined>:231:1: 84 Unix = 1 // <predefined>:177:1: 85 ) 86 87 // A null pointer constant. 88 89 // XPG requires a few symbols from <sys/wait.h> being defined. 90 // Definitions of flag bits for `waitpid' et al. 91 // Copyright (C) 1992-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 // Bits in the third argument to `waitpid'. 109 110 // Bits in the fourth argument to `waitid'. 111 112 // The following values are used by the `waitid' function. 113 114 // The Linux kernel defines these bare, rather than an enum, 115 // which causes a conflict if the include order is reversed. 116 117 const ( /* waitflags.h:52:1: */ 118 P_ALL = 0 // Wait for any child. 119 P_PID = 1 // Wait for specified process. 120 P_PGID = 2 121 ) 122 123 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 124 125 type Size_t = uint64 /* <builtin>:9:23 */ 126 127 type Wchar_t = int32 /* <builtin>:15:24 */ 128 129 type X__int128_t = struct { 130 Flo int64 131 Fhi int64 132 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 133 type X__uint128_t = struct { 134 Flo uint64 135 Fhi uint64 136 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 137 138 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 139 type X__float128 = float64 /* <builtin>:47:21 */ 140 141 // A null pointer constant. 142 143 // XPG requires a few symbols from <sys/wait.h> being defined. 144 // Definitions of flag bits for `waitpid' et al. 145 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 146 // This file is part of the GNU C Library. 147 // 148 // The GNU C Library is free software; you can redistribute it and/or 149 // modify it under the terms of the GNU Lesser General Public 150 // License as published by the Free Software Foundation; either 151 // version 2.1 of the License, or (at your option) any later version. 152 // 153 // The GNU C Library is distributed in the hope that it will be useful, 154 // but WITHOUT ANY WARRANTY; without even the implied warranty of 155 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 156 // Lesser General Public License for more details. 157 // 158 // You should have received a copy of the GNU Lesser General Public 159 // License along with the GNU C Library; if not, see 160 // <https://www.gnu.org/licenses/>. 161 162 // Bits in the third argument to `waitpid'. 163 164 // Bits in the fourth argument to `waitid'. 165 166 // The following values are used by the `waitid' function. 167 168 // The Linux kernel defines these bare, rather than an enum, 169 // which causes a conflict if the include order is reversed. 170 171 type Idtype_t = uint32 /* waitflags.h:57:3 */ 172 // Definitions of status bits for `wait' et al. 173 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 174 // This file is part of the GNU C Library. 175 // 176 // The GNU C Library is free software; you can redistribute it and/or 177 // modify it under the terms of the GNU Lesser General Public 178 // License as published by the Free Software Foundation; either 179 // version 2.1 of the License, or (at your option) any later version. 180 // 181 // The GNU C Library is distributed in the hope that it will be useful, 182 // but WITHOUT ANY WARRANTY; without even the implied warranty of 183 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 184 // Lesser General Public License for more details. 185 // 186 // You should have received a copy of the GNU Lesser General Public 187 // License along with the GNU C Library; if not, see 188 // <https://www.gnu.org/licenses/>. 189 190 // Everything extant so far uses these same bits. 191 192 // If WIFEXITED(STATUS), the low-order 8 bits of the status. 193 194 // If WIFSIGNALED(STATUS), the terminating signal. 195 196 // If WIFSTOPPED(STATUS), the signal that stopped the child. 197 198 // Nonzero if STATUS indicates normal termination. 199 200 // Nonzero if STATUS indicates termination by a signal. 201 202 // Nonzero if STATUS indicates the child is stopped. 203 204 // Nonzero if STATUS indicates the child continued after a stop. We only 205 // define this if <bits/waitflags.h> provides the WCONTINUED flag bit. 206 207 // Nonzero if STATUS indicates the child dumped core. 208 209 // Macros for constructing status values. 210 211 // Define the macros <sys/wait.h> also would define this way. 212 213 // _FloatN API tests for enablement. 214 // Macros to control TS 18661-3 glibc features on x86. 215 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 216 // This file is part of the GNU C Library. 217 // 218 // The GNU C Library is free software; you can redistribute it and/or 219 // modify it under the terms of the GNU Lesser General Public 220 // License as published by the Free Software Foundation; either 221 // version 2.1 of the License, or (at your option) any later version. 222 // 223 // The GNU C Library is distributed in the hope that it will be useful, 224 // but WITHOUT ANY WARRANTY; without even the implied warranty of 225 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 226 // Lesser General Public License for more details. 227 // 228 // You should have received a copy of the GNU Lesser General Public 229 // License along with the GNU C Library; if not, see 230 // <https://www.gnu.org/licenses/>. 231 232 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 233 // This file is part of the GNU C Library. 234 // 235 // The GNU C Library is free software; you can redistribute it and/or 236 // modify it under the terms of the GNU Lesser General Public 237 // License as published by the Free Software Foundation; either 238 // version 2.1 of the License, or (at your option) any later version. 239 // 240 // The GNU C Library is distributed in the hope that it will be useful, 241 // but WITHOUT ANY WARRANTY; without even the implied warranty of 242 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 243 // Lesser General Public License for more details. 244 // 245 // You should have received a copy of the GNU Lesser General Public 246 // License along with the GNU C Library; if not, see 247 // <https://www.gnu.org/licenses/>. 248 249 // Defined to 1 if the current compiler invocation provides a 250 // floating-point type with the IEEE 754 binary128 format, and this 251 // glibc includes corresponding *f128 interfaces for it. The required 252 // libgcc support was added some time after the basic compiler 253 // support, for x86_64 and x86. 254 255 // Defined to 1 if __HAVE_FLOAT128 is 1 and the type is ABI-distinct 256 // from the default float, double and long double types in this glibc. 257 258 // Defined to 1 if the current compiler invocation provides a 259 // floating-point type with the right format for _Float64x, and this 260 // glibc includes corresponding *f64x interfaces for it. 261 262 // Defined to 1 if __HAVE_FLOAT64X is 1 and _Float64x has the format 263 // of long double. Otherwise, if __HAVE_FLOAT64X is 1, _Float64x has 264 // the format of _Float128, which must be different from that of long 265 // double. 266 267 // Defined to concatenate the literal suffix to be used with _Float128 268 // types, if __HAVE_FLOAT128 is 1. 269 270 // Defined to a complex binary128 type if __HAVE_FLOAT128 is 1. 271 272 // The remaining of this file provides support for older compilers. 273 274 // The type _Float128 exists only since GCC 7.0. 275 276 // __builtin_huge_valf128 doesn't exist before GCC 7.0. 277 278 // Older GCC has only a subset of built-in functions for _Float128 on 279 // x86, and __builtin_infq is not usable in static initializers. 280 // Converting a narrower sNaN to _Float128 produces a quiet NaN, so 281 // attempts to use _Float128 sNaNs will not work properly with older 282 // compilers. 283 284 // In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*, 285 // e.g.: __builtin_signbitf128, before GCC 6. However, there has never 286 // been a __builtin_signbitf128 in GCC and the type-generic builtin is 287 // only available since GCC 6. 288 289 // Macros to control TS 18661-3 glibc features where the same 290 // definitions are appropriate for all platforms. 291 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 292 // This file is part of the GNU C Library. 293 // 294 // The GNU C Library is free software; you can redistribute it and/or 295 // modify it under the terms of the GNU Lesser General Public 296 // License as published by the Free Software Foundation; either 297 // version 2.1 of the License, or (at your option) any later version. 298 // 299 // The GNU C Library is distributed in the hope that it will be useful, 300 // but WITHOUT ANY WARRANTY; without even the implied warranty of 301 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 302 // Lesser General Public License for more details. 303 // 304 // You should have received a copy of the GNU Lesser General Public 305 // License along with the GNU C Library; if not, see 306 // <https://www.gnu.org/licenses/>. 307 308 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 309 // This file is part of the GNU C Library. 310 // 311 // The GNU C Library is free software; you can redistribute it and/or 312 // modify it under the terms of the GNU Lesser General Public 313 // License as published by the Free Software Foundation; either 314 // version 2.1 of the License, or (at your option) any later version. 315 // 316 // The GNU C Library is distributed in the hope that it will be useful, 317 // but WITHOUT ANY WARRANTY; without even the implied warranty of 318 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 319 // Lesser General Public License for more details. 320 // 321 // You should have received a copy of the GNU Lesser General Public 322 // License along with the GNU C Library; if not, see 323 // <https://www.gnu.org/licenses/>. 324 325 // Properties of long double type. ldbl-96 version. 326 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 327 // This file is part of the GNU C Library. 328 // 329 // The GNU C Library is free software; you can redistribute it and/or 330 // modify it under the terms of the GNU Lesser General Public 331 // License published by the Free Software Foundation; either 332 // version 2.1 of the License, or (at your option) any later version. 333 // 334 // The GNU C Library is distributed in the hope that it will be useful, 335 // but WITHOUT ANY WARRANTY; without even the implied warranty of 336 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 337 // Lesser General Public License for more details. 338 // 339 // You should have received a copy of the GNU Lesser General Public 340 // License along with the GNU C Library; if not, see 341 // <https://www.gnu.org/licenses/>. 342 343 // long double is distinct from double, so there is nothing to 344 // define here. 345 346 // This header should be included at the bottom of each bits/floatn.h. 347 // It defines the following macros for each _FloatN and _FloatNx type, 348 // where the same definitions, or definitions based only on the macros 349 // in bits/floatn.h, are appropriate for all glibc configurations. 350 351 // Defined to 1 if the current compiler invocation provides a 352 // floating-point type with the right format for this type, and this 353 // glibc includes corresponding *fN or *fNx interfaces for it. 354 355 // Defined to 1 if the corresponding __HAVE_<type> macro is 1 and the 356 // type is the first with its format in the sequence of (the default 357 // choices for) float, double, long double, _Float16, _Float32, 358 // _Float64, _Float128, _Float32x, _Float64x, _Float128x for this 359 // glibc; that is, if functions present once per floating-point format 360 // rather than once per type are present for this type. 361 // 362 // All configurations supported by glibc have _Float32 the same format 363 // as float, _Float64 and _Float32x the same format as double, the 364 // _Float64x the same format as either long double or _Float128. No 365 // configurations support _Float128x or, as of GCC 7, have compiler 366 // support for a type meeting the requirements for _Float128x. 367 368 // Defined to 1 if the corresponding _FloatN type is not binary compatible 369 // with the corresponding ISO C type in the current compilation unit as 370 // opposed to __HAVE_DISTINCT_FLOATN, which indicates the default types built 371 // in glibc. 372 373 // Defined to 1 if any _FloatN or _FloatNx types that are not 374 // ABI-distinct are however distinct types at the C language level (so 375 // for the purposes of __builtin_types_compatible_p and _Generic). 376 377 // Defined to concatenate the literal suffix to be used with _FloatN 378 // or _FloatNx types, if __HAVE_<type> is 1. The corresponding 379 // literal suffixes exist since GCC 7, for C only. 380 381 // Defined to a complex type if __HAVE_<type> is 1. 382 383 // The remaining of this file provides support for older compilers. 384 385 // If double, long double and _Float64 all have the same set of 386 // values, TS 18661-3 requires the usual arithmetic conversions on 387 // long double and _Float64 to produce _Float64. For this to be the 388 // case when building with a compiler without a distinct _Float64 389 // type, _Float64 must be a typedef for long double, not for 390 // double. 391 392 // Returned by `div'. 393 type Div_t = struct { 394 Fquot int32 395 Frem int32 396 } /* stdlib.h:62:5 */ 397 398 // Returned by `ldiv'. 399 type Ldiv_t = struct { 400 Fquot int64 401 Frem int64 402 } /* stdlib.h:70:5 */ 403 404 // Returned by `lldiv'. 405 type Lldiv_t = struct { 406 Fquot int64 407 Frem int64 408 } /* stdlib.h:80:5 */ 409 410 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 411 // This file is part of the GNU C Library. 412 // 413 // The GNU C Library is free software; you can redistribute it and/or 414 // modify it under the terms of the GNU Lesser General Public 415 // License as published by the Free Software Foundation; either 416 // version 2.1 of the License, or (at your option) any later version. 417 // 418 // The GNU C Library is distributed in the hope that it will be useful, 419 // but WITHOUT ANY WARRANTY; without even the implied warranty of 420 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 421 // Lesser General Public License for more details. 422 // 423 // You should have received a copy of the GNU Lesser General Public 424 // License along with the GNU C Library; if not, see 425 // <https://www.gnu.org/licenses/>. 426 427 // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> 428 429 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 430 // This file is part of the GNU C Library. 431 // 432 // The GNU C Library is free software; you can redistribute it and/or 433 // modify it under the terms of the GNU Lesser General Public 434 // License as published by the Free Software Foundation; either 435 // version 2.1 of the License, or (at your option) any later version. 436 // 437 // The GNU C Library is distributed in the hope that it will be useful, 438 // but WITHOUT ANY WARRANTY; without even the implied warranty of 439 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 440 // Lesser General Public License for more details. 441 // 442 // You should have received a copy of the GNU Lesser General Public 443 // License along with the GNU C Library; if not, see 444 // <https://www.gnu.org/licenses/>. 445 446 // bits/types.h -- definitions of __*_t types underlying *_t types. 447 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 448 // This file is part of the GNU C Library. 449 // 450 // The GNU C Library is free software; you can redistribute it and/or 451 // modify it under the terms of the GNU Lesser General Public 452 // License as published by the Free Software Foundation; either 453 // version 2.1 of the License, or (at your option) any later version. 454 // 455 // The GNU C Library is distributed in the hope that it will be useful, 456 // but WITHOUT ANY WARRANTY; without even the implied warranty of 457 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 458 // Lesser General Public License for more details. 459 // 460 // You should have received a copy of the GNU Lesser General Public 461 // License along with the GNU C Library; if not, see 462 // <https://www.gnu.org/licenses/>. 463 464 // Never include this file directly; use <sys/types.h> instead. 465 466 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 467 // This file is part of the GNU C Library. 468 // 469 // The GNU C Library is free software; you can redistribute it and/or 470 // modify it under the terms of the GNU Lesser General Public 471 // License as published by the Free Software Foundation; either 472 // version 2.1 of the License, or (at your option) any later version. 473 // 474 // The GNU C Library is distributed in the hope that it will be useful, 475 // but WITHOUT ANY WARRANTY; without even the implied warranty of 476 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 477 // Lesser General Public License for more details. 478 // 479 // You should have received a copy of the GNU Lesser General Public 480 // License along with the GNU C Library; if not, see 481 // <https://www.gnu.org/licenses/>. 482 483 // Determine the wordsize from the preprocessor defines. 484 485 // Both x86-64 and x32 use the 64-bit system call interface. 486 // Bit size of the time_t type at glibc build time, x86-64 and x32 case. 487 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 488 // This file is part of the GNU C Library. 489 // 490 // The GNU C Library is free software; you can redistribute it and/or 491 // modify it under the terms of the GNU Lesser General Public 492 // License as published by the Free Software Foundation; either 493 // version 2.1 of the License, or (at your option) any later version. 494 // 495 // The GNU C Library is distributed in the hope that it will be useful, 496 // but WITHOUT ANY WARRANTY; without even the implied warranty of 497 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 498 // Lesser General Public License for more details. 499 // 500 // You should have received a copy of the GNU Lesser General Public 501 // License along with the GNU C Library; if not, see 502 // <https://www.gnu.org/licenses/>. 503 504 // For others, time size is word size. 505 506 // Convenience types. 507 type X__u_char = uint8 /* types.h:31:23 */ 508 type X__u_short = uint16 /* types.h:32:28 */ 509 type X__u_int = uint32 /* types.h:33:22 */ 510 type X__u_long = uint64 /* types.h:34:27 */ 511 512 // Fixed-size types, underlying types depend on word size and compiler. 513 type X__int8_t = int8 /* types.h:37:21 */ 514 type X__uint8_t = uint8 /* types.h:38:23 */ 515 type X__int16_t = int16 /* types.h:39:26 */ 516 type X__uint16_t = uint16 /* types.h:40:28 */ 517 type X__int32_t = int32 /* types.h:41:20 */ 518 type X__uint32_t = uint32 /* types.h:42:22 */ 519 type X__int64_t = int64 /* types.h:44:25 */ 520 type X__uint64_t = uint64 /* types.h:45:27 */ 521 522 // Smallest types with at least a given width. 523 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 524 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 525 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 526 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 527 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 528 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 529 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 530 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 531 532 // quad_t is also 64 bits. 533 type X__quad_t = int64 /* types.h:63:18 */ 534 type X__u_quad_t = uint64 /* types.h:64:27 */ 535 536 // Largest integral types. 537 type X__intmax_t = int64 /* types.h:72:18 */ 538 type X__uintmax_t = uint64 /* types.h:73:27 */ 539 540 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 541 // macros for each of the OS types we define below. The definitions 542 // of those macros must use the following macros for underlying types. 543 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 544 // variants of each of the following integer types on this machine. 545 // 546 // 16 -- "natural" 16-bit type (always short) 547 // 32 -- "natural" 32-bit type (always int) 548 // 64 -- "natural" 64-bit type (long or long long) 549 // LONG32 -- 32-bit type, traditionally long 550 // QUAD -- 64-bit type, traditionally long long 551 // WORD -- natural type of __WORDSIZE bits (int or long) 552 // LONGWORD -- type of __WORDSIZE bits, traditionally long 553 // 554 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 555 // conventional uses of `long' or `long long' type modifiers match the 556 // types we define, even when a less-adorned type would be the same size. 557 // This matters for (somewhat) portably writing printf/scanf formats for 558 // these types, where using the appropriate l or ll format modifiers can 559 // make the typedefs and the formats match up across all GNU platforms. If 560 // we used `long' when it's 64 bits where `long long' is expected, then the 561 // compiler would warn about the formats not matching the argument types, 562 // and the programmer changing them to shut up the compiler would break the 563 // program's portability. 564 // 565 // Here we assume what is presently the case in all the GCC configurations 566 // we support: long long is always 64 bits, long is always word/address size, 567 // and int is always 32 bits. 568 569 // No need to mark the typedef with __extension__. 570 // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. 571 // Copyright (C) 2012-2020 Free Software Foundation, Inc. 572 // This file is part of the GNU C Library. 573 // 574 // The GNU C Library is free software; you can redistribute it and/or 575 // modify it under the terms of the GNU Lesser General Public 576 // License as published by the Free Software Foundation; either 577 // version 2.1 of the License, or (at your option) any later version. 578 // 579 // The GNU C Library is distributed in the hope that it will be useful, 580 // but WITHOUT ANY WARRANTY; without even the implied warranty of 581 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 582 // Lesser General Public License for more details. 583 // 584 // You should have received a copy of the GNU Lesser General Public 585 // License along with the GNU C Library; if not, see 586 // <https://www.gnu.org/licenses/>. 587 588 // See <bits/types.h> for the meaning of these macros. This file exists so 589 // that <bits/types.h> need not vary across different GNU platforms. 590 591 // X32 kernel interface is 64-bit. 592 593 // Tell the libc code that off_t and off64_t are actually the same type 594 // for all ABI purposes, even if possibly expressed as different base types 595 // for C type-checking purposes. 596 597 // Same for ino_t and ino64_t. 598 599 // And for __rlim_t and __rlim64_t. 600 601 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 602 603 // Number of descriptors that can fit in an `fd_set'. 604 605 // bits/time64.h -- underlying types for __time64_t. Generic version. 606 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 607 // This file is part of the GNU C Library. 608 // 609 // The GNU C Library is free software; you can redistribute it and/or 610 // modify it under the terms of the GNU Lesser General Public 611 // License as published by the Free Software Foundation; either 612 // version 2.1 of the License, or (at your option) any later version. 613 // 614 // The GNU C Library is distributed in the hope that it will be useful, 615 // but WITHOUT ANY WARRANTY; without even the implied warranty of 616 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 617 // Lesser General Public License for more details. 618 // 619 // You should have received a copy of the GNU Lesser General Public 620 // License along with the GNU C Library; if not, see 621 // <https://www.gnu.org/licenses/>. 622 623 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 624 625 // If we already have 64-bit time type then use it. 626 627 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 628 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 629 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 630 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 631 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 632 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 633 type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. 634 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 635 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 636 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 637 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 638 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 639 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 640 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 641 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 642 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 643 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 644 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 645 646 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 647 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 648 649 // Clock ID used in clock and timer functions. 650 type X__clockid_t = int32 /* types.h:168:29 */ 651 652 // Timer ID returned by `timer_create'. 653 type X__timer_t = uintptr /* types.h:171:12 */ 654 655 // Type to represent block size. 656 type X__blksize_t = int64 /* types.h:174:29 */ 657 658 // Types from the Large File Support interface. 659 660 // Type to count number of disk blocks. 661 type X__blkcnt_t = int64 /* types.h:179:28 */ 662 type X__blkcnt64_t = int64 /* types.h:180:30 */ 663 664 // Type to count file system blocks. 665 type X__fsblkcnt_t = uint64 /* types.h:183:30 */ 666 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ 667 668 // Type to count file system nodes. 669 type X__fsfilcnt_t = uint64 /* types.h:187:30 */ 670 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ 671 672 // Type of miscellaneous file system fields. 673 type X__fsword_t = int64 /* types.h:191:28 */ 674 675 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. 676 677 // Signed long type used in system calls. 678 type X__syscall_slong_t = int64 /* types.h:196:33 */ 679 // Unsigned long type used in system calls. 680 type X__syscall_ulong_t = uint64 /* types.h:198:33 */ 681 682 // These few don't really vary by system, they always correspond 683 // 684 // to one of the other defined types. 685 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 686 type X__caddr_t = uintptr /* types.h:203:14 */ 687 688 // Duplicates info from stdint.h but this is used in unistd.h. 689 type X__intptr_t = int64 /* types.h:206:25 */ 690 691 // Duplicate info from sys/socket.h. 692 type X__socklen_t = uint32 /* types.h:209:23 */ 693 694 // C99: An integer type that can be accessed as an atomic entity, 695 // 696 // even in the presence of asynchronous interrupts. 697 // It is not currently necessary for this to be machine-specific. 698 type X__sig_atomic_t = int32 /* types.h:214:13 */ 699 700 // Seconds since the Epoch, visible to user code when time_t is too 701 // narrow only for consistency with the old way of widening too-narrow 702 // types. User code should never use __time64_t. 703 704 type U_char = X__u_char /* types.h:33:18 */ 705 type U_short = X__u_short /* types.h:34:19 */ 706 type U_int = X__u_int /* types.h:35:17 */ 707 type U_long = X__u_long /* types.h:36:18 */ 708 type Quad_t = X__quad_t /* types.h:37:18 */ 709 type U_quad_t = X__u_quad_t /* types.h:38:20 */ 710 type Fsid_t = X__fsid_t /* types.h:39:18 */ 711 type Loff_t = X__loff_t /* types.h:42:18 */ 712 713 type Ino_t = X__ino64_t /* types.h:49:19 */ 714 715 type Dev_t = X__dev_t /* types.h:59:17 */ 716 717 type Gid_t = X__gid_t /* types.h:64:17 */ 718 719 type Mode_t = X__mode_t /* types.h:69:18 */ 720 721 type Nlink_t = X__nlink_t /* types.h:74:19 */ 722 723 type Uid_t = X__uid_t /* types.h:79:17 */ 724 725 type Off_t = X__off64_t /* types.h:87:19 */ 726 727 type Pid_t = X__pid_t /* types.h:97:17 */ 728 729 type Id_t = X__id_t /* types.h:103:16 */ 730 731 type Ssize_t = X__ssize_t /* types.h:108:19 */ 732 733 type Daddr_t = X__daddr_t /* types.h:114:19 */ 734 type Caddr_t = X__caddr_t /* types.h:115:19 */ 735 736 type Key_t = X__key_t /* types.h:121:17 */ 737 738 // bits/types.h -- definitions of __*_t types underlying *_t types. 739 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 740 // This file is part of the GNU C Library. 741 // 742 // The GNU C Library is free software; you can redistribute it and/or 743 // modify it under the terms of the GNU Lesser General Public 744 // License as published by the Free Software Foundation; either 745 // version 2.1 of the License, or (at your option) any later version. 746 // 747 // The GNU C Library is distributed in the hope that it will be useful, 748 // but WITHOUT ANY WARRANTY; without even the implied warranty of 749 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 750 // Lesser General Public License for more details. 751 // 752 // You should have received a copy of the GNU Lesser General Public 753 // License along with the GNU C Library; if not, see 754 // <https://www.gnu.org/licenses/>. 755 756 // Never include this file directly; use <sys/types.h> instead. 757 758 // Returned by `clock'. 759 type Clock_t = X__clock_t /* clock_t.h:7:19 */ 760 761 // bits/types.h -- definitions of __*_t types underlying *_t types. 762 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 763 // This file is part of the GNU C Library. 764 // 765 // The GNU C Library is free software; you can redistribute it and/or 766 // modify it under the terms of the GNU Lesser General Public 767 // License as published by the Free Software Foundation; either 768 // version 2.1 of the License, or (at your option) any later version. 769 // 770 // The GNU C Library is distributed in the hope that it will be useful, 771 // but WITHOUT ANY WARRANTY; without even the implied warranty of 772 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 773 // Lesser General Public License for more details. 774 // 775 // You should have received a copy of the GNU Lesser General Public 776 // License along with the GNU C Library; if not, see 777 // <https://www.gnu.org/licenses/>. 778 779 // Never include this file directly; use <sys/types.h> instead. 780 781 // Clock ID used in clock and timer functions. 782 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ 783 784 // bits/types.h -- definitions of __*_t types underlying *_t types. 785 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 786 // This file is part of the GNU C Library. 787 // 788 // The GNU C Library is free software; you can redistribute it and/or 789 // modify it under the terms of the GNU Lesser General Public 790 // License as published by the Free Software Foundation; either 791 // version 2.1 of the License, or (at your option) any later version. 792 // 793 // The GNU C Library is distributed in the hope that it will be useful, 794 // but WITHOUT ANY WARRANTY; without even the implied warranty of 795 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 796 // Lesser General Public License for more details. 797 // 798 // You should have received a copy of the GNU Lesser General Public 799 // License along with the GNU C Library; if not, see 800 // <https://www.gnu.org/licenses/>. 801 802 // Never include this file directly; use <sys/types.h> instead. 803 804 // Returned by `time'. 805 type Time_t = X__time_t /* time_t.h:7:18 */ 806 807 // bits/types.h -- definitions of __*_t types underlying *_t types. 808 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 809 // This file is part of the GNU C Library. 810 // 811 // The GNU C Library is free software; you can redistribute it and/or 812 // modify it under the terms of the GNU Lesser General Public 813 // License as published by the Free Software Foundation; either 814 // version 2.1 of the License, or (at your option) any later version. 815 // 816 // The GNU C Library is distributed in the hope that it will be useful, 817 // but WITHOUT ANY WARRANTY; without even the implied warranty of 818 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 819 // Lesser General Public License for more details. 820 // 821 // You should have received a copy of the GNU Lesser General Public 822 // License along with the GNU C Library; if not, see 823 // <https://www.gnu.org/licenses/>. 824 825 // Never include this file directly; use <sys/types.h> instead. 826 827 // Timer ID returned by `timer_create'. 828 type Timer_t = X__timer_t /* timer_t.h:7:19 */ 829 830 // Copyright (C) 1989-2020 Free Software Foundation, Inc. 831 // 832 // This file is part of GCC. 833 // 834 // GCC is free software; you can redistribute it and/or modify 835 // it under the terms of the GNU General Public License as published by 836 // the Free Software Foundation; either version 3, or (at your option) 837 // any later version. 838 // 839 // GCC is distributed in the hope that it will be useful, 840 // but WITHOUT ANY WARRANTY; without even the implied warranty of 841 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 842 // GNU General Public License for more details. 843 // 844 // Under Section 7 of GPL version 3, you are granted additional 845 // permissions described in the GCC Runtime Library Exception, version 846 // 3.1, as published by the Free Software Foundation. 847 // 848 // You should have received a copy of the GNU General Public License and 849 // a copy of the GCC Runtime Library Exception along with this program; 850 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 851 // <http://www.gnu.org/licenses/>. 852 853 // ISO C Standard: 7.17 Common definitions <stddef.h> 854 855 // Any one of these symbols __need_* means that GNU libc 856 // wants us just to define one data type. So don't define 857 // the symbols that indicate this file's entire job has been done. 858 859 // This avoids lossage on SunOS but only if stdtypes.h comes first. 860 // There's no way to win with the other order! Sun lossage. 861 862 // Sequent's header files use _PTRDIFF_T_ in some conflicting way. 863 // Just ignore it. 864 865 // On VxWorks, <type/vxTypesBase.h> may have defined macros like 866 // _TYPE_size_t which will typedef size_t. fixincludes patched the 867 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is 868 // not defined, and so that defining this macro defines _GCC_SIZE_T. 869 // If we find that the macros are still defined at this point, we must 870 // invoke them so that the type is defined as expected. 871 872 // In case nobody has defined these types, but we aren't running under 873 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and 874 // __WCHAR_TYPE__ have reasonable values. This can happen if the 875 // parts of GCC is compiled by an older compiler, that actually 876 // include gstddef.h, such as collect2. 877 878 // Signed type of difference of two pointers. 879 880 // Define this type if we are doing the whole job, 881 // or if we want this type in particular. 882 883 // Unsigned type of `sizeof' something. 884 885 // Define this type if we are doing the whole job, 886 // or if we want this type in particular. 887 888 // Wide character type. 889 // Locale-writers should change this as necessary to 890 // be big enough to hold unique values not between 0 and 127, 891 // and not (wchar_t) -1, for each defined multibyte character. 892 893 // Define this type if we are doing the whole job, 894 // or if we want this type in particular. 895 896 // A null pointer constant. 897 898 // Old compatibility names for C types. 899 type Ulong = uint64 /* types.h:148:27 */ 900 type Ushort = uint16 /* types.h:149:28 */ 901 type Uint = uint32 /* types.h:150:22 */ 902 903 // These size-specific names are used by some of the inet code. 904 905 // Define intN_t types. 906 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 907 // This file is part of the GNU C Library. 908 // 909 // The GNU C Library is free software; you can redistribute it and/or 910 // modify it under the terms of the GNU Lesser General Public 911 // License as published by the Free Software Foundation; either 912 // version 2.1 of the License, or (at your option) any later version. 913 // 914 // The GNU C Library is distributed in the hope that it will be useful, 915 // but WITHOUT ANY WARRANTY; without even the implied warranty of 916 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 917 // Lesser General Public License for more details. 918 // 919 // You should have received a copy of the GNU Lesser General Public 920 // License along with the GNU C Library; if not, see 921 // <https://www.gnu.org/licenses/>. 922 923 // bits/types.h -- definitions of __*_t types underlying *_t types. 924 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 925 // This file is part of the GNU C Library. 926 // 927 // The GNU C Library is free software; you can redistribute it and/or 928 // modify it under the terms of the GNU Lesser General Public 929 // License as published by the Free Software Foundation; either 930 // version 2.1 of the License, or (at your option) any later version. 931 // 932 // The GNU C Library is distributed in the hope that it will be useful, 933 // but WITHOUT ANY WARRANTY; without even the implied warranty of 934 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 935 // Lesser General Public License for more details. 936 // 937 // You should have received a copy of the GNU Lesser General Public 938 // License along with the GNU C Library; if not, see 939 // <https://www.gnu.org/licenses/>. 940 941 // Never include this file directly; use <sys/types.h> instead. 942 943 type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ 944 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ 945 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ 946 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ 947 948 // These were defined by ISO C without the first `_'. 949 type U_int8_t = X__uint8_t /* types.h:158:19 */ 950 type U_int16_t = X__uint16_t /* types.h:159:20 */ 951 type U_int32_t = X__uint32_t /* types.h:160:20 */ 952 type U_int64_t = X__uint64_t /* types.h:161:20 */ 953 954 type Register_t = int32 /* types.h:164:13 */ 955 956 // It also defines `fd_set' and the FD_* macros for `select'. 957 // `fd_set' type and related macros, and `select'/`pselect' declarations. 958 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 959 // This file is part of the GNU C Library. 960 // 961 // The GNU C Library is free software; you can redistribute it and/or 962 // modify it under the terms of the GNU Lesser General Public 963 // License as published by the Free Software Foundation; either 964 // version 2.1 of the License, or (at your option) any later version. 965 // 966 // The GNU C Library is distributed in the hope that it will be useful, 967 // but WITHOUT ANY WARRANTY; without even the implied warranty of 968 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 969 // Lesser General Public License for more details. 970 // 971 // You should have received a copy of the GNU Lesser General Public 972 // License along with the GNU C Library; if not, see 973 // <https://www.gnu.org/licenses/>. 974 975 // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h> 976 977 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 978 // This file is part of the GNU C Library. 979 // 980 // The GNU C Library is free software; you can redistribute it and/or 981 // modify it under the terms of the GNU Lesser General Public 982 // License as published by the Free Software Foundation; either 983 // version 2.1 of the License, or (at your option) any later version. 984 // 985 // The GNU C Library is distributed in the hope that it will be useful, 986 // but WITHOUT ANY WARRANTY; without even the implied warranty of 987 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 988 // Lesser General Public License for more details. 989 // 990 // You should have received a copy of the GNU Lesser General Public 991 // License along with the GNU C Library; if not, see 992 // <https://www.gnu.org/licenses/>. 993 994 // Get definition of needed basic types. 995 // bits/types.h -- definitions of __*_t types underlying *_t types. 996 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 997 // This file is part of the GNU C Library. 998 // 999 // The GNU C Library is free software; you can redistribute it and/or 1000 // modify it under the terms of the GNU Lesser General Public 1001 // License as published by the Free Software Foundation; either 1002 // version 2.1 of the License, or (at your option) any later version. 1003 // 1004 // The GNU C Library is distributed in the hope that it will be useful, 1005 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1006 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1007 // Lesser General Public License for more details. 1008 // 1009 // You should have received a copy of the GNU Lesser General Public 1010 // License along with the GNU C Library; if not, see 1011 // <https://www.gnu.org/licenses/>. 1012 1013 // Never include this file directly; use <sys/types.h> instead. 1014 1015 // Get __FD_* definitions. 1016 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1017 // This file is part of the GNU C Library. 1018 // 1019 // The GNU C Library is free software; you can redistribute it and/or 1020 // modify it under the terms of the GNU Lesser General Public 1021 // License as published by the Free Software Foundation; either 1022 // version 2.1 of the License, or (at your option) any later version. 1023 // 1024 // The GNU C Library is distributed in the hope that it will be useful, 1025 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1026 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1027 // Lesser General Public License for more details. 1028 // 1029 // You should have received a copy of the GNU Lesser General Public 1030 // License along with the GNU C Library; if not, see 1031 // <https://www.gnu.org/licenses/>. 1032 1033 // Determine the wordsize from the preprocessor defines. 1034 1035 // Both x86-64 and x32 use the 64-bit system call interface. 1036 1037 // Get sigset_t. 1038 1039 type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ 1040 1041 // A set of signals to be blocked, unblocked, or waited for. 1042 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ 1043 1044 // Get definition of timer specification structures. 1045 1046 // bits/types.h -- definitions of __*_t types underlying *_t types. 1047 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1048 // This file is part of the GNU C Library. 1049 // 1050 // The GNU C Library is free software; you can redistribute it and/or 1051 // modify it under the terms of the GNU Lesser General Public 1052 // License as published by the Free Software Foundation; either 1053 // version 2.1 of the License, or (at your option) any later version. 1054 // 1055 // The GNU C Library is distributed in the hope that it will be useful, 1056 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1057 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1058 // Lesser General Public License for more details. 1059 // 1060 // You should have received a copy of the GNU Lesser General Public 1061 // License along with the GNU C Library; if not, see 1062 // <https://www.gnu.org/licenses/>. 1063 1064 // Never include this file directly; use <sys/types.h> instead. 1065 1066 // A time value that is accurate to the nearest 1067 // 1068 // microsecond but also has a range of years. 1069 type Timeval = struct { 1070 Ftv_sec X__time_t 1071 Ftv_usec X__suseconds_t 1072 } /* struct_timeval.h:8:1 */ 1073 1074 // NB: Include guard matches what <linux/time.h> uses. 1075 1076 // bits/types.h -- definitions of __*_t types underlying *_t types. 1077 // Copyright (C) 2002-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 // Never include this file directly; use <sys/types.h> instead. 1095 1096 // Endian macros for string.h functions 1097 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 1098 // This file is part of the GNU C Library. 1099 // 1100 // The GNU C Library is free software; you can redistribute it and/or 1101 // modify it under the terms of the GNU Lesser General Public 1102 // License as published by the Free Software Foundation; either 1103 // version 2.1 of the License, or (at your option) any later version. 1104 // 1105 // The GNU C Library is distributed in the hope that it will be useful, 1106 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1107 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1108 // Lesser General Public License for more details. 1109 // 1110 // You should have received a copy of the GNU Lesser General Public 1111 // License along with the GNU C Library; if not, see 1112 // <http://www.gnu.org/licenses/>. 1113 1114 // POSIX.1b structure for a time value. This is like a `struct timeval' but 1115 // 1116 // has nanoseconds instead of microseconds. 1117 type Timespec = struct { 1118 Ftv_sec X__time_t 1119 Ftv_nsec X__syscall_slong_t 1120 } /* struct_timespec.h:10:1 */ 1121 1122 type Suseconds_t = X__suseconds_t /* select.h:43:23 */ 1123 1124 // The fd_set member is required to be an array of longs. 1125 type X__fd_mask = int64 /* select.h:49:18 */ 1126 1127 // Some versions of <linux/posix_types.h> define this macros. 1128 // It's easier to assume 8-bit bytes than to get CHAR_BIT. 1129 1130 // fd_set for select and pselect. 1131 type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ 1132 1133 // Maximum number of file descriptors in `fd_set'. 1134 1135 // Sometimes the fd_set member is assumed to have this type. 1136 type Fd_mask = X__fd_mask /* select.h:77:19 */ 1137 1138 // Define some inlines helping to catch common problems. 1139 1140 type Blksize_t = X__blksize_t /* types.h:185:21 */ 1141 1142 // Types from the Large File Support interface. 1143 type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. 1144 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. 1145 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. 1146 1147 // Now add the thread types. 1148 // Declaration of common pthread types for all architectures. 1149 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1150 // This file is part of the GNU C Library. 1151 // 1152 // The GNU C Library is free software; you can redistribute it and/or 1153 // modify it under the terms of the GNU Lesser General Public 1154 // License as published by the Free Software Foundation; either 1155 // version 2.1 of the License, or (at your option) any later version. 1156 // 1157 // The GNU C Library is distributed in the hope that it will be useful, 1158 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1159 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1160 // Lesser General Public License for more details. 1161 // 1162 // You should have received a copy of the GNU Lesser General Public 1163 // License along with the GNU C Library; if not, see 1164 // <https://www.gnu.org/licenses/>. 1165 1166 // For internal mutex and condition variable definitions. 1167 // Common threading primitives definitions for both POSIX and C11. 1168 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1169 // This file is part of the GNU C Library. 1170 // 1171 // The GNU C Library is free software; you can redistribute it and/or 1172 // modify it under the terms of the GNU Lesser General Public 1173 // License as published by the Free Software Foundation; either 1174 // version 2.1 of the License, or (at your option) any later version. 1175 // 1176 // The GNU C Library is distributed in the hope that it will be useful, 1177 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1178 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1179 // Lesser General Public License for more details. 1180 // 1181 // You should have received a copy of the GNU Lesser General Public 1182 // License along with the GNU C Library; if not, see 1183 // <https://www.gnu.org/licenses/>. 1184 1185 // Arch-specific definitions. Each architecture must define the following 1186 // macros to define the expected sizes of pthread data types: 1187 // 1188 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1189 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1190 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1191 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1192 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1193 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1194 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1195 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1196 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1197 // 1198 // The additional macro defines any constraint for the lock alignment 1199 // inside the thread structures: 1200 // 1201 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1202 // 1203 // Same idea but for the once locking primitive: 1204 // 1205 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1206 1207 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1208 // This file is part of the GNU C Library. 1209 // 1210 // The GNU C Library is free software; you can redistribute it and/or 1211 // modify it under the terms of the GNU Lesser General Public 1212 // License as published by the Free Software Foundation; either 1213 // version 2.1 of the License, or (at your option) any later version. 1214 // 1215 // The GNU C Library is distributed in the hope that it will be useful, 1216 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1217 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1218 // Lesser General Public License for more details. 1219 // 1220 // You should have received a copy of the GNU Lesser General Public 1221 // License along with the GNU C Library; if not, see 1222 // <https://www.gnu.org/licenses/>. 1223 1224 // Determine the wordsize from the preprocessor defines. 1225 1226 // Both x86-64 and x32 use the 64-bit system call interface. 1227 1228 // Common definition of pthread_mutex_t. 1229 1230 type X__pthread_internal_list = struct { 1231 F__prev uintptr 1232 F__next uintptr 1233 } /* thread-shared-types.h:49:9 */ 1234 1235 // Type to count file system inodes. 1236 1237 // Now add the thread types. 1238 // Declaration of common pthread types for all architectures. 1239 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1240 // This file is part of the GNU C Library. 1241 // 1242 // The GNU C Library is free software; you can redistribute it and/or 1243 // modify it under the terms of the GNU Lesser General Public 1244 // License as published by the Free Software Foundation; either 1245 // version 2.1 of the License, or (at your option) any later version. 1246 // 1247 // The GNU C Library is distributed in the hope that it will be useful, 1248 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1249 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1250 // Lesser General Public License for more details. 1251 // 1252 // You should have received a copy of the GNU Lesser General Public 1253 // License along with the GNU C Library; if not, see 1254 // <https://www.gnu.org/licenses/>. 1255 1256 // For internal mutex and condition variable definitions. 1257 // Common threading primitives definitions for both POSIX and C11. 1258 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1259 // This file is part of the GNU C Library. 1260 // 1261 // The GNU C Library is free software; you can redistribute it and/or 1262 // modify it under the terms of the GNU Lesser General Public 1263 // License as published by the Free Software Foundation; either 1264 // version 2.1 of the License, or (at your option) any later version. 1265 // 1266 // The GNU C Library is distributed in the hope that it will be useful, 1267 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1268 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1269 // Lesser General Public License for more details. 1270 // 1271 // You should have received a copy of the GNU Lesser General Public 1272 // License along with the GNU C Library; if not, see 1273 // <https://www.gnu.org/licenses/>. 1274 1275 // Arch-specific definitions. Each architecture must define the following 1276 // macros to define the expected sizes of pthread data types: 1277 // 1278 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1279 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1280 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1281 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1282 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1283 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1284 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1285 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1286 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1287 // 1288 // The additional macro defines any constraint for the lock alignment 1289 // inside the thread structures: 1290 // 1291 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1292 // 1293 // Same idea but for the once locking primitive: 1294 // 1295 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1296 1297 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1298 // This file is part of the GNU C Library. 1299 // 1300 // The GNU C Library is free software; you can redistribute it and/or 1301 // modify it under the terms of the GNU Lesser General Public 1302 // License as published by the Free Software Foundation; either 1303 // version 2.1 of the License, or (at your option) any later version. 1304 // 1305 // The GNU C Library is distributed in the hope that it will be useful, 1306 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1307 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1308 // Lesser General Public License for more details. 1309 // 1310 // You should have received a copy of the GNU Lesser General Public 1311 // License along with the GNU C Library; if not, see 1312 // <https://www.gnu.org/licenses/>. 1313 1314 // Determine the wordsize from the preprocessor defines. 1315 1316 // Both x86-64 and x32 use the 64-bit system call interface. 1317 1318 // Common definition of pthread_mutex_t. 1319 1320 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ 1321 1322 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ 1323 1324 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ 1325 1326 // Arch-specific mutex definitions. A generic implementation is provided 1327 // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture 1328 // can override it by defining: 1329 // 1330 // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t 1331 // definition). It should contains at least the internal members 1332 // defined in the generic version. 1333 // 1334 // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with 1335 // atomic operations. 1336 // 1337 // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. 1338 // It should initialize the mutex internal flag. 1339 1340 // x86 internal mutex struct definitions. 1341 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1342 // This file is part of the GNU C Library. 1343 // 1344 // The GNU C Library is free software; you can redistribute it and/or 1345 // modify it under the terms of the GNU Lesser General Public 1346 // License as published by the Free Software Foundation; either 1347 // version 2.1 of the License, or (at your option) any later version. 1348 // 1349 // The GNU C Library is distributed in the hope that it will be useful, 1350 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1351 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1352 // Lesser General Public License for more details. 1353 // 1354 // You should have received a copy of the GNU Lesser General Public 1355 // License along with the GNU C Library; if not, see 1356 // <http://www.gnu.org/licenses/>. 1357 1358 type X__pthread_mutex_s = struct { 1359 F__lock int32 1360 F__count uint32 1361 F__owner int32 1362 F__nusers uint32 1363 F__kind int32 1364 F__spins int16 1365 F__elision int16 1366 F__list X__pthread_list_t 1367 } /* struct_mutex.h:22:1 */ 1368 1369 // Arch-sepecific read-write lock definitions. A generic implementation is 1370 // provided by struct_rwlock.h. If required, an architecture can override it 1371 // by defining: 1372 // 1373 // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). 1374 // It should contain at least the internal members defined in the 1375 // generic version. 1376 // 1377 // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. 1378 // It should initialize the rwlock internal type. 1379 1380 // x86 internal rwlock struct definitions. 1381 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1382 // 1383 // This file is part of the GNU C Library. 1384 // 1385 // The GNU C Library is free software; you can redistribute it and/or 1386 // modify it under the terms of the GNU Lesser General Public 1387 // License as published by the Free Software Foundation; either 1388 // version 2.1 of the License, or (at your option) any later version. 1389 // 1390 // The GNU C Library is distributed in the hope that it will be useful, 1391 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1392 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1393 // Lesser General Public License for more details. 1394 // 1395 // You should have received a copy of the GNU Lesser General Public 1396 // License along with the GNU C Library; if not, see 1397 // <http://www.gnu.org/licenses/>. 1398 1399 type X__pthread_rwlock_arch_t = struct { 1400 F__readers uint32 1401 F__writers uint32 1402 F__wrphase_futex uint32 1403 F__writers_futex uint32 1404 F__pad3 uint32 1405 F__pad4 uint32 1406 F__cur_writer int32 1407 F__shared int32 1408 F__rwelision int8 1409 F__pad1 [7]uint8 1410 F__pad2 uint64 1411 F__flags uint32 1412 F__ccgo_pad1 [4]byte 1413 } /* struct_rwlock.h:23:1 */ 1414 1415 // Common definition of pthread_cond_t. 1416 1417 type X__pthread_cond_s = struct { 1418 F__0 struct{ F__wseq uint64 } 1419 F__8 struct{ F__g1_start uint64 } 1420 F__g_refs [2]uint32 1421 F__g_size [2]uint32 1422 F__g1_orig_size uint32 1423 F__wrefs uint32 1424 F__g_signals [2]uint32 1425 } /* thread-shared-types.h:92:1 */ 1426 1427 // Thread identifiers. The structure of the attribute type is not 1428 // 1429 // exposed on purpose. 1430 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ 1431 1432 // Data structures for mutex handling. The structure of the attribute 1433 // 1434 // type is not exposed on purpose. 1435 type Pthread_mutexattr_t = struct { 1436 F__ccgo_pad1 [0]uint32 1437 F__size [4]int8 1438 } /* pthreadtypes.h:36:3 */ 1439 1440 // Data structure for condition variable handling. The structure of 1441 // 1442 // the attribute type is not exposed on purpose. 1443 type Pthread_condattr_t = struct { 1444 F__ccgo_pad1 [0]uint32 1445 F__size [4]int8 1446 } /* pthreadtypes.h:45:3 */ 1447 1448 // Keys for thread-specific data 1449 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ 1450 1451 // Once-only execution 1452 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ 1453 1454 type Pthread_attr_t1 = struct { 1455 F__ccgo_pad1 [0]uint64 1456 F__size [56]int8 1457 } /* pthreadtypes.h:56:1 */ 1458 1459 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ 1460 1461 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ 1462 1463 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ 1464 1465 // Data structure for reader-writer lock variable handling. The 1466 // 1467 // structure of the attribute type is deliberately not exposed. 1468 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ 1469 1470 type Pthread_rwlockattr_t = struct { 1471 F__ccgo_pad1 [0]uint64 1472 F__size [8]int8 1473 } /* pthreadtypes.h:97:3 */ 1474 1475 // POSIX spinlock data type. 1476 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ 1477 1478 // POSIX barriers data type. The structure of the type is 1479 // 1480 // deliberately not exposed. 1481 type Pthread_barrier_t = struct { 1482 F__ccgo_pad1 [0]uint64 1483 F__size [32]int8 1484 } /* pthreadtypes.h:112:3 */ 1485 1486 type Pthread_barrierattr_t = struct { 1487 F__ccgo_pad1 [0]uint32 1488 F__size [4]int8 1489 } /* pthreadtypes.h:118:3 */ 1490 1491 // Reentrant versions of the `random' family of functions. 1492 // These functions all use the following data structure to contain 1493 // state, rather than global state variables. 1494 1495 type Random_data = struct { 1496 Ffptr uintptr 1497 Frptr uintptr 1498 Fstate uintptr 1499 Frand_type int32 1500 Frand_deg int32 1501 Frand_sep int32 1502 F__ccgo_pad1 [4]byte 1503 Fend_ptr uintptr 1504 } /* stdlib.h:423:1 */ 1505 1506 // Data structure for communication with thread safe versions. This 1507 // 1508 // type is to be regarded as opaque. It's only exported because users 1509 // have to allocate objects of this type. 1510 type Drand48_data = struct { 1511 F__x [3]uint16 1512 F__old_x [3]uint16 1513 F__c uint16 1514 F__init uint16 1515 F__a uint64 1516 } /* stdlib.h:490:1 */ 1517 1518 // Shorthand for type of comparison functions. 1519 type X__compar_fn_t = uintptr /* stdlib.h:808:13 */ 1520 1521 // Floating-point inline functions for stdlib.h. 1522 // Copyright (C) 2012-2020 Free Software Foundation, Inc. 1523 // This file is part of the GNU C Library. 1524 // 1525 // The GNU C Library is free software; you can redistribute it and/or 1526 // modify it under the terms of the GNU Lesser General Public 1527 // License as published by the Free Software Foundation; either 1528 // version 2.1 of the License, or (at your option) any later version. 1529 // 1530 // The GNU C Library is distributed in the hope that it will be useful, 1531 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1532 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1533 // Lesser General Public License for more details. 1534 // 1535 // You should have received a copy of the GNU Lesser General Public 1536 // License along with the GNU C Library; if not, see 1537 // <https://www.gnu.org/licenses/>. 1538 1539 // Define some macros helping to catch buffer overflows. 1540 1541 var _ int8 /* gen.c:2:13: */