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