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