gtsocial-umbx

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

fts_netbsd_amd64.go (126556B)


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