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