gtsocial-umbx

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

pthread_netbsd_arm.go (132316B)


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