modernc.org/libc@v1.24.1/wctype/wctype_linux_s390x.go (about)

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