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