modernc.org/libc@v1.24.1/wctype/wctype_netbsd_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_netbsd_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_AMD64_INT_TYPES_H_      = 0  // int_types.h:35:1:
    19  	X_FILE_OFFSET_BITS        = 64 // <builtin>:25:1:
    20  	X_LP64                    = 1  // <predefined>:268:1:
    21  	X_NETBSD_SOURCE           = 1  // featuretest.h:70:1:
    22  	X_SYS_ANSI_H_             = 0  // ansi.h:33:1:
    23  	X_SYS_CDEFS_ELF_H_        = 0  // cdefs_elf.h:31:1:
    24  	X_SYS_CDEFS_H_            = 0  // cdefs.h:37:1:
    25  	X_SYS_COMMON_ANSI_H_      = 0  // common_ansi.h:33:1:
    26  	X_SYS_COMMON_INT_TYPES_H_ = 0  // common_int_types.h:33:1:
    27  	X_WCTYPE_H_               = 0  // wctype.h:32:1:
    28  	X_X86_64_CDEFS_H_         = 0  // cdefs.h:4:1:
    29  )
    30  
    31  type Ptrdiff_t = int64 /* <builtin>:3:26 */
    32  
    33  type Size_t = uint64 /* <builtin>:9:23 */
    34  
    35  type Wchar_t = int32 /* <builtin>:15:24 */
    36  
    37  type X__int128_t = struct {
    38  	Flo int64
    39  	Fhi int64
    40  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    41  type X__uint128_t = struct {
    42  	Flo uint64
    43  	Fhi uint64
    44  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    45  
    46  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    47  type X__float128 = float64        /* <builtin>:47:21 */
    48  
    49  // return true if value 'a' fits in type 't'
    50  
    51  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    52  
    53  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    54  // Public domain.
    55  //
    56  // NOTE: Do not protect this header against multiple inclusion.  Doing
    57  // so can have subtle side-effects due to header file inclusion order
    58  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    59  // protect each CPP macro that we want to supply.
    60  
    61  // Feature-test macros are defined by several standards, and allow an
    62  // application to specify what symbols they want the system headers to
    63  // expose, and hence what standard they want them to conform to.
    64  // There are two classes of feature-test macros.  The first class
    65  // specify complete standards, and if one of these is defined, header
    66  // files will try to conform to the relevant standard.  They are:
    67  //
    68  // ANSI macros:
    69  // _ANSI_SOURCE			ANSI C89
    70  //
    71  // POSIX macros:
    72  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    73  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    74  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    75  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    76  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    77  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    78  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    79  //
    80  // X/Open macros:
    81  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    82  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    83  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    84  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    85  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    86  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    87  //
    88  // NetBSD macros:
    89  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    90  //
    91  // If more than one of these "major" feature-test macros is defined,
    92  // then the set of facilities provided (and namespace used) is the
    93  // union of that specified by the relevant standards, and in case of
    94  // conflict, the earlier standard in the above list has precedence (so
    95  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    96  // of rename() that's used is the POSIX one).  If none of the "major"
    97  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    98  //
    99  // There are also "minor" feature-test macros, which enable extra
   100  // functionality in addition to some base standard.  They should be
   101  // defined along with one of the "major" macros.  The "minor" macros
   102  // are:
   103  //
   104  // _REENTRANT
   105  // _ISOC99_SOURCE
   106  // _ISOC11_SOURCE
   107  // _LARGEFILE_SOURCE		Large File Support
   108  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   109  
   110  //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
   111  
   112  // -
   113  // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
   114  // All rights reserved.
   115  //
   116  // This code is derived from software contributed to The NetBSD Foundation
   117  // by Jun-ichiro itojun Hagino and by Klaus Klein.
   118  //
   119  // Redistribution and use in source and binary forms, with or without
   120  // modification, are permitted provided that the following conditions
   121  // are met:
   122  // 1. Redistributions of source code must retain the above copyright
   123  //    notice, this list of conditions and the following disclaimer.
   124  // 2. Redistributions in binary form must reproduce the above copyright
   125  //    notice, this list of conditions and the following disclaimer in the
   126  //    documentation and/or other materials provided with the distribution.
   127  //
   128  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   129  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   130  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   131  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   132  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   133  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   134  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   135  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   136  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   137  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   138  // POSSIBILITY OF SUCH DAMAGE.
   139  
   140  //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
   141  
   142  //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   143  
   144  // -
   145  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   146  // All rights reserved.
   147  //
   148  // This code is derived from software contributed to The NetBSD Foundation
   149  // by Matt Thomas of 3am Software Foundry.
   150  //
   151  // Redistribution and use in source and binary forms, with or without
   152  // modification, are permitted provided that the following conditions
   153  // are met:
   154  // 1. Redistributions of source code must retain the above copyright
   155  //    notice, this list of conditions and the following disclaimer.
   156  // 2. Redistributions in binary form must reproduce the above copyright
   157  //    notice, this list of conditions and the following disclaimer in the
   158  //    documentation and/or other materials provided with the distribution.
   159  //
   160  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   161  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   162  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   163  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   164  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   165  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   166  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   167  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   168  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   169  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   170  // POSSIBILITY OF SUCH DAMAGE.
   171  
   172  //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   173  
   174  // * Copyright (c) 1991, 1993
   175  //	The Regents of the University of California.  All rights reserved.
   176  //
   177  // This code is derived from software contributed to Berkeley by
   178  // Berkeley Software Design, Inc.
   179  //
   180  // Redistribution and use in source and binary forms, with or without
   181  // modification, are permitted provided that the following conditions
   182  // are met:
   183  // 1. Redistributions of source code must retain the above copyright
   184  //    notice, this list of conditions and the following disclaimer.
   185  // 2. Redistributions in binary form must reproduce the above copyright
   186  //    notice, this list of conditions and the following disclaimer in the
   187  //    documentation and/or other materials provided with the distribution.
   188  // 3. Neither the name of the University nor the names of its contributors
   189  //    may be used to endorse or promote products derived from this software
   190  //    without specific prior written permission.
   191  //
   192  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   193  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   194  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   195  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   196  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   197  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   198  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   199  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   200  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   201  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   202  // SUCH DAMAGE.
   203  //
   204  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   205  
   206  //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   207  
   208  // -
   209  // Copyright (c) 1990 The Regents of the University of California.
   210  // All rights reserved.
   211  //
   212  // Redistribution and use in source and binary forms, with or without
   213  // modification, are permitted provided that the following conditions
   214  // are met:
   215  // 1. Redistributions of source code must retain the above copyright
   216  //    notice, this list of conditions and the following disclaimer.
   217  // 2. Redistributions in binary form must reproduce the above copyright
   218  //    notice, this list of conditions and the following disclaimer in the
   219  //    documentation and/or other materials provided with the distribution.
   220  // 3. Neither the name of the University nor the names of its contributors
   221  //    may be used to endorse or promote products derived from this software
   222  //    without specific prior written permission.
   223  //
   224  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   225  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   226  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   227  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   228  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   229  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   230  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   231  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   232  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   233  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   234  // SUCH DAMAGE.
   235  //
   236  //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   237  
   238  //	$NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
   239  
   240  // -
   241  // Copyright (c) 2014 The NetBSD Foundation, Inc.
   242  // All rights reserved.
   243  //
   244  // This code is derived from software contributed to The NetBSD Foundation
   245  // by Joerg Sonnenberger.
   246  //
   247  // Redistribution and use in source and binary forms, with or without
   248  // modification, are permitted provided that the following conditions
   249  // are met:
   250  // 1. Redistributions of source code must retain the above copyright
   251  //    notice, this list of conditions and the following disclaimer.
   252  // 2. Redistributions in binary form must reproduce the above copyright
   253  //    notice, this list of conditions and the following disclaimer in the
   254  //    documentation and/or other materials provided with the distribution.
   255  //
   256  // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   257  // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   258  // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   259  // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   260  // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   261  // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   262  // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   263  // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   264  // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   265  // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   266  // POSSIBILITY OF SUCH DAMAGE.
   267  
   268  // 7.18.1 Integer types
   269  
   270  // 7.18.1.1 Exact-width integer types
   271  
   272  type X__int8_t = int8     /* common_int_types.h:45:27 */
   273  type X__uint8_t = uint8   /* common_int_types.h:46:27 */
   274  type X__int16_t = int16   /* common_int_types.h:47:27 */
   275  type X__uint16_t = uint16 /* common_int_types.h:48:27 */
   276  type X__int32_t = int32   /* common_int_types.h:49:27 */
   277  type X__uint32_t = uint32 /* common_int_types.h:50:27 */
   278  type X__int64_t = int64   /* common_int_types.h:51:27 */
   279  type X__uint64_t = uint64 /* common_int_types.h:52:27 */
   280  
   281  // 7.18.1.4 Integer types capable of holding object pointers
   282  
   283  type X__intptr_t = int64   /* common_int_types.h:58:27 */
   284  type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
   285  
   286  // Types which are fundamental to the implementation and may appear in
   287  // more than one standard header are defined here.  Standard headers
   288  // then use:
   289  //	#ifdef	_BSD_SIZE_T_
   290  //	typedef	_BSD_SIZE_T_ size_t;
   291  //	#undef	_BSD_SIZE_T_
   292  //	#endif
   293  
   294  type X__caddr_t = uintptr        /* ansi.h:37:14 */ // core address
   295  type X__gid_t = X__uint32_t      /* ansi.h:38:20 */ // group id
   296  type X__in_addr_t = X__uint32_t  /* ansi.h:39:20 */ // IP(v4) address
   297  type X__in_port_t = X__uint16_t  /* ansi.h:40:20 */ // "Internet" port number
   298  type X__mode_t = X__uint32_t     /* ansi.h:41:20 */ // file permissions
   299  type X__off_t = X__int64_t       /* ansi.h:42:19 */ // file offset
   300  type X__pid_t = X__int32_t       /* ansi.h:43:19 */ // process id
   301  type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
   302  type X__socklen_t = uint32       /* ansi.h:45:22 */ // socket-related datum length
   303  type X__uid_t = X__uint32_t      /* ansi.h:46:20 */ // user id
   304  type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
   305  type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
   306  type X__wctrans_t = uintptr      /* ansi.h:51:32 */
   307  type X__wctype_t = uintptr       /* ansi.h:54:31 */
   308  
   309  // mbstate_t is an opaque object to keep conversion state, during multibyte
   310  // stream conversions.  The content must not be referenced by user programs.
   311  type X__mbstate_t = struct {
   312  	F__mbstateL  X__int64_t
   313  	F__ccgo_pad1 [120]byte
   314  } /* ansi.h:63:3 */
   315  
   316  type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
   317  
   318  type Wint_t = int32 /* wctype.h:39:25 */
   319  
   320  type Wctrans_t = X__wctrans_t /* wctype.h:44:25 */
   321  
   322  type Wctype_t = X__wctype_t /* wctype.h:49:24 */
   323  
   324  type Locale_t = uintptr /* wctype.h:79:25 */
   325  
   326  var _ int8 /* gen.c:2:13: */