modernc.org/libc@v1.24.1/wctype/wctype_openbsd_amd64.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_openbsd_amd64.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_FILE_OFFSET_BITS   = 64 // <builtin>:25:1:
    19  	X_LOCALE_T_DEFINED_  = 0  // wctype.h:59:1:
    20  	X_LP64               = 1  // <predefined>:1:1:
    21  	X_MACHINE_CDEFS_H_   = 0  // cdefs.h:9:1:
    22  	X_MACHINE__TYPES_H_  = 0  // _types.h:36:1:
    23  	X_MAX_PAGE_SHIFT     = 12 // _types.h:52:1:
    24  	X_RET_PROTECTOR      = 1  // <predefined>:2:1:
    25  	X_STACKALIGNBYTES    = 15 // _types.h:49:1:
    26  	X_SYS_CDEFS_H_       = 0  // cdefs.h:39:1:
    27  	X_WCTRANS_T_DEFINED_ = 0  // wctype.h:44:1:
    28  	X_WCTYPE_H_          = 0  // wctype.h:33:1:
    29  	X_WCTYPE_T_DEFINED_  = 0  // wctype.h:49:1:
    30  	X_WINT_T_DEFINED_    = 0  // wctype.h:39:1:
    31  	Unix                 = 1  // <predefined>:344:1:
    32  )
    33  
    34  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    35  
    36  type Size_t = uint64 /* <builtin>:9:23 */
    37  
    38  type Wchar_t = int32 /* <builtin>:15:24 */
    39  
    40  type X__int128_t = struct {
    41  	Flo int64
    42  	Fhi int64
    43  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    44  type X__uint128_t = struct {
    45  	Flo uint64
    46  	Fhi uint64
    47  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    48  
    49  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    50  type X__float128 = float64        /* <builtin>:47:21 */
    51  
    52  //	$OpenBSD: wctype.h,v 1.6 2017/09/05 03:16:13 schwarze Exp $
    53  //	$NetBSD: wctype.h,v 1.5 2003/03/02 22:18:11 tshiozak Exp $
    54  
    55  // -
    56  // Copyright (c)1999 Citrus Project,
    57  // All rights reserved.
    58  //
    59  // Redistribution and use in source and binary forms, with or without
    60  // modification, are permitted provided that the following conditions
    61  // are met:
    62  // 1. Redistributions of source code must retain the above copyright
    63  //    notice, this list of conditions and the following disclaimer.
    64  // 2. Redistributions in binary form must reproduce the above copyright
    65  //    notice, this list of conditions and the following disclaimer in the
    66  //    documentation and/or other materials provided with the distribution.
    67  //
    68  // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    69  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    70  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    71  // ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    72  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    73  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    74  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    75  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    76  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    77  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    78  // SUCH DAMAGE.
    79  //
    80  //	citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp
    81  
    82  //	$OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
    83  //	$NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
    84  
    85  // Copyright (c) 1991, 1993
    86  //	The Regents of the University of California.  All rights reserved.
    87  //
    88  // This code is derived from software contributed to Berkeley by
    89  // Berkeley Software Design, Inc.
    90  //
    91  // Redistribution and use in source and binary forms, with or without
    92  // modification, are permitted provided that the following conditions
    93  // are met:
    94  // 1. Redistributions of source code must retain the above copyright
    95  //    notice, this list of conditions and the following disclaimer.
    96  // 2. Redistributions in binary form must reproduce the above copyright
    97  //    notice, this list of conditions and the following disclaimer in the
    98  //    documentation and/or other materials provided with the distribution.
    99  // 3. Neither the name of the University nor the names of its contributors
   100  //    may be used to endorse or promote products derived from this software
   101  //    without specific prior written permission.
   102  //
   103  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   104  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   105  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   106  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   107  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   108  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   109  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   110  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   111  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   112  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   113  // SUCH DAMAGE.
   114  //
   115  //	@(#)cdefs.h	8.7 (Berkeley) 1/21/94
   116  
   117  //	$OpenBSD: cdefs.h,v 1.3 2013/03/28 17:30:45 martynas Exp $
   118  
   119  // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
   120  // Public domain.
   121  
   122  // Macro to test if we're using a specific version of gcc or later.
   123  
   124  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   125  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   126  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   127  // in between its arguments.  Do not use __CONCAT on double-quoted strings,
   128  // such as those from the __STRING macro: to concatenate strings just put
   129  // them next to each other.
   130  
   131  // GCC1 and some versions of GCC2 declare dead (non-returning) and
   132  // pure (no side effects) functions using "volatile" and "const";
   133  // unfortunately, these then cause warnings under "-ansi -pedantic".
   134  // GCC >= 2.5 uses the __attribute__((attrs)) style.  All of these
   135  // work for GNU C++ (modulo a slight glitch in the C++ grammar in
   136  // the distribution version of 2.5.5).
   137  
   138  // __returns_twice makes the compiler not assume the function
   139  // only returns once.  This affects registerisation of variables:
   140  // even local variables need to be in memory across such a call.
   141  // Example: setjmp()
   142  
   143  // __only_inline makes the compiler only use this function definition
   144  // for inlining; references that can't be inlined will be left as
   145  // external references instead of generating a local copy.  The
   146  // matching library should include a simple extern definition for
   147  // the function to handle those references.  c.f. ctype.h
   148  
   149  // GNU C version 2.96 adds explicit branch prediction so that
   150  // the CPU back-end can hint the processor and also so that
   151  // code blocks can be reordered such that the predicted path
   152  // sees a more linear flow, thus improving cache behavior, etc.
   153  //
   154  // The following two macros provide us with a way to utilize this
   155  // compiler feature.  Use __predict_true() if you expect the expression
   156  // to evaluate to true, and __predict_false() if you expect the
   157  // expression to evaluate to false.
   158  //
   159  // A few notes about usage:
   160  //
   161  //	* Generally, __predict_false() error condition checks (unless
   162  //	  you have some _strong_ reason to do otherwise, in which case
   163  //	  document it), and/or __predict_true() `no-error' condition
   164  //	  checks, assuming you want to optimize for the no-error case.
   165  //
   166  //	* Other than that, if you don't know the likelihood of a test
   167  //	  succeeding from empirical or other `hard' evidence, don't
   168  //	  make predictions.
   169  //
   170  //	* These are meant to be used in places that are run `a lot'.
   171  //	  It is wasteful to make predictions in code that is run
   172  //	  seldomly (e.g. at subsystem initialization time) as the
   173  //	  basic block reordering that this affects can often generate
   174  //	  larger code.
   175  
   176  // Delete pseudo-keywords wherever they are not available or needed.
   177  
   178  // The __packed macro indicates that a variable or structure members
   179  // should have the smallest possible alignment, despite any host CPU
   180  // alignment requirements.
   181  //
   182  // The __aligned(x) macro specifies the minimum alignment of a
   183  // variable or structure.
   184  //
   185  // These macros together are useful for describing the layout and
   186  // alignment of messages exchanged with hardware or other systems.
   187  
   188  // "The nice thing about standards is that there are so many to choose from."
   189  // There are a number of "feature test macros" specified by (different)
   190  // standards that determine which interfaces and types the header files
   191  // should expose.
   192  //
   193  // Because of inconsistencies in these macros, we define our own
   194  // set in the private name space that end in _VISIBLE.  These are
   195  // always defined and so headers can test their values easily.
   196  // Things can get tricky when multiple feature macros are defined.
   197  // We try to take the union of all the features requested.
   198  //
   199  // The following macros are guaranteed to have a value after cdefs.h
   200  // has been included:
   201  //	__POSIX_VISIBLE
   202  //	__XPG_VISIBLE
   203  //	__ISO_C_VISIBLE
   204  //	__BSD_VISIBLE
   205  
   206  // X/Open Portability Guides and Single Unix Specifications.
   207  // _XOPEN_SOURCE				XPG3
   208  // _XOPEN_SOURCE && _XOPEN_VERSION = 4		XPG4
   209  // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1	XPG4v2
   210  // _XOPEN_SOURCE == 500				XPG5
   211  // _XOPEN_SOURCE == 520				XPG5v2
   212  // _XOPEN_SOURCE == 600				POSIX 1003.1-2001 with XSI
   213  // _XOPEN_SOURCE == 700				POSIX 1003.1-2008 with XSI
   214  //
   215  // The XPG spec implies a specific value for _POSIX_C_SOURCE.
   216  
   217  // POSIX macros, these checks must follow the XOPEN ones above.
   218  //
   219  // _POSIX_SOURCE == 1		1003.1-1988 (superseded by _POSIX_C_SOURCE)
   220  // _POSIX_C_SOURCE == 1		1003.1-1990
   221  // _POSIX_C_SOURCE == 2		1003.2-1992
   222  // _POSIX_C_SOURCE == 199309L	1003.1b-1993
   223  // _POSIX_C_SOURCE == 199506L   1003.1c-1995, 1003.1i-1995,
   224  //				and the omnibus ISO/IEC 9945-1:1996
   225  // _POSIX_C_SOURCE == 200112L   1003.1-2001
   226  // _POSIX_C_SOURCE == 200809L   1003.1-2008
   227  //
   228  // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
   229  // this may be overridden by the _ISOC99_SOURCE macro later.
   230  
   231  // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
   232  // If the user defines it in addition to one of the POSIX or XOPEN
   233  // macros, assume the POSIX/XOPEN macro(s) should take precedence.
   234  
   235  // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
   236  // override any of the other macros since they are non-exclusive.
   237  
   238  // Finally deal with BSD-specific interfaces that are not covered
   239  // by any standards.  We expose these when none of the POSIX or XPG
   240  // macros is defined or if the user explicitly asks for them.
   241  
   242  // Default values.
   243  
   244  //	$OpenBSD: _types.h,v 1.17 2018/03/05 01:15:25 deraadt Exp $
   245  
   246  // -
   247  // Copyright (c) 1990, 1993
   248  //	The Regents of the University of California.  All rights reserved.
   249  //
   250  // Redistribution and use in source and binary forms, with or without
   251  // modification, are permitted provided that the following conditions
   252  // are met:
   253  // 1. Redistributions of source code must retain the above copyright
   254  //    notice, this list of conditions and the following disclaimer.
   255  // 2. Redistributions in binary form must reproduce the above copyright
   256  //    notice, this list of conditions and the following disclaimer in the
   257  //    documentation and/or other materials provided with the distribution.
   258  // 3. Neither the name of the University nor the names of its contributors
   259  //    may be used to endorse or promote products derived from this software
   260  //    without specific prior written permission.
   261  //
   262  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   263  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   264  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   265  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   266  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   267  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   268  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   269  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   270  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   271  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   272  // SUCH DAMAGE.
   273  //
   274  //	@(#)types.h	8.3 (Berkeley) 1/5/94
   275  //	@(#)ansi.h	8.2 (Berkeley) 1/4/94
   276  
   277  // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
   278  // value for all data types (int, long, ...).   The result is an
   279  // unsigned long and must be cast to any desired pointer type.
   280  //
   281  // _ALIGNED_POINTER is a boolean macro that checks whether an address
   282  // is valid to fetch data elements of type t from on this architecture.
   283  // This does not reflect the optimal alignment, just the possibility
   284  // (within reasonable limits).
   285  
   286  // 7.18.1.1 Exact-width integer types
   287  type X__int8_t = int8     /* _types.h:61:22 */
   288  type X__uint8_t = uint8   /* _types.h:62:24 */
   289  type X__int16_t = int16   /* _types.h:63:17 */
   290  type X__uint16_t = uint16 /* _types.h:64:25 */
   291  type X__int32_t = int32   /* _types.h:65:15 */
   292  type X__uint32_t = uint32 /* _types.h:66:23 */
   293  type X__int64_t = int64   /* _types.h:67:20 */
   294  type X__uint64_t = uint64 /* _types.h:68:28 */
   295  
   296  // 7.18.1.2 Minimum-width integer types
   297  type X__int_least8_t = X__int8_t     /* _types.h:71:19 */
   298  type X__uint_least8_t = X__uint8_t   /* _types.h:72:20 */
   299  type X__int_least16_t = X__int16_t   /* _types.h:73:20 */
   300  type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */
   301  type X__int_least32_t = X__int32_t   /* _types.h:75:20 */
   302  type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */
   303  type X__int_least64_t = X__int64_t   /* _types.h:77:20 */
   304  type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */
   305  
   306  // 7.18.1.3 Fastest minimum-width integer types
   307  type X__int_fast8_t = X__int32_t    /* _types.h:81:20 */
   308  type X__uint_fast8_t = X__uint32_t  /* _types.h:82:21 */
   309  type X__int_fast16_t = X__int32_t   /* _types.h:83:20 */
   310  type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */
   311  type X__int_fast32_t = X__int32_t   /* _types.h:85:20 */
   312  type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */
   313  type X__int_fast64_t = X__int64_t   /* _types.h:87:20 */
   314  type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */
   315  
   316  // 7.18.1.4 Integer types capable of holding object pointers
   317  type X__intptr_t = int64   /* _types.h:103:16 */
   318  type X__uintptr_t = uint64 /* _types.h:104:24 */
   319  
   320  // 7.18.1.5 Greatest-width integer types
   321  type X__intmax_t = X__int64_t   /* _types.h:107:20 */
   322  type X__uintmax_t = X__uint64_t /* _types.h:108:21 */
   323  
   324  // Register size
   325  type X__register_t = int64 /* _types.h:111:16 */
   326  
   327  // VM system types
   328  type X__vaddr_t = uint64 /* _types.h:114:24 */
   329  type X__paddr_t = uint64 /* _types.h:115:24 */
   330  type X__vsize_t = uint64 /* _types.h:116:24 */
   331  type X__psize_t = uint64 /* _types.h:117:24 */
   332  
   333  // Standard system types
   334  type X__double_t = float64           /* _types.h:120:18 */
   335  type X__float_t = float32            /* _types.h:121:17 */
   336  type X__ptrdiff_t = int64            /* _types.h:122:16 */
   337  type X__size_t = uint64              /* _types.h:123:24 */
   338  type X__ssize_t = int64              /* _types.h:124:16 */
   339  type X__va_list = X__builtin_va_list /* _types.h:126:27 */
   340  
   341  // Wide character support types
   342  type X__wchar_t = int32     /* _types.h:133:15 */
   343  type X__wint_t = int32      /* _types.h:135:15 */
   344  type X__rune_t = int32      /* _types.h:136:15 */
   345  type X__wctrans_t = uintptr /* _types.h:137:14 */
   346  type X__wctype_t = uintptr  /* _types.h:138:14 */
   347  
   348  type Wint_t = X__wint_t /* wctype.h:40:21 */
   349  
   350  type Wctrans_t = X__wctrans_t /* wctype.h:45:21 */
   351  
   352  type Wctype_t = X__wctype_t /* wctype.h:50:20 */
   353  
   354  type Locale_t = uintptr /* wctype.h:60:14 */
   355  
   356  var _ int8 /* gen.c:2:13: */