gtsocial-umbx

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

uuid_netbsd_arm.go (69765B)


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