github.com/afumu/libc@v0.0.6/locale/locale_linux_arm64.go (about) 1 // Code generated by 'ccgo locale/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o locale/locale_linux_arm64.go -pkgname locale', DO NOT EDIT. 2 3 package locale 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 LC_ADDRESS = 9 19 LC_ADDRESS_MASK = 512 20 LC_ALL = 6 21 LC_ALL_MASK = 8127 22 LC_COLLATE = 3 23 LC_COLLATE_MASK = 8 24 LC_CTYPE = 0 25 LC_CTYPE_MASK = 1 26 LC_IDENTIFICATION = 12 27 LC_IDENTIFICATION_MASK = 4096 28 LC_MEASUREMENT = 11 29 LC_MEASUREMENT_MASK = 2048 30 LC_MESSAGES = 5 31 LC_MESSAGES_MASK = 32 32 LC_MONETARY = 4 33 LC_MONETARY_MASK = 16 34 LC_NAME = 8 35 LC_NAME_MASK = 256 36 LC_NUMERIC = 1 37 LC_NUMERIC_MASK = 2 38 LC_PAPER = 7 39 LC_PAPER_MASK = 128 40 LC_TELEPHONE = 10 41 LC_TELEPHONE_MASK = 1024 42 LC_TIME = 2 43 LC_TIME_MASK = 4 44 X_ATFILE_SOURCE = 1 45 X_BITS_LOCALE_H = 1 46 X_BITS_TYPES_LOCALE_T_H = 1 47 X_BITS_TYPES___LOCALE_T_H = 1 48 X_DEFAULT_SOURCE = 1 49 X_FEATURES_H = 1 50 X_FILE_OFFSET_BITS = 64 51 X_LOCALE_H = 1 52 X_LP64 = 1 53 X_POSIX_C_SOURCE = 200809 54 X_POSIX_SOURCE = 1 55 X_STDC_PREDEF_H = 1 56 X_SYS_CDEFS_H = 1 57 Linux = 1 58 Unix = 1 59 ) 60 61 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 62 63 type Size_t = uint64 /* <builtin>:9:23 */ 64 65 type Wchar_t = uint32 /* <builtin>:15:24 */ 66 67 type X__int128_t = struct { 68 Flo int64 69 Fhi int64 70 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 71 type X__uint128_t = struct { 72 Flo uint64 73 Fhi uint64 74 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 75 76 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 77 type X__float128 = float64 /* <builtin>:47:21 */ 78 79 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 80 // This file is part of the GNU C Library. 81 // 82 // The GNU C Library is free software; you can redistribute it and/or 83 // modify it under the terms of the GNU Lesser General Public 84 // License as published by the Free Software Foundation; either 85 // version 2.1 of the License, or (at your option) any later version. 86 // 87 // The GNU C Library is distributed in the hope that it will be useful, 88 // but WITHOUT ANY WARRANTY; without even the implied warranty of 89 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 90 // Lesser General Public License for more details. 91 // 92 // You should have received a copy of the GNU Lesser General Public 93 // License along with the GNU C Library; if not, see 94 // <https://www.gnu.org/licenses/>. 95 96 // ISO C99 Standard: 7.11 Localization <locale.h> 97 98 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 99 // This file is part of the GNU C Library. 100 // 101 // The GNU C Library is free software; you can redistribute it and/or 102 // modify it under the terms of the GNU Lesser General Public 103 // License as published by the Free Software Foundation; either 104 // version 2.1 of the License, or (at your option) any later version. 105 // 106 // The GNU C Library is distributed in the hope that it will be useful, 107 // but WITHOUT ANY WARRANTY; without even the implied warranty of 108 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 109 // Lesser General Public License for more details. 110 // 111 // You should have received a copy of the GNU Lesser General Public 112 // License along with the GNU C Library; if not, see 113 // <https://www.gnu.org/licenses/>. 114 115 // These are defined by the user (or the compiler) 116 // to specify the desired environment: 117 // 118 // __STRICT_ANSI__ ISO Standard C. 119 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 120 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 121 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 122 // __STDC_WANT_LIB_EXT2__ 123 // Extensions to ISO C99 from TR 27431-2:2010. 124 // __STDC_WANT_IEC_60559_BFP_EXT__ 125 // Extensions to ISO C11 from TS 18661-1:2014. 126 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 127 // Extensions to ISO C11 from TS 18661-4:2015. 128 // __STDC_WANT_IEC_60559_TYPES_EXT__ 129 // Extensions to ISO C11 from TS 18661-3:2015. 130 // 131 // _POSIX_SOURCE IEEE Std 1003.1. 132 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 133 // if >=199309L, add IEEE Std 1003.1b-1993; 134 // if >=199506L, add IEEE Std 1003.1c-1995; 135 // if >=200112L, all of IEEE 1003.1-2004 136 // if >=200809L, all of IEEE 1003.1-2008 137 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 138 // Single Unix conformance is wanted, to 600 for the 139 // sixth revision, to 700 for the seventh revision. 140 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 141 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 142 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 143 // _FILE_OFFSET_BITS=N Select default filesystem interface. 144 // _ATFILE_SOURCE Additional *at interfaces. 145 // _GNU_SOURCE All of the above, plus GNU extensions. 146 // _DEFAULT_SOURCE The default set of features (taking precedence over 147 // __STRICT_ANSI__). 148 // 149 // _FORTIFY_SOURCE Add security hardening to many library functions. 150 // Set to 1 or 2; 2 performs stricter checks than 1. 151 // 152 // _REENTRANT, _THREAD_SAFE 153 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 154 // 155 // The `-ansi' switch to the GNU C compiler, and standards conformance 156 // options such as `-std=c99', define __STRICT_ANSI__. If none of 157 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 158 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 159 // 200809L, as well as enabling miscellaneous functions from BSD and 160 // SVID. If more than one of these are defined, they accumulate. For 161 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 162 // give you ISO C, 1003.1, and 1003.2, but nothing else. 163 // 164 // These are defined by this file and are used by the 165 // header files to decide what to declare or define: 166 // 167 // __GLIBC_USE (F) Define things from feature set F. This is defined 168 // to 1 or 0; the subsequent macros are either defined 169 // or undefined, and those tests should be moved to 170 // __GLIBC_USE. 171 // __USE_ISOC11 Define ISO C11 things. 172 // __USE_ISOC99 Define ISO C99 things. 173 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 174 // __USE_ISOCXX11 Define ISO C++11 things. 175 // __USE_POSIX Define IEEE Std 1003.1 things. 176 // __USE_POSIX2 Define IEEE Std 1003.2 things. 177 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 178 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 179 // __USE_XOPEN Define XPG things. 180 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 181 // __USE_UNIX98 Define Single Unix V2 things. 182 // __USE_XOPEN2K Define XPG6 things. 183 // __USE_XOPEN2KXSI Define XPG6 XSI things. 184 // __USE_XOPEN2K8 Define XPG7 things. 185 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 186 // __USE_LARGEFILE Define correct standard I/O things. 187 // __USE_LARGEFILE64 Define LFS things with separate names. 188 // __USE_FILE_OFFSET64 Define 64bit interface as default. 189 // __USE_MISC Define things from 4.3BSD or System V Unix. 190 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 191 // __USE_GNU Define GNU extensions. 192 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 193 // 194 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 195 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 196 // only for compatibility. All new code should use the other symbols 197 // to test for features. 198 // 199 // All macros listed above as possibly being defined by this file are 200 // explicitly undefined if they are not explicitly defined. 201 // Feature-test macros that are not defined by the user or compiler 202 // but are implied by the other feature-test macros defined (or by the 203 // lack of any definitions) are defined by the file. 204 // 205 // ISO C feature test macros depend on the definition of the macro 206 // when an affected header is included, not when the first system 207 // header is included, and so they are handled in 208 // <bits/libc-header-start.h>, which does not have a multiple include 209 // guard. Feature test macros that can be handled from the first 210 // system header included are handled here. 211 212 // Undefine everything, so we get a clean slate. 213 214 // Suppress kernel-name space pollution unless user expressedly asks 215 // for it. 216 217 // Convenience macro to test the version of gcc. 218 // Use like this: 219 // #if __GNUC_PREREQ (2,8) 220 // ... code requiring gcc 2.8 or later ... 221 // #endif 222 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 223 // added in 2.0. 224 225 // Similarly for clang. Features added to GCC after version 4.2 may 226 // or may not also be available in clang, and clang's definitions of 227 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 228 // features can be queried via __has_extension/__has_feature. 229 230 // Whether to use feature set F. 231 232 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 233 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 234 // issue a warning; the expectation is that the source is being 235 // transitioned to use the new macro. 236 237 // If _GNU_SOURCE was defined by the user, turn on all the other features. 238 239 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 240 // define _DEFAULT_SOURCE. 241 242 // This is to enable the ISO C2X extension. 243 244 // This is to enable the ISO C11 extension. 245 246 // This is to enable the ISO C99 extension. 247 248 // This is to enable the ISO C90 Amendment 1:1995 extension. 249 250 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 251 // is defined, use POSIX.1-2008 (or another version depending on 252 // _XOPEN_SOURCE). 253 254 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 255 // defined in all multithreaded code. GNU libc has not required this 256 // for many years. We now treat them as compatibility synonyms for 257 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 258 // comprehensive support for multithreaded code. Using them never 259 // lowers the selected level of POSIX conformance, only raises it. 260 261 // The function 'gets' existed in C89, but is impossible to use 262 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 263 // compatibility with various implementations of <cstdio>, this test 264 // must consider only the value of __cplusplus when compiling C++. 265 266 // GNU formerly extended the scanf functions with modified format 267 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 268 // input using malloc. This extension conflicts with ISO C99, which 269 // defines %a as a standalone format specifier that reads a floating- 270 // point number; moreover, POSIX.1-2008 provides the same feature 271 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 272 // 273 // We now follow C99 unless GNU extensions are active and the compiler 274 // is specifically in C89 or C++98 mode (strict or not). For 275 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 276 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 277 // old extension. 278 279 // Get definitions of __STDC_* predefined macros, if the compiler has 280 // not preincluded this header automatically. 281 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 282 // This file is part of the GNU C Library. 283 // 284 // The GNU C Library is free software; you can redistribute it and/or 285 // modify it under the terms of the GNU Lesser General Public 286 // License as published by the Free Software Foundation; either 287 // version 2.1 of the License, or (at your option) any later version. 288 // 289 // The GNU C Library is distributed in the hope that it will be useful, 290 // but WITHOUT ANY WARRANTY; without even the implied warranty of 291 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 292 // Lesser General Public License for more details. 293 // 294 // You should have received a copy of the GNU Lesser General Public 295 // License along with the GNU C Library; if not, see 296 // <https://www.gnu.org/licenses/>. 297 298 // This macro indicates that the installed library is the GNU C Library. 299 // For historic reasons the value now is 6 and this will stay from now 300 // on. The use of this variable is deprecated. Use __GLIBC__ and 301 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 302 // GNU C library version and use the values in <gnu/lib-names.h> to get 303 // the sonames of the shared libraries. 304 305 // Major and minor version number of the GNU C library package. Use 306 // these macros to test for features in specific releases. 307 308 // This is here only because every header file already includes this one. 309 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 310 // This file is part of the GNU C Library. 311 // 312 // The GNU C Library is free software; you can redistribute it and/or 313 // modify it under the terms of the GNU Lesser General Public 314 // License as published by the Free Software Foundation; either 315 // version 2.1 of the License, or (at your option) any later version. 316 // 317 // The GNU C Library is distributed in the hope that it will be useful, 318 // but WITHOUT ANY WARRANTY; without even the implied warranty of 319 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 320 // Lesser General Public License for more details. 321 // 322 // You should have received a copy of the GNU Lesser General Public 323 // License along with the GNU C Library; if not, see 324 // <https://www.gnu.org/licenses/>. 325 326 // We are almost always included from features.h. 327 328 // The GNU libc does not support any K&R compilers or the traditional mode 329 // of ISO C compilers anymore. Check for some of the combinations not 330 // anymore supported. 331 332 // Some user header file might have defined this before. 333 334 // All functions, except those with callbacks or those that 335 // synchronize memory, are leaf functions. 336 337 // GCC can always grok prototypes. For C++ programs we add throw() 338 // to help it optimize the function calls. But this works only with 339 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 340 // as non-throwing using a function attribute since programs can use 341 // the -fexceptions options for C code as well. 342 343 // Compilers that are not clang may object to 344 // #if defined __clang__ && __has_extension(...) 345 // even though they do not need to evaluate the right-hand side of the &&. 346 347 // These two macros are not used in glibc anymore. They are kept here 348 // only because some other projects expect the macros to be defined. 349 350 // For these things, GCC behaves the ANSI way normally, 351 // and the non-ANSI way under -traditional. 352 353 // This is not a typedef so `const __ptr_t' does the right thing. 354 355 // C++ needs to know that types and declarations are C, not C++. 356 357 // Fortify support. 358 359 // Support for flexible arrays. 360 // Headers that should use flexible arrays only if they're "real" 361 // (e.g. only if they won't affect sizeof()) should test 362 // #if __glibc_c99_flexarr_available. 363 364 // __asm__ ("xyz") is used throughout the headers to rename functions 365 // at the assembly language level. This is wrapped by the __REDIRECT 366 // macro, in order to support compilers that can do this some other 367 // way. When compilers don't support asm-names at all, we have to do 368 // preprocessor tricks instead (which don't have exactly the right 369 // semantics, but it's the best we can do). 370 // 371 // Example: 372 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 373 374 // 375 // #elif __SOME_OTHER_COMPILER__ 376 // 377 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 378 379 // GCC has various useful declarations that can be made with the 380 // `__attribute__' syntax. All of the ways we use this do fine if 381 // they are omitted for compilers that don't understand it. 382 383 // At some point during the gcc 2.96 development the `malloc' attribute 384 // for functions was introduced. We don't want to use it unconditionally 385 // (although this would be possible) since it generates warnings. 386 387 // Tell the compiler which arguments to an allocation function 388 // indicate the size of the allocation. 389 390 // At some point during the gcc 2.96 development the `pure' attribute 391 // for functions was introduced. We don't want to use it unconditionally 392 // (although this would be possible) since it generates warnings. 393 394 // This declaration tells the compiler that the value is constant. 395 396 // At some point during the gcc 3.1 development the `used' attribute 397 // for functions was introduced. We don't want to use it unconditionally 398 // (although this would be possible) since it generates warnings. 399 400 // Since version 3.2, gcc allows marking deprecated functions. 401 402 // Since version 4.5, gcc also allows one to specify the message printed 403 // when a deprecated function is used. clang claims to be gcc 4.2, but 404 // may also support this feature. 405 406 // At some point during the gcc 2.8 development the `format_arg' attribute 407 // for functions was introduced. We don't want to use it unconditionally 408 // (although this would be possible) since it generates warnings. 409 // If several `format_arg' attributes are given for the same function, in 410 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 411 // all designated arguments are considered. 412 413 // At some point during the gcc 2.97 development the `strfmon' format 414 // attribute for functions was introduced. We don't want to use it 415 // unconditionally (although this would be possible) since it 416 // generates warnings. 417 418 // The nonull function attribute allows to mark pointer parameters which 419 // must not be NULL. 420 421 // If fortification mode, we warn about unused results of certain 422 // function calls which can lead to problems. 423 424 // Forces a function to be always inlined. 425 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 426 // it conflicts with this definition. Therefore undefine it first to 427 // allow either header to be included first. 428 429 // Associate error messages with the source location of the call site rather 430 // than with the source location inside the function. 431 432 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 433 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 434 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 435 // older than 4.3 may define these macros and still not guarantee GNU inlining 436 // semantics. 437 // 438 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 439 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 440 // __GNUC_GNU_INLINE__ macro definitions. 441 442 // GCC 4.3 and above allow passing all anonymous arguments of an 443 // __extern_always_inline function to some other vararg function. 444 445 // It is possible to compile containing GCC extensions even if GCC is 446 // run in pedantic mode if the uses are carefully marked using the 447 // `__extension__' keyword. But this is not generally available before 448 // version 2.8. 449 450 // __restrict is known in EGCS 1.2 and above. 451 452 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 453 // array_name[restrict] 454 // GCC 3.1 supports this. 455 456 // Describes a char array whose address can safely be passed as the first 457 // argument to strncpy and strncat, as the char array is not necessarily 458 // a NUL-terminated string. 459 460 // Undefine (also defined in libc-symbols.h). 461 // Copies attributes from the declaration or type referenced by 462 // the argument. 463 464 // Determine the wordsize from the preprocessor defines. 465 // 466 // Copyright (C) 2016-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 // Properties of long double type. ldbl-128 version. 484 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 485 // This file is part of the GNU C Library. 486 // 487 // The GNU C Library is free software; you can redistribute it and/or 488 // modify it under the terms of the GNU Lesser General Public 489 // License published by the Free Software Foundation; either 490 // version 2.1 of the License, or (at your option) any later version. 491 // 492 // The GNU C Library is distributed in the hope that it will be useful, 493 // but WITHOUT ANY WARRANTY; without even the implied warranty of 494 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 495 // Lesser General Public License for more details. 496 // 497 // You should have received a copy of the GNU Lesser General Public 498 // License along with the GNU C Library; if not, see 499 // <https://www.gnu.org/licenses/>. 500 501 // long double is distinct from double, so there is nothing to 502 // define here. 503 504 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 505 // intended for use in preprocessor macros. 506 // 507 // Note: MESSAGE must be a _single_ string; concatenation of string 508 // literals is not supported. 509 510 // Generic selection (ISO C11) is a C-only feature, available in GCC 511 // since version 4.9. Previous versions do not provide generic 512 // selection, even though they might set __STDC_VERSION__ to 201112L, 513 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 514 // when testing __STDC_VERSION__ for generic selection support. 515 // On the other hand, Clang also defines __GNUC__, so a clang-specific 516 // check is required to enable the use of generic selection. 517 518 // If we don't have __REDIRECT, prototypes will be missing if 519 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 520 521 // Decide whether we can define 'extern inline' functions in headers. 522 523 // This is here only because every header file already includes this one. 524 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 525 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 526 // that will always return failure (and set errno to ENOSYS). 527 // This file is automatically generated. 528 // This file selects the right generated file of `__stub_FUNCTION' macros 529 // based on the architecture being compiled for. 530 531 // Determine the wordsize from the preprocessor defines. 532 // 533 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 534 // This file is part of the GNU C Library. 535 // 536 // The GNU C Library is free software; you can redistribute it and/or 537 // modify it under the terms of the GNU Lesser General Public 538 // License as published by the Free Software Foundation; either 539 // version 2.1 of the License, or (at your option) any later version. 540 // 541 // The GNU C Library is distributed in the hope that it will be useful, 542 // but WITHOUT ANY WARRANTY; without even the implied warranty of 543 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 544 // Lesser General Public License for more details. 545 // 546 // You should have received a copy of the GNU Lesser General Public 547 // License along with the GNU C Library; if not, see 548 // <https://www.gnu.org/licenses/>. 549 550 // This file is automatically generated. 551 // It defines a symbol `__stub_FUNCTION' for each function 552 // in the C library which is a stub, meaning it will fail 553 // every time called, usually setting errno to ENOSYS. 554 555 // Copyright (C) 1989-2020 Free Software Foundation, Inc. 556 // 557 // This file is part of GCC. 558 // 559 // GCC is free software; you can redistribute it and/or modify 560 // it under the terms of the GNU General Public License as published by 561 // the Free Software Foundation; either version 3, or (at your option) 562 // any later version. 563 // 564 // GCC is distributed in the hope that it will be useful, 565 // but WITHOUT ANY WARRANTY; without even the implied warranty of 566 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 567 // GNU General Public License for more details. 568 // 569 // Under Section 7 of GPL version 3, you are granted additional 570 // permissions described in the GCC Runtime Library Exception, version 571 // 3.1, as published by the Free Software Foundation. 572 // 573 // You should have received a copy of the GNU General Public License and 574 // a copy of the GCC Runtime Library Exception along with this program; 575 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 576 // <http://www.gnu.org/licenses/>. 577 578 // ISO C Standard: 7.17 Common definitions <stddef.h> 579 580 // Any one of these symbols __need_* means that GNU libc 581 // wants us just to define one data type. So don't define 582 // the symbols that indicate this file's entire job has been done. 583 584 // This avoids lossage on SunOS but only if stdtypes.h comes first. 585 // There's no way to win with the other order! Sun lossage. 586 587 // Sequent's header files use _PTRDIFF_T_ in some conflicting way. 588 // Just ignore it. 589 590 // On VxWorks, <type/vxTypesBase.h> may have defined macros like 591 // _TYPE_size_t which will typedef size_t. fixincludes patched the 592 // vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is 593 // not defined, and so that defining this macro defines _GCC_SIZE_T. 594 // If we find that the macros are still defined at this point, we must 595 // invoke them so that the type is defined as expected. 596 597 // In case nobody has defined these types, but we aren't running under 598 // GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and 599 // __WCHAR_TYPE__ have reasonable values. This can happen if the 600 // parts of GCC is compiled by an older compiler, that actually 601 // include gstddef.h, such as collect2. 602 603 // Signed type of difference of two pointers. 604 605 // Define this type if we are doing the whole job, 606 // or if we want this type in particular. 607 608 // Unsigned type of `sizeof' something. 609 610 // Define this type if we are doing the whole job, 611 // or if we want this type in particular. 612 613 // Wide character type. 614 // Locale-writers should change this as necessary to 615 // be big enough to hold unique values not between 0 and 127, 616 // and not (wchar_t) -1, for each defined multibyte character. 617 618 // Define this type if we are doing the whole job, 619 // or if we want this type in particular. 620 621 // A null pointer constant. 622 623 // Definition of locale category symbol values. 624 // Copyright (C) 2001-2020 Free Software Foundation, Inc. 625 // This file is part of the GNU C Library. 626 // 627 // The GNU C Library is free software; you can redistribute it and/or 628 // modify it under the terms of the GNU Lesser General Public 629 // License as published by the Free Software Foundation; either 630 // version 2.1 of the License, or (at your option) any later version. 631 // 632 // The GNU C Library is distributed in the hope that it will be useful, 633 // but WITHOUT ANY WARRANTY; without even the implied warranty of 634 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 635 // Lesser General Public License for more details. 636 // 637 // You should have received a copy of the GNU Lesser General Public 638 // License along with the GNU C Library; if not, see 639 // <https://www.gnu.org/licenses/>. 640 641 // These are the possibilities for the first argument to setlocale. 642 // The code assumes that the lowest LC_* symbol has the value zero. 643 644 // Structure giving information about numeric and monetary notation. 645 type Lconv = struct { 646 Fdecimal_point uintptr 647 Fthousands_sep uintptr 648 Fgrouping uintptr 649 Fint_curr_symbol uintptr 650 Fcurrency_symbol uintptr 651 Fmon_decimal_point uintptr 652 Fmon_thousands_sep uintptr 653 Fmon_grouping uintptr 654 Fpositive_sign uintptr 655 Fnegative_sign uintptr 656 Fint_frac_digits uint8 657 Ffrac_digits uint8 658 Fp_cs_precedes uint8 659 Fp_sep_by_space uint8 660 Fn_cs_precedes uint8 661 Fn_sep_by_space uint8 662 Fp_sign_posn uint8 663 Fn_sign_posn uint8 664 Fint_p_cs_precedes uint8 665 Fint_p_sep_by_space uint8 666 Fint_n_cs_precedes uint8 667 Fint_n_sep_by_space uint8 668 Fint_p_sign_posn uint8 669 Fint_n_sign_posn uint8 670 F__ccgo_pad1 [2]byte 671 } /* locale.h:51:1 */ 672 673 // POSIX.1-2008 extends the locale interface with functions for 674 // explicit creation and manipulation of 'locale_t' objects 675 // representing locale contexts, and a set of parallel 676 // locale-sensitive text processing functions that take a locale_t 677 // argument. This enables applications to work with data from 678 // multiple locales simultaneously and thread-safely. 679 // Definition of locale_t. 680 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 681 // This file is part of the GNU C Library. 682 // 683 // The GNU C Library is free software; you can redistribute it and/or 684 // modify it under the terms of the GNU Lesser General Public 685 // License as published by the Free Software Foundation; either 686 // version 2.1 of the License, or (at your option) any later version. 687 // 688 // The GNU C Library is distributed in the hope that it will be useful, 689 // but WITHOUT ANY WARRANTY; without even the implied warranty of 690 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 691 // Lesser General Public License for more details. 692 // 693 // You should have received a copy of the GNU Lesser General Public 694 // License along with the GNU C Library; if not, see 695 // <https://www.gnu.org/licenses/>. 696 697 // Definition of struct __locale_struct and __locale_t. 698 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 699 // This file is part of the GNU C Library. 700 // Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. 701 // 702 // The GNU C Library is free software; you can redistribute it and/or 703 // modify it under the terms of the GNU Lesser General Public 704 // License as published by the Free Software Foundation; either 705 // version 2.1 of the License, or (at your option) any later version. 706 // 707 // The GNU C Library is distributed in the hope that it will be useful, 708 // but WITHOUT ANY WARRANTY; without even the implied warranty of 709 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 710 // Lesser General Public License for more details. 711 // 712 // You should have received a copy of the GNU Lesser General Public 713 // License along with the GNU C Library; if not, see 714 // <https://www.gnu.org/licenses/>. 715 716 // POSIX.1-2008: the locale_t type, representing a locale context 717 // (implementation-namespace version). This type should be treated 718 // as opaque by applications; some details are exposed for the sake of 719 // efficiency in e.g. ctype functions. 720 721 type X__locale_struct = struct { 722 F__locales [13]uintptr 723 F__ctype_b uintptr 724 F__ctype_tolower uintptr 725 F__ctype_toupper uintptr 726 F__names [13]uintptr 727 } /* __locale_t.h:28:1 */ 728 729 type X__locale_t = uintptr /* __locale_t.h:42:32 */ 730 731 type Locale_t = X__locale_t /* locale_t.h:24:20 */ 732 733 // This value can be passed to `uselocale' and may be returned by it. 734 // Passing this value to any other function has undefined behavior. 735 736 var _ uint8 /* gen.c:2:13: */