modernc.org/libc@v1.24.1/wctype/wctype_freebsd_arm.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 -ignore-unsupported-alignment -o wctype/wctype_freebsd_arm.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  	X_CACHED_RUNES                  = 256        // runetype.h:44:1:
    19  	X_CRMASK                        = -256       // runetype.h:45:1:
    20  	X_CTYPE_A                       = 0x00000100 // _ctype.h:50:1:
    21  	X_CTYPE_B                       = 0x00020000 // _ctype.h:59:1:
    22  	X_CTYPE_C                       = 0x00000200 // _ctype.h:51:1:
    23  	X_CTYPE_D                       = 0x00000400 // _ctype.h:52:1:
    24  	X_CTYPE_G                       = 0x00000800 // _ctype.h:53:1:
    25  	X_CTYPE_I                       = 0x00080000 // _ctype.h:61:1:
    26  	X_CTYPE_L                       = 0x00001000 // _ctype.h:54:1:
    27  	X_CTYPE_N                       = 0x00400000 // _ctype.h:64:1:
    28  	X_CTYPE_P                       = 0x00002000 // _ctype.h:55:1:
    29  	X_CTYPE_Q                       = 0x00200000 // _ctype.h:63:1:
    30  	X_CTYPE_R                       = 0x00040000 // _ctype.h:60:1:
    31  	X_CTYPE_S                       = 0x00004000 // _ctype.h:56:1:
    32  	X_CTYPE_SW0                     = 0x20000000 // _ctype.h:65:1:
    33  	X_CTYPE_SW1                     = 0x40000000 // _ctype.h:66:1:
    34  	X_CTYPE_SW2                     = 0x80000000 // _ctype.h:67:1:
    35  	X_CTYPE_SW3                     = 0xc0000000 // _ctype.h:68:1:
    36  	X_CTYPE_SWM                     = 0xe0000000 // _ctype.h:69:1:
    37  	X_CTYPE_SWS                     = 30         // _ctype.h:70:1:
    38  	X_CTYPE_T                       = 0x00100000 // _ctype.h:62:1:
    39  	X_CTYPE_U                       = 0x00008000 // _ctype.h:57:1:
    40  	X_CTYPE_X                       = 0x00010000 // _ctype.h:58:1:
    41  	X_FILE_OFFSET_BITS              = 64         // <builtin>:25:1:
    42  	X_ILP32                         = 1          // <predefined>:1:1:
    43  	X_LOCALE_T_DEFINED              = 0          // _ctype.h:44:1:
    44  	X_MACHINE__TYPES_H_             = 0          // _types.h:42:1:
    45  	X_Nonnull                       = 0          // cdefs.h:790:1:
    46  	X_Null_unspecified              = 0          // cdefs.h:792:1:
    47  	X_Nullable                      = 0          // cdefs.h:791:1:
    48  	X_RUNETYPE_H_                   = 0          // runetype.h:39:1:
    49  	X_RUNE_MAGIC_1                  = "RuneMagi" // runetype.h:87:1:
    50  	X_SYS_CDEFS_H_                  = 0          // cdefs.h:39:1:
    51  	X_SYS__TYPES_H_                 = 0          // _types.h:32:1:
    52  	X_WCTRANS_T                     = 0          // wctype.h:43:1:
    53  	X_WCTYPE_H_                     = 0          // wctype.h:34:1:
    54  	X_WCTYPE_T                      = 0          // wctype.h:48:1:
    55  	X_WINT_T_DECLARED               = 0          // wctype.h:53:1:
    56  	X_XLOCALE_RUN_FUNCTIONS_DEFINED = 1          // _ctype.h:49:1:
    57  	X_XLOCALE_WCTYPE_H              = 0          // _ctype.h:38:1:
    58  	Unix                            = 1          // <predefined>:367:1:
    59  )
    60  
    61  type Ptrdiff_t = int32 /* <builtin>:3:26 */
    62  
    63  type Size_t = uint32 /* <builtin>:9:23 */
    64  
    65  type Wchar_t = uint32 /* <builtin>:15:24 */
    66  
    67  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    68  type X__float128 = float64        /* <builtin>:47:21 */
    69  
    70  // -
    71  // SPDX-License-Identifier: BSD-2-Clause
    72  //
    73  // Copyright (c)1999 Citrus Project,
    74  // All rights reserved.
    75  //
    76  // Redistribution and use in source and binary forms, with or without
    77  // modification, are permitted provided that the following conditions
    78  // are met:
    79  // 1. Redistributions of source code must retain the above copyright
    80  //    notice, this list of conditions and the following disclaimer.
    81  // 2. Redistributions in binary form must reproduce the above copyright
    82  //    notice, this list of conditions and the following disclaimer in the
    83  //    documentation and/or other materials provided with the distribution.
    84  //
    85  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    86  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    87  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    88  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    89  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    90  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    91  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    92  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    93  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    94  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    95  // SUCH DAMAGE.
    96  //
    97  //	citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp
    98  //	$NetBSD: wctype.h,v 1.3 2000/12/22 14:16:16 itojun Exp $
    99  // $FreeBSD$
   100  
   101  // -
   102  // SPDX-License-Identifier: BSD-3-Clause
   103  //
   104  // Copyright (c) 1991, 1993
   105  //	The Regents of the University of California.  All rights reserved.
   106  //
   107  // This code is derived from software contributed to Berkeley by
   108  // Berkeley Software Design, Inc.
   109  //
   110  // Redistribution and use in source and binary forms, with or without
   111  // modification, are permitted provided that the following conditions
   112  // are met:
   113  // 1. Redistributions of source code must retain the above copyright
   114  //    notice, this list of conditions and the following disclaimer.
   115  // 2. Redistributions in binary form must reproduce the above copyright
   116  //    notice, this list of conditions and the following disclaimer in the
   117  //    documentation and/or other materials provided with the distribution.
   118  // 3. Neither the name of the University nor the names of its contributors
   119  //    may be used to endorse or promote products derived from this software
   120  //    without specific prior written permission.
   121  //
   122  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   123  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   124  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   125  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   126  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   127  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   128  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   129  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   130  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   131  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   132  // SUCH DAMAGE.
   133  //
   134  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   135  // $FreeBSD$
   136  
   137  // Testing against Clang-specific extensions.
   138  
   139  // This code has been put in place to help reduce the addition of
   140  // compiler specific defines in FreeBSD code.  It helps to aid in
   141  // having a compiler-agnostic source tree.
   142  
   143  // Compiler memory barriers, specific to gcc and clang.
   144  
   145  // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
   146  
   147  // Macro to test if we're using a specific version of gcc or later.
   148  
   149  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   150  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   151  // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
   152  // mode -- there must be no spaces between its arguments, and for nested
   153  // __CONCAT's, all the __CONCAT's must be at the left.  __CONCAT can also
   154  // concatenate double-quoted strings produced by the __STRING macro, but
   155  // this only works with ANSI C.
   156  //
   157  // __XSTRING is like __STRING, but it expands any macros in its argument
   158  // first.  It is only available with ANSI C.
   159  
   160  // Compiler-dependent macros to help declare dead (non-returning) and
   161  // pure (no side effects) functions, and unused variables.  They are
   162  // null except for versions of gcc that are known to support the features
   163  // properly (old versions of gcc-2 supported the dead and pure features
   164  // in a different (wrong) way).  If we do not provide an implementation
   165  // for a given compiler, let the compile fail if it is told to use
   166  // a feature that we cannot live without.
   167  
   168  // Keywords added in C11.
   169  
   170  // Emulation of C11 _Generic().  Unlike the previously defined C11
   171  // keywords, it is not possible to implement this using exactly the same
   172  // syntax.  Therefore implement something similar under the name
   173  // __generic().  Unlike _Generic(), this macro can only distinguish
   174  // between a single type, so it requires nested invocations to
   175  // distinguish multiple cases.
   176  
   177  // C99 Static array indices in function parameter declarations.  Syntax such as:
   178  // void bar(int myArray[static 10]);
   179  // is allowed in C99 but not in C++.  Define __min_size appropriately so
   180  // headers using it can be compiled in either language.  Use like this:
   181  // void bar(int myArray[__min_size(10)]);
   182  
   183  // XXX: should use `#if __STDC_VERSION__ < 199901'.
   184  
   185  // C++11 exposes a load of C99 stuff
   186  
   187  // GCC 2.95 provides `__restrict' as an extension to C90 to support the
   188  // C99-specific `restrict' type qualifier.  We happen to use `__restrict' as
   189  // a way to define the `restrict' type qualifier without disturbing older
   190  // software that is unaware of C99 keywords.
   191  
   192  // GNU C version 2.96 adds explicit branch prediction so that
   193  // the CPU back-end can hint the processor and also so that
   194  // code blocks can be reordered such that the predicted path
   195  // sees a more linear flow, thus improving cache behavior, etc.
   196  //
   197  // The following two macros provide us with a way to utilize this
   198  // compiler feature.  Use __predict_true() if you expect the expression
   199  // to evaluate to true, and __predict_false() if you expect the
   200  // expression to evaluate to false.
   201  //
   202  // A few notes about usage:
   203  //
   204  //	* Generally, __predict_false() error condition checks (unless
   205  //	  you have some _strong_ reason to do otherwise, in which case
   206  //	  document it), and/or __predict_true() `no-error' condition
   207  //	  checks, assuming you want to optimize for the no-error case.
   208  //
   209  //	* Other than that, if you don't know the likelihood of a test
   210  //	  succeeding from empirical or other `hard' evidence, don't
   211  //	  make predictions.
   212  //
   213  //	* These are meant to be used in places that are run `a lot'.
   214  //	  It is wasteful to make predictions in code that is run
   215  //	  seldomly (e.g. at subsystem initialization time) as the
   216  //	  basic block reordering that this affects can often generate
   217  //	  larger code.
   218  
   219  // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
   220  // require it.
   221  
   222  // Given the pointer x to the member m of the struct s, return
   223  // a pointer to the containing structure.  When using GCC, we first
   224  // assign pointer x to a local variable, to check that its type is
   225  // compatible with member m.
   226  
   227  // Compiler-dependent macros to declare that functions take printf-like
   228  // or scanf-like arguments.  They are null except for versions of gcc
   229  // that are known to support the features properly (old versions of gcc-2
   230  // didn't permit keeping the keywords out of the application namespace).
   231  
   232  // Compiler-dependent macros that rely on FreeBSD-specific extensions.
   233  
   234  // Embed the rcs id of a source file in the resulting library.  Note that in
   235  // more recent ELF binutils, we use .ident allowing the ID to be stripped.
   236  // Usage:
   237  //	__FBSDID("$FreeBSD$");
   238  
   239  // -
   240  // The following definitions are an extension of the behavior originally
   241  // implemented in <sys/_posix.h>, but with a different level of granularity.
   242  // POSIX.1 requires that the macros we test be defined before any standard
   243  // header file is included.
   244  //
   245  // Here's a quick run-down of the versions:
   246  //  defined(_POSIX_SOURCE)		1003.1-1988
   247  //  _POSIX_C_SOURCE == 1		1003.1-1990
   248  //  _POSIX_C_SOURCE == 2		1003.2-1992 C Language Binding Option
   249  //  _POSIX_C_SOURCE == 199309		1003.1b-1993
   250  //  _POSIX_C_SOURCE == 199506		1003.1c-1995, 1003.1i-1995,
   251  //					and the omnibus ISO/IEC 9945-1: 1996
   252  //  _POSIX_C_SOURCE == 200112		1003.1-2001
   253  //  _POSIX_C_SOURCE == 200809		1003.1-2008
   254  //
   255  // In addition, the X/Open Portability Guide, which is now the Single UNIX
   256  // Specification, defines a feature-test macro which indicates the version of
   257  // that specification, and which subsumes _POSIX_C_SOURCE.
   258  //
   259  // Our macros begin with two underscores to avoid namespace screwage.
   260  
   261  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
   262  
   263  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
   264  
   265  // Deal with various X/Open Portability Guides and Single UNIX Spec.
   266  
   267  // Deal with all versions of POSIX.  The ordering relative to the tests above is
   268  // important.
   269  // -
   270  // Deal with _ANSI_SOURCE:
   271  // If it is defined, and no other compilation environment is explicitly
   272  // requested, then define our internal feature-test macros to zero.  This
   273  // makes no difference to the preprocessor (undefined symbols in preprocessing
   274  // expressions are defined to have value zero), but makes it more convenient for
   275  // a test program to print out the values.
   276  //
   277  // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
   278  // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
   279  // environment (and in fact we will never get here).
   280  
   281  // User override __EXT1_VISIBLE
   282  
   283  // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
   284  // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
   285  
   286  // Nullability qualifiers: currently only supported by Clang.
   287  
   288  // Type Safety Checking
   289  //
   290  // Clang provides additional attributes to enable checking type safety
   291  // properties that cannot be enforced by the C type system.
   292  
   293  // Lock annotations.
   294  //
   295  // Clang provides support for doing basic thread-safety tests at
   296  // compile-time, by marking which locks will/should be held when
   297  // entering/leaving a functions.
   298  //
   299  // Furthermore, it is also possible to annotate variables and structure
   300  // members to enforce that they are only accessed when certain locks are
   301  // held.
   302  
   303  // Structure implements a lock.
   304  
   305  // Function acquires an exclusive or shared lock.
   306  
   307  // Function attempts to acquire an exclusive or shared lock.
   308  
   309  // Function releases a lock.
   310  
   311  // Function asserts that an exclusive or shared lock is held.
   312  
   313  // Function requires that an exclusive or shared lock is or is not held.
   314  
   315  // Function should not be analyzed.
   316  
   317  // Function or variable should not be sanitized, e.g., by AddressSanitizer.
   318  // GCC has the nosanitize attribute, but as a function attribute only, and
   319  // warns on use as a variable attribute.
   320  
   321  // Guard variables and structure members by lock.
   322  
   323  // Alignment builtins for better type checking and improved code generation.
   324  // Provide fallback versions for other compilers (GCC/Clang < 10):
   325  
   326  // -
   327  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   328  //
   329  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   330  // All rights reserved.
   331  //
   332  // Redistribution and use in source and binary forms, with or without
   333  // modification, are permitted provided that the following conditions
   334  // are met:
   335  // 1. Redistributions of source code must retain the above copyright
   336  //    notice, this list of conditions and the following disclaimer.
   337  // 2. Redistributions in binary form must reproduce the above copyright
   338  //    notice, this list of conditions and the following disclaimer in the
   339  //    documentation and/or other materials provided with the distribution.
   340  //
   341  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   342  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   343  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   344  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   345  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   346  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   347  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   348  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   349  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   350  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   351  // SUCH DAMAGE.
   352  //
   353  // $FreeBSD$
   354  
   355  // -
   356  // SPDX-License-Identifier: BSD-3-Clause
   357  //
   358  // Copyright (c) 1991, 1993
   359  //	The Regents of the University of California.  All rights reserved.
   360  //
   361  // This code is derived from software contributed to Berkeley by
   362  // Berkeley Software Design, Inc.
   363  //
   364  // Redistribution and use in source and binary forms, with or without
   365  // modification, are permitted provided that the following conditions
   366  // are met:
   367  // 1. Redistributions of source code must retain the above copyright
   368  //    notice, this list of conditions and the following disclaimer.
   369  // 2. Redistributions in binary form must reproduce the above copyright
   370  //    notice, this list of conditions and the following disclaimer in the
   371  //    documentation and/or other materials provided with the distribution.
   372  // 3. Neither the name of the University nor the names of its contributors
   373  //    may be used to endorse or promote products derived from this software
   374  //    without specific prior written permission.
   375  //
   376  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   377  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   378  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   379  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   380  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   381  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   382  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   383  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   384  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   385  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   386  // SUCH DAMAGE.
   387  //
   388  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   389  // $FreeBSD$
   390  
   391  // -
   392  // SPDX-License-Identifier: BSD-4-Clause
   393  //
   394  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   395  // Copyright (c) 1990, 1993
   396  //	The Regents of the University of California.  All rights reserved.
   397  //
   398  // Redistribution and use in source and binary forms, with or without
   399  // modification, are permitted provided that the following conditions
   400  // are met:
   401  // 1. Redistributions of source code must retain the above copyright
   402  //    notice, this list of conditions and the following disclaimer.
   403  // 2. Redistributions in binary form must reproduce the above copyright
   404  //    notice, this list of conditions and the following disclaimer in the
   405  //    documentation and/or other materials provided with the distribution.
   406  // 3. All advertising materials mentioning features or use of this software
   407  //    must display the following acknowledgement:
   408  //	This product includes software developed by the University of
   409  //	California, Berkeley and its contributors.
   410  // 4. Neither the name of the University nor the names of its contributors
   411  //    may be used to endorse or promote products derived from this software
   412  //    without specific prior written permission.
   413  //
   414  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   415  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   416  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   417  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   418  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   419  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   420  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   421  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   422  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   423  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   424  // SUCH DAMAGE.
   425  //
   426  //	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
   427  //	From: @(#)types.h	8.3 (Berkeley) 1/5/94
   428  // $FreeBSD$
   429  
   430  // Basic types upon which most other types are built.
   431  type X__int8_t = int8     /* _types.h:51:22 */
   432  type X__uint8_t = uint8   /* _types.h:52:24 */
   433  type X__int16_t = int16   /* _types.h:53:17 */
   434  type X__uint16_t = uint16 /* _types.h:54:25 */
   435  type X__int32_t = int32   /* _types.h:55:15 */
   436  type X__uint32_t = uint32 /* _types.h:56:23 */
   437  
   438  // LONGLONG
   439  type X__int64_t = int64 /* _types.h:61:20 */
   440  
   441  // LONGLONG
   442  type X__uint64_t = uint64 /* _types.h:66:28 */
   443  
   444  // Standard type definitions.
   445  type X__clock_t = X__uint32_t        /* _types.h:71:20 */ // clock()...
   446  type X__critical_t = X__int32_t      /* _types.h:72:19 */
   447  type X__double_t = float64           /* _types.h:74:17 */
   448  type X__float_t = float32            /* _types.h:75:16 */
   449  type X__intfptr_t = X__int32_t       /* _types.h:77:19 */
   450  type X__intmax_t = X__int64_t        /* _types.h:78:19 */
   451  type X__intptr_t = X__int32_t        /* _types.h:79:19 */
   452  type X__int_fast8_t = X__int32_t     /* _types.h:80:19 */
   453  type X__int_fast16_t = X__int32_t    /* _types.h:81:19 */
   454  type X__int_fast32_t = X__int32_t    /* _types.h:82:19 */
   455  type X__int_fast64_t = X__int64_t    /* _types.h:83:19 */
   456  type X__int_least8_t = X__int8_t     /* _types.h:84:18 */
   457  type X__int_least16_t = X__int16_t   /* _types.h:85:19 */
   458  type X__int_least32_t = X__int32_t   /* _types.h:86:19 */
   459  type X__int_least64_t = X__int64_t   /* _types.h:87:19 */
   460  type X__ptrdiff_t = X__int32_t       /* _types.h:88:19 */ // ptr1 - ptr2
   461  type X__register_t = X__int32_t      /* _types.h:89:19 */
   462  type X__segsz_t = X__int32_t         /* _types.h:90:19 */ // segment size (in pages)
   463  type X__size_t = X__uint32_t         /* _types.h:91:20 */ // sizeof()
   464  type X__ssize_t = X__int32_t         /* _types.h:92:19 */ // byte count or error
   465  type X__time_t = X__int64_t          /* _types.h:93:19 */ // time()...
   466  type X__uintfptr_t = X__uint32_t     /* _types.h:94:20 */
   467  type X__uintmax_t = X__uint64_t      /* _types.h:95:20 */
   468  type X__uintptr_t = X__uint32_t      /* _types.h:96:20 */
   469  type X__uint_fast8_t = X__uint32_t   /* _types.h:97:20 */
   470  type X__uint_fast16_t = X__uint32_t  /* _types.h:98:20 */
   471  type X__uint_fast32_t = X__uint32_t  /* _types.h:99:20 */
   472  type X__uint_fast64_t = X__uint64_t  /* _types.h:100:20 */
   473  type X__uint_least8_t = X__uint8_t   /* _types.h:101:19 */
   474  type X__uint_least16_t = X__uint16_t /* _types.h:102:20 */
   475  type X__uint_least32_t = X__uint32_t /* _types.h:103:20 */
   476  type X__uint_least64_t = X__uint64_t /* _types.h:104:20 */
   477  type X__u_register_t = X__uint32_t   /* _types.h:105:20 */
   478  type X__vm_offset_t = X__uint32_t    /* _types.h:106:20 */
   479  type X__vm_paddr_t = X__uint32_t     /* _types.h:107:20 */
   480  type X__vm_size_t = X__uint32_t      /* _types.h:108:20 */
   481  
   482  type X___wchar_t = uint32 /* _types.h:110:22 */
   483  
   484  // Standard type definitions.
   485  type X__blksize_t = X__int32_t   /* _types.h:40:19 */ // file block size
   486  type X__blkcnt_t = X__int64_t    /* _types.h:41:19 */ // file block count
   487  type X__clockid_t = X__int32_t   /* _types.h:42:19 */ // clock_gettime()...
   488  type X__fflags_t = X__uint32_t   /* _types.h:43:20 */ // file flags
   489  type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
   490  type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
   491  type X__gid_t = X__uint32_t      /* _types.h:46:20 */
   492  type X__id_t = X__int64_t        /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
   493  type X__ino_t = X__uint64_t      /* _types.h:48:20 */ // inode number
   494  type X__key_t = int32            /* _types.h:49:15 */ // IPC key (for Sys V IPC)
   495  type X__lwpid_t = X__int32_t     /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
   496  type X__mode_t = X__uint16_t     /* _types.h:51:20 */ // permissions
   497  type X__accmode_t = int32        /* _types.h:52:14 */ // access permissions
   498  type X__nl_item = int32          /* _types.h:53:14 */
   499  type X__nlink_t = X__uint64_t    /* _types.h:54:20 */ // link count
   500  type X__off_t = X__int64_t       /* _types.h:55:19 */ // file offset
   501  type X__off64_t = X__int64_t     /* _types.h:56:19 */ // file offset (alias)
   502  type X__pid_t = X__int32_t       /* _types.h:57:19 */ // process [group]
   503  type X__rlim_t = X__int64_t      /* _types.h:58:19 */ // resource limit - intentionally
   504  // signed, because of legacy code
   505  // that uses -1 for RLIM_INFINITY
   506  type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
   507  type X__socklen_t = X__uint32_t  /* _types.h:62:20 */
   508  type X__suseconds_t = int32      /* _types.h:63:15 */ // microseconds (signed)
   509  type X__timer_t = uintptr        /* _types.h:64:24 */ // timer_gettime()...
   510  type X__mqd_t = uintptr          /* _types.h:65:21 */ // mq_open()...
   511  type X__uid_t = X__uint32_t      /* _types.h:66:20 */
   512  type X__useconds_t = uint32      /* _types.h:67:22 */ // microseconds (unsigned)
   513  type X__cpuwhich_t = int32       /* _types.h:68:14 */ // which parameter for cpuset.
   514  type X__cpulevel_t = int32       /* _types.h:69:14 */ // level parameter for cpuset.
   515  type X__cpusetid_t = int32       /* _types.h:70:14 */ // cpuset identifier.
   516  type X__daddr_t = X__int64_t     /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
   517  
   518  // Unusual type definitions.
   519  // rune_t is declared to be an “int” instead of the more natural
   520  // “unsigned long” or “long”.  Two things are happening here.  It is not
   521  // unsigned so that EOF (-1) can be naturally assigned to it and used.  Also,
   522  // it looks like 10646 will be a 31 bit standard.  This means that if your
   523  // ints cannot hold 32 bits, you will be in trouble.  The reason an int was
   524  // chosen over a long is that the is*() and to*() routines take ints (says
   525  // ANSI C), but they use __ct_rune_t instead of int.
   526  //
   527  // NOTE: rune_t is not covered by ANSI nor other standards, and should not
   528  // be instantiated outside of lib/libc/locale.  Use wchar_t.  wint_t and
   529  // rune_t must be the same type.  Also, wint_t should be able to hold all
   530  // members of the largest character set plus one extra value (WEOF), and
   531  // must be at least 16 bits.
   532  type X__ct_rune_t = int32     /* _types.h:91:14 */ // arg type for ctype funcs
   533  type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
   534  type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
   535  
   536  // Clang already provides these types as built-ins, but only in C++ mode.
   537  type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
   538  type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
   539  // In C++11, char16_t and char32_t are built-in types.
   540  
   541  type X__max_align_t = struct {
   542  	F__max_align1 int64
   543  	F__max_align2 float64
   544  } /* _types.h:111:3 */
   545  
   546  type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
   547  
   548  type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
   549  
   550  // mbstate_t is an opaque object to keep conversion state during multibyte
   551  // stream conversions.
   552  type X__mbstate_t = struct {
   553  	F__ccgo_pad1 [0]uint64
   554  	F__mbstate8  [128]uint8
   555  } /* _types.h:124:3 */
   556  
   557  type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
   558  
   559  // Types for varargs. These are all provided by builtin types these
   560  // days, so centralize their definition.
   561  type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
   562  type X__gnuc_va_list = X__va_list    /* _types.h:140:20 */
   563  
   564  // Use inline functions if we are allowed to and the compiler supports them.
   565  
   566  // -
   567  // SPDX-License-Identifier: BSD-3-Clause
   568  //
   569  // Copyright (c) 1993
   570  //	The Regents of the University of California.  All rights reserved.
   571  //
   572  // This code is derived from software contributed to Berkeley by
   573  // Paul Borman at Krystal Technologies.
   574  //
   575  // Redistribution and use in source and binary forms, with or without
   576  // modification, are permitted provided that the following conditions
   577  // are met:
   578  // 1. Redistributions of source code must retain the above copyright
   579  //    notice, this list of conditions and the following disclaimer.
   580  // 2. Redistributions in binary form must reproduce the above copyright
   581  //    notice, this list of conditions and the following disclaimer in the
   582  //    documentation and/or other materials provided with the distribution.
   583  // 3. Neither the name of the University nor the names of its contributors
   584  //    may be used to endorse or promote products derived from this software
   585  //    without specific prior written permission.
   586  //
   587  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   588  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   589  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   590  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   591  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   592  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   593  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   594  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   595  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   596  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   597  // SUCH DAMAGE.
   598  //
   599  //	@(#)runetype.h	8.1 (Berkeley) 6/2/93
   600  // $FreeBSD$
   601  
   602  // -
   603  // SPDX-License-Identifier: BSD-3-Clause
   604  //
   605  // Copyright (c) 1991, 1993
   606  //	The Regents of the University of California.  All rights reserved.
   607  //
   608  // This code is derived from software contributed to Berkeley by
   609  // Berkeley Software Design, Inc.
   610  //
   611  // Redistribution and use in source and binary forms, with or without
   612  // modification, are permitted provided that the following conditions
   613  // are met:
   614  // 1. Redistributions of source code must retain the above copyright
   615  //    notice, this list of conditions and the following disclaimer.
   616  // 2. Redistributions in binary form must reproduce the above copyright
   617  //    notice, this list of conditions and the following disclaimer in the
   618  //    documentation and/or other materials provided with the distribution.
   619  // 3. Neither the name of the University nor the names of its contributors
   620  //    may be used to endorse or promote products derived from this software
   621  //    without specific prior written permission.
   622  //
   623  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   624  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   625  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   626  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   627  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   628  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   629  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   630  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   631  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   632  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   633  // SUCH DAMAGE.
   634  //
   635  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   636  // $FreeBSD$
   637  
   638  // -
   639  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   640  //
   641  // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
   642  // All rights reserved.
   643  //
   644  // Redistribution and use in source and binary forms, with or without
   645  // modification, are permitted provided that the following conditions
   646  // are met:
   647  // 1. Redistributions of source code must retain the above copyright
   648  //    notice, this list of conditions and the following disclaimer.
   649  // 2. Redistributions in binary form must reproduce the above copyright
   650  //    notice, this list of conditions and the following disclaimer in the
   651  //    documentation and/or other materials provided with the distribution.
   652  //
   653  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   654  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   655  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   656  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   657  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   658  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   659  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   660  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   661  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   662  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   663  // SUCH DAMAGE.
   664  //
   665  // $FreeBSD$
   666  
   667  // The lower 8 bits of runetype[] contain the digit value of the rune.
   668  type X_RuneEntry = struct {
   669  	F__min   X__rune_t
   670  	F__max   X__rune_t
   671  	F__map   X__rune_t
   672  	F__types uintptr
   673  } /* runetype.h:55:3 */
   674  
   675  type X_RuneRange = struct {
   676  	F__nranges int32
   677  	F__ranges  uintptr
   678  } /* runetype.h:60:3 */
   679  
   680  type X_RuneLocale = struct {
   681  	F__magic        [8]uint8
   682  	F__encoding     [32]uint8
   683  	F__sgetrune     uintptr
   684  	F__sputrune     uintptr
   685  	F__invalid_rune X__rune_t
   686  	F__runetype     [256]uint32
   687  	F__maplower     [256]X__rune_t
   688  	F__mapupper     [256]X__rune_t
   689  	F__runetype_ext X_RuneRange
   690  	F__maplower_ext X_RuneRange
   691  	F__mapupper_ext X_RuneRange
   692  	F__variable     uintptr
   693  	F__variable_len int32
   694  } /* runetype.h:85:3 */
   695  
   696  type Wctrans_t = int32 /* wctype.h:42:13 */
   697  
   698  type Wctype_t = uint32 /* wctype.h:47:23 */
   699  
   700  type Wint_t = X__wint_t /* wctype.h:52:18 */
   701  
   702  // -
   703  // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
   704  //
   705  // Copyright (c) 2011 The FreeBSD Foundation
   706  //
   707  // This software was developed by David Chisnall under sponsorship from
   708  // the FreeBSD Foundation.
   709  //
   710  // Redistribution and use in source and binary forms, with or without
   711  // modification, are permitted provided that the following conditions
   712  // are met:
   713  // 1. Redistributions of source code must retain the above copyright
   714  //    notice, this list of conditions and the following disclaimer.
   715  // 2. Redistributions in binary form must reproduce the above copyright
   716  //    notice, this list of conditions and the following disclaimer in the
   717  //    documentation and/or other materials provided with the distribution.
   718  //
   719  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   720  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   721  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   722  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   723  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   724  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   725  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   726  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   727  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   728  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   729  // SUCH DAMAGE.
   730  //
   731  // $FreeBSD$
   732  
   733  type Locale_t = uintptr /* _ctype.h:45:25 */
   734  
   735  var _ uint8 /* gen.c:2:13: */