gtsocial-umbx

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

time_netbsd_amd64.go (112028B)


      1 // Code generated by 'ccgo time/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 time/time_netbsd_amd64.go -pkgname time', DO NOT EDIT.
      2 
      3 package time
      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 	CLOCKS_PER_SEC                = 100                  // time.h:73:1:
     21 	CLOCK_MONOTONIC               = 3                    // time.h:297:1:
     22 	CLOCK_PROCESS_CPUTIME_ID      = 0x40000000           // time.h:299:1:
     23 	CLOCK_PROF                    = 2                    // time.h:296:1:
     24 	CLOCK_REALTIME                = 0                    // time.h:294:1:
     25 	CLOCK_THREAD_CPUTIME_ID       = 0x20000000           // time.h:298:1:
     26 	CLOCK_VIRTUAL                 = 1                    // time.h:295:1:
     27 	FD_SETSIZE                    = 256                  // fd_set.h:59:1:
     28 	INT16_MAX                     = 32767                // common_int_limits.h:53:1:
     29 	INT16_MIN                     = -32768               // common_int_limits.h:47:1:
     30 	INT32_MAX                     = 2147483647           // common_int_limits.h:54:1:
     31 	INT32_MIN                     = -2147483648          // common_int_limits.h:48:1:
     32 	INT64_MAX                     = 9223372036854775807  // common_int_limits.h:55:1:
     33 	INT64_MIN                     = -9223372036854775808 // common_int_limits.h:49:1:
     34 	INT8_MAX                      = 127                  // common_int_limits.h:52:1:
     35 	INT8_MIN                      = -128                 // common_int_limits.h:46:1:
     36 	INTMAX_MAX                    = 9223372036854775807  // common_int_limits.h:111:1:
     37 	INTMAX_MIN                    = -9223372036854775808 // common_int_limits.h:110:1:
     38 	INTPTR_MAX                    = 9223372036854775807  // common_int_limits.h:105:1:
     39 	INTPTR_MIN                    = -9223372036854775808 // common_int_limits.h:104:1:
     40 	INT_FAST16_MAX                = 2147483647           // common_int_limits.h:93:1:
     41 	INT_FAST16_MIN                = -2147483648          // common_int_limits.h:87:1:
     42 	INT_FAST32_MAX                = 2147483647           // common_int_limits.h:94:1:
     43 	INT_FAST32_MIN                = -2147483648          // common_int_limits.h:88:1:
     44 	INT_FAST64_MAX                = 9223372036854775807  // common_int_limits.h:95:1:
     45 	INT_FAST64_MIN                = -9223372036854775808 // common_int_limits.h:89:1:
     46 	INT_FAST8_MAX                 = 2147483647           // common_int_limits.h:92:1:
     47 	INT_FAST8_MIN                 = -2147483648          // common_int_limits.h:86:1:
     48 	INT_LEAST16_MAX               = 32767                // common_int_limits.h:73:1:
     49 	INT_LEAST16_MIN               = -32768               // common_int_limits.h:67:1:
     50 	INT_LEAST32_MAX               = 2147483647           // common_int_limits.h:74:1:
     51 	INT_LEAST32_MIN               = -2147483648          // common_int_limits.h:68:1:
     52 	INT_LEAST64_MAX               = 9223372036854775807  // common_int_limits.h:75:1:
     53 	INT_LEAST64_MIN               = -9223372036854775808 // common_int_limits.h:69:1:
     54 	INT_LEAST8_MAX                = 127                  // common_int_limits.h:72:1:
     55 	INT_LEAST8_MIN                = -128                 // common_int_limits.h:66:1:
     56 	ITIMER_MONOTONIC              = 3                    // time.h:278:1:
     57 	ITIMER_PROF                   = 2                    // time.h:277:1:
     58 	ITIMER_REAL                   = 0                    // time.h:275:1:
     59 	ITIMER_VIRTUAL                = 1                    // time.h:276:1:
     60 	LITTLE_ENDIAN                 = 1234                 // endian.h:100:1:
     61 	NBBY                          = 8                    // types.h:316:1:
     62 	NFDBITS                       = 32                   // fd_set.h:93:1:
     63 	NODEVMAJOR                    = -1                   // types.h:258:1:
     64 	PDP_ENDIAN                    = 3412                 // endian.h:102:1:
     65 	PTRDIFF_MAX                   = 9223372036854775807  // common_int_limits.h:121:1:
     66 	PTRDIFF_MIN                   = -9223372036854775808 // common_int_limits.h:120:1:
     67 	SIG_ATOMIC_MAX                = 2147483647           // common_int_limits.h:125:1:
     68 	SIG_ATOMIC_MIN                = -2147483648          // common_int_limits.h:124:1:
     69 	SIZE_MAX                      = 18446744073709551615 // common_int_limits.h:128:1:
     70 	TIMER_ABSTIME                 = 0x1                  // time.h:304:1:
     71 	TIMER_RELTIME                 = 0x0                  // time.h:302:1:
     72 	TIME_UTC                      = 1                    // time.h:238:1:
     73 	UINT16_MAX                    = 65535                // common_int_limits.h:59:1:
     74 	UINT32_MAX                    = 4294967295           // common_int_limits.h:60:1:
     75 	UINT64_MAX                    = 18446744073709551615 // common_int_limits.h:61:1:
     76 	UINT8_MAX                     = 255                  // common_int_limits.h:58:1:
     77 	UINTMAX_MAX                   = 18446744073709551615 // common_int_limits.h:112:1:
     78 	UINTPTR_MAX                   = 18446744073709551615 // common_int_limits.h:106:1:
     79 	UINT_FAST16_MAX               = 4294967295           // common_int_limits.h:99:1:
     80 	UINT_FAST32_MAX               = 4294967295           // common_int_limits.h:100:1:
     81 	UINT_FAST64_MAX               = 18446744073709551615 // common_int_limits.h:101:1:
     82 	UINT_FAST8_MAX                = 4294967295           // common_int_limits.h:98:1:
     83 	UINT_LEAST16_MAX              = 65535                // common_int_limits.h:79:1:
     84 	UINT_LEAST32_MAX              = 4294967295           // common_int_limits.h:80:1:
     85 	UINT_LEAST64_MAX              = 18446744073709551615 // common_int_limits.h:81:1:
     86 	UINT_LEAST8_MAX               = 255                  // common_int_limits.h:78:1:
     87 	WCHAR_MAX                     = 0x7fffffff           // wchar_limits.h:41:1:
     88 	WCHAR_MIN                     = -2147483648          // wchar_limits.h:40:1:
     89 	WINT_MAX                      = 0x7fffffff           // wchar_limits.h:45:1:
     90 	WINT_MIN                      = -2147483648          // wchar_limits.h:44:1:
     91 	X_AMD64_BYTE_SWAP_H_          = 0                    // byte_swap.h:37:1:
     92 	X_AMD64_INT_CONST_H_          = 0                    // int_const.h:33:1:
     93 	X_AMD64_INT_LIMITS_H_         = 0                    // int_limits.h:33:1:
     94 	X_AMD64_INT_MWGWTYPES_H_      = 0                    // int_mwgwtypes.h:33:1:
     95 	X_AMD64_INT_TYPES_H_          = 0                    // int_types.h:35:1:
     96 	X_AMD64_WCHAR_LIMITS_H_       = 0                    // wchar_limits.h:33:1:
     97 	X_BIG_ENDIAN                  = 4321                 // endian.h:44:1:
     98 	X_BSD_INT16_T_                = 0                    // types.h:65:1:
     99 	X_BSD_INT32_T_                = 0                    // types.h:75:1:
    100 	X_BSD_INT64_T_                = 0                    // types.h:85:1:
    101 	X_BSD_INT8_T_                 = 0                    // types.h:55:1:
    102 	X_BSD_INTPTR_T_               = 0                    // stdint.h:80:1:
    103 	X_BSD_UINT16_T_               = 0                    // types.h:70:1:
    104 	X_BSD_UINT32_T_               = 0                    // types.h:80:1:
    105 	X_BSD_UINT64_T_               = 0                    // types.h:90:1:
    106 	X_BSD_UINT8_T_                = 0                    // types.h:60:1:
    107 	X_BSD_UINTPTR_T_              = 0                    // stdint.h:85:1:
    108 	X_BYTE_ORDER                  = 1234                 // endian_machdep.h:3:1:
    109 	X_FILE_OFFSET_BITS            = 64                   // <builtin>:25:1:
    110 	X_LIB_PTHREAD_TYPES_H         = 0                    // pthread_types.h:33:1:
    111 	X_LITTLE_ENDIAN               = 1234                 // endian.h:43:1:
    112 	X_LP64                        = 1                    // <predefined>:268:1:
    113 	X_NETBSD_SOURCE               = 1                    // featuretest.h:70:1:
    114 	X_PDP_ENDIAN                  = 3412                 // endian.h:45:1:
    115 	X_PT_BARRIERATTR_DEAD         = 0xDEAD0808           // pthread_types.h:278:1:
    116 	X_PT_BARRIERATTR_MAGIC        = 0x88880808           // pthread_types.h:277:1:
    117 	X_PT_BARRIER_DEAD             = 0xDEAD0008           // pthread_types.h:270:1:
    118 	X_PT_BARRIER_MAGIC            = 0x88880008           // pthread_types.h:269:1:
    119 	X_PT_CONDATTR_DEAD            = 0xDEAD0006           // pthread_types.h:197:1:
    120 	X_PT_CONDATTR_MAGIC           = 0x66660006           // pthread_types.h:196:1:
    121 	X_PT_COND_DEAD                = 0xDEAD0005           // pthread_types.h:182:1:
    122 	X_PT_COND_MAGIC               = 0x55550005           // pthread_types.h:181:1:
    123 	X_PT_MUTEXATTR_DEAD           = 0xDEAD0004           // pthread_types.h:167:1:
    124 	X_PT_MUTEXATTR_MAGIC          = 0x44440004           // pthread_types.h:166:1:
    125 	X_PT_MUTEX_DEAD               = 0xDEAD0003           // pthread_types.h:139:1:
    126 	X_PT_MUTEX_MAGIC              = 0x33330003           // pthread_types.h:138:1:
    127 	X_PT_RWLOCKATTR_DEAD          = 0xDEAD0909           // pthread_types.h:253:1:
    128 	X_PT_RWLOCKATTR_MAGIC         = 0x99990909           // pthread_types.h:252:1:
    129 	X_PT_RWLOCK_DEAD              = 0xDEAD0009           // pthread_types.h:236:1:
    130 	X_PT_RWLOCK_MAGIC             = 0x99990009           // pthread_types.h:235:1:
    131 	X_PT_SPINLOCK_DEAD            = 0xDEAD0007           // pthread_types.h:213:1:
    132 	X_PT_SPINLOCK_MAGIC           = 0x77770007           // pthread_types.h:212:1:
    133 	X_PT_SPINLOCK_PSHARED         = 0x00000001           // pthread_types.h:214:1:
    134 	X_QUAD_HIGHWORD               = 1                    // endian.h:84:1:
    135 	X_QUAD_LOWWORD                = 0                    // endian.h:85:1:
    136 	X_SYS_ANSI_H_                 = 0                    // ansi.h:33:1:
    137 	X_SYS_BSWAP_H_                = 0                    // bswap.h:6:1:
    138 	X_SYS_CDEFS_ELF_H_            = 0                    // cdefs_elf.h:31:1:
    139 	X_SYS_CDEFS_H_                = 0                    // cdefs.h:37:1:
    140 	X_SYS_COMMON_ANSI_H_          = 0                    // common_ansi.h:33:1:
    141 	X_SYS_COMMON_INT_LIMITS_H_    = 0                    // common_int_limits.h:33:1:
    142 	X_SYS_COMMON_INT_MWGWTYPES_H_ = 0                    // common_int_mwgwtypes.h:33:1:
    143 	X_SYS_COMMON_INT_TYPES_H_     = 0                    // common_int_types.h:33:1:
    144 	X_SYS_ENDIAN_H_               = 0                    // endian.h:35:1:
    145 	X_SYS_FD_SET_H_               = 0                    // fd_set.h:35:1:
    146 	X_SYS_IDTYPE_H_               = 0                    // idtype.h:32:1:
    147 	X_SYS_NULL_H_                 = 0                    // null.h:9:1:
    148 	X_SYS_SELECT_H_               = 0                    // select.h:35:1:
    149 	X_SYS_SIGTYPES_H_             = 0                    // sigtypes.h:40:1:
    150 	X_SYS_STDINT_H_               = 0                    // stdint.h:33:1:
    151 	X_SYS_TIMESPEC_H_             = 0                    // timespec.h:38:1:
    152 	X_SYS_TIME_H_                 = 0                    // time.h:35:1:
    153 	X_SYS_TYPES_H_                = 0                    // types.h:40:1:
    154 	X_TIME_H_                     = 0                    // time.h:40:1:
    155 	X_X86_64_BSWAP_H_             = 0                    // bswap.h:6:1:
    156 	X_X86_64_CDEFS_H_             = 0                    // cdefs.h:4:1:
    157 	X_X86_64_TYPES_H_             = 0                    // types.h:35:1:
    158 )
    159 
    160 //	$NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
    161 
    162 // -
    163 // Copyright (c) 2016 The NetBSD Foundation, Inc.
    164 // All rights reserved.
    165 //
    166 // This code is derived from software contributed to The NetBSD Foundation
    167 // by Christos Zoulas.
    168 //
    169 // Redistribution and use in source and binary forms, with or without
    170 // modification, are permitted provided that the following conditions
    171 // are met:
    172 // 1. Redistributions of source code must retain the above copyright
    173 //    notice, this list of conditions and the following disclaimer.
    174 // 2. Redistributions in binary form must reproduce the above copyright
    175 //    notice, this list of conditions and the following disclaimer in the
    176 //    documentation and/or other materials provided with the distribution.
    177 //
    178 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    179 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    180 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    181 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    182 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    183 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    184 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    185 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    186 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    187 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    188 // POSSIBILITY OF SUCH DAMAGE.
    189 
    190 // Using the solaris constants, some of them are not applicable to us
    191 // Do not re-order the list, or add elements in the middle as this will
    192 // break the ABI of the system calls using this.  We set a high private
    193 // maximum so that new values can be added in the future without
    194 // changing the width of the type.
    195 const ( /* idtype.h:41:1: */
    196 	P_MYID        = -1 // Me/my process group
    197 	P_ALL         = 0  // All processes.
    198 	P_PID         = 1  // A process identifier.
    199 	P_LWPID       = 2  // An LWP identifier.
    200 	P_PPID        = 3  // A parent process identifier.
    201 	P_PGID        = 4  // A process group identifier.
    202 	P_SID         = 5  // A session identifier.
    203 	P_CID         = 6  // A scheduling class identifier.
    204 	P_UID         = 7  // A user identifier.
    205 	P_GID         = 8  // A group identifier.
    206 	P_TASKID      = 9  // A task identifier.
    207 	P_PROJID      = 10 // A project identifier.
    208 	P_POOLID      = 11 // A pool identifier.
    209 	P_ZONEID      = 12 // A zone identifier.
    210 	P_CTID        = 13 // A (process) contract identifier.
    211 	P_CPUID       = 14 // CPU identifier.
    212 	P_PSETID      = 15 // Processor set identifier.
    213 	X_P_MAXIDTYPE = 2147483647
    214 )
    215 
    216 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    217 
    218 type Size_t = uint64 /* <builtin>:9:23 */
    219 
    220 type Wchar_t = int32 /* <builtin>:15:24 */
    221 
    222 type X__int128_t = struct {
    223 	Flo int64
    224 	Fhi int64
    225 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    226 type X__uint128_t = struct {
    227 	Flo uint64
    228 	Fhi uint64
    229 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    230 
    231 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    232 type X__float128 = float64        /* <builtin>:47:21 */
    233 
    234 // return true if value 'a' fits in type 't'
    235 
    236 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    237 
    238 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    239 // Public domain.
    240 //
    241 // NOTE: Do not protect this header against multiple inclusion.  Doing
    242 // so can have subtle side-effects due to header file inclusion order
    243 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    244 // protect each CPP macro that we want to supply.
    245 
    246 // Feature-test macros are defined by several standards, and allow an
    247 // application to specify what symbols they want the system headers to
    248 // expose, and hence what standard they want them to conform to.
    249 // There are two classes of feature-test macros.  The first class
    250 // specify complete standards, and if one of these is defined, header
    251 // files will try to conform to the relevant standard.  They are:
    252 //
    253 // ANSI macros:
    254 // _ANSI_SOURCE			ANSI C89
    255 //
    256 // POSIX macros:
    257 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    258 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    259 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    260 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    261 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    262 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    263 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    264 //
    265 // X/Open macros:
    266 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    267 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    268 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    269 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    270 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    271 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    272 //
    273 // NetBSD macros:
    274 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    275 //
    276 // If more than one of these "major" feature-test macros is defined,
    277 // then the set of facilities provided (and namespace used) is the
    278 // union of that specified by the relevant standards, and in case of
    279 // conflict, the earlier standard in the above list has precedence (so
    280 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    281 // of rename() that's used is the POSIX one).  If none of the "major"
    282 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    283 //
    284 // There are also "minor" feature-test macros, which enable extra
    285 // functionality in addition to some base standard.  They should be
    286 // defined along with one of the "major" macros.  The "minor" macros
    287 // are:
    288 //
    289 // _REENTRANT
    290 // _ISOC99_SOURCE
    291 // _ISOC11_SOURCE
    292 // _LARGEFILE_SOURCE		Large File Support
    293 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    294 
    295 //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
    296 
    297 //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
    298 
    299 // -
    300 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    301 // All rights reserved.
    302 //
    303 // This code is derived from software contributed to The NetBSD Foundation
    304 // by Matt Thomas of 3am Software Foundry.
    305 //
    306 // Redistribution and use in source and binary forms, with or without
    307 // modification, are permitted provided that the following conditions
    308 // are met:
    309 // 1. Redistributions of source code must retain the above copyright
    310 //    notice, this list of conditions and the following disclaimer.
    311 // 2. Redistributions in binary form must reproduce the above copyright
    312 //    notice, this list of conditions and the following disclaimer in the
    313 //    documentation and/or other materials provided with the distribution.
    314 //
    315 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    316 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    317 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    318 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    319 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    320 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    321 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    322 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    323 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    324 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    325 // POSSIBILITY OF SUCH DAMAGE.
    326 
    327 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
    328 
    329 // * Copyright (c) 1991, 1993
    330 //	The Regents of the University of California.  All rights reserved.
    331 //
    332 // This code is derived from software contributed to Berkeley by
    333 // Berkeley Software Design, Inc.
    334 //
    335 // Redistribution and use in source and binary forms, with or without
    336 // modification, are permitted provided that the following conditions
    337 // are met:
    338 // 1. Redistributions of source code must retain the above copyright
    339 //    notice, this list of conditions and the following disclaimer.
    340 // 2. Redistributions in binary form must reproduce the above copyright
    341 //    notice, this list of conditions and the following disclaimer in the
    342 //    documentation and/or other materials provided with the distribution.
    343 // 3. Neither the name of the University nor the names of its contributors
    344 //    may be used to endorse or promote products derived from this software
    345 //    without specific prior written permission.
    346 //
    347 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    348 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    349 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    350 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    351 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    352 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    353 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    354 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    355 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    356 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    357 // SUCH DAMAGE.
    358 //
    359 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    360 
    361 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
    362 
    363 // -
    364 // Copyright (c) 1990 The Regents of the University of California.
    365 // All rights reserved.
    366 //
    367 // Redistribution and use in source and binary forms, with or without
    368 // modification, are permitted provided that the following conditions
    369 // are met:
    370 // 1. Redistributions of source code must retain the above copyright
    371 //    notice, this list of conditions and the following disclaimer.
    372 // 2. Redistributions in binary form must reproduce the above copyright
    373 //    notice, this list of conditions and the following disclaimer in the
    374 //    documentation and/or other materials provided with the distribution.
    375 // 3. Neither the name of the University nor the names of its contributors
    376 //    may be used to endorse or promote products derived from this software
    377 //    without specific prior written permission.
    378 //
    379 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    380 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    381 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    382 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    383 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    384 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    385 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    386 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    387 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    388 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    389 // SUCH DAMAGE.
    390 //
    391 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
    392 
    393 //	$NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
    394 
    395 // -
    396 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    397 // All rights reserved.
    398 //
    399 // This code is derived from software contributed to The NetBSD Foundation
    400 // by Joerg Sonnenberger.
    401 //
    402 // Redistribution and use in source and binary forms, with or without
    403 // modification, are permitted provided that the following conditions
    404 // are met:
    405 // 1. Redistributions of source code must retain the above copyright
    406 //    notice, this list of conditions and the following disclaimer.
    407 // 2. Redistributions in binary form must reproduce the above copyright
    408 //    notice, this list of conditions and the following disclaimer in the
    409 //    documentation and/or other materials provided with the distribution.
    410 //
    411 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    412 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    413 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    414 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    415 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    416 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    417 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    418 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    419 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    420 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    421 // POSSIBILITY OF SUCH DAMAGE.
    422 
    423 // 7.18.1 Integer types
    424 
    425 // 7.18.1.1 Exact-width integer types
    426 
    427 type X__int8_t = int8     /* common_int_types.h:45:27 */
    428 type X__uint8_t = uint8   /* common_int_types.h:46:27 */
    429 type X__int16_t = int16   /* common_int_types.h:47:27 */
    430 type X__uint16_t = uint16 /* common_int_types.h:48:27 */
    431 type X__int32_t = int32   /* common_int_types.h:49:27 */
    432 type X__uint32_t = uint32 /* common_int_types.h:50:27 */
    433 type X__int64_t = int64   /* common_int_types.h:51:27 */
    434 type X__uint64_t = uint64 /* common_int_types.h:52:27 */
    435 
    436 // 7.18.1.4 Integer types capable of holding object pointers
    437 
    438 type X__intptr_t = int64   /* common_int_types.h:58:27 */
    439 type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
    440 
    441 // Types which are fundamental to the implementation and may appear in
    442 // more than one standard header are defined here.  Standard headers
    443 // then use:
    444 //	#ifdef	_BSD_SIZE_T_
    445 //	typedef	_BSD_SIZE_T_ size_t;
    446 //	#undef	_BSD_SIZE_T_
    447 //	#endif
    448 
    449 //	$NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
    450 
    451 // Written by Klaus Klein <kleink@NetBSD.org>, December 22, 1999.
    452 // Public domain.
    453 
    454 type Clock_t = uint32 /* time.h:49:23 */
    455 
    456 type Time_t = X__int64_t /* time.h:54:22 */
    457 
    458 type Clockid_t = int32 /* time.h:64:25 */
    459 
    460 type Timer_t = int32 /* time.h:69:23 */
    461 
    462 type Tm = struct {
    463 	Ftm_sec      int32
    464 	Ftm_min      int32
    465 	Ftm_hour     int32
    466 	Ftm_mday     int32
    467 	Ftm_mon      int32
    468 	Ftm_year     int32
    469 	Ftm_wday     int32
    470 	Ftm_yday     int32
    471 	Ftm_isdst    int32
    472 	F__ccgo_pad1 [4]byte
    473 	Ftm_gmtoff   int64
    474 	Ftm_zone     uintptr
    475 } /* time.h:75:1 */
    476 
    477 // ISO/IEC 9899:201x 7.27.1/3 Components of time
    478 //	$NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
    479 
    480 // Copyright (c) 1982, 1986, 1993
    481 //	The Regents of the University of California.  All rights reserved.
    482 //
    483 // Redistribution and use in source and binary forms, with or without
    484 // modification, are permitted provided that the following conditions
    485 // are met:
    486 // 1. Redistributions of source code must retain the above copyright
    487 //    notice, this list of conditions and the following disclaimer.
    488 // 2. Redistributions in binary form must reproduce the above copyright
    489 //    notice, this list of conditions and the following disclaimer in the
    490 //    documentation and/or other materials provided with the distribution.
    491 // 3. Neither the name of the University nor the names of its contributors
    492 //    may be used to endorse or promote products derived from this software
    493 //    without specific prior written permission.
    494 //
    495 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    496 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    497 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    498 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    499 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    500 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    501 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    502 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    503 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    504 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    505 // SUCH DAMAGE.
    506 //
    507 //	@(#)time.h	8.5 (Berkeley) 5/4/95
    508 //
    509 // Extracted by Kamil Rytarowski from:
    510 // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
    511 
    512 //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
    513 
    514 // -
    515 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
    516 // All rights reserved.
    517 //
    518 // This code is derived from software contributed to The NetBSD Foundation
    519 // by Jun-ichiro itojun Hagino and by Klaus Klein.
    520 //
    521 // Redistribution and use in source and binary forms, with or without
    522 // modification, are permitted provided that the following conditions
    523 // are met:
    524 // 1. Redistributions of source code must retain the above copyright
    525 //    notice, this list of conditions and the following disclaimer.
    526 // 2. Redistributions in binary form must reproduce the above copyright
    527 //    notice, this list of conditions and the following disclaimer in the
    528 //    documentation and/or other materials provided with the distribution.
    529 //
    530 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    531 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    532 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    533 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    534 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    535 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    536 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    537 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    538 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    539 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    540 // POSSIBILITY OF SUCH DAMAGE.
    541 
    542 //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
    543 
    544 //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
    545 
    546 // -
    547 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    548 // All rights reserved.
    549 //
    550 // This code is derived from software contributed to The NetBSD Foundation
    551 // by Matt Thomas of 3am Software Foundry.
    552 //
    553 // Redistribution and use in source and binary forms, with or without
    554 // modification, are permitted provided that the following conditions
    555 // are met:
    556 // 1. Redistributions of source code must retain the above copyright
    557 //    notice, this list of conditions and the following disclaimer.
    558 // 2. Redistributions in binary form must reproduce the above copyright
    559 //    notice, this list of conditions and the following disclaimer in the
    560 //    documentation and/or other materials provided with the distribution.
    561 //
    562 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    563 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    564 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    565 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    566 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    567 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    568 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    569 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    570 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    571 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    572 // POSSIBILITY OF SUCH DAMAGE.
    573 
    574 type X__caddr_t = uintptr        /* ansi.h:37:14 */ // core address
    575 type X__gid_t = X__uint32_t      /* ansi.h:38:20 */ // group id
    576 type X__in_addr_t = X__uint32_t  /* ansi.h:39:20 */ // IP(v4) address
    577 type X__in_port_t = X__uint16_t  /* ansi.h:40:20 */ // "Internet" port number
    578 type X__mode_t = X__uint32_t     /* ansi.h:41:20 */ // file permissions
    579 type X__off_t = X__int64_t       /* ansi.h:42:19 */ // file offset
    580 type X__pid_t = X__int32_t       /* ansi.h:43:19 */ // process id
    581 type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
    582 type X__socklen_t = uint32       /* ansi.h:45:22 */ // socket-related datum length
    583 type X__uid_t = X__uint32_t      /* ansi.h:46:20 */ // user id
    584 type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
    585 type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
    586 type X__wctrans_t = uintptr      /* ansi.h:51:32 */
    587 type X__wctype_t = uintptr       /* ansi.h:54:31 */
    588 
    589 // mbstate_t is an opaque object to keep conversion state, during multibyte
    590 // stream conversions.  The content must not be referenced by user programs.
    591 type X__mbstate_t = struct {
    592 	F__mbstateL  X__int64_t
    593 	F__ccgo_pad1 [120]byte
    594 } /* ansi.h:63:3 */
    595 
    596 type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
    597 
    598 type Timespec = struct {
    599 	Ftv_sec  Time_t
    600 	Ftv_nsec int64
    601 } /* timespec.h:47:1 */
    602 
    603 //	$NetBSD: time.h,v 1.79 2017/01/17 15:28:34 maya Exp $
    604 
    605 // Copyright (c) 1982, 1986, 1993
    606 //	The Regents of the University of California.  All rights reserved.
    607 //
    608 // Redistribution and use in source and binary forms, with or without
    609 // modification, are permitted provided that the following conditions
    610 // are met:
    611 // 1. Redistributions of source code must retain the above copyright
    612 //    notice, this list of conditions and the following disclaimer.
    613 // 2. Redistributions in binary form must reproduce the above copyright
    614 //    notice, this list of conditions and the following disclaimer in the
    615 //    documentation and/or other materials provided with the distribution.
    616 // 3. Neither the name of the University nor the names of its contributors
    617 //    may be used to endorse or promote products derived from this software
    618 //    without specific prior written permission.
    619 //
    620 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    621 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    622 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    623 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    624 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    625 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    626 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    627 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    628 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    629 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    630 // SUCH DAMAGE.
    631 //
    632 //	@(#)time.h	8.5 (Berkeley) 5/4/95
    633 
    634 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    635 
    636 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    637 // Public domain.
    638 //
    639 // NOTE: Do not protect this header against multiple inclusion.  Doing
    640 // so can have subtle side-effects due to header file inclusion order
    641 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    642 // protect each CPP macro that we want to supply.
    643 
    644 // Feature-test macros are defined by several standards, and allow an
    645 // application to specify what symbols they want the system headers to
    646 // expose, and hence what standard they want them to conform to.
    647 // There are two classes of feature-test macros.  The first class
    648 // specify complete standards, and if one of these is defined, header
    649 // files will try to conform to the relevant standard.  They are:
    650 //
    651 // ANSI macros:
    652 // _ANSI_SOURCE			ANSI C89
    653 //
    654 // POSIX macros:
    655 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    656 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    657 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    658 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    659 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    660 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    661 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    662 //
    663 // X/Open macros:
    664 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    665 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    666 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    667 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    668 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    669 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    670 //
    671 // NetBSD macros:
    672 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    673 //
    674 // If more than one of these "major" feature-test macros is defined,
    675 // then the set of facilities provided (and namespace used) is the
    676 // union of that specified by the relevant standards, and in case of
    677 // conflict, the earlier standard in the above list has precedence (so
    678 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    679 // of rename() that's used is the POSIX one).  If none of the "major"
    680 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    681 //
    682 // There are also "minor" feature-test macros, which enable extra
    683 // functionality in addition to some base standard.  They should be
    684 // defined along with one of the "major" macros.  The "minor" macros
    685 // are:
    686 //
    687 // _REENTRANT
    688 // _ISOC99_SOURCE
    689 // _ISOC11_SOURCE
    690 // _LARGEFILE_SOURCE		Large File Support
    691 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    692 
    693 //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
    694 
    695 // -
    696 // Copyright (c) 1982, 1986, 1991, 1993, 1994
    697 //	The Regents of the University of California.  All rights reserved.
    698 // (c) UNIX System Laboratories, Inc.
    699 // All or some portions of this file are derived from material licensed
    700 // to the University of California by American Telephone and Telegraph
    701 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
    702 // the permission of UNIX System Laboratories, Inc.
    703 //
    704 // Redistribution and use in source and binary forms, with or without
    705 // modification, are permitted provided that the following conditions
    706 // are met:
    707 // 1. Redistributions of source code must retain the above copyright
    708 //    notice, this list of conditions and the following disclaimer.
    709 // 2. Redistributions in binary form must reproduce the above copyright
    710 //    notice, this list of conditions and the following disclaimer in the
    711 //    documentation and/or other materials provided with the distribution.
    712 // 3. Neither the name of the University nor the names of its contributors
    713 //    may be used to endorse or promote products derived from this software
    714 //    without specific prior written permission.
    715 //
    716 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    717 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    718 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    719 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    720 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    721 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    722 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    723 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    724 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    725 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    726 // SUCH DAMAGE.
    727 //
    728 //	@(#)types.h	8.4 (Berkeley) 1/21/94
    729 
    730 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    731 
    732 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    733 // Public domain.
    734 //
    735 // NOTE: Do not protect this header against multiple inclusion.  Doing
    736 // so can have subtle side-effects due to header file inclusion order
    737 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    738 // protect each CPP macro that we want to supply.
    739 
    740 // Feature-test macros are defined by several standards, and allow an
    741 // application to specify what symbols they want the system headers to
    742 // expose, and hence what standard they want them to conform to.
    743 // There are two classes of feature-test macros.  The first class
    744 // specify complete standards, and if one of these is defined, header
    745 // files will try to conform to the relevant standard.  They are:
    746 //
    747 // ANSI macros:
    748 // _ANSI_SOURCE			ANSI C89
    749 //
    750 // POSIX macros:
    751 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    752 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    753 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    754 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    755 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    756 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    757 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    758 //
    759 // X/Open macros:
    760 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    761 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    762 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    763 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    764 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    765 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    766 //
    767 // NetBSD macros:
    768 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    769 //
    770 // If more than one of these "major" feature-test macros is defined,
    771 // then the set of facilities provided (and namespace used) is the
    772 // union of that specified by the relevant standards, and in case of
    773 // conflict, the earlier standard in the above list has precedence (so
    774 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    775 // of rename() that's used is the POSIX one).  If none of the "major"
    776 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    777 //
    778 // There are also "minor" feature-test macros, which enable extra
    779 // functionality in addition to some base standard.  They should be
    780 // defined along with one of the "major" macros.  The "minor" macros
    781 // are:
    782 //
    783 // _REENTRANT
    784 // _ISOC99_SOURCE
    785 // _ISOC11_SOURCE
    786 // _LARGEFILE_SOURCE		Large File Support
    787 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    788 
    789 // Machine type dependent parameters.
    790 //	$NetBSD: types.h,v 1.60 2019/04/06 03:06:24 thorpej Exp $
    791 
    792 // -
    793 // Copyright (c) 1990 The Regents of the University of California.
    794 // All rights reserved.
    795 //
    796 // Redistribution and use in source and binary forms, with or without
    797 // modification, are permitted provided that the following conditions
    798 // are met:
    799 // 1. Redistributions of source code must retain the above copyright
    800 //    notice, this list of conditions and the following disclaimer.
    801 // 2. Redistributions in binary form must reproduce the above copyright
    802 //    notice, this list of conditions and the following disclaimer in the
    803 //    documentation and/or other materials provided with the distribution.
    804 // 3. Neither the name of the University nor the names of its contributors
    805 //    may be used to endorse or promote products derived from this software
    806 //    without specific prior written permission.
    807 //
    808 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    809 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    810 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    811 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    812 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    813 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    814 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    815 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    816 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    817 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    818 // SUCH DAMAGE.
    819 //
    820 //	@(#)types.h	7.5 (Berkeley) 3/9/91
    821 
    822 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
    823 
    824 // * Copyright (c) 1991, 1993
    825 //	The Regents of the University of California.  All rights reserved.
    826 //
    827 // This code is derived from software contributed to Berkeley by
    828 // Berkeley Software Design, Inc.
    829 //
    830 // Redistribution and use in source and binary forms, with or without
    831 // modification, are permitted provided that the following conditions
    832 // are met:
    833 // 1. Redistributions of source code must retain the above copyright
    834 //    notice, this list of conditions and the following disclaimer.
    835 // 2. Redistributions in binary form must reproduce the above copyright
    836 //    notice, this list of conditions and the following disclaimer in the
    837 //    documentation and/or other materials provided with the distribution.
    838 // 3. Neither the name of the University nor the names of its contributors
    839 //    may be used to endorse or promote products derived from this software
    840 //    without specific prior written permission.
    841 //
    842 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    843 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    844 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    845 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    846 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    847 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    848 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    849 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    850 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    851 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    852 // SUCH DAMAGE.
    853 //
    854 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
    855 
    856 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
    857 
    858 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
    859 // Public domain.
    860 //
    861 // NOTE: Do not protect this header against multiple inclusion.  Doing
    862 // so can have subtle side-effects due to header file inclusion order
    863 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
    864 // protect each CPP macro that we want to supply.
    865 
    866 // Feature-test macros are defined by several standards, and allow an
    867 // application to specify what symbols they want the system headers to
    868 // expose, and hence what standard they want them to conform to.
    869 // There are two classes of feature-test macros.  The first class
    870 // specify complete standards, and if one of these is defined, header
    871 // files will try to conform to the relevant standard.  They are:
    872 //
    873 // ANSI macros:
    874 // _ANSI_SOURCE			ANSI C89
    875 //
    876 // POSIX macros:
    877 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
    878 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
    879 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
    880 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
    881 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
    882 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
    883 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
    884 //
    885 // X/Open macros:
    886 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
    887 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
    888 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
    889 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
    890 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
    891 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
    892 //
    893 // NetBSD macros:
    894 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
    895 //
    896 // If more than one of these "major" feature-test macros is defined,
    897 // then the set of facilities provided (and namespace used) is the
    898 // union of that specified by the relevant standards, and in case of
    899 // conflict, the earlier standard in the above list has precedence (so
    900 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
    901 // of rename() that's used is the POSIX one).  If none of the "major"
    902 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
    903 //
    904 // There are also "minor" feature-test macros, which enable extra
    905 // functionality in addition to some base standard.  They should be
    906 // defined along with one of the "major" macros.  The "minor" macros
    907 // are:
    908 //
    909 // _REENTRANT
    910 // _ISOC99_SOURCE
    911 // _ISOC11_SOURCE
    912 // _LARGEFILE_SOURCE		Large File Support
    913 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
    914 
    915 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
    916 
    917 // -
    918 // Copyright (c) 1990 The Regents of the University of California.
    919 // All rights reserved.
    920 //
    921 // Redistribution and use in source and binary forms, with or without
    922 // modification, are permitted provided that the following conditions
    923 // are met:
    924 // 1. Redistributions of source code must retain the above copyright
    925 //    notice, this list of conditions and the following disclaimer.
    926 // 2. Redistributions in binary form must reproduce the above copyright
    927 //    notice, this list of conditions and the following disclaimer in the
    928 //    documentation and/or other materials provided with the distribution.
    929 // 3. Neither the name of the University nor the names of its contributors
    930 //    may be used to endorse or promote products derived from this software
    931 //    without specific prior written permission.
    932 //
    933 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    934 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    935 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    936 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    937 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    938 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    939 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    940 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    941 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    942 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    943 // SUCH DAMAGE.
    944 //
    945 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
    946 
    947 type X__register_t = int64           /* types.h:68:19 */
    948 type X__cpu_simple_lock_nv_t = uint8 /* types.h:69:24 */
    949 
    950 // __cpu_simple_lock_t used to be a full word.
    951 
    952 // The amd64 does not have strict alignment requirements.
    953 
    954 //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
    955 
    956 //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
    957 
    958 // -
    959 // Copyright (c) 2014 The NetBSD Foundation, Inc.
    960 // All rights reserved.
    961 //
    962 // This code is derived from software contributed to The NetBSD Foundation
    963 // by Matt Thomas of 3am Software Foundry.
    964 //
    965 // Redistribution and use in source and binary forms, with or without
    966 // modification, are permitted provided that the following conditions
    967 // are met:
    968 // 1. Redistributions of source code must retain the above copyright
    969 //    notice, this list of conditions and the following disclaimer.
    970 // 2. Redistributions in binary form must reproduce the above copyright
    971 //    notice, this list of conditions and the following disclaimer in the
    972 //    documentation and/or other materials provided with the distribution.
    973 //
    974 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
    975 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
    976 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    977 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
    978 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    979 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    980 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    981 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    982 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    983 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    984 // POSSIBILITY OF SUCH DAMAGE.
    985 
    986 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
    987 
    988 // -
    989 // Copyright (c) 1990 The Regents of the University of California.
    990 // All rights reserved.
    991 //
    992 // Redistribution and use in source and binary forms, with or without
    993 // modification, are permitted provided that the following conditions
    994 // are met:
    995 // 1. Redistributions of source code must retain the above copyright
    996 //    notice, this list of conditions and the following disclaimer.
    997 // 2. Redistributions in binary form must reproduce the above copyright
    998 //    notice, this list of conditions and the following disclaimer in the
    999 //    documentation and/or other materials provided with the distribution.
   1000 // 3. Neither the name of the University nor the names of its contributors
   1001 //    may be used to endorse or promote products derived from this software
   1002 //    without specific prior written permission.
   1003 //
   1004 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1005 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1006 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1007 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1008 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1009 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1010 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1011 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1012 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1013 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1014 // SUCH DAMAGE.
   1015 //
   1016 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   1017 
   1018 //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
   1019 
   1020 // -
   1021 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
   1022 // All rights reserved.
   1023 //
   1024 // This code is derived from software contributed to The NetBSD Foundation
   1025 // by Jun-ichiro itojun Hagino and by Klaus Klein.
   1026 //
   1027 // Redistribution and use in source and binary forms, with or without
   1028 // modification, are permitted provided that the following conditions
   1029 // are met:
   1030 // 1. Redistributions of source code must retain the above copyright
   1031 //    notice, this list of conditions and the following disclaimer.
   1032 // 2. Redistributions in binary form must reproduce the above copyright
   1033 //    notice, this list of conditions and the following disclaimer in the
   1034 //    documentation and/or other materials provided with the distribution.
   1035 //
   1036 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1037 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1038 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1039 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1040 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1041 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1042 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1043 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1044 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1045 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1046 // POSSIBILITY OF SUCH DAMAGE.
   1047 
   1048 type Int8_t = X__int8_t /* types.h:54:18 */
   1049 
   1050 type Uint8_t = X__uint8_t /* types.h:59:19 */
   1051 
   1052 type Int16_t = X__int16_t /* types.h:64:19 */
   1053 
   1054 type Uint16_t = X__uint16_t /* types.h:69:20 */
   1055 
   1056 type Int32_t = X__int32_t /* types.h:74:19 */
   1057 
   1058 type Uint32_t = X__uint32_t /* types.h:79:20 */
   1059 
   1060 type Int64_t = X__int64_t /* types.h:84:19 */
   1061 
   1062 type Uint64_t = X__uint64_t /* types.h:89:20 */
   1063 
   1064 type U_int8_t = Uint8_t   /* types.h:93:18 */
   1065 type U_int16_t = Uint16_t /* types.h:94:18 */
   1066 type U_int32_t = Uint32_t /* types.h:95:18 */
   1067 type U_int64_t = Uint64_t /* types.h:96:18 */
   1068 
   1069 //	$NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
   1070 
   1071 //	$NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
   1072 
   1073 // Copyright (c) 1987, 1991, 1993
   1074 //	The Regents of the University of California.  All rights reserved.
   1075 //
   1076 // Redistribution and use in source and binary forms, with or without
   1077 // modification, are permitted provided that the following conditions
   1078 // are met:
   1079 // 1. Redistributions of source code must retain the above copyright
   1080 //    notice, this list of conditions and the following disclaimer.
   1081 // 2. Redistributions in binary form must reproduce the above copyright
   1082 //    notice, this list of conditions and the following disclaimer in the
   1083 //    documentation and/or other materials provided with the distribution.
   1084 // 3. Neither the name of the University nor the names of its contributors
   1085 //    may be used to endorse or promote products derived from this software
   1086 //    without specific prior written permission.
   1087 //
   1088 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1089 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1090 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1091 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1092 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1093 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1094 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1095 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1096 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1097 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1098 // SUCH DAMAGE.
   1099 //
   1100 //	@(#)endian.h	8.1 (Berkeley) 6/11/93
   1101 
   1102 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   1103 
   1104 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   1105 // Public domain.
   1106 //
   1107 // NOTE: Do not protect this header against multiple inclusion.  Doing
   1108 // so can have subtle side-effects due to header file inclusion order
   1109 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   1110 // protect each CPP macro that we want to supply.
   1111 
   1112 // Feature-test macros are defined by several standards, and allow an
   1113 // application to specify what symbols they want the system headers to
   1114 // expose, and hence what standard they want them to conform to.
   1115 // There are two classes of feature-test macros.  The first class
   1116 // specify complete standards, and if one of these is defined, header
   1117 // files will try to conform to the relevant standard.  They are:
   1118 //
   1119 // ANSI macros:
   1120 // _ANSI_SOURCE			ANSI C89
   1121 //
   1122 // POSIX macros:
   1123 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   1124 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   1125 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   1126 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   1127 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   1128 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   1129 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   1130 //
   1131 // X/Open macros:
   1132 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   1133 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   1134 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   1135 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   1136 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   1137 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   1138 //
   1139 // NetBSD macros:
   1140 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   1141 //
   1142 // If more than one of these "major" feature-test macros is defined,
   1143 // then the set of facilities provided (and namespace used) is the
   1144 // union of that specified by the relevant standards, and in case of
   1145 // conflict, the earlier standard in the above list has precedence (so
   1146 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   1147 // of rename() that's used is the POSIX one).  If none of the "major"
   1148 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   1149 //
   1150 // There are also "minor" feature-test macros, which enable extra
   1151 // functionality in addition to some base standard.  They should be
   1152 // defined along with one of the "major" macros.  The "minor" macros
   1153 // are:
   1154 //
   1155 // _REENTRANT
   1156 // _ISOC99_SOURCE
   1157 // _ISOC11_SOURCE
   1158 // _LARGEFILE_SOURCE		Large File Support
   1159 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   1160 
   1161 // Definitions for byte order, according to byte significance from low
   1162 // address to high.
   1163 
   1164 // C-family endian-ness definitions
   1165 
   1166 //	$NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
   1167 
   1168 // -
   1169 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
   1170 // All rights reserved.
   1171 //
   1172 // This code is derived from software contributed to The NetBSD Foundation
   1173 // by Jun-ichiro itojun Hagino and by Klaus Klein.
   1174 //
   1175 // Redistribution and use in source and binary forms, with or without
   1176 // modification, are permitted provided that the following conditions
   1177 // are met:
   1178 // 1. Redistributions of source code must retain the above copyright
   1179 //    notice, this list of conditions and the following disclaimer.
   1180 // 2. Redistributions in binary form must reproduce the above copyright
   1181 //    notice, this list of conditions and the following disclaimer in the
   1182 //    documentation and/or other materials provided with the distribution.
   1183 //
   1184 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1185 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1186 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1187 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1188 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1189 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1190 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1191 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1192 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1193 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1194 // POSSIBILITY OF SUCH DAMAGE.
   1195 
   1196 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   1197 
   1198 // * Copyright (c) 1991, 1993
   1199 //	The Regents of the University of California.  All rights reserved.
   1200 //
   1201 // This code is derived from software contributed to Berkeley by
   1202 // Berkeley Software Design, Inc.
   1203 //
   1204 // Redistribution and use in source and binary forms, with or without
   1205 // modification, are permitted provided that the following conditions
   1206 // are met:
   1207 // 1. Redistributions of source code must retain the above copyright
   1208 //    notice, this list of conditions and the following disclaimer.
   1209 // 2. Redistributions in binary form must reproduce the above copyright
   1210 //    notice, this list of conditions and the following disclaimer in the
   1211 //    documentation and/or other materials provided with the distribution.
   1212 // 3. Neither the name of the University nor the names of its contributors
   1213 //    may be used to endorse or promote products derived from this software
   1214 //    without specific prior written permission.
   1215 //
   1216 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1217 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1218 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1219 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1220 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1221 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1222 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1223 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1224 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1225 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1226 // SUCH DAMAGE.
   1227 //
   1228 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1229 
   1230 //	$NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
   1231 
   1232 // -
   1233 // Copyright (c) 1982, 1986, 1991, 1993, 1994
   1234 //	The Regents of the University of California.  All rights reserved.
   1235 // (c) UNIX System Laboratories, Inc.
   1236 // All or some portions of this file are derived from material licensed
   1237 // to the University of California by American Telephone and Telegraph
   1238 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1239 // the permission of UNIX System Laboratories, Inc.
   1240 //
   1241 // Redistribution and use in source and binary forms, with or without
   1242 // modification, are permitted provided that the following conditions
   1243 // are met:
   1244 // 1. Redistributions of source code must retain the above copyright
   1245 //    notice, this list of conditions and the following disclaimer.
   1246 // 2. Redistributions in binary form must reproduce the above copyright
   1247 //    notice, this list of conditions and the following disclaimer in the
   1248 //    documentation and/or other materials provided with the distribution.
   1249 // 3. Neither the name of the University nor the names of its contributors
   1250 //    may be used to endorse or promote products derived from this software
   1251 //    without specific prior written permission.
   1252 //
   1253 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1254 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1255 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1256 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1257 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1258 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1259 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1260 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1261 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1262 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1263 // SUCH DAMAGE.
   1264 //
   1265 //	@(#)types.h	8.4 (Berkeley) 1/21/94
   1266 
   1267 type In_addr_t = X__in_addr_t /* endian.h:58:21 */
   1268 
   1269 type In_port_t = X__in_port_t /* endian.h:63:21 */
   1270 
   1271 //      $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
   1272 
   1273 // Written by Manuel Bouyer. Public domain
   1274 
   1275 //	$NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
   1276 
   1277 // -
   1278 // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
   1279 // All rights reserved.
   1280 //
   1281 // This code is derived from software contributed to The NetBSD Foundation
   1282 // by Klaus Klein.
   1283 //
   1284 // Redistribution and use in source and binary forms, with or without
   1285 // modification, are permitted provided that the following conditions
   1286 // are met:
   1287 // 1. Redistributions of source code must retain the above copyright
   1288 //    notice, this list of conditions and the following disclaimer.
   1289 // 2. Redistributions in binary form must reproduce the above copyright
   1290 //    notice, this list of conditions and the following disclaimer in the
   1291 //    documentation and/or other materials provided with the distribution.
   1292 //
   1293 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1294 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1295 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1296 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1297 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1298 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1299 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1300 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1301 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1302 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1303 // POSSIBILITY OF SUCH DAMAGE.
   1304 
   1305 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   1306 
   1307 // * Copyright (c) 1991, 1993
   1308 //	The Regents of the University of California.  All rights reserved.
   1309 //
   1310 // This code is derived from software contributed to Berkeley by
   1311 // Berkeley Software Design, Inc.
   1312 //
   1313 // Redistribution and use in source and binary forms, with or without
   1314 // modification, are permitted provided that the following conditions
   1315 // are met:
   1316 // 1. Redistributions of source code must retain the above copyright
   1317 //    notice, this list of conditions and the following disclaimer.
   1318 // 2. Redistributions in binary form must reproduce the above copyright
   1319 //    notice, this list of conditions and the following disclaimer in the
   1320 //    documentation and/or other materials provided with the distribution.
   1321 // 3. Neither the name of the University nor the names of its contributors
   1322 //    may be used to endorse or promote products derived from this software
   1323 //    without specific prior written permission.
   1324 //
   1325 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1326 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1327 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1328 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1329 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1330 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1331 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1332 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1333 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1334 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1335 // SUCH DAMAGE.
   1336 //
   1337 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1338 
   1339 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   1340 
   1341 // -
   1342 // Copyright (c) 1990 The Regents of the University of California.
   1343 // All rights reserved.
   1344 //
   1345 // Redistribution and use in source and binary forms, with or without
   1346 // modification, are permitted provided that the following conditions
   1347 // are met:
   1348 // 1. Redistributions of source code must retain the above copyright
   1349 //    notice, this list of conditions and the following disclaimer.
   1350 // 2. Redistributions in binary form must reproduce the above copyright
   1351 //    notice, this list of conditions and the following disclaimer in the
   1352 //    documentation and/or other materials provided with the distribution.
   1353 // 3. Neither the name of the University nor the names of its contributors
   1354 //    may be used to endorse or promote products derived from this software
   1355 //    without specific prior written permission.
   1356 //
   1357 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1358 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1359 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1360 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1361 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1362 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1363 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1364 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1365 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1366 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1367 // SUCH DAMAGE.
   1368 //
   1369 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   1370 
   1371 type Intptr_t = X__intptr_t /* stdint.h:79:20 */
   1372 
   1373 type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
   1374 
   1375 //	$NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
   1376 
   1377 // -
   1378 // Copyright (c) 2001 The NetBSD Foundation, Inc.
   1379 // All rights reserved.
   1380 //
   1381 // This code is derived from software contributed to The NetBSD Foundation
   1382 // by Klaus Klein.
   1383 //
   1384 // Redistribution and use in source and binary forms, with or without
   1385 // modification, are permitted provided that the following conditions
   1386 // are met:
   1387 // 1. Redistributions of source code must retain the above copyright
   1388 //    notice, this list of conditions and the following disclaimer.
   1389 // 2. Redistributions in binary form must reproduce the above copyright
   1390 //    notice, this list of conditions and the following disclaimer in the
   1391 //    documentation and/or other materials provided with the distribution.
   1392 //
   1393 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1394 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1395 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1396 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1397 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1398 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1399 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1400 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1401 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1402 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1403 // POSSIBILITY OF SUCH DAMAGE.
   1404 
   1405 //	$NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
   1406 
   1407 // -
   1408 // Copyright (c) 2014 The NetBSD Foundation, Inc.
   1409 // All rights reserved.
   1410 //
   1411 // This code is derived from software contributed to The NetBSD Foundation
   1412 // by Joerg Sonnenberger.
   1413 //
   1414 // Redistribution and use in source and binary forms, with or without
   1415 // modification, are permitted provided that the following conditions
   1416 // are met:
   1417 // 1. Redistributions of source code must retain the above copyright
   1418 //    notice, this list of conditions and the following disclaimer.
   1419 // 2. Redistributions in binary form must reproduce the above copyright
   1420 //    notice, this list of conditions and the following disclaimer in the
   1421 //    documentation and/or other materials provided with the distribution.
   1422 //
   1423 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1424 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1425 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1426 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1427 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1428 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1429 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1430 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1431 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1432 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1433 // POSSIBILITY OF SUCH DAMAGE.
   1434 
   1435 // 7.18.1 Integer types
   1436 
   1437 // 7.18.1.2 Minimum-width integer types
   1438 
   1439 type Int_least8_t = int8     /* common_int_mwgwtypes.h:45:32 */
   1440 type Uint_least8_t = uint8   /* common_int_mwgwtypes.h:46:32 */
   1441 type Int_least16_t = int16   /* common_int_mwgwtypes.h:47:32 */
   1442 type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
   1443 type Int_least32_t = int32   /* common_int_mwgwtypes.h:49:32 */
   1444 type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
   1445 type Int_least64_t = int64   /* common_int_mwgwtypes.h:51:32 */
   1446 type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
   1447 
   1448 // 7.18.1.3 Fastest minimum-width integer types
   1449 type Int_fast8_t = int32    /* common_int_mwgwtypes.h:55:32 */
   1450 type Uint_fast8_t = uint32  /* common_int_mwgwtypes.h:56:32 */
   1451 type Int_fast16_t = int32   /* common_int_mwgwtypes.h:57:32 */
   1452 type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
   1453 type Int_fast32_t = int32   /* common_int_mwgwtypes.h:59:32 */
   1454 type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
   1455 type Int_fast64_t = int64   /* common_int_mwgwtypes.h:61:32 */
   1456 type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
   1457 
   1458 // 7.18.1.5 Greatest-width integer types
   1459 
   1460 type Intmax_t = int64   /* common_int_mwgwtypes.h:66:33 */
   1461 type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
   1462 
   1463 type U_char = uint8   /* types.h:101:23 */
   1464 type U_short = uint16 /* types.h:102:24 */
   1465 type U_int = uint32   /* types.h:103:22 */
   1466 type U_long = uint64  /* types.h:104:23 */
   1467 
   1468 type Unchar = uint8  /* types.h:106:23 */ // Sys V compatibility
   1469 type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
   1470 type Uint = uint32   /* types.h:108:22 */ // Sys V compatibility
   1471 type Ulong = uint64  /* types.h:109:23 */ // Sys V compatibility
   1472 
   1473 type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
   1474 type Quad_t = Int64_t    /* types.h:113:18 */
   1475 type Qaddr_t = uintptr   /* types.h:114:16 */
   1476 
   1477 // The types longlong_t and u_longlong_t exist for use with the
   1478 // Sun-derived XDR routines involving these types, and their usage
   1479 // in other contexts is discouraged.  Further note that these types
   1480 // may not be equivalent to "long long" and "unsigned long long",
   1481 // they are only guaranteed to be signed and unsigned 64-bit types
   1482 // respectively.  Portable programs that need 64-bit types should use
   1483 // the C99 types int64_t and uint64_t instead.
   1484 
   1485 type Longlong_t = Int64_t    /* types.h:126:18 */ // for XDR
   1486 type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
   1487 
   1488 type Blkcnt_t = Int64_t  /* types.h:129:18 */ // fs block count
   1489 type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
   1490 
   1491 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
   1492 
   1493 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
   1494 
   1495 // We don't and shouldn't use caddr_t in the kernel anymore
   1496 type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
   1497 
   1498 type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
   1499 
   1500 type Dev_t = Uint64_t   /* types.h:157:18 */ // device number
   1501 type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
   1502 
   1503 type Gid_t = X__gid_t /* types.h:161:18 */ // group id
   1504 
   1505 type Id_t = Uint32_t  /* types.h:165:18 */ // group id, process id or user id
   1506 type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
   1507 type Key_t = int64    /* types.h:167:15 */ // IPC key (for Sys V IPC)
   1508 
   1509 type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
   1510 
   1511 type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
   1512 
   1513 type Off_t = X__off_t /* types.h:177:18 */ // file offset
   1514 
   1515 type Pid_t = X__pid_t  /* types.h:182:18 */ // process id
   1516 type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
   1517 type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
   1518 type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
   1519 type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
   1520 
   1521 type Uid_t = X__uid_t /* types.h:191:18 */ // user id
   1522 
   1523 type Mqd_t = int32 /* types.h:195:14 */
   1524 
   1525 type Cpuid_t = uint64 /* types.h:197:23 */
   1526 
   1527 type Psetid_t = int32 /* types.h:199:14 */
   1528 
   1529 type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
   1530 
   1531 // Major, minor numbers, dev_t's.
   1532 type X__devmajor_t = Int32_t /* types.h:255:17 */
   1533 type X__devminor_t = Int32_t /* types.h:255:31 */
   1534 
   1535 type Ssize_t = int64 /* types.h:284:24 */
   1536 
   1537 type Suseconds_t = int32 /* types.h:304:27 */
   1538 
   1539 type Useconds_t = uint32 /* types.h:309:26 */
   1540 
   1541 //	$NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
   1542 
   1543 // -
   1544 // Copyright (c) 1992, 1993
   1545 //	The Regents of the University of California.  All rights reserved.
   1546 //
   1547 // Redistribution and use in source and binary forms, with or without
   1548 // modification, are permitted provided that the following conditions
   1549 // are met:
   1550 // 1. Redistributions of source code must retain the above copyright
   1551 //    notice, this list of conditions and the following disclaimer.
   1552 // 2. Redistributions in binary form must reproduce the above copyright
   1553 //    notice, this list of conditions and the following disclaimer in the
   1554 //    documentation and/or other materials provided with the distribution.
   1555 // 3. Neither the name of the University nor the names of its contributors
   1556 //    may be used to endorse or promote products derived from this software
   1557 //    without specific prior written permission.
   1558 //
   1559 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1560 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1561 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1562 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1563 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1564 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1565 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1566 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1567 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1568 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1569 // SUCH DAMAGE.
   1570 //
   1571 //	from: @(#)types.h	8.4 (Berkeley) 1/21/94
   1572 
   1573 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   1574 
   1575 // * Copyright (c) 1991, 1993
   1576 //	The Regents of the University of California.  All rights reserved.
   1577 //
   1578 // This code is derived from software contributed to Berkeley by
   1579 // Berkeley Software Design, Inc.
   1580 //
   1581 // Redistribution and use in source and binary forms, with or without
   1582 // modification, are permitted provided that the following conditions
   1583 // are met:
   1584 // 1. Redistributions of source code must retain the above copyright
   1585 //    notice, this list of conditions and the following disclaimer.
   1586 // 2. Redistributions in binary form must reproduce the above copyright
   1587 //    notice, this list of conditions and the following disclaimer in the
   1588 //    documentation and/or other materials provided with the distribution.
   1589 // 3. Neither the name of the University nor the names of its contributors
   1590 //    may be used to endorse or promote products derived from this software
   1591 //    without specific prior written permission.
   1592 //
   1593 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1594 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1595 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1596 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1597 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1598 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1599 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1600 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1601 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1602 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1603 // SUCH DAMAGE.
   1604 //
   1605 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   1606 
   1607 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   1608 
   1609 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   1610 // Public domain.
   1611 //
   1612 // NOTE: Do not protect this header against multiple inclusion.  Doing
   1613 // so can have subtle side-effects due to header file inclusion order
   1614 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   1615 // protect each CPP macro that we want to supply.
   1616 
   1617 // Feature-test macros are defined by several standards, and allow an
   1618 // application to specify what symbols they want the system headers to
   1619 // expose, and hence what standard they want them to conform to.
   1620 // There are two classes of feature-test macros.  The first class
   1621 // specify complete standards, and if one of these is defined, header
   1622 // files will try to conform to the relevant standard.  They are:
   1623 //
   1624 // ANSI macros:
   1625 // _ANSI_SOURCE			ANSI C89
   1626 //
   1627 // POSIX macros:
   1628 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   1629 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   1630 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   1631 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   1632 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   1633 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   1634 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   1635 //
   1636 // X/Open macros:
   1637 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   1638 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   1639 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   1640 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   1641 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   1642 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   1643 //
   1644 // NetBSD macros:
   1645 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   1646 //
   1647 // If more than one of these "major" feature-test macros is defined,
   1648 // then the set of facilities provided (and namespace used) is the
   1649 // union of that specified by the relevant standards, and in case of
   1650 // conflict, the earlier standard in the above list has precedence (so
   1651 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   1652 // of rename() that's used is the POSIX one).  If none of the "major"
   1653 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   1654 //
   1655 // There are also "minor" feature-test macros, which enable extra
   1656 // functionality in addition to some base standard.  They should be
   1657 // defined along with one of the "major" macros.  The "minor" macros
   1658 // are:
   1659 //
   1660 // _REENTRANT
   1661 // _ISOC99_SOURCE
   1662 // _ISOC11_SOURCE
   1663 // _LARGEFILE_SOURCE		Large File Support
   1664 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   1665 
   1666 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   1667 
   1668 // -
   1669 // Copyright (c) 1990 The Regents of the University of California.
   1670 // All rights reserved.
   1671 //
   1672 // Redistribution and use in source and binary forms, with or without
   1673 // modification, are permitted provided that the following conditions
   1674 // are met:
   1675 // 1. Redistributions of source code must retain the above copyright
   1676 //    notice, this list of conditions and the following disclaimer.
   1677 // 2. Redistributions in binary form must reproduce the above copyright
   1678 //    notice, this list of conditions and the following disclaimer in the
   1679 //    documentation and/or other materials provided with the distribution.
   1680 // 3. Neither the name of the University nor the names of its contributors
   1681 //    may be used to endorse or promote products derived from this software
   1682 //    without specific prior written permission.
   1683 //
   1684 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1685 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1686 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1687 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1688 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1689 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1690 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1691 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1692 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1693 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1694 // SUCH DAMAGE.
   1695 //
   1696 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   1697 
   1698 // Implementation dependent defines, hidden from user space.
   1699 // POSIX does not specify them.
   1700 
   1701 type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
   1702 
   1703 // 32 = 2 ^ 5
   1704 
   1705 // Select uses bit fields of file descriptors.  These macros manipulate
   1706 // such bit fields.  Note: FD_SETSIZE may be defined by the user.
   1707 
   1708 type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
   1709 
   1710 // 32 = 2 ^ 5
   1711 
   1712 // Select uses bit fields of file descriptors.  These macros manipulate
   1713 // such bit fields.  Note: FD_SETSIZE may be defined by the user.
   1714 
   1715 type Fd_set = Fd_set1 /* fd_set.h:68:3 */
   1716 
   1717 // Expose our internals if we are not required to hide them.
   1718 
   1719 type Kauth_cred_t = uintptr /* types.h:318:27 */
   1720 
   1721 type Pri_t = int32 /* types.h:320:13 */
   1722 
   1723 //	$NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
   1724 
   1725 // -
   1726 // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
   1727 // All rights reserved.
   1728 //
   1729 // This code is derived from software contributed to The NetBSD Foundation
   1730 // by Nathan J. Williams.
   1731 //
   1732 // Redistribution and use in source and binary forms, with or without
   1733 // modification, are permitted provided that the following conditions
   1734 // are met:
   1735 // 1. Redistributions of source code must retain the above copyright
   1736 //    notice, this list of conditions and the following disclaimer.
   1737 // 2. Redistributions in binary form must reproduce the above copyright
   1738 //    notice, this list of conditions and the following disclaimer in the
   1739 //    documentation and/or other materials provided with the distribution.
   1740 //
   1741 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   1742 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   1743 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   1744 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   1745 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   1746 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   1747 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   1748 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   1749 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   1750 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   1751 // POSSIBILITY OF SUCH DAMAGE.
   1752 
   1753 // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
   1754 // POSIX spinlock object.
   1755 //
   1756 // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
   1757 // This does not work for volatile types.  Since C++ does not touch the guts
   1758 // of those types, we do not include volatile in the C++ definitions.
   1759 type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
   1760 type X__pthread_spin_t = Pthread_spin_t    /* pthread_types.h:48:24 */
   1761 
   1762 // Copied from PTQ_HEAD in pthread_queue.h
   1763 
   1764 type Pthread_queue_struct_t = struct {
   1765 	Fptqh_first uintptr
   1766 	Fptqh_last  uintptr
   1767 } /* pthread_types.h:61:1 */
   1768 
   1769 type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
   1770 type X__pthread_attr_st = struct {
   1771 	Fpta_magic   uint32
   1772 	Fpta_flags   int32
   1773 	Fpta_private uintptr
   1774 } /* pthread_types.h:65:1 */
   1775 
   1776 type X__pthread_mutex_st = struct {
   1777 	Fptm_magic      uint32
   1778 	Fptm_errorcheck X__pthread_spin_t
   1779 	Fptm_pad1       [3]Uint8_t
   1780 	F__8            struct{ Fptm_ceiling uint8 }
   1781 	Fptm_pad2       [3]Uint8_t
   1782 	F__ccgo_pad1    [4]byte
   1783 	Fptm_owner      Pthread_t
   1784 	Fptm_waiters    uintptr
   1785 	Fptm_recursed   uint32
   1786 	F__ccgo_pad2    [4]byte
   1787 	Fptm_spare2     uintptr
   1788 } /* pthread_types.h:66:1 */
   1789 
   1790 type X__pthread_mutexattr_st = struct {
   1791 	Fptma_magic   uint32
   1792 	F__ccgo_pad1  [4]byte
   1793 	Fptma_private uintptr
   1794 } /* pthread_types.h:67:1 */
   1795 
   1796 type X__pthread_cond_st = struct {
   1797 	Fptc_magic   uint32
   1798 	Fptc_lock    X__pthread_spin_t
   1799 	F__ccgo_pad1 [3]byte
   1800 	Fptc_waiters Pthread_queue_t
   1801 	Fptc_mutex   uintptr
   1802 	Fptc_private uintptr
   1803 } /* pthread_types.h:68:1 */
   1804 
   1805 type X__pthread_condattr_st = struct {
   1806 	Fptca_magic   uint32
   1807 	F__ccgo_pad1  [4]byte
   1808 	Fptca_private uintptr
   1809 } /* pthread_types.h:69:1 */
   1810 
   1811 type X__pthread_rwlock_st = struct {
   1812 	Fptr_magic     uint32
   1813 	Fptr_interlock X__pthread_spin_t
   1814 	F__ccgo_pad1   [3]byte
   1815 	Fptr_rblocked  Pthread_queue_t
   1816 	Fptr_wblocked  Pthread_queue_t
   1817 	Fptr_nreaders  uint32
   1818 	F__ccgo_pad2   [4]byte
   1819 	Fptr_owner     Pthread_t
   1820 	Fptr_private   uintptr
   1821 } /* pthread_types.h:71:1 */
   1822 
   1823 type X__pthread_rwlockattr_st = struct {
   1824 	Fptra_magic   uint32
   1825 	F__ccgo_pad1  [4]byte
   1826 	Fptra_private uintptr
   1827 } /* pthread_types.h:72:1 */
   1828 
   1829 type X__pthread_barrier_st = struct {
   1830 	Fptb_magic      uint32
   1831 	Fptb_lock       Pthread_spin_t
   1832 	F__ccgo_pad1    [3]byte
   1833 	Fptb_waiters    Pthread_queue_t
   1834 	Fptb_initcount  uint32
   1835 	Fptb_curcount   uint32
   1836 	Fptb_generation uint32
   1837 	F__ccgo_pad2    [4]byte
   1838 	Fptb_private    uintptr
   1839 } /* pthread_types.h:73:1 */
   1840 
   1841 type X__pthread_barrierattr_st = struct {
   1842 	Fptba_magic   uint32
   1843 	F__ccgo_pad1  [4]byte
   1844 	Fptba_private uintptr
   1845 } /* pthread_types.h:74:1 */
   1846 
   1847 type Pthread_t = uintptr                           /* pthread_types.h:76:29 */
   1848 type Pthread_attr_t = X__pthread_attr_st           /* pthread_types.h:77:34 */
   1849 type Pthread_mutex_t = X__pthread_mutex_st         /* pthread_types.h:78:35 */
   1850 type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
   1851 type Pthread_cond_t = X__pthread_cond_st           /* pthread_types.h:80:34 */
   1852 type Pthread_condattr_t = X__pthread_condattr_st   /* pthread_types.h:81:38 */
   1853 type X__pthread_once_st = struct {
   1854 	Fpto_mutex   Pthread_mutex_t
   1855 	Fpto_done    int32
   1856 	F__ccgo_pad1 [4]byte
   1857 } /* pthread_types.h:82:9 */
   1858 
   1859 type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
   1860 type X__pthread_spinlock_st = struct {
   1861 	Fpts_magic   uint32
   1862 	Fpts_spin    X__pthread_spin_t
   1863 	F__ccgo_pad1 [3]byte
   1864 	Fpts_flags   int32
   1865 } /* pthread_types.h:83:9 */
   1866 
   1867 type Pthread_spinlock_t = X__pthread_spinlock_st       /* pthread_types.h:83:38 */
   1868 type Pthread_rwlock_t = X__pthread_rwlock_st           /* pthread_types.h:84:36 */
   1869 type Pthread_rwlockattr_t = X__pthread_rwlockattr_st   /* pthread_types.h:85:40 */
   1870 type Pthread_barrier_t = X__pthread_barrier_st         /* pthread_types.h:86:37 */
   1871 type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
   1872 type Pthread_key_t = int32                             /* pthread_types.h:88:13 */
   1873 
   1874 // Structure returned by gettimeofday(2) system call,
   1875 // and used in other calls.
   1876 type Timeval = struct {
   1877 	Ftv_sec      Time_t
   1878 	Ftv_usec     Suseconds_t
   1879 	F__ccgo_pad1 [4]byte
   1880 } /* time.h:44:1 */
   1881 
   1882 //	$NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
   1883 
   1884 // Copyright (c) 1982, 1986, 1993
   1885 //	The Regents of the University of California.  All rights reserved.
   1886 //
   1887 // Redistribution and use in source and binary forms, with or without
   1888 // modification, are permitted provided that the following conditions
   1889 // are met:
   1890 // 1. Redistributions of source code must retain the above copyright
   1891 //    notice, this list of conditions and the following disclaimer.
   1892 // 2. Redistributions in binary form must reproduce the above copyright
   1893 //    notice, this list of conditions and the following disclaimer in the
   1894 //    documentation and/or other materials provided with the distribution.
   1895 // 3. Neither the name of the University nor the names of its contributors
   1896 //    may be used to endorse or promote products derived from this software
   1897 //    without specific prior written permission.
   1898 //
   1899 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1900 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1901 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1902 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1903 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1904 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1905 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1906 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1907 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1908 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1909 // SUCH DAMAGE.
   1910 //
   1911 //	@(#)time.h	8.5 (Berkeley) 5/4/95
   1912 //
   1913 // Extracted by Kamil Rytarowski from:
   1914 // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp
   1915 
   1916 // Note: timezone is obsolete. All timezone handling is now in
   1917 // userland. Its just here for back compatibility.
   1918 type Timezone = struct {
   1919 	Ftz_minuteswest int32
   1920 	Ftz_dsttime     int32
   1921 } /* time.h:65:1 */
   1922 
   1923 // Operations on timevals.
   1924 
   1925 // hide bintime for _STANDALONE because this header is used for hpcboot.exe,
   1926 // which is built with compilers which don't recognize LL suffix.
   1927 //
   1928 //	http://mail-index.NetBSD.org/tech-userlevel/2008/02/27/msg000181.html
   1929 type Bintime = struct {
   1930 	Fsec  Time_t
   1931 	Ffrac Uint64_t
   1932 } /* time.h:102:1 */
   1933 
   1934 // Operations on timespecs.
   1935 
   1936 // Names of the interval timers, and structure
   1937 // defining a timer setting.
   1938 // NB: Must match the CLOCK_ constants below.
   1939 
   1940 type Itimerval = struct {
   1941 	Fit_interval struct {
   1942 		Ftv_sec      Time_t
   1943 		Ftv_usec     Suseconds_t
   1944 		F__ccgo_pad1 [4]byte
   1945 	}
   1946 	Fit_value struct {
   1947 		Ftv_sec      Time_t
   1948 		Ftv_usec     Suseconds_t
   1949 		F__ccgo_pad1 [4]byte
   1950 	}
   1951 } /* time.h:280:1 */
   1952 
   1953 // Structure defined by POSIX.1b to be like a itimerval, but with
   1954 // timespecs. Used in the timer_*() system calls.
   1955 type Itimerspec = struct {
   1956 	Fit_interval struct {
   1957 		Ftv_sec  Time_t
   1958 		Ftv_nsec int64
   1959 	}
   1960 	Fit_value struct {
   1961 		Ftv_sec  Time_t
   1962 		Ftv_nsec int64
   1963 	}
   1964 } /* time.h:289:1 */
   1965 
   1966 //	$NetBSD: select.h,v 1.37 2014/04/25 15:52:45 pooka Exp $
   1967 
   1968 // -
   1969 // Copyright (c) 1992, 1993
   1970 //	The Regents of the University of California.  All rights reserved.
   1971 //
   1972 // Redistribution and use in source and binary forms, with or without
   1973 // modification, are permitted provided that the following conditions
   1974 // are met:
   1975 // 1. Redistributions of source code must retain the above copyright
   1976 //    notice, this list of conditions and the following disclaimer.
   1977 // 2. Redistributions in binary form must reproduce the above copyright
   1978 //    notice, this list of conditions and the following disclaimer in the
   1979 //    documentation and/or other materials provided with the distribution.
   1980 // 3. Neither the name of the University nor the names of its contributors
   1981 //    may be used to endorse or promote products derived from this software
   1982 //    without specific prior written permission.
   1983 //
   1984 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1985 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1986 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1987 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1988 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1989 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1990 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1991 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1992 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1993 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1994 // SUCH DAMAGE.
   1995 //
   1996 //	@(#)select.h	8.2 (Berkeley) 1/4/94
   1997 
   1998 //	$NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
   1999 
   2000 // * Copyright (c) 1991, 1993
   2001 //	The Regents of the University of California.  All rights reserved.
   2002 //
   2003 // This code is derived from software contributed to Berkeley by
   2004 // Berkeley Software Design, Inc.
   2005 //
   2006 // Redistribution and use in source and binary forms, with or without
   2007 // modification, are permitted provided that the following conditions
   2008 // are met:
   2009 // 1. Redistributions of source code must retain the above copyright
   2010 //    notice, this list of conditions and the following disclaimer.
   2011 // 2. Redistributions in binary form must reproduce the above copyright
   2012 //    notice, this list of conditions and the following disclaimer in the
   2013 //    documentation and/or other materials provided with the distribution.
   2014 // 3. Neither the name of the University nor the names of its contributors
   2015 //    may be used to endorse or promote products derived from this software
   2016 //    without specific prior written permission.
   2017 //
   2018 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   2019 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2020 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2021 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   2022 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   2023 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   2024 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   2025 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   2026 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   2027 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   2028 // SUCH DAMAGE.
   2029 //
   2030 //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   2031 
   2032 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   2033 
   2034 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   2035 // Public domain.
   2036 //
   2037 // NOTE: Do not protect this header against multiple inclusion.  Doing
   2038 // so can have subtle side-effects due to header file inclusion order
   2039 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   2040 // protect each CPP macro that we want to supply.
   2041 
   2042 // Feature-test macros are defined by several standards, and allow an
   2043 // application to specify what symbols they want the system headers to
   2044 // expose, and hence what standard they want them to conform to.
   2045 // There are two classes of feature-test macros.  The first class
   2046 // specify complete standards, and if one of these is defined, header
   2047 // files will try to conform to the relevant standard.  They are:
   2048 //
   2049 // ANSI macros:
   2050 // _ANSI_SOURCE			ANSI C89
   2051 //
   2052 // POSIX macros:
   2053 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   2054 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   2055 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   2056 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   2057 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   2058 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   2059 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   2060 //
   2061 // X/Open macros:
   2062 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   2063 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   2064 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   2065 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   2066 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   2067 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   2068 //
   2069 // NetBSD macros:
   2070 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   2071 //
   2072 // If more than one of these "major" feature-test macros is defined,
   2073 // then the set of facilities provided (and namespace used) is the
   2074 // union of that specified by the relevant standards, and in case of
   2075 // conflict, the earlier standard in the above list has precedence (so
   2076 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   2077 // of rename() that's used is the POSIX one).  If none of the "major"
   2078 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   2079 //
   2080 // There are also "minor" feature-test macros, which enable extra
   2081 // functionality in addition to some base standard.  They should be
   2082 // defined along with one of the "major" macros.  The "minor" macros
   2083 // are:
   2084 //
   2085 // _REENTRANT
   2086 // _ISOC99_SOURCE
   2087 // _ISOC11_SOURCE
   2088 // _LARGEFILE_SOURCE		Large File Support
   2089 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   2090 
   2091 //	$NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
   2092 
   2093 // -
   2094 // Copyright (c) 1992, 1993
   2095 //	The Regents of the University of California.  All rights reserved.
   2096 //
   2097 // Redistribution and use in source and binary forms, with or without
   2098 // modification, are permitted provided that the following conditions
   2099 // are met:
   2100 // 1. Redistributions of source code must retain the above copyright
   2101 //    notice, this list of conditions and the following disclaimer.
   2102 // 2. Redistributions in binary form must reproduce the above copyright
   2103 //    notice, this list of conditions and the following disclaimer in the
   2104 //    documentation and/or other materials provided with the distribution.
   2105 // 3. Neither the name of the University nor the names of its contributors
   2106 //    may be used to endorse or promote products derived from this software
   2107 //    without specific prior written permission.
   2108 //
   2109 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   2110 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2111 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2112 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   2113 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   2114 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   2115 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   2116 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   2117 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   2118 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   2119 // SUCH DAMAGE.
   2120 //
   2121 //	from: @(#)types.h	8.4 (Berkeley) 1/21/94
   2122 
   2123 //	$NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $
   2124 
   2125 // Copyright (c) 1982, 1986, 1989, 1991, 1993
   2126 //	The Regents of the University of California.  All rights reserved.
   2127 // (c) UNIX System Laboratories, Inc.
   2128 // All or some portions of this file are derived from material licensed
   2129 // to the University of California by American Telephone and Telegraph
   2130 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   2131 // the permission of UNIX System Laboratories, Inc.
   2132 //
   2133 // Redistribution and use in source and binary forms, with or without
   2134 // modification, are permitted provided that the following conditions
   2135 // are met:
   2136 // 1. Redistributions of source code must retain the above copyright
   2137 //    notice, this list of conditions and the following disclaimer.
   2138 // 2. Redistributions in binary form must reproduce the above copyright
   2139 //    notice, this list of conditions and the following disclaimer in the
   2140 //    documentation and/or other materials provided with the distribution.
   2141 // 3. Neither the name of the University nor the names of its contributors
   2142 //    may be used to endorse or promote products derived from this software
   2143 //    without specific prior written permission.
   2144 //
   2145 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   2146 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2147 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2148 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   2149 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   2150 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   2151 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   2152 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   2153 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   2154 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   2155 // SUCH DAMAGE.
   2156 //
   2157 //	@(#)signal.h	8.4 (Berkeley) 5/4/95
   2158 
   2159 // This header file defines various signal-related types.  We also keep
   2160 // the macros to manipulate sigset_t here, to encapsulate knowledge of
   2161 // its internals.
   2162 
   2163 //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   2164 
   2165 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   2166 // Public domain.
   2167 //
   2168 // NOTE: Do not protect this header against multiple inclusion.  Doing
   2169 // so can have subtle side-effects due to header file inclusion order
   2170 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   2171 // protect each CPP macro that we want to supply.
   2172 
   2173 // Feature-test macros are defined by several standards, and allow an
   2174 // application to specify what symbols they want the system headers to
   2175 // expose, and hence what standard they want them to conform to.
   2176 // There are two classes of feature-test macros.  The first class
   2177 // specify complete standards, and if one of these is defined, header
   2178 // files will try to conform to the relevant standard.  They are:
   2179 //
   2180 // ANSI macros:
   2181 // _ANSI_SOURCE			ANSI C89
   2182 //
   2183 // POSIX macros:
   2184 // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   2185 // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   2186 // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   2187 // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   2188 // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   2189 // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   2190 // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   2191 //
   2192 // X/Open macros:
   2193 // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   2194 // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   2195 // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   2196 // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   2197 // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   2198 // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   2199 //
   2200 // NetBSD macros:
   2201 // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   2202 //
   2203 // If more than one of these "major" feature-test macros is defined,
   2204 // then the set of facilities provided (and namespace used) is the
   2205 // union of that specified by the relevant standards, and in case of
   2206 // conflict, the earlier standard in the above list has precedence (so
   2207 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   2208 // of rename() that's used is the POSIX one).  If none of the "major"
   2209 // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   2210 //
   2211 // There are also "minor" feature-test macros, which enable extra
   2212 // functionality in addition to some base standard.  They should be
   2213 // defined along with one of the "major" macros.  The "minor" macros
   2214 // are:
   2215 //
   2216 // _REENTRANT
   2217 // _ISOC99_SOURCE
   2218 // _ISOC11_SOURCE
   2219 // _LARGEFILE_SOURCE		Large File Support
   2220 //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   2221 
   2222 //	$NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
   2223 
   2224 // -
   2225 // Copyright (c) 1990 The Regents of the University of California.
   2226 // All rights reserved.
   2227 //
   2228 // Redistribution and use in source and binary forms, with or without
   2229 // modification, are permitted provided that the following conditions
   2230 // are met:
   2231 // 1. Redistributions of source code must retain the above copyright
   2232 //    notice, this list of conditions and the following disclaimer.
   2233 // 2. Redistributions in binary form must reproduce the above copyright
   2234 //    notice, this list of conditions and the following disclaimer in the
   2235 //    documentation and/or other materials provided with the distribution.
   2236 // 3. Neither the name of the University nor the names of its contributors
   2237 //    may be used to endorse or promote products derived from this software
   2238 //    without specific prior written permission.
   2239 //
   2240 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   2241 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2242 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2243 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   2244 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   2245 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   2246 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   2247 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   2248 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   2249 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   2250 // SUCH DAMAGE.
   2251 //
   2252 //	from: @(#)types.h	7.5 (Berkeley) 3/9/91
   2253 
   2254 //	$NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
   2255 
   2256 //	$NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
   2257 
   2258 // -
   2259 // Copyright (c) 2014 The NetBSD Foundation, Inc.
   2260 // All rights reserved.
   2261 //
   2262 // This code is derived from software contributed to The NetBSD Foundation
   2263 // by Matt Thomas of 3am Software Foundry.
   2264 //
   2265 // Redistribution and use in source and binary forms, with or without
   2266 // modification, are permitted provided that the following conditions
   2267 // are met:
   2268 // 1. Redistributions of source code must retain the above copyright
   2269 //    notice, this list of conditions and the following disclaimer.
   2270 // 2. Redistributions in binary form must reproduce the above copyright
   2271 //    notice, this list of conditions and the following disclaimer in the
   2272 //    documentation and/or other materials provided with the distribution.
   2273 //
   2274 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   2275 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   2276 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   2277 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   2278 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   2279 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   2280 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   2281 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   2282 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   2283 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   2284 // POSSIBILITY OF SUCH DAMAGE.
   2285 
   2286 type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
   2287 
   2288 // Macro for manipulating signal masks.
   2289 
   2290 type Sigaltstack = struct {
   2291 	Fss_sp       uintptr
   2292 	Fss_size     Size_t
   2293 	Fss_flags    int32
   2294 	F__ccgo_pad1 [4]byte
   2295 } /* sigtypes.h:108:9 */
   2296 
   2297 // Macro for manipulating signal masks.
   2298 
   2299 type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
   2300 //	$NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
   2301 
   2302 // -
   2303 // Copyright (c) 2016 The NetBSD Foundation, Inc.
   2304 // All rights reserved.
   2305 //
   2306 // This code is derived from software contributed to The NetBSD Foundation
   2307 // by Christos Zoulas.
   2308 //
   2309 // Redistribution and use in source and binary forms, with or without
   2310 // modification, are permitted provided that the following conditions
   2311 // are met:
   2312 // 1. Redistributions of source code must retain the above copyright
   2313 //    notice, this list of conditions and the following disclaimer.
   2314 // 2. Redistributions in binary form must reproduce the above copyright
   2315 //    notice, this list of conditions and the following disclaimer in the
   2316 //    documentation and/or other materials provided with the distribution.
   2317 //
   2318 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   2319 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   2320 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   2321 // PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   2322 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   2323 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   2324 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   2325 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   2326 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   2327 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   2328 // POSSIBILITY OF SUCH DAMAGE.
   2329 
   2330 // Using the solaris constants, some of them are not applicable to us
   2331 // Do not re-order the list, or add elements in the middle as this will
   2332 // break the ABI of the system calls using this.  We set a high private
   2333 // maximum so that new values can be added in the future without
   2334 // changing the width of the type.
   2335 type Idtype_t = int32 /* idtype.h:60:3 */
   2336 
   2337 type Locale_t = uintptr /* time.h:188:25 */
   2338 
   2339 type Timezone_t = uintptr /* time.h:198:24 */
   2340 
   2341 var _ int8 /* gen.c:2:13: */