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