modernc.org/libc@v1.24.1/wctype/wctype_linux_ppc64le.go (about) 1 // Code generated by 'ccgo wctype/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 wctype/wctype_linux_ppc64le.go -pkgname wctype', DO NOT EDIT. 2 3 package wctype 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 WEOF = 4294967295 // wctype.h:33:1: 19 X_ARCH_PPC = 1 // <predefined>:198:1: 20 X_ARCH_PPC64 = 1 // <predefined>:402:1: 21 X_ARCH_PPCGR = 1 // <predefined>:15:1: 22 X_ARCH_PPCSQ = 1 // <predefined>:43:1: 23 X_ARCH_PWR4 = 1 // <predefined>:381:1: 24 X_ARCH_PWR5 = 1 // <predefined>:90:1: 25 X_ARCH_PWR5X = 1 // <predefined>:137:1: 26 X_ARCH_PWR6 = 1 // <predefined>:91:1: 27 X_ARCH_PWR7 = 1 // <predefined>:92:1: 28 X_ARCH_PWR8 = 1 // <predefined>:93:1: 29 X_ATFILE_SOURCE = 1 // features.h:342:1: 30 X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: 31 X_BITS_ENDIAN_H = 1 // endian.h:20:1: 32 X_BITS_TIME64_H = 1 // time64.h:24:1: 33 X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: 34 X_BITS_TYPES_H = 1 // types.h:24:1: 35 X_BITS_TYPES_LOCALE_T_H = 1 // locale_t.h:20:1: 36 X_BITS_TYPES___LOCALE_T_H = 1 // __locale_t.h:21:1: 37 X_BITS_WCTYPE_WCHAR_H = 1 // wctype-wchar.h:24:1: 38 X_CALL_ELF = 2 // <predefined>:415:1: 39 X_CALL_LINUX = 1 // <predefined>:123:1: 40 X_DEFAULT_SOURCE = 1 // features.h:227:1: 41 X_FEATURES_H = 1 // features.h:19:1: 42 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 43 X_LITTLE_ENDIAN = 1 // <predefined>:37:1: 44 X_LP64 = 1 // <predefined>:335:1: 45 X_POSIX_C_SOURCE = 200809 // features.h:281:1: 46 X_POSIX_SOURCE = 1 // features.h:279:1: 47 X_STDC_PREDEF_H = 1 // <predefined>:203:1: 48 X_SYS_CDEFS_H = 1 // cdefs.h:19:1: 49 X_WCTYPE_H = 1 // wctype.h:24:1: 50 X_WINT_T = 1 // wint_t.h:10:1: 51 Linux = 1 // <predefined>:263:1: 52 Unix = 1 // <predefined>:222:1: 53 ) 54 55 // The characteristics are stored always in network byte order (big 56 // endian). We define the bit value interpretations here dependent on the 57 // machine's byte order. 58 59 // Endian macros for string.h functions 60 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 61 // This file is part of the GNU C Library. 62 // 63 // The GNU C Library is free software; you can redistribute it and/or 64 // modify it under the terms of the GNU Lesser General Public 65 // License as published by the Free Software Foundation; either 66 // version 2.1 of the License, or (at your option) any later version. 67 // 68 // The GNU C Library is distributed in the hope that it will be useful, 69 // but WITHOUT ANY WARRANTY; without even the implied warranty of 70 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 71 // Lesser General Public License for more details. 72 // 73 // You should have received a copy of the GNU Lesser General Public 74 // License along with the GNU C Library; if not, see 75 // <http://www.gnu.org/licenses/>. 76 77 // Definitions for byte order, according to significance of bytes, 78 // from low addresses to high addresses. The value is what you get by 79 // putting '4' in the most significant byte, '3' in the second most 80 // significant byte, '2' in the second least significant byte, and '1' 81 // in the least significant byte, and then writing down one digit for 82 // each byte, starting with the byte at the lowest address at the left, 83 // and proceeding to the byte with the highest address at the right. 84 85 // This file defines `__BYTE_ORDER' for the particular machine. 86 87 // PowerPC has selectable endianness. 88 89 // Some machines may need to use a different endianness for floating point 90 // values. 91 92 const ( /* wctype-wchar.h:56:1: */ 93 X__ISwupper = 0 // UPPERCASE. 94 X__ISwlower = 1 // lowercase. 95 X__ISwalpha = 2 // Alphabetic. 96 X__ISwdigit = 3 // Numeric. 97 X__ISwxdigit = 4 // Hexadecimal numeric. 98 X__ISwspace = 5 // Whitespace. 99 X__ISwprint = 6 // Printing. 100 X__ISwgraph = 7 // Graphical. 101 X__ISwblank = 8 // Blank (usually SPC and TAB). 102 X__ISwcntrl = 9 // Control character. 103 X__ISwpunct = 10 // Punctuation. 104 X__ISwalnum = 11 // Alphanumeric. 105 106 X_ISwupper = 16777216 // UPPERCASE. 107 X_ISwlower = 33554432 // lowercase. 108 X_ISwalpha = 67108864 // Alphabetic. 109 X_ISwdigit = 134217728 // Numeric. 110 X_ISwxdigit = 268435456 // Hexadecimal numeric. 111 X_ISwspace = 536870912 // Whitespace. 112 X_ISwprint = 1073741824 // Printing. 113 X_ISwgraph = -2147483648 // Graphical. 114 X_ISwblank = 65536 // Blank (usually SPC and TAB). 115 X_ISwcntrl = 131072 // Control character. 116 X_ISwpunct = 262144 // Punctuation. 117 X_ISwalnum = 524288 118 ) 119 120 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 121 122 type Size_t = uint64 /* <builtin>:9:23 */ 123 124 type Wchar_t = int32 /* <builtin>:15:24 */ 125 126 type X__int128_t = struct { 127 Flo int64 128 Fhi int64 129 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 130 type X__uint128_t = struct { 131 Flo uint64 132 Fhi uint64 133 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 134 135 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 136 type X__ieee128 = float64 /* <builtin>:47:21 */ 137 138 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 139 // This file is part of the GNU C Library. 140 // 141 // The GNU C Library is free software; you can redistribute it and/or 142 // modify it under the terms of the GNU Lesser General Public 143 // License as published by the Free Software Foundation; either 144 // version 2.1 of the License, or (at your option) any later version. 145 // 146 // The GNU C Library is distributed in the hope that it will be useful, 147 // but WITHOUT ANY WARRANTY; without even the implied warranty of 148 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 149 // Lesser General Public License for more details. 150 // 151 // You should have received a copy of the GNU Lesser General Public 152 // License along with the GNU C Library; if not, see 153 // <https://www.gnu.org/licenses/>. 154 155 // ISO C99 Standard: 7.25 156 // Wide character classification and mapping utilities <wctype.h> 157 158 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 159 // This file is part of the GNU C Library. 160 // 161 // The GNU C Library is free software; you can redistribute it and/or 162 // modify it under the terms of the GNU Lesser General Public 163 // License as published by the Free Software Foundation; either 164 // version 2.1 of the License, or (at your option) any later version. 165 // 166 // The GNU C Library is distributed in the hope that it will be useful, 167 // but WITHOUT ANY WARRANTY; without even the implied warranty of 168 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 169 // Lesser General Public License for more details. 170 // 171 // You should have received a copy of the GNU Lesser General Public 172 // License along with the GNU C Library; if not, see 173 // <https://www.gnu.org/licenses/>. 174 175 // These are defined by the user (or the compiler) 176 // to specify the desired environment: 177 // 178 // __STRICT_ANSI__ ISO Standard C. 179 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 180 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 181 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 182 // __STDC_WANT_LIB_EXT2__ 183 // Extensions to ISO C99 from TR 27431-2:2010. 184 // __STDC_WANT_IEC_60559_BFP_EXT__ 185 // Extensions to ISO C11 from TS 18661-1:2014. 186 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 187 // Extensions to ISO C11 from TS 18661-4:2015. 188 // __STDC_WANT_IEC_60559_TYPES_EXT__ 189 // Extensions to ISO C11 from TS 18661-3:2015. 190 // 191 // _POSIX_SOURCE IEEE Std 1003.1. 192 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 193 // if >=199309L, add IEEE Std 1003.1b-1993; 194 // if >=199506L, add IEEE Std 1003.1c-1995; 195 // if >=200112L, all of IEEE 1003.1-2004 196 // if >=200809L, all of IEEE 1003.1-2008 197 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 198 // Single Unix conformance is wanted, to 600 for the 199 // sixth revision, to 700 for the seventh revision. 200 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 201 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 202 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 203 // _FILE_OFFSET_BITS=N Select default filesystem interface. 204 // _ATFILE_SOURCE Additional *at interfaces. 205 // _GNU_SOURCE All of the above, plus GNU extensions. 206 // _DEFAULT_SOURCE The default set of features (taking precedence over 207 // __STRICT_ANSI__). 208 // 209 // _FORTIFY_SOURCE Add security hardening to many library functions. 210 // Set to 1 or 2; 2 performs stricter checks than 1. 211 // 212 // _REENTRANT, _THREAD_SAFE 213 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 214 // 215 // The `-ansi' switch to the GNU C compiler, and standards conformance 216 // options such as `-std=c99', define __STRICT_ANSI__. If none of 217 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 218 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 219 // 200809L, as well as enabling miscellaneous functions from BSD and 220 // SVID. If more than one of these are defined, they accumulate. For 221 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 222 // give you ISO C, 1003.1, and 1003.2, but nothing else. 223 // 224 // These are defined by this file and are used by the 225 // header files to decide what to declare or define: 226 // 227 // __GLIBC_USE (F) Define things from feature set F. This is defined 228 // to 1 or 0; the subsequent macros are either defined 229 // or undefined, and those tests should be moved to 230 // __GLIBC_USE. 231 // __USE_ISOC11 Define ISO C11 things. 232 // __USE_ISOC99 Define ISO C99 things. 233 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 234 // __USE_ISOCXX11 Define ISO C++11 things. 235 // __USE_POSIX Define IEEE Std 1003.1 things. 236 // __USE_POSIX2 Define IEEE Std 1003.2 things. 237 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 238 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 239 // __USE_XOPEN Define XPG things. 240 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 241 // __USE_UNIX98 Define Single Unix V2 things. 242 // __USE_XOPEN2K Define XPG6 things. 243 // __USE_XOPEN2KXSI Define XPG6 XSI things. 244 // __USE_XOPEN2K8 Define XPG7 things. 245 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 246 // __USE_LARGEFILE Define correct standard I/O things. 247 // __USE_LARGEFILE64 Define LFS things with separate names. 248 // __USE_FILE_OFFSET64 Define 64bit interface as default. 249 // __USE_MISC Define things from 4.3BSD or System V Unix. 250 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 251 // __USE_GNU Define GNU extensions. 252 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 253 // 254 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 255 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 256 // only for compatibility. All new code should use the other symbols 257 // to test for features. 258 // 259 // All macros listed above as possibly being defined by this file are 260 // explicitly undefined if they are not explicitly defined. 261 // Feature-test macros that are not defined by the user or compiler 262 // but are implied by the other feature-test macros defined (or by the 263 // lack of any definitions) are defined by the file. 264 // 265 // ISO C feature test macros depend on the definition of the macro 266 // when an affected header is included, not when the first system 267 // header is included, and so they are handled in 268 // <bits/libc-header-start.h>, which does not have a multiple include 269 // guard. Feature test macros that can be handled from the first 270 // system header included are handled here. 271 272 // Undefine everything, so we get a clean slate. 273 274 // Suppress kernel-name space pollution unless user expressedly asks 275 // for it. 276 277 // Convenience macro to test the version of gcc. 278 // Use like this: 279 // #if __GNUC_PREREQ (2,8) 280 // ... code requiring gcc 2.8 or later ... 281 // #endif 282 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 283 // added in 2.0. 284 285 // Similarly for clang. Features added to GCC after version 4.2 may 286 // or may not also be available in clang, and clang's definitions of 287 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 288 // features can be queried via __has_extension/__has_feature. 289 290 // Whether to use feature set F. 291 292 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 293 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 294 // issue a warning; the expectation is that the source is being 295 // transitioned to use the new macro. 296 297 // If _GNU_SOURCE was defined by the user, turn on all the other features. 298 299 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 300 // define _DEFAULT_SOURCE. 301 302 // This is to enable the ISO C2X extension. 303 304 // This is to enable the ISO C11 extension. 305 306 // This is to enable the ISO C99 extension. 307 308 // This is to enable the ISO C90 Amendment 1:1995 extension. 309 310 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 311 // is defined, use POSIX.1-2008 (or another version depending on 312 // _XOPEN_SOURCE). 313 314 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 315 // defined in all multithreaded code. GNU libc has not required this 316 // for many years. We now treat them as compatibility synonyms for 317 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 318 // comprehensive support for multithreaded code. Using them never 319 // lowers the selected level of POSIX conformance, only raises it. 320 321 // The function 'gets' existed in C89, but is impossible to use 322 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 323 // compatibility with various implementations of <cstdio>, this test 324 // must consider only the value of __cplusplus when compiling C++. 325 326 // GNU formerly extended the scanf functions with modified format 327 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 328 // input using malloc. This extension conflicts with ISO C99, which 329 // defines %a as a standalone format specifier that reads a floating- 330 // point number; moreover, POSIX.1-2008 provides the same feature 331 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 332 // 333 // We now follow C99 unless GNU extensions are active and the compiler 334 // is specifically in C89 or C++98 mode (strict or not). For 335 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 336 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 337 // old extension. 338 339 // Get definitions of __STDC_* predefined macros, if the compiler has 340 // not preincluded this header automatically. 341 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 342 // This file is part of the GNU C Library. 343 // 344 // The GNU C Library is free software; you can redistribute it and/or 345 // modify it under the terms of the GNU Lesser General Public 346 // License as published by the Free Software Foundation; either 347 // version 2.1 of the License, or (at your option) any later version. 348 // 349 // The GNU C Library is distributed in the hope that it will be useful, 350 // but WITHOUT ANY WARRANTY; without even the implied warranty of 351 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 352 // Lesser General Public License for more details. 353 // 354 // You should have received a copy of the GNU Lesser General Public 355 // License along with the GNU C Library; if not, see 356 // <https://www.gnu.org/licenses/>. 357 358 // This macro indicates that the installed library is the GNU C Library. 359 // For historic reasons the value now is 6 and this will stay from now 360 // on. The use of this variable is deprecated. Use __GLIBC__ and 361 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 362 // GNU C library version and use the values in <gnu/lib-names.h> to get 363 // the sonames of the shared libraries. 364 365 // Major and minor version number of the GNU C library package. Use 366 // these macros to test for features in specific releases. 367 368 // This is here only because every header file already includes this one. 369 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 370 // This file is part of the GNU C Library. 371 // 372 // The GNU C Library is free software; you can redistribute it and/or 373 // modify it under the terms of the GNU Lesser General Public 374 // License as published by the Free Software Foundation; either 375 // version 2.1 of the License, or (at your option) any later version. 376 // 377 // The GNU C Library is distributed in the hope that it will be useful, 378 // but WITHOUT ANY WARRANTY; without even the implied warranty of 379 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 380 // Lesser General Public License for more details. 381 // 382 // You should have received a copy of the GNU Lesser General Public 383 // License along with the GNU C Library; if not, see 384 // <https://www.gnu.org/licenses/>. 385 386 // We are almost always included from features.h. 387 388 // The GNU libc does not support any K&R compilers or the traditional mode 389 // of ISO C compilers anymore. Check for some of the combinations not 390 // anymore supported. 391 392 // Some user header file might have defined this before. 393 394 // All functions, except those with callbacks or those that 395 // synchronize memory, are leaf functions. 396 397 // GCC can always grok prototypes. For C++ programs we add throw() 398 // to help it optimize the function calls. But this works only with 399 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 400 // as non-throwing using a function attribute since programs can use 401 // the -fexceptions options for C code as well. 402 403 // Compilers that are not clang may object to 404 // #if defined __clang__ && __has_extension(...) 405 // even though they do not need to evaluate the right-hand side of the &&. 406 407 // These two macros are not used in glibc anymore. They are kept here 408 // only because some other projects expect the macros to be defined. 409 410 // For these things, GCC behaves the ANSI way normally, 411 // and the non-ANSI way under -traditional. 412 413 // This is not a typedef so `const __ptr_t' does the right thing. 414 415 // C++ needs to know that types and declarations are C, not C++. 416 417 // Fortify support. 418 419 // Support for flexible arrays. 420 // Headers that should use flexible arrays only if they're "real" 421 // (e.g. only if they won't affect sizeof()) should test 422 // #if __glibc_c99_flexarr_available. 423 424 // __asm__ ("xyz") is used throughout the headers to rename functions 425 // at the assembly language level. This is wrapped by the __REDIRECT 426 // macro, in order to support compilers that can do this some other 427 // way. When compilers don't support asm-names at all, we have to do 428 // preprocessor tricks instead (which don't have exactly the right 429 // semantics, but it's the best we can do). 430 // 431 // Example: 432 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 433 434 // 435 // #elif __SOME_OTHER_COMPILER__ 436 // 437 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 438 439 // GCC has various useful declarations that can be made with the 440 // `__attribute__' syntax. All of the ways we use this do fine if 441 // they are omitted for compilers that don't understand it. 442 443 // At some point during the gcc 2.96 development the `malloc' attribute 444 // for functions was introduced. We don't want to use it unconditionally 445 // (although this would be possible) since it generates warnings. 446 447 // Tell the compiler which arguments to an allocation function 448 // indicate the size of the allocation. 449 450 // At some point during the gcc 2.96 development the `pure' attribute 451 // for functions was introduced. We don't want to use it unconditionally 452 // (although this would be possible) since it generates warnings. 453 454 // This declaration tells the compiler that the value is constant. 455 456 // At some point during the gcc 3.1 development the `used' attribute 457 // for functions was introduced. We don't want to use it unconditionally 458 // (although this would be possible) since it generates warnings. 459 460 // Since version 3.2, gcc allows marking deprecated functions. 461 462 // Since version 4.5, gcc also allows one to specify the message printed 463 // when a deprecated function is used. clang claims to be gcc 4.2, but 464 // may also support this feature. 465 466 // At some point during the gcc 2.8 development the `format_arg' attribute 467 // for functions was introduced. We don't want to use it unconditionally 468 // (although this would be possible) since it generates warnings. 469 // If several `format_arg' attributes are given for the same function, in 470 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 471 // all designated arguments are considered. 472 473 // At some point during the gcc 2.97 development the `strfmon' format 474 // attribute for functions was introduced. We don't want to use it 475 // unconditionally (although this would be possible) since it 476 // generates warnings. 477 478 // The nonull function attribute allows to mark pointer parameters which 479 // must not be NULL. 480 481 // If fortification mode, we warn about unused results of certain 482 // function calls which can lead to problems. 483 484 // Forces a function to be always inlined. 485 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 486 // it conflicts with this definition. Therefore undefine it first to 487 // allow either header to be included first. 488 489 // Associate error messages with the source location of the call site rather 490 // than with the source location inside the function. 491 492 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 493 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 494 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 495 // older than 4.3 may define these macros and still not guarantee GNU inlining 496 // semantics. 497 // 498 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 499 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 500 // __GNUC_GNU_INLINE__ macro definitions. 501 502 // GCC 4.3 and above allow passing all anonymous arguments of an 503 // __extern_always_inline function to some other vararg function. 504 505 // It is possible to compile containing GCC extensions even if GCC is 506 // run in pedantic mode if the uses are carefully marked using the 507 // `__extension__' keyword. But this is not generally available before 508 // version 2.8. 509 510 // __restrict is known in EGCS 1.2 and above. 511 512 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 513 // array_name[restrict] 514 // GCC 3.1 supports this. 515 516 // Describes a char array whose address can safely be passed as the first 517 // argument to strncpy and strncat, as the char array is not necessarily 518 // a NUL-terminated string. 519 520 // Undefine (also defined in libc-symbols.h). 521 // Copies attributes from the declaration or type referenced by 522 // the argument. 523 524 // Determine the wordsize from the preprocessor defines. 525 526 // Properties of long double type. ldbl-opt version. 527 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 528 // This file is part of the GNU C Library. 529 // 530 // The GNU C Library is free software; you can redistribute it and/or 531 // modify it under the terms of the GNU Lesser General Public 532 // License published by the Free Software Foundation; either 533 // version 2.1 of the License, or (at your option) any later version. 534 // 535 // The GNU C Library is distributed in the hope that it will be useful, 536 // but WITHOUT ANY WARRANTY; without even the implied warranty of 537 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 538 // Lesser General Public License for more details. 539 // 540 // You should have received a copy of the GNU Lesser General Public 541 // License along with the GNU C Library; if not, see 542 // <https://www.gnu.org/licenses/>. 543 544 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 545 // intended for use in preprocessor macros. 546 // 547 // Note: MESSAGE must be a _single_ string; concatenation of string 548 // literals is not supported. 549 550 // Generic selection (ISO C11) is a C-only feature, available in GCC 551 // since version 4.9. Previous versions do not provide generic 552 // selection, even though they might set __STDC_VERSION__ to 201112L, 553 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 554 // when testing __STDC_VERSION__ for generic selection support. 555 // On the other hand, Clang also defines __GNUC__, so a clang-specific 556 // check is required to enable the use of generic selection. 557 558 // If we don't have __REDIRECT, prototypes will be missing if 559 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 560 561 // Decide whether we can define 'extern inline' functions in headers. 562 563 // This is here only because every header file already includes this one. 564 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 565 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 566 // that will always return failure (and set errno to ENOSYS). 567 // This file is automatically generated. 568 // This file selects the right generated file of `__stub_FUNCTION' macros 569 // based on the architecture being compiled for. 570 571 // Determine the wordsize from the preprocessor defines. 572 573 // This file is automatically generated. 574 // It defines a symbol `__stub_FUNCTION' for each function 575 // in the C library which is a stub, meaning it will fail 576 // every time called, usually setting errno to ENOSYS. 577 578 // bits/types.h -- definitions of __*_t types underlying *_t types. 579 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 580 // This file is part of the GNU C Library. 581 // 582 // The GNU C Library is free software; you can redistribute it and/or 583 // modify it under the terms of the GNU Lesser General Public 584 // License as published by the Free Software Foundation; either 585 // version 2.1 of the License, or (at your option) any later version. 586 // 587 // The GNU C Library is distributed in the hope that it will be useful, 588 // but WITHOUT ANY WARRANTY; without even the implied warranty of 589 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 590 // Lesser General Public License for more details. 591 // 592 // You should have received a copy of the GNU Lesser General Public 593 // License along with the GNU C Library; if not, see 594 // <https://www.gnu.org/licenses/>. 595 596 // Never include this file directly; use <sys/types.h> instead. 597 598 // Copyright (C) 1991-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 // Determine the wordsize from the preprocessor defines. 616 617 // Bit size of the time_t type at glibc build time, general case. 618 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 619 // This file is part of the GNU C Library. 620 // 621 // The GNU C Library is free software; you can redistribute it and/or 622 // modify it under the terms of the GNU Lesser General Public 623 // License as published by the Free Software Foundation; either 624 // version 2.1 of the License, or (at your option) any later version. 625 // 626 // The GNU C Library is distributed in the hope that it will be useful, 627 // but WITHOUT ANY WARRANTY; without even the implied warranty of 628 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 629 // Lesser General Public License for more details. 630 // 631 // You should have received a copy of the GNU Lesser General Public 632 // License along with the GNU C Library; if not, see 633 // <https://www.gnu.org/licenses/>. 634 635 // Determine the wordsize from the preprocessor defines. 636 637 // Size in bits of the 'time_t' type of the default ABI. 638 639 // Convenience types. 640 type X__u_char = uint8 /* types.h:31:23 */ 641 type X__u_short = uint16 /* types.h:32:28 */ 642 type X__u_int = uint32 /* types.h:33:22 */ 643 type X__u_long = uint64 /* types.h:34:27 */ 644 645 // Fixed-size types, underlying types depend on word size and compiler. 646 type X__int8_t = int8 /* types.h:37:21 */ 647 type X__uint8_t = uint8 /* types.h:38:23 */ 648 type X__int16_t = int16 /* types.h:39:26 */ 649 type X__uint16_t = uint16 /* types.h:40:28 */ 650 type X__int32_t = int32 /* types.h:41:20 */ 651 type X__uint32_t = uint32 /* types.h:42:22 */ 652 type X__int64_t = int64 /* types.h:44:25 */ 653 type X__uint64_t = uint64 /* types.h:45:27 */ 654 655 // Smallest types with at least a given width. 656 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 657 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 658 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 659 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 660 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 661 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 662 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 663 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 664 665 // quad_t is also 64 bits. 666 type X__quad_t = int64 /* types.h:63:18 */ 667 type X__u_quad_t = uint64 /* types.h:64:27 */ 668 669 // Largest integral types. 670 type X__intmax_t = int64 /* types.h:72:18 */ 671 type X__uintmax_t = uint64 /* types.h:73:27 */ 672 673 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 674 // macros for each of the OS types we define below. The definitions 675 // of those macros must use the following macros for underlying types. 676 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 677 // variants of each of the following integer types on this machine. 678 // 679 // 16 -- "natural" 16-bit type (always short) 680 // 32 -- "natural" 32-bit type (always int) 681 // 64 -- "natural" 64-bit type (long or long long) 682 // LONG32 -- 32-bit type, traditionally long 683 // QUAD -- 64-bit type, traditionally long long 684 // WORD -- natural type of __WORDSIZE bits (int or long) 685 // LONGWORD -- type of __WORDSIZE bits, traditionally long 686 // 687 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 688 // conventional uses of `long' or `long long' type modifiers match the 689 // types we define, even when a less-adorned type would be the same size. 690 // This matters for (somewhat) portably writing printf/scanf formats for 691 // these types, where using the appropriate l or ll format modifiers can 692 // make the typedefs and the formats match up across all GNU platforms. If 693 // we used `long' when it's 64 bits where `long long' is expected, then the 694 // compiler would warn about the formats not matching the argument types, 695 // and the programmer changing them to shut up the compiler would break the 696 // program's portability. 697 // 698 // Here we assume what is presently the case in all the GCC configurations 699 // we support: long long is always 64 bits, long is always word/address size, 700 // and int is always 32 bits. 701 702 // No need to mark the typedef with __extension__. 703 // bits/typesizes.h -- underlying types for *_t. Generic version. 704 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 705 // This file is part of the GNU C Library. 706 // 707 // The GNU C Library is free software; you can redistribute it and/or 708 // modify it under the terms of the GNU Lesser General Public 709 // License as published by the Free Software Foundation; either 710 // version 2.1 of the License, or (at your option) any later version. 711 // 712 // The GNU C Library is distributed in the hope that it will be useful, 713 // but WITHOUT ANY WARRANTY; without even the implied warranty of 714 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 715 // Lesser General Public License for more details. 716 // 717 // You should have received a copy of the GNU Lesser General Public 718 // License along with the GNU C Library; if not, see 719 // <https://www.gnu.org/licenses/>. 720 721 // See <bits/types.h> for the meaning of these macros. This file exists so 722 // that <bits/types.h> need not vary across different GNU platforms. 723 724 // Tell the libc code that off_t and off64_t are actually the same type 725 // for all ABI purposes, even if possibly expressed as different base types 726 // for C type-checking purposes. 727 728 // Same for ino_t and ino64_t. 729 730 // And for rlim_t and rlim64_t. 731 732 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 733 734 // Number of descriptors that can fit in an `fd_set'. 735 736 // bits/time64.h -- underlying types for __time64_t. Generic version. 737 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 738 // This file is part of the GNU C Library. 739 // 740 // The GNU C Library is free software; you can redistribute it and/or 741 // modify it under the terms of the GNU Lesser General Public 742 // License as published by the Free Software Foundation; either 743 // version 2.1 of the License, or (at your option) any later version. 744 // 745 // The GNU C Library is distributed in the hope that it will be useful, 746 // but WITHOUT ANY WARRANTY; without even the implied warranty of 747 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 748 // Lesser General Public License for more details. 749 // 750 // You should have received a copy of the GNU Lesser General Public 751 // License along with the GNU C Library; if not, see 752 // <https://www.gnu.org/licenses/>. 753 754 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 755 756 // If we already have 64-bit time type then use it. 757 758 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 759 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 760 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 761 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 762 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 763 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 764 type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. 765 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 766 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 767 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 768 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 769 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 770 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 771 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 772 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 773 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 774 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 775 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 776 777 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 778 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 779 780 // Clock ID used in clock and timer functions. 781 type X__clockid_t = int32 /* types.h:168:29 */ 782 783 // Timer ID returned by `timer_create'. 784 type X__timer_t = uintptr /* types.h:171:12 */ 785 786 // Type to represent block size. 787 type X__blksize_t = int64 /* types.h:174:29 */ 788 789 // Types from the Large File Support interface. 790 791 // Type to count number of disk blocks. 792 type X__blkcnt_t = int64 /* types.h:179:28 */ 793 type X__blkcnt64_t = int64 /* types.h:180:30 */ 794 795 // Type to count file system blocks. 796 type X__fsblkcnt_t = uint64 /* types.h:183:30 */ 797 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ 798 799 // Type to count file system nodes. 800 type X__fsfilcnt_t = uint64 /* types.h:187:30 */ 801 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ 802 803 // Type of miscellaneous file system fields. 804 type X__fsword_t = int64 /* types.h:191:28 */ 805 806 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. 807 808 // Signed long type used in system calls. 809 type X__syscall_slong_t = int64 /* types.h:196:33 */ 810 // Unsigned long type used in system calls. 811 type X__syscall_ulong_t = uint64 /* types.h:198:33 */ 812 813 // These few don't really vary by system, they always correspond 814 // 815 // to one of the other defined types. 816 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 817 type X__caddr_t = uintptr /* types.h:203:14 */ 818 819 // Duplicates info from stdint.h but this is used in unistd.h. 820 type X__intptr_t = int64 /* types.h:206:25 */ 821 822 // Duplicate info from sys/socket.h. 823 type X__socklen_t = uint32 /* types.h:209:23 */ 824 825 // C99: An integer type that can be accessed as an atomic entity, 826 // 827 // even in the presence of asynchronous interrupts. 828 // It is not currently necessary for this to be machine-specific. 829 type X__sig_atomic_t = int32 /* types.h:214:13 */ 830 831 // Seconds since the Epoch, visible to user code when time_t is too 832 // narrow only for consistency with the old way of widening too-narrow 833 // types. User code should never use __time64_t. 834 835 // Some versions of stddef.h provide wint_t, even though neither the 836 // C nor C++ standards, nor POSIX, specifies this. We assume that 837 // stddef.h will define the macro _WINT_T if and only if it provides 838 // wint_t, and conversely, that it will avoid providing wint_t if 839 // _WINT_T is already defined. 840 841 // Integral type unchanged by default argument promotions that can 842 // hold any value corresponding to members of the extended character 843 // set, as well as at least one value that does not correspond to any 844 // member of the extended character set. 845 846 type Wint_t = uint32 /* wint_t.h:20:23 */ 847 848 // Constant expression of type `wint_t' whose value does not correspond 849 // to any member of the extended character set. 850 851 // Some definitions from this header also appear in <wchar.h> in 852 // Unix98 mode. 853 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 854 // This file is part of the GNU C Library. 855 // 856 // The GNU C Library is free software; you can redistribute it and/or 857 // modify it under the terms of the GNU Lesser General Public 858 // License as published by the Free Software Foundation; either 859 // version 2.1 of the License, or (at your option) any later version. 860 // 861 // The GNU C Library is distributed in the hope that it will be useful, 862 // but WITHOUT ANY WARRANTY; without even the implied warranty of 863 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 864 // Lesser General Public License for more details. 865 // 866 // You should have received a copy of the GNU Lesser General Public 867 // License along with the GNU C Library; if not, see 868 // <https://www.gnu.org/licenses/>. 869 870 // ISO C99 Standard: 7.25 871 // Wide character classification and mapping utilities <wctype.h> 872 873 // bits/types.h -- definitions of __*_t types underlying *_t types. 874 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 875 // This file is part of the GNU C Library. 876 // 877 // The GNU C Library is free software; you can redistribute it and/or 878 // modify it under the terms of the GNU Lesser General Public 879 // License as published by the Free Software Foundation; either 880 // version 2.1 of the License, or (at your option) any later version. 881 // 882 // The GNU C Library is distributed in the hope that it will be useful, 883 // but WITHOUT ANY WARRANTY; without even the implied warranty of 884 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 885 // Lesser General Public License for more details. 886 // 887 // You should have received a copy of the GNU Lesser General Public 888 // License along with the GNU C Library; if not, see 889 // <https://www.gnu.org/licenses/>. 890 891 // Never include this file directly; use <sys/types.h> instead. 892 893 // The definitions in this header are specified to appear in <wctype.h> 894 // in ISO C99, but in <wchar.h> in Unix98. _GNU_SOURCE follows C99. 895 896 // Scalar type that can hold values which represent locale-specific 897 // 898 // character classifications. 899 type Wctype_t = uint64 /* wctype-wchar.h:38:27 */ 900 901 // Extensible wide-character mapping functions: 7.15.3.2. 902 903 // Scalar type that can hold values which represent locale-specific 904 // 905 // character mappings. 906 type Wctrans_t = uintptr /* wctype.h:48:25 */ 907 908 // POSIX.1-2008 extended locale interface (see locale.h). 909 // Definition of locale_t. 910 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 911 // This file is part of the GNU C Library. 912 // 913 // The GNU C Library is free software; you can redistribute it and/or 914 // modify it under the terms of the GNU Lesser General Public 915 // License as published by the Free Software Foundation; either 916 // version 2.1 of the License, or (at your option) any later version. 917 // 918 // The GNU C Library is distributed in the hope that it will be useful, 919 // but WITHOUT ANY WARRANTY; without even the implied warranty of 920 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 921 // Lesser General Public License for more details. 922 // 923 // You should have received a copy of the GNU Lesser General Public 924 // License along with the GNU C Library; if not, see 925 // <https://www.gnu.org/licenses/>. 926 927 // Definition of struct __locale_struct and __locale_t. 928 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 929 // This file is part of the GNU C Library. 930 // Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. 931 // 932 // The GNU C Library is free software; you can redistribute it and/or 933 // modify it under the terms of the GNU Lesser General Public 934 // License as published by the Free Software Foundation; either 935 // version 2.1 of the License, or (at your option) any later version. 936 // 937 // The GNU C Library is distributed in the hope that it will be useful, 938 // but WITHOUT ANY WARRANTY; without even the implied warranty of 939 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 940 // Lesser General Public License for more details. 941 // 942 // You should have received a copy of the GNU Lesser General Public 943 // License along with the GNU C Library; if not, see 944 // <https://www.gnu.org/licenses/>. 945 946 // POSIX.1-2008: the locale_t type, representing a locale context 947 // (implementation-namespace version). This type should be treated 948 // as opaque by applications; some details are exposed for the sake of 949 // efficiency in e.g. ctype functions. 950 951 type X__locale_struct = struct { 952 F__locales [13]uintptr 953 F__ctype_b uintptr 954 F__ctype_tolower uintptr 955 F__ctype_toupper uintptr 956 F__names [13]uintptr 957 } /* __locale_t.h:28:1 */ 958 959 type X__locale_t = uintptr /* __locale_t.h:42:32 */ 960 961 type Locale_t = X__locale_t /* locale_t.h:24:20 */ 962 963 var _ uint8 /* gen.c:2:13: */