gtsocial-umbx

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

pwd_netbsd_arm.go (77837B)


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