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