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