gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

stdlib_netbsd_amd64.go (77932B)


      1 // Code generated by 'ccgo stdlib/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 stdlib/stdlib_netbsd_amd64.go -pkgname stdlib', DO NOT EDIT.
      2 
      3 package stdlib
      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 	BIG_ENDIAN                    = 4321                 // endian.h:101:1:
     19 	BYTE_ORDER                    = 1234                 // endian.h:103:1:
     20 	EXIT_FAILURE                  = 1                    // stdlib.h:87:1:
     21 	EXIT_SUCCESS                  = 0                    // stdlib.h:88:1:
     22 	FD_SETSIZE                    = 256                  // fd_set.h:59:1:
     23 	HN_AUTOSCALE                  = 0x20                 // stdlib.h:301:1:
     24 	HN_B                          = 0x04                 // stdlib.h:297:1:
     25 	HN_DECIMAL                    = 0x01                 // stdlib.h:295:1:
     26 	HN_DIVISOR_1000               = 0x08                 // stdlib.h:298:1:
     27 	HN_GETSCALE                   = 0x10                 // stdlib.h:300:1:
     28 	HN_NOSPACE                    = 0x02                 // stdlib.h:296:1:
     29 	INT16_MAX                     = 32767                // common_int_limits.h:53:1:
     30 	INT16_MIN                     = -32768               // common_int_limits.h:47:1:
     31 	INT32_MAX                     = 2147483647           // common_int_limits.h:54:1:
     32 	INT32_MIN                     = -2147483648          // common_int_limits.h:48:1:
     33 	INT64_MAX                     = 9223372036854775807  // common_int_limits.h:55:1:
     34 	INT64_MIN                     = -9223372036854775808 // common_int_limits.h:49:1:
     35 	INT8_MAX                      = 127                  // common_int_limits.h:52:1:
     36 	INT8_MIN                      = -128                 // common_int_limits.h:46:1:
     37 	INTMAX_MAX                    = 9223372036854775807  // common_int_limits.h:111:1:
     38 	INTMAX_MIN                    = -9223372036854775808 // common_int_limits.h:110:1:
     39 	INTPTR_MAX                    = 9223372036854775807  // common_int_limits.h:105:1:
     40 	INTPTR_MIN                    = -9223372036854775808 // common_int_limits.h:104:1:
     41 	INT_FAST16_MAX                = 2147483647           // common_int_limits.h:93:1:
     42 	INT_FAST16_MIN                = -2147483648          // common_int_limits.h:87:1:
     43 	INT_FAST32_MAX                = 2147483647           // common_int_limits.h:94:1:
     44 	INT_FAST32_MIN                = -2147483648          // common_int_limits.h:88:1:
     45 	INT_FAST64_MAX                = 9223372036854775807  // common_int_limits.h:95:1:
     46 	INT_FAST64_MIN                = -9223372036854775808 // common_int_limits.h:89:1:
     47 	INT_FAST8_MAX                 = 2147483647           // common_int_limits.h:92:1:
     48 	INT_FAST8_MIN                 = -2147483648          // common_int_limits.h:86:1:
     49 	INT_LEAST16_MAX               = 32767                // common_int_limits.h:73:1:
     50 	INT_LEAST16_MIN               = -32768               // common_int_limits.h:67:1:
     51 	INT_LEAST32_MAX               = 2147483647           // common_int_limits.h:74:1:
     52 	INT_LEAST32_MIN               = -2147483648          // common_int_limits.h:68:1:
     53 	INT_LEAST64_MAX               = 9223372036854775807  // common_int_limits.h:75:1:
     54 	INT_LEAST64_MIN               = -9223372036854775808 // common_int_limits.h:69:1:
     55 	INT_LEAST8_MAX                = 127                  // common_int_limits.h:72:1:
     56 	INT_LEAST8_MIN                = -128                 // common_int_limits.h:66:1:
     57 	LITTLE_ENDIAN                 = 1234                 // endian.h:100:1:
     58 	NBBY                          = 8                    // types.h:316:1:
     59 	NFDBITS                       = 32                   // fd_set.h:93:1:
     60 	NODEVMAJOR                    = -1                   // types.h:258:1:
     61 	PDP_ENDIAN                    = 3412                 // endian.h:102:1:
     62 	PTRDIFF_MAX                   = 9223372036854775807  // common_int_limits.h:121:1:
     63 	PTRDIFF_MIN                   = -9223372036854775808 // common_int_limits.h:120:1:
     64 	RANDOM_MAX                    = 0x7fffffff           // stdlib.h:188:1:
     65 	RAND_MAX                      = 0x7fffffff           // stdlib.h:90:1:
     66 	SIG_ATOMIC_MAX                = 2147483647           // common_int_limits.h:125:1:
     67 	SIG_ATOMIC_MIN                = -2147483648          // common_int_limits.h:124:1:
     68 	SIZE_MAX                      = 18446744073709551615 // common_int_limits.h:128:1:
     69 	UINT16_MAX                    = 65535                // common_int_limits.h:59:1:
     70 	UINT32_MAX                    = 4294967295           // common_int_limits.h:60:1:
     71 	UINT64_MAX                    = 18446744073709551615 // common_int_limits.h:61:1:
     72 	UINT8_MAX                     = 255                  // common_int_limits.h:58:1:
     73 	UINTMAX_MAX                   = 18446744073709551615 // common_int_limits.h:112:1:
     74 	UINTPTR_MAX                   = 18446744073709551615 // common_int_limits.h:106:1:
     75 	UINT_FAST16_MAX               = 4294967295           // common_int_limits.h:99:1:
     76 	UINT_FAST32_MAX               = 4294967295           // common_int_limits.h:100:1:
     77 	UINT_FAST64_MAX               = 18446744073709551615 // common_int_limits.h:101:1:
     78 	UINT_FAST8_MAX                = 4294967295           // common_int_limits.h:98:1:
     79 	UINT_LEAST16_MAX              = 65535                // common_int_limits.h:79:1:
     80 	UINT_LEAST32_MAX              = 4294967295           // common_int_limits.h:80:1:
     81 	UINT_LEAST64_MAX              = 18446744073709551615 // common_int_limits.h:81:1:
     82 	UINT_LEAST8_MAX               = 255                  // common_int_limits.h:78:1:
     83 	WCHAR_MAX                     = 0x7fffffff           // wchar_limits.h:41:1:
     84 	WCHAR_MIN                     = -2147483648          // wchar_limits.h:40:1:
     85 	WINT_MAX                      = 0x7fffffff           // wchar_limits.h:45:1:
     86 	WINT_MIN                      = -2147483648          // wchar_limits.h:44:1:
     87 	X_AMD64_BYTE_SWAP_H_          = 0                    // byte_swap.h:37:1:
     88 	X_AMD64_INT_CONST_H_          = 0                    // int_const.h:33:1:
     89 	X_AMD64_INT_LIMITS_H_         = 0                    // int_limits.h:33:1:
     90 	X_AMD64_INT_MWGWTYPES_H_      = 0                    // int_mwgwtypes.h:33:1:
     91 	X_AMD64_INT_TYPES_H_          = 0                    // int_types.h:35:1:
     92 	X_AMD64_WCHAR_LIMITS_H_       = 0                    // wchar_limits.h:33:1:
     93 	X_BIG_ENDIAN                  = 4321                 // endian.h:44:1:
     94 	X_BSD_INT16_T_                = 0                    // types.h:65:1:
     95 	X_BSD_INT32_T_                = 0                    // types.h:75:1:
     96 	X_BSD_INT64_T_                = 0                    // types.h:85:1:
     97 	X_BSD_INT8_T_                 = 0                    // types.h:55:1:
     98 	X_BSD_INTPTR_T_               = 0                    // stdint.h:80:1:
     99 	X_BSD_UINT16_T_               = 0                    // types.h:70:1:
    100 	X_BSD_UINT32_T_               = 0                    // types.h:80:1:
    101 	X_BSD_UINT64_T_               = 0                    // types.h:90:1:
    102 	X_BSD_UINT8_T_                = 0                    // types.h:60:1:
    103 	X_BSD_UINTPTR_T_              = 0                    // stdint.h:85:1:
    104 	X_BYTE_ORDER                  = 1234                 // endian_machdep.h:3:1:
    105 	X_FILE_OFFSET_BITS            = 64                   // <builtin>:25:1:
    106 	X_LIB_PTHREAD_TYPES_H         = 0                    // pthread_types.h:33:1:
    107 	X_LITTLE_ENDIAN               = 1234                 // endian.h:43:1:
    108 	X_LP64                        = 1                    // <predefined>:268:1:
    109 	X_NETBSD_SOURCE               = 1                    // featuretest.h:70:1:
    110 	X_PDP_ENDIAN                  = 3412                 // endian.h:45:1:
    111 	X_PT_BARRIERATTR_DEAD         = 0xDEAD0808           // pthread_types.h:278:1:
    112 	X_PT_BARRIERATTR_MAGIC        = 0x88880808           // pthread_types.h:277:1:
    113 	X_PT_BARRIER_DEAD             = 0xDEAD0008           // pthread_types.h:270:1:
    114 	X_PT_BARRIER_MAGIC            = 0x88880008           // pthread_types.h:269:1:
    115 	X_PT_CONDATTR_DEAD            = 0xDEAD0006           // pthread_types.h:197:1:
    116 	X_PT_CONDATTR_MAGIC           = 0x66660006           // pthread_types.h:196:1:
    117 	X_PT_COND_DEAD                = 0xDEAD0005           // pthread_types.h:182:1:
    118 	X_PT_COND_MAGIC               = 0x55550005           // pthread_types.h:181:1:
    119 	X_PT_MUTEXATTR_DEAD           = 0xDEAD0004           // pthread_types.h:167:1:
    120 	X_PT_MUTEXATTR_MAGIC          = 0x44440004           // pthread_types.h:166:1:
    121 	X_PT_MUTEX_DEAD               = 0xDEAD0003           // pthread_types.h:139:1:
    122 	X_PT_MUTEX_MAGIC              = 0x33330003           // pthread_types.h:138:1:
    123 	X_PT_RWLOCKATTR_DEAD          = 0xDEAD0909           // pthread_types.h:253:1:
    124 	X_PT_RWLOCKATTR_MAGIC         = 0x99990909           // pthread_types.h:252:1:
    125 	X_PT_RWLOCK_DEAD              = 0xDEAD0009           // pthread_types.h:236:1:
    126 	X_PT_RWLOCK_MAGIC             = 0x99990009           // pthread_types.h:235:1:
    127 	X_PT_SPINLOCK_DEAD            = 0xDEAD0007           // pthread_types.h:213:1:
    128 	X_PT_SPINLOCK_MAGIC           = 0x77770007           // pthread_types.h:212:1:
    129 	X_PT_SPINLOCK_PSHARED         = 0x00000001           // pthread_types.h:214:1:
    130 	X_QUAD_HIGHWORD               = 1                    // endian.h:84:1:
    131 	X_QUAD_LOWWORD                = 0                    // endian.h:85:1:
    132 	X_SIZE_T                      = 0                    // types.h:279:1:
    133 	X_STDLIB_H_                   = 0                    // stdlib.h:35:1:
    134 	X_SYS_ANSI_H_                 = 0                    // ansi.h:33:1:
    135 	X_SYS_BSWAP_H_                = 0                    // bswap.h:6:1:
    136 	X_SYS_CDEFS_ELF_H_            = 0                    // cdefs_elf.h:31:1:
    137 	X_SYS_CDEFS_H_                = 0                    // cdefs.h:37:1:
    138 	X_SYS_COMMON_ANSI_H_          = 0                    // common_ansi.h:33:1:
    139 	X_SYS_COMMON_INT_LIMITS_H_    = 0                    // common_int_limits.h:33:1:
    140 	X_SYS_COMMON_INT_MWGWTYPES_H_ = 0                    // common_int_mwgwtypes.h:33:1:
    141 	X_SYS_COMMON_INT_TYPES_H_     = 0                    // common_int_types.h:33:1:
    142 	X_SYS_ENDIAN_H_               = 0                    // endian.h:35:1:
    143 	X_SYS_FD_SET_H_               = 0                    // fd_set.h:35:1:
    144 	X_SYS_NULL_H_                 = 0                    // null.h:9:1:
    145 	X_SYS_STDINT_H_               = 0                    // stdint.h:33:1:
    146 	X_SYS_TYPES_H_                = 0                    // types.h:40:1:
    147 	X_X86_64_BSWAP_H_             = 0                    // bswap.h:6:1:
    148 	X_X86_64_CDEFS_H_             = 0                    // cdefs.h:4:1:
    149 	X_X86_64_TYPES_H_             = 0                    // types.h:35:1:
    150 )
    151 
    152 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    153 
    154 type Size_t = uint64 /* <builtin>:9:23 */
    155 
    156 type Wchar_t = int32 /* <builtin>:15:24 */
    157 
    158 type X__int128_t = struct {
    159 	Flo int64
    160 	Fhi int64
    161 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    162 type X__uint128_t = struct {
    163 	Flo uint64
    164 	Fhi uint64
    165 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    166 
    167 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    168 type X__float128 = float64        /* <builtin>:47:21 */
    169 
    170 // return true if value 'a' fits in type 't'
    171 
    172 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    173 
    174 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    175 // Public domain.
    176 //
    177 // NOTE: Do not protect this header against multiple inclusion.  Doing
    178 // so can have subtle side-effects due to header file inclusion order
    179 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    180 // protect each CPP macro that we want to supply.
    181 
    182 // Feature-test macros are defined by several standards, and allow an
    183 // application to specify what symbols they want the system headers to
    184 // expose, and hence what standard they want them to conform to.
    185 // There are two classes of feature-test macros.  The first class
    186 // specify complete standards, and if one of these is defined, header
    187 // files will try to conform to the relevant standard.  They are:
    188 //
    189 // ANSI macros:
    190 // _ANSI_SOURCE			ANSI C89
    191 //
    192 // POSIX macros:
    193 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    194 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    195 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    196 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    197 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    198 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    199 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    200 //
    201 // X/Open macros:
    202 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    203 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    204 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    205 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    206 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    207 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    208 //
    209 // NetBSD macros:
    210 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    211 //
    212 // If more than one of these "major" feature-test macros is defined,
    213 // then the set of facilities provided (and namespace used) is the
    214 // union of that specified by the relevant standards, and in case of
    215 // conflict, the earlier standard in the above list has precedence (so
    216 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    217 // of rename() that's used is the POSIX one).  If none of the "major"
    218 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    219 //
    220 // There are also "minor" feature-test macros, which enable extra
    221 // functionality in addition to some base standard.  They should be
    222 // defined along with one of the "major" macros.  The "minor" macros
    223 // are:
    224 //
    225 // _REENTRANT
    226 // _ISOC99_SOURCE
    227 // _ISOC11_SOURCE
    228 // _LARGEFILE_SOURCE		Large File Support
    229 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    230 
    231 //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
    232 
    233 // -
    234 // Copyright (c) 1982, 1986, 1991, 1993, 1994
    235 //	The Regents of the University of California.  All rights reserved.
    236 // (c) UNIX System Laboratories, Inc.
    237 // All or some portions of this file are derived from material licensed
    238 // to the University of California by American Telephone and Telegraph
    239 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    240 // the permission of UNIX System Laboratories, Inc.
    241 //
    242 // Redistribution and use in source and binary forms, with or without
    243 // modification, are permitted provided that the following conditions
    244 // are met:
    245 // 1. Redistributions of source code must retain the above copyright
    246 //    notice, this list of conditions and the following disclaimer.
    247 // 2. Redistributions in binary form must reproduce the above copyright
    248 //    notice, this list of conditions and the following disclaimer in the
    249 //    documentation and/or other materials provided with the distribution.
    250 // 3. Neither the name of the University nor the names of its contributors
    251 //    may be used to endorse or promote products derived from this software
    252 //    without specific prior written permission.
    253 //
    254 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    255 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    256 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    257 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    258 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    259 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    260 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    261 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    262 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    263 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    264 // SUCH DAMAGE.
    265 //
    266 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    267 
    268 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    269 
    270 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    271 // Public domain.
    272 //
    273 // NOTE: Do not protect this header against multiple inclusion.  Doing
    274 // so can have subtle side-effects due to header file inclusion order
    275 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    276 // protect each CPP macro that we want to supply.
    277 
    278 // Feature-test macros are defined by several standards, and allow an
    279 // application to specify what symbols they want the system headers to
    280 // expose, and hence what standard they want them to conform to.
    281 // There are two classes of feature-test macros.  The first class
    282 // specify complete standards, and if one of these is defined, header
    283 // files will try to conform to the relevant standard.  They are:
    284 //
    285 // ANSI macros:
    286 // _ANSI_SOURCE			ANSI C89
    287 //
    288 // POSIX macros:
    289 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    290 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    291 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    292 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    293 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    294 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    295 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    296 //
    297 // X/Open macros:
    298 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    299 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    300 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    301 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    302 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    303 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    304 //
    305 // NetBSD macros:
    306 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    307 //
    308 // If more than one of these "major" feature-test macros is defined,
    309 // then the set of facilities provided (and namespace used) is the
    310 // union of that specified by the relevant standards, and in case of
    311 // conflict, the earlier standard in the above list has precedence (so
    312 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    313 // of rename() that's used is the POSIX one).  If none of the "major"
    314 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    315 //
    316 // There are also "minor" feature-test macros, which enable extra
    317 // functionality in addition to some base standard.  They should be
    318 // defined along with one of the "major" macros.  The "minor" macros
    319 // are:
    320 //
    321 // _REENTRANT
    322 // _ISOC99_SOURCE
    323 // _ISOC11_SOURCE
    324 // _LARGEFILE_SOURCE		Large File Support
    325 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    326 
    327 // Machine type dependent parameters.
    328 //	$NetBSD: types.h,v 1.60 2019/04/06 03:06:24 thorpej Exp $
    329 
    330 // -
    331 // Copyright (c) 1990 The Regents of the University of California.
    332 // All rights reserved.
    333 //
    334 // Redistribution and use in source and binary forms, with or without
    335 // modification, are permitted provided that the following conditions
    336 // are met:
    337 // 1. Redistributions of source code must retain the above copyright
    338 //    notice, this list of conditions and the following disclaimer.
    339 // 2. Redistributions in binary form must reproduce the above copyright
    340 //    notice, this list of conditions and the following disclaimer in the
    341 //    documentation and/or other materials provided with the distribution.
    342 // 3. Neither the name of the University nor the names of its contributors
    343 //    may be used to endorse or promote products derived from this software
    344 //    without specific prior written permission.
    345 //
    346 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    347 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    348 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    349 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    350 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    351 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    352 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    353 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    354 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    355 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    356 // SUCH DAMAGE.
    357 //
    358 //	@(#)types.h	7.5 (Berkeley) 3/9/91
    359 
    360 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
    361 
    362 // * Copyright (c) 1991, 1993
    363 //	The Regents of the University of California.  All rights reserved.
    364 //
    365 // This code is derived from software contributed to Berkeley by
    366 // Berkeley Software Design, Inc.
    367 //
    368 // Redistribution and use in source and binary forms, with or without
    369 // modification, are permitted provided that the following conditions
    370 // are met:
    371 // 1. Redistributions of source code must retain the above copyright
    372 //    notice, this list of conditions and the following disclaimer.
    373 // 2. Redistributions in binary form must reproduce the above copyright
    374 //    notice, this list of conditions and the following disclaimer in the
    375 //    documentation and/or other materials provided with the distribution.
    376 // 3. Neither the name of the University nor the names of its contributors
    377 //    may be used to endorse or promote products derived from this software
    378 //    without specific prior written permission.
    379 //
    380 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    381 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    382 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    383 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    384 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    385 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    386 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    387 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    388 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    389 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    390 // SUCH DAMAGE.
    391 //
    392 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    393 
    394 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    395 
    396 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    397 // Public domain.
    398 //
    399 // NOTE: Do not protect this header against multiple inclusion.  Doing
    400 // so can have subtle side-effects due to header file inclusion order
    401 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    402 // protect each CPP macro that we want to supply.
    403 
    404 // Feature-test macros are defined by several standards, and allow an
    405 // application to specify what symbols they want the system headers to
    406 // expose, and hence what standard they want them to conform to.
    407 // There are two classes of feature-test macros.  The first class
    408 // specify complete standards, and if one of these is defined, header
    409 // files will try to conform to the relevant standard.  They are:
    410 //
    411 // ANSI macros:
    412 // _ANSI_SOURCE			ANSI C89
    413 //
    414 // POSIX macros:
    415 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    416 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    417 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    418 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    419 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    420 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    421 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    422 //
    423 // X/Open macros:
    424 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    425 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    426 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    427 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    428 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    429 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    430 //
    431 // NetBSD macros:
    432 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    433 //
    434 // If more than one of these "major" feature-test macros is defined,
    435 // then the set of facilities provided (and namespace used) is the
    436 // union of that specified by the relevant standards, and in case of
    437 // conflict, the earlier standard in the above list has precedence (so
    438 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    439 // of rename() that's used is the POSIX one).  If none of the "major"
    440 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    441 //
    442 // There are also "minor" feature-test macros, which enable extra
    443 // functionality in addition to some base standard.  They should be
    444 // defined along with one of the "major" macros.  The "minor" macros
    445 // are:
    446 //
    447 // _REENTRANT
    448 // _ISOC99_SOURCE
    449 // _ISOC11_SOURCE
    450 // _LARGEFILE_SOURCE		Large File Support
    451 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    452 
    453 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
    454 
    455 // -
    456 // Copyright (c) 1990 The Regents of the University of California.
    457 // All rights reserved.
    458 //
    459 // Redistribution and use in source and binary forms, with or without
    460 // modification, are permitted provided that the following conditions
    461 // are met:
    462 // 1. Redistributions of source code must retain the above copyright
    463 //    notice, this list of conditions and the following disclaimer.
    464 // 2. Redistributions in binary form must reproduce the above copyright
    465 //    notice, this list of conditions and the following disclaimer in the
    466 //    documentation and/or other materials provided with the distribution.
    467 // 3. Neither the name of the University nor the names of its contributors
    468 //    may be used to endorse or promote products derived from this software
    469 //    without specific prior written permission.
    470 //
    471 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    472 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    473 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    474 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    475 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    476 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    477 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    478 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    479 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    480 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    481 // SUCH DAMAGE.
    482 //
    483 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
    484 
    485 //	$NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
    486 
    487 // -
    488 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    489 // All rights reserved.
    490 //
    491 // This code is derived from software contributed to The NetBSD Foundation
    492 // by Joerg Sonnenberger.
    493 //
    494 // Redistribution and use in source and binary forms, with or without
    495 // modification, are permitted provided that the following conditions
    496 // are met:
    497 // 1. Redistributions of source code must retain the above copyright
    498 //    notice, this list of conditions and the following disclaimer.
    499 // 2. Redistributions in binary form must reproduce the above copyright
    500 //    notice, this list of conditions and the following disclaimer in the
    501 //    documentation and/or other materials provided with the distribution.
    502 //
    503 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    504 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    505 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    506 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    507 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    508 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    509 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    510 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    511 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    512 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    513 // POSSIBILITY OF SUCH DAMAGE.
    514 
    515 // 7.18.1 Integer types
    516 
    517 // 7.18.1.1 Exact-width integer types
    518 
    519 type X__int8_t = int8     /* common_int_types.h:45:27 */
    520 type X__uint8_t = uint8   /* common_int_types.h:46:27 */
    521 type X__int16_t = int16   /* common_int_types.h:47:27 */
    522 type X__uint16_t = uint16 /* common_int_types.h:48:27 */
    523 type X__int32_t = int32   /* common_int_types.h:49:27 */
    524 type X__uint32_t = uint32 /* common_int_types.h:50:27 */
    525 type X__int64_t = int64   /* common_int_types.h:51:27 */
    526 type X__uint64_t = uint64 /* common_int_types.h:52:27 */
    527 
    528 // 7.18.1.4 Integer types capable of holding object pointers
    529 
    530 type X__intptr_t = int64   /* common_int_types.h:58:27 */
    531 type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
    532 
    533 type X__register_t = int64           /* types.h:68:19 */
    534 type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
    535 
    536 // __cpu_simple_lock_t used to be a full word.
    537 
    538 // The amd64 does not have strict alignment requirements.
    539 
    540 //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
    541 
    542 //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
    543 
    544 // -
    545 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    546 // All rights reserved.
    547 //
    548 // This code is derived from software contributed to The NetBSD Foundation
    549 // by Matt Thomas of 3am Software Foundry.
    550 //
    551 // Redistribution and use in source and binary forms, with or without
    552 // modification, are permitted provided that the following conditions
    553 // are met:
    554 // 1. Redistributions of source code must retain the above copyright
    555 //    notice, this list of conditions and the following disclaimer.
    556 // 2. Redistributions in binary form must reproduce the above copyright
    557 //    notice, this list of conditions and the following disclaimer in the
    558 //    documentation and/or other materials provided with the distribution.
    559 //
    560 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    561 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    562 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    563 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    564 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    565 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    566 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    567 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    568 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    569 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    570 // POSSIBILITY OF SUCH DAMAGE.
    571 
    572 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
    573 
    574 // * Copyright (c) 1991, 1993
    575 //	The Regents of the University of California.  All rights reserved.
    576 //
    577 // This code is derived from software contributed to Berkeley by
    578 // Berkeley Software Design, Inc.
    579 //
    580 // Redistribution and use in source and binary forms, with or without
    581 // modification, are permitted provided that the following conditions
    582 // are met:
    583 // 1. Redistributions of source code must retain the above copyright
    584 //    notice, this list of conditions and the following disclaimer.
    585 // 2. Redistributions in binary form must reproduce the above copyright
    586 //    notice, this list of conditions and the following disclaimer in the
    587 //    documentation and/or other materials provided with the distribution.
    588 // 3. Neither the name of the University nor the names of its contributors
    589 //    may be used to endorse or promote products derived from this software
    590 //    without specific prior written permission.
    591 //
    592 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    593 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    594 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    595 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    596 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    597 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    598 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    599 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    600 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    601 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    602 // SUCH DAMAGE.
    603 //
    604 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    605 
    606 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
    607 
    608 // -
    609 // Copyright (c) 1990 The Regents of the University of California.
    610 // All rights reserved.
    611 //
    612 // Redistribution and use in source and binary forms, with or without
    613 // modification, are permitted provided that the following conditions
    614 // are met:
    615 // 1. Redistributions of source code must retain the above copyright
    616 //    notice, this list of conditions and the following disclaimer.
    617 // 2. Redistributions in binary form must reproduce the above copyright
    618 //    notice, this list of conditions and the following disclaimer in the
    619 //    documentation and/or other materials provided with the distribution.
    620 // 3. Neither the name of the University nor the names of its contributors
    621 //    may be used to endorse or promote products derived from this software
    622 //    without specific prior written permission.
    623 //
    624 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    625 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    626 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    627 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    628 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    629 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    630 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    631 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    632 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    633 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    634 // SUCH DAMAGE.
    635 //
    636 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
    637 
    638 // Types which are fundamental to the implementation and may appear in
    639 // more than one standard header are defined here.  Standard headers
    640 // then use:
    641 //	#ifdef	_BSD_SIZE_T_
    642 //	typedef	_BSD_SIZE_T_ size_t;
    643 //	#undef	_BSD_SIZE_T_
    644 //	#endif
    645 
    646 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
    647 
    648 // -
    649 // Copyright (c) 1990 The Regents of the University of California.
    650 // All rights reserved.
    651 //
    652 // Redistribution and use in source and binary forms, with or without
    653 // modification, are permitted provided that the following conditions
    654 // are met:
    655 // 1. Redistributions of source code must retain the above copyright
    656 //    notice, this list of conditions and the following disclaimer.
    657 // 2. Redistributions in binary form must reproduce the above copyright
    658 //    notice, this list of conditions and the following disclaimer in the
    659 //    documentation and/or other materials provided with the distribution.
    660 // 3. Neither the name of the University nor the names of its contributors
    661 //    may be used to endorse or promote products derived from this software
    662 //    without specific prior written permission.
    663 //
    664 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    665 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    666 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    667 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    668 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    669 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    670 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    671 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    672 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    673 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    674 // SUCH DAMAGE.
    675 //
    676 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
    677 
    678 //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
    679 
    680 // -
    681 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
    682 // All rights reserved.
    683 //
    684 // This code is derived from software contributed to The NetBSD Foundation
    685 // by Jun-ichiro itojun Hagino and by Klaus Klein.
    686 //
    687 // Redistribution and use in source and binary forms, with or without
    688 // modification, are permitted provided that the following conditions
    689 // are met:
    690 // 1. Redistributions of source code must retain the above copyright
    691 //    notice, this list of conditions and the following disclaimer.
    692 // 2. Redistributions in binary form must reproduce the above copyright
    693 //    notice, this list of conditions and the following disclaimer in the
    694 //    documentation and/or other materials provided with the distribution.
    695 //
    696 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    697 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    698 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    699 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    700 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    701 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    702 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    703 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    704 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    705 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    706 // POSSIBILITY OF SUCH DAMAGE.
    707 
    708 //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
    709 
    710 //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
    711 
    712 // -
    713 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    714 // All rights reserved.
    715 //
    716 // This code is derived from software contributed to The NetBSD Foundation
    717 // by Matt Thomas of 3am Software Foundry.
    718 //
    719 // Redistribution and use in source and binary forms, with or without
    720 // modification, are permitted provided that the following conditions
    721 // are met:
    722 // 1. Redistributions of source code must retain the above copyright
    723 //    notice, this list of conditions and the following disclaimer.
    724 // 2. Redistributions in binary form must reproduce the above copyright
    725 //    notice, this list of conditions and the following disclaimer in the
    726 //    documentation and/or other materials provided with the distribution.
    727 //
    728 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    729 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    730 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    731 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    732 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    733 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    734 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    735 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    736 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    737 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    738 // POSSIBILITY OF SUCH DAMAGE.
    739 
    740 type X__caddr_t = uintptr        /* ansi.h:37:14 */ // core address
    741 type X__gid_t = X__uint32_t      /* ansi.h:38:20 */ // group id
    742 type X__in_addr_t = X__uint32_t  /* ansi.h:39:20 */ // IP(v4) address
    743 type X__in_port_t = X__uint16_t  /* ansi.h:40:20 */ // "Internet" port number
    744 type X__mode_t = X__uint32_t     /* ansi.h:41:20 */ // file permissions
    745 type X__off_t = X__int64_t       /* ansi.h:42:19 */ // file offset
    746 type X__pid_t = X__int32_t       /* ansi.h:43:19 */ // process id
    747 type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
    748 type X__socklen_t = uint32       /* ansi.h:45:22 */ // socket-related datum length
    749 type X__uid_t = X__uint32_t      /* ansi.h:46:20 */ // user id
    750 type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
    751 type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
    752 type X__wctrans_t = uintptr      /* ansi.h:51:32 */
    753 type X__wctype_t = uintptr       /* ansi.h:54:31 */
    754 
    755 // mbstate_t is an opaque object to keep conversion state, during multibyte
    756 // stream conversions.  The content must not be referenced by user programs.
    757 type X__mbstate_t = struct {
    758 	F__mbstateL  X__int64_t
    759 	F__ccgo_pad1 [120]byte
    760 } /* ansi.h:63:3 */
    761 
    762 type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
    763 
    764 type Int8_t = X__int8_t /* types.h:54:18 */
    765 
    766 type Uint8_t = X__uint8_t /* types.h:59:19 */
    767 
    768 type Int16_t = X__int16_t /* types.h:64:19 */
    769 
    770 type Uint16_t = X__uint16_t /* types.h:69:20 */
    771 
    772 type Int32_t = X__int32_t /* types.h:74:19 */
    773 
    774 type Uint32_t = X__uint32_t /* types.h:79:20 */
    775 
    776 type Int64_t = X__int64_t /* types.h:84:19 */
    777 
    778 type Uint64_t = X__uint64_t /* types.h:89:20 */
    779 
    780 type U_int8_t = Uint8_t   /* types.h:93:18 */
    781 type U_int16_t = Uint16_t /* types.h:94:18 */
    782 type U_int32_t = Uint32_t /* types.h:95:18 */
    783 type U_int64_t = Uint64_t /* types.h:96:18 */
    784 
    785 //	$NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
    786 
    787 //	$NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
    788 
    789 // Copyright (c) 1987, 1991, 1993
    790 //	The Regents of the University of California.  All rights reserved.
    791 //
    792 // Redistribution and use in source and binary forms, with or without
    793 // modification, are permitted provided that the following conditions
    794 // are met:
    795 // 1. Redistributions of source code must retain the above copyright
    796 //    notice, this list of conditions and the following disclaimer.
    797 // 2. Redistributions in binary form must reproduce the above copyright
    798 //    notice, this list of conditions and the following disclaimer in the
    799 //    documentation and/or other materials provided with the distribution.
    800 // 3. Neither the name of the University nor the names of its contributors
    801 //    may be used to endorse or promote products derived from this software
    802 //    without specific prior written permission.
    803 //
    804 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    805 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    806 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    807 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    808 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    809 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    810 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    811 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    812 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    813 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    814 // SUCH DAMAGE.
    815 //
    816 //	@(#)endian.h	8.1 (Berkeley) 6/11/93
    817 
    818 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    819 
    820 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    821 // Public domain.
    822 //
    823 // NOTE: Do not protect this header against multiple inclusion.  Doing
    824 // so can have subtle side-effects due to header file inclusion order
    825 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    826 // protect each CPP macro that we want to supply.
    827 
    828 // Feature-test macros are defined by several standards, and allow an
    829 // application to specify what symbols they want the system headers to
    830 // expose, and hence what standard they want them to conform to.
    831 // There are two classes of feature-test macros.  The first class
    832 // specify complete standards, and if one of these is defined, header
    833 // files will try to conform to the relevant standard.  They are:
    834 //
    835 // ANSI macros:
    836 // _ANSI_SOURCE			ANSI C89
    837 //
    838 // POSIX macros:
    839 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    840 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    841 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    842 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    843 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    844 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    845 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    846 //
    847 // X/Open macros:
    848 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    849 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    850 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    851 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    852 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    853 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    854 //
    855 // NetBSD macros:
    856 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    857 //
    858 // If more than one of these "major" feature-test macros is defined,
    859 // then the set of facilities provided (and namespace used) is the
    860 // union of that specified by the relevant standards, and in case of
    861 // conflict, the earlier standard in the above list has precedence (so
    862 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    863 // of rename() that's used is the POSIX one).  If none of the "major"
    864 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    865 //
    866 // There are also "minor" feature-test macros, which enable extra
    867 // functionality in addition to some base standard.  They should be
    868 // defined along with one of the "major" macros.  The "minor" macros
    869 // are:
    870 //
    871 // _REENTRANT
    872 // _ISOC99_SOURCE
    873 // _ISOC11_SOURCE
    874 // _LARGEFILE_SOURCE		Large File Support
    875 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    876 
    877 // Definitions for byte order, according to byte significance from low
    878 // address to high.
    879 
    880 // C-family endian-ness definitions
    881 
    882 //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
    883 
    884 // -
    885 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
    886 // All rights reserved.
    887 //
    888 // This code is derived from software contributed to The NetBSD Foundation
    889 // by Jun-ichiro itojun Hagino and by Klaus Klein.
    890 //
    891 // Redistribution and use in source and binary forms, with or without
    892 // modification, are permitted provided that the following conditions
    893 // are met:
    894 // 1. Redistributions of source code must retain the above copyright
    895 //    notice, this list of conditions and the following disclaimer.
    896 // 2. Redistributions in binary form must reproduce the above copyright
    897 //    notice, this list of conditions and the following disclaimer in the
    898 //    documentation and/or other materials provided with the distribution.
    899 //
    900 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    901 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    902 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    903 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    904 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    905 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    906 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    907 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    908 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    909 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    910 // POSSIBILITY OF SUCH DAMAGE.
    911 
    912 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
    913 
    914 // * Copyright (c) 1991, 1993
    915 //	The Regents of the University of California.  All rights reserved.
    916 //
    917 // This code is derived from software contributed to Berkeley by
    918 // Berkeley Software Design, Inc.
    919 //
    920 // Redistribution and use in source and binary forms, with or without
    921 // modification, are permitted provided that the following conditions
    922 // are met:
    923 // 1. Redistributions of source code must retain the above copyright
    924 //    notice, this list of conditions and the following disclaimer.
    925 // 2. Redistributions in binary form must reproduce the above copyright
    926 //    notice, this list of conditions and the following disclaimer in the
    927 //    documentation and/or other materials provided with the distribution.
    928 // 3. Neither the name of the University nor the names of its contributors
    929 //    may be used to endorse or promote products derived from this software
    930 //    without specific prior written permission.
    931 //
    932 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    933 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    934 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    935 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    936 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    937 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    938 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    939 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    940 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    941 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    942 // SUCH DAMAGE.
    943 //
    944 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    945 
    946 //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
    947 
    948 // -
    949 // Copyright (c) 1982, 1986, 1991, 1993, 1994
    950 //	The Regents of the University of California.  All rights reserved.
    951 // (c) UNIX System Laboratories, Inc.
    952 // All or some portions of this file are derived from material licensed
    953 // to the University of California by American Telephone and Telegraph
    954 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    955 // the permission of UNIX System Laboratories, Inc.
    956 //
    957 // Redistribution and use in source and binary forms, with or without
    958 // modification, are permitted provided that the following conditions
    959 // are met:
    960 // 1. Redistributions of source code must retain the above copyright
    961 //    notice, this list of conditions and the following disclaimer.
    962 // 2. Redistributions in binary form must reproduce the above copyright
    963 //    notice, this list of conditions and the following disclaimer in the
    964 //    documentation and/or other materials provided with the distribution.
    965 // 3. Neither the name of the University nor the names of its contributors
    966 //    may be used to endorse or promote products derived from this software
    967 //    without specific prior written permission.
    968 //
    969 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    970 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    971 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    972 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    973 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    974 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    975 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    976 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    977 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    978 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    979 // SUCH DAMAGE.
    980 //
    981 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    982 
    983 type In_addr_t = X__in_addr_t /* endian.h:58:21 */
    984 
    985 type In_port_t = X__in_port_t /* endian.h:63:21 */
    986 
    987 //      $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
    988 
    989 // Written by Manuel Bouyer. Public domain
    990 
    991 //	$NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
    992 
    993 // -
    994 // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
    995 // All rights reserved.
    996 //
    997 // This code is derived from software contributed to The NetBSD Foundation
    998 // by Klaus Klein.
    999 //
   1000 // Redistribution and use in source and binary forms, with or without
   1001 // modification, are permitted provided that the following conditions
   1002 // are met:
   1003 // 1. Redistributions of source code must retain the above copyright
   1004 //    notice, this list of conditions and the following disclaimer.
   1005 // 2. Redistributions in binary form must reproduce the above copyright
   1006 //    notice, this list of conditions and the following disclaimer in the
   1007 //    documentation and/or other materials provided with the distribution.
   1008 //
   1009 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1010 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1011 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1012 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1013 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1014 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1015 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1016 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1017 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1018 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1019 // POSSIBILITY OF SUCH DAMAGE.
   1020 
   1021 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   1022 
   1023 // * Copyright (c) 1991, 1993
   1024 //	The Regents of the University of California.  All rights reserved.
   1025 //
   1026 // This code is derived from software contributed to Berkeley by
   1027 // Berkeley Software Design, Inc.
   1028 //
   1029 // Redistribution and use in source and binary forms, with or without
   1030 // modification, are permitted provided that the following conditions
   1031 // are met:
   1032 // 1. Redistributions of source code must retain the above copyright
   1033 //    notice, this list of conditions and the following disclaimer.
   1034 // 2. Redistributions in binary form must reproduce the above copyright
   1035 //    notice, this list of conditions and the following disclaimer in the
   1036 //    documentation and/or other materials provided with the distribution.
   1037 // 3. Neither the name of the University nor the names of its contributors
   1038 //    may be used to endorse or promote products derived from this software
   1039 //    without specific prior written permission.
   1040 //
   1041 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1042 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1043 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1044 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1045 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1046 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1047 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1048 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1049 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1050 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1051 // SUCH DAMAGE.
   1052 //
   1053 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1054 
   1055 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   1056 
   1057 // -
   1058 // Copyright (c) 1990 The Regents of the University of California.
   1059 // All rights reserved.
   1060 //
   1061 // Redistribution and use in source and binary forms, with or without
   1062 // modification, are permitted provided that the following conditions
   1063 // are met:
   1064 // 1. Redistributions of source code must retain the above copyright
   1065 //    notice, this list of conditions and the following disclaimer.
   1066 // 2. Redistributions in binary form must reproduce the above copyright
   1067 //    notice, this list of conditions and the following disclaimer in the
   1068 //    documentation and/or other materials provided with the distribution.
   1069 // 3. Neither the name of the University nor the names of its contributors
   1070 //    may be used to endorse or promote products derived from this software
   1071 //    without specific prior written permission.
   1072 //
   1073 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1074 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1075 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1076 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1077 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1078 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1079 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1080 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1081 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1082 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1083 // SUCH DAMAGE.
   1084 //
   1085 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   1086 
   1087 type Intptr_t = X__intptr_t /* stdint.h:79:20 */
   1088 
   1089 type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
   1090 
   1091 //	$NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
   1092 
   1093 // -
   1094 // Copyright (c) 2001 The NetBSD Foundation, Inc.
   1095 // All rights reserved.
   1096 //
   1097 // This code is derived from software contributed to The NetBSD Foundation
   1098 // by Klaus Klein.
   1099 //
   1100 // Redistribution and use in source and binary forms, with or without
   1101 // modification, are permitted provided that the following conditions
   1102 // are met:
   1103 // 1. Redistributions of source code must retain the above copyright
   1104 //    notice, this list of conditions and the following disclaimer.
   1105 // 2. Redistributions in binary form must reproduce the above copyright
   1106 //    notice, this list of conditions and the following disclaimer in the
   1107 //    documentation and/or other materials provided with the distribution.
   1108 //
   1109 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1110 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1111 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1112 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1113 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1114 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1115 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1116 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1117 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1118 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1119 // POSSIBILITY OF SUCH DAMAGE.
   1120 
   1121 //	$NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
   1122 
   1123 // -
   1124 // Copyright (c) 2014 The NetBSD Foundation, Inc.
   1125 // All rights reserved.
   1126 //
   1127 // This code is derived from software contributed to The NetBSD Foundation
   1128 // by Joerg Sonnenberger.
   1129 //
   1130 // Redistribution and use in source and binary forms, with or without
   1131 // modification, are permitted provided that the following conditions
   1132 // are met:
   1133 // 1. Redistributions of source code must retain the above copyright
   1134 //    notice, this list of conditions and the following disclaimer.
   1135 // 2. Redistributions in binary form must reproduce the above copyright
   1136 //    notice, this list of conditions and the following disclaimer in the
   1137 //    documentation and/or other materials provided with the distribution.
   1138 //
   1139 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1140 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1141 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1142 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1143 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1144 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1145 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1146 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1147 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1148 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1149 // POSSIBILITY OF SUCH DAMAGE.
   1150 
   1151 // 7.18.1 Integer types
   1152 
   1153 // 7.18.1.2 Minimum-width integer types
   1154 
   1155 type Int_least8_t = int8     /* common_int_mwgwtypes.h:45:32 */
   1156 type Uint_least8_t = uint8   /* common_int_mwgwtypes.h:46:32 */
   1157 type Int_least16_t = int16   /* common_int_mwgwtypes.h:47:32 */
   1158 type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
   1159 type Int_least32_t = int32   /* common_int_mwgwtypes.h:49:32 */
   1160 type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
   1161 type Int_least64_t = int64   /* common_int_mwgwtypes.h:51:32 */
   1162 type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
   1163 
   1164 // 7.18.1.3 Fastest minimum-width integer types
   1165 type Int_fast8_t = int32    /* common_int_mwgwtypes.h:55:32 */
   1166 type Uint_fast8_t = uint32  /* common_int_mwgwtypes.h:56:32 */
   1167 type Int_fast16_t = int32   /* common_int_mwgwtypes.h:57:32 */
   1168 type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
   1169 type Int_fast32_t = int32   /* common_int_mwgwtypes.h:59:32 */
   1170 type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
   1171 type Int_fast64_t = int64   /* common_int_mwgwtypes.h:61:32 */
   1172 type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
   1173 
   1174 // 7.18.1.5 Greatest-width integer types
   1175 
   1176 type Intmax_t = int64   /* common_int_mwgwtypes.h:66:33 */
   1177 type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
   1178 
   1179 type U_char = uint8   /* types.h:101:23 */
   1180 type U_short = uint16 /* types.h:102:24 */
   1181 type U_int = uint32   /* types.h:103:22 */
   1182 type U_long = uint64  /* types.h:104:23 */
   1183 
   1184 type Unchar = uint8  /* types.h:106:23 */ // Sys V compatibility
   1185 type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
   1186 type Uint = uint32   /* types.h:108:22 */ // Sys V compatibility
   1187 type Ulong = uint64  /* types.h:109:23 */ // Sys V compatibility
   1188 
   1189 type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
   1190 type Quad_t = Int64_t    /* types.h:113:18 */
   1191 type Qaddr_t = uintptr   /* types.h:114:16 */
   1192 
   1193 // The types longlong_t and u_longlong_t exist for use with the
   1194 // Sun-derived XDR routines involving these types, and their usage
   1195 // in other contexts is discouraged.  Further note that these types
   1196 // may not be equivalent to "long long" and "unsigned long long",
   1197 // they are only guaranteed to be signed and unsigned 64-bit types
   1198 // respectively.  Portable programs that need 64-bit types should use
   1199 // the C99 types int64_t and uint64_t instead.
   1200 
   1201 type Longlong_t = Int64_t    /* types.h:126:18 */ // for XDR
   1202 type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
   1203 
   1204 type Blkcnt_t = Int64_t  /* types.h:129:18 */ // fs block count
   1205 type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
   1206 
   1207 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
   1208 
   1209 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
   1210 
   1211 // We don't and shouldn't use caddr_t in the kernel anymore
   1212 type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
   1213 
   1214 type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
   1215 
   1216 type Dev_t = Uint64_t   /* types.h:157:18 */ // device number
   1217 type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
   1218 
   1219 type Gid_t = X__gid_t /* types.h:161:18 */ // group id
   1220 
   1221 type Id_t = Uint32_t  /* types.h:165:18 */ // group id, process id or user id
   1222 type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
   1223 type Key_t = int64    /* types.h:167:15 */ // IPC key (for Sys V IPC)
   1224 
   1225 type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
   1226 
   1227 type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
   1228 
   1229 type Off_t = X__off_t /* types.h:177:18 */ // file offset
   1230 
   1231 type Pid_t = X__pid_t  /* types.h:182:18 */ // process id
   1232 type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
   1233 type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
   1234 type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
   1235 type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
   1236 
   1237 type Uid_t = X__uid_t /* types.h:191:18 */ // user id
   1238 
   1239 type Mqd_t = int32 /* types.h:195:14 */
   1240 
   1241 type Cpuid_t = uint64 /* types.h:197:23 */
   1242 
   1243 type Psetid_t = int32 /* types.h:199:14 */
   1244 
   1245 type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
   1246 
   1247 // Major, minor numbers, dev_t's.
   1248 type X__devmajor_t = Int32_t /* types.h:255:17 */
   1249 type X__devminor_t = Int32_t /* types.h:255:31 */
   1250 
   1251 type Clock_t = uint32 /* types.h:268:24 */
   1252 
   1253 type Ssize_t = int64 /* types.h:284:24 */
   1254 
   1255 type Time_t = X__int64_t /* types.h:289:23 */
   1256 
   1257 type Clockid_t = int32 /* types.h:294:26 */
   1258 
   1259 type Timer_t = int32 /* types.h:299:24 */
   1260 
   1261 type Suseconds_t = int32 /* types.h:304:27 */
   1262 
   1263 type Useconds_t = uint32 /* types.h:309:26 */
   1264 
   1265 //	$NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
   1266 
   1267 // -
   1268 // Copyright (c) 1992, 1993
   1269 //	The Regents of the University of California.  All rights reserved.
   1270 //
   1271 // Redistribution and use in source and binary forms, with or without
   1272 // modification, are permitted provided that the following conditions
   1273 // are met:
   1274 // 1. Redistributions of source code must retain the above copyright
   1275 //    notice, this list of conditions and the following disclaimer.
   1276 // 2. Redistributions in binary form must reproduce the above copyright
   1277 //    notice, this list of conditions and the following disclaimer in the
   1278 //    documentation and/or other materials provided with the distribution.
   1279 // 3. Neither the name of the University nor the names of its contributors
   1280 //    may be used to endorse or promote products derived from this software
   1281 //    without specific prior written permission.
   1282 //
   1283 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1284 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1285 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1286 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1287 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1288 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1289 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1290 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1291 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1292 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1293 // SUCH DAMAGE.
   1294 //
   1295 //	from: @(#)types.h	8.4 (Berkeley) 1/21/94
   1296 
   1297 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   1298 
   1299 // * Copyright (c) 1991, 1993
   1300 //	The Regents of the University of California.  All rights reserved.
   1301 //
   1302 // This code is derived from software contributed to Berkeley by
   1303 // Berkeley Software Design, Inc.
   1304 //
   1305 // Redistribution and use in source and binary forms, with or without
   1306 // modification, are permitted provided that the following conditions
   1307 // are met:
   1308 // 1. Redistributions of source code must retain the above copyright
   1309 //    notice, this list of conditions and the following disclaimer.
   1310 // 2. Redistributions in binary form must reproduce the above copyright
   1311 //    notice, this list of conditions and the following disclaimer in the
   1312 //    documentation and/or other materials provided with the distribution.
   1313 // 3. Neither the name of the University nor the names of its contributors
   1314 //    may be used to endorse or promote products derived from this software
   1315 //    without specific prior written permission.
   1316 //
   1317 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1318 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1319 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1320 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1321 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1322 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1323 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1324 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1325 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1326 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1327 // SUCH DAMAGE.
   1328 //
   1329 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1330 
   1331 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   1332 
   1333 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   1334 // Public domain.
   1335 //
   1336 // NOTE: Do not protect this header against multiple inclusion.  Doing
   1337 // so can have subtle side-effects due to header file inclusion order
   1338 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   1339 // protect each CPP macro that we want to supply.
   1340 
   1341 // Feature-test macros are defined by several standards, and allow an
   1342 // application to specify what symbols they want the system headers to
   1343 // expose, and hence what standard they want them to conform to.
   1344 // There are two classes of feature-test macros.  The first class
   1345 // specify complete standards, and if one of these is defined, header
   1346 // files will try to conform to the relevant standard.  They are:
   1347 //
   1348 // ANSI macros:
   1349 // _ANSI_SOURCE			ANSI C89
   1350 //
   1351 // POSIX macros:
   1352 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   1353 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   1354 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   1355 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   1356 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   1357 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   1358 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   1359 //
   1360 // X/Open macros:
   1361 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   1362 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   1363 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   1364 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   1365 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   1366 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   1367 //
   1368 // NetBSD macros:
   1369 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   1370 //
   1371 // If more than one of these "major" feature-test macros is defined,
   1372 // then the set of facilities provided (and namespace used) is the
   1373 // union of that specified by the relevant standards, and in case of
   1374 // conflict, the earlier standard in the above list has precedence (so
   1375 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   1376 // of rename() that's used is the POSIX one).  If none of the "major"
   1377 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   1378 //
   1379 // There are also "minor" feature-test macros, which enable extra
   1380 // functionality in addition to some base standard.  They should be
   1381 // defined along with one of the "major" macros.  The "minor" macros
   1382 // are:
   1383 //
   1384 // _REENTRANT
   1385 // _ISOC99_SOURCE
   1386 // _ISOC11_SOURCE
   1387 // _LARGEFILE_SOURCE		Large File Support
   1388 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   1389 
   1390 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   1391 
   1392 // -
   1393 // Copyright (c) 1990 The Regents of the University of California.
   1394 // All rights reserved.
   1395 //
   1396 // Redistribution and use in source and binary forms, with or without
   1397 // modification, are permitted provided that the following conditions
   1398 // are met:
   1399 // 1. Redistributions of source code must retain the above copyright
   1400 //    notice, this list of conditions and the following disclaimer.
   1401 // 2. Redistributions in binary form must reproduce the above copyright
   1402 //    notice, this list of conditions and the following disclaimer in the
   1403 //    documentation and/or other materials provided with the distribution.
   1404 // 3. Neither the name of the University nor the names of its contributors
   1405 //    may be used to endorse or promote products derived from this software
   1406 //    without specific prior written permission.
   1407 //
   1408 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1409 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1410 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1411 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1412 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1413 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1414 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1415 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1416 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1417 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1418 // SUCH DAMAGE.
   1419 //
   1420 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   1421 
   1422 // Implementation dependent defines, hidden from user space.
   1423 // POSIX does not specify them.
   1424 
   1425 type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
   1426 
   1427 // 32 = 2 ^ 5
   1428 
   1429 // Select uses bit fields of file descriptors.  These macros manipulate
   1430 // such bit fields.  Note: FD_SETSIZE may be defined by the user.
   1431 
   1432 type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
   1433 
   1434 // 32 = 2 ^ 5
   1435 
   1436 // Select uses bit fields of file descriptors.  These macros manipulate
   1437 // such bit fields.  Note: FD_SETSIZE may be defined by the user.
   1438 
   1439 type Fd_set = Fd_set1 /* fd_set.h:68:3 */
   1440 
   1441 // Expose our internals if we are not required to hide them.
   1442 
   1443 type Kauth_cred_t = uintptr /* types.h:318:27 */
   1444 
   1445 type Pri_t = int32 /* types.h:320:13 */
   1446 
   1447 //	$NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
   1448 
   1449 // -
   1450 // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
   1451 // All rights reserved.
   1452 //
   1453 // This code is derived from software contributed to The NetBSD Foundation
   1454 // by Nathan J. Williams.
   1455 //
   1456 // Redistribution and use in source and binary forms, with or without
   1457 // modification, are permitted provided that the following conditions
   1458 // are met:
   1459 // 1. Redistributions of source code must retain the above copyright
   1460 //    notice, this list of conditions and the following disclaimer.
   1461 // 2. Redistributions in binary form must reproduce the above copyright
   1462 //    notice, this list of conditions and the following disclaimer in the
   1463 //    documentation and/or other materials provided with the distribution.
   1464 //
   1465 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1466 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1467 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1468 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1469 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1470 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1471 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1472 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1473 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1474 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1475 // POSSIBILITY OF SUCH DAMAGE.
   1476 
   1477 // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
   1478 // POSIX spinlock object.
   1479 //
   1480 // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
   1481 // This does not work for volatile types.  Since C++ does not touch the guts
   1482 // of those types, we do not include volatile in the C++ definitions.
   1483 type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
   1484 type X__pthread_spin_t = Pthread_spin_t    /* pthread_types.h:48:24 */
   1485 
   1486 // Copied from PTQ_HEAD in pthread_queue.h
   1487 
   1488 type Pthread_queue_struct_t = struct {
   1489 	Fptqh_first uintptr
   1490 	Fptqh_last  uintptr
   1491 } /* pthread_types.h:61:1 */
   1492 
   1493 type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
   1494 type X__pthread_attr_st = struct {
   1495 	Fpta_magic   uint32
   1496 	Fpta_flags   int32
   1497 	Fpta_private uintptr
   1498 } /* pthread_types.h:65:1 */
   1499 
   1500 type X__pthread_mutex_st = struct {
   1501 	Fptm_magic      uint32
   1502 	Fptm_errorcheck X__pthread_spin_t
   1503 	Fptm_pad1       [3]Uint8_t
   1504 	F__8            struct{ Fptm_ceiling uint8 }
   1505 	Fptm_pad2       [3]Uint8_t
   1506 	F__ccgo_pad1    [4]byte
   1507 	Fptm_owner      Pthread_t
   1508 	Fptm_waiters    uintptr
   1509 	Fptm_recursed   uint32
   1510 	F__ccgo_pad2    [4]byte
   1511 	Fptm_spare2     uintptr
   1512 } /* pthread_types.h:66:1 */
   1513 
   1514 type X__pthread_mutexattr_st = struct {
   1515 	Fptma_magic   uint32
   1516 	F__ccgo_pad1  [4]byte
   1517 	Fptma_private uintptr
   1518 } /* pthread_types.h:67:1 */
   1519 
   1520 type X__pthread_cond_st = struct {
   1521 	Fptc_magic   uint32
   1522 	Fptc_lock    X__pthread_spin_t
   1523 	F__ccgo_pad1 [3]byte
   1524 	Fptc_waiters Pthread_queue_t
   1525 	Fptc_mutex   uintptr
   1526 	Fptc_private uintptr
   1527 } /* pthread_types.h:68:1 */
   1528 
   1529 type X__pthread_condattr_st = struct {
   1530 	Fptca_magic   uint32
   1531 	F__ccgo_pad1  [4]byte
   1532 	Fptca_private uintptr
   1533 } /* pthread_types.h:69:1 */
   1534 
   1535 type X__pthread_rwlock_st = struct {
   1536 	Fptr_magic     uint32
   1537 	Fptr_interlock X__pthread_spin_t
   1538 	F__ccgo_pad1   [3]byte
   1539 	Fptr_rblocked  Pthread_queue_t
   1540 	Fptr_wblocked  Pthread_queue_t
   1541 	Fptr_nreaders  uint32
   1542 	F__ccgo_pad2   [4]byte
   1543 	Fptr_owner     Pthread_t
   1544 	Fptr_private   uintptr
   1545 } /* pthread_types.h:71:1 */
   1546 
   1547 type X__pthread_rwlockattr_st = struct {
   1548 	Fptra_magic   uint32
   1549 	F__ccgo_pad1  [4]byte
   1550 	Fptra_private uintptr
   1551 } /* pthread_types.h:72:1 */
   1552 
   1553 type X__pthread_barrier_st = struct {
   1554 	Fptb_magic      uint32
   1555 	Fptb_lock       Pthread_spin_t
   1556 	F__ccgo_pad1    [3]byte
   1557 	Fptb_waiters    Pthread_queue_t
   1558 	Fptb_initcount  uint32
   1559 	Fptb_curcount   uint32
   1560 	Fptb_generation uint32
   1561 	F__ccgo_pad2    [4]byte
   1562 	Fptb_private    uintptr
   1563 } /* pthread_types.h:73:1 */
   1564 
   1565 type X__pthread_barrierattr_st = struct {
   1566 	Fptba_magic   uint32
   1567 	F__ccgo_pad1  [4]byte
   1568 	Fptba_private uintptr
   1569 } /* pthread_types.h:74:1 */
   1570 
   1571 type Pthread_t = uintptr                           /* pthread_types.h:76:29 */
   1572 type Pthread_attr_t = X__pthread_attr_st           /* pthread_types.h:77:34 */
   1573 type Pthread_mutex_t = X__pthread_mutex_st         /* pthread_types.h:78:35 */
   1574 type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
   1575 type Pthread_cond_t = X__pthread_cond_st           /* pthread_types.h:80:34 */
   1576 type Pthread_condattr_t = X__pthread_condattr_st   /* pthread_types.h:81:38 */
   1577 type X__pthread_once_st = struct {
   1578 	Fpto_mutex   Pthread_mutex_t
   1579 	Fpto_done    int32
   1580 	F__ccgo_pad1 [4]byte
   1581 } /* pthread_types.h:82:9 */
   1582 
   1583 type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
   1584 type X__pthread_spinlock_st = struct {
   1585 	Fpts_magic   uint32
   1586 	Fpts_spin    X__pthread_spin_t
   1587 	F__ccgo_pad1 [3]byte
   1588 	Fpts_flags   int32
   1589 } /* pthread_types.h:83:9 */
   1590 
   1591 type Pthread_spinlock_t = X__pthread_spinlock_st       /* pthread_types.h:83:38 */
   1592 type Pthread_rwlock_t = X__pthread_rwlock_st           /* pthread_types.h:84:36 */
   1593 type Pthread_rwlockattr_t = X__pthread_rwlockattr_st   /* pthread_types.h:85:40 */
   1594 type Pthread_barrier_t = X__pthread_barrier_st         /* pthread_types.h:86:37 */
   1595 type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
   1596 type Pthread_key_t = int32                             /* pthread_types.h:88:13 */
   1597 
   1598 type Div_t = struct {
   1599 	Fquot int32
   1600 	Frem  int32
   1601 } /* stdlib.h:59:3 */
   1602 
   1603 type Ldiv_t = struct {
   1604 	Fquot int64
   1605 	Frem  int64
   1606 } /* stdlib.h:64:3 */
   1607 
   1608 type Lldiv_t = struct {
   1609 	Fquot int64
   1610 	Frem  int64
   1611 } /* stdlib.h:74:3 */
   1612 
   1613 type Qdiv_t = struct {
   1614 	Fquot Quad_t
   1615 	Frem  Quad_t
   1616 } /* stdlib.h:81:3 */
   1617 
   1618 type Locale_t = uintptr /* stdlib.h:357:25 */
   1619 
   1620 var _ int8 /* gen.c:2:13: */