signal_netbsd_arm.go (136405B)
1 // Code generated by 'ccgo signal/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 signal/signal_netbsd_arm.go -pkgname signal', DO NOT EDIT. 2 3 package signal 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 BUS_ADRALN = 1 // siginfo.h:239:1: 20 BUS_ADRERR = 2 // siginfo.h:240:1: 21 BUS_OBJERR = 3 // siginfo.h:241:1: 22 BYTE_ORDER = 1234 // endian.h:103:1: 23 CLD_CONTINUED = 6 // siginfo.h:261:1: 24 CLD_DUMPED = 3 // siginfo.h:257:1: 25 CLD_EXITED = 1 // siginfo.h:254:1: 26 CLD_KILLED = 2 // siginfo.h:255:1: 27 CLD_STOPPED = 5 // siginfo.h:260:1: 28 CLD_TRAPPED = 4 // siginfo.h:259:1: 29 FD_SETSIZE = 256 // fd_set.h:59:1: 30 FPE_FLTDIV = 3 // siginfo.h:227:1: 31 FPE_FLTINV = 7 // siginfo.h:231:1: 32 FPE_FLTOVF = 4 // siginfo.h:228:1: 33 FPE_FLTRES = 6 // siginfo.h:230:1: 34 FPE_FLTSUB = 8 // siginfo.h:232:1: 35 FPE_FLTUND = 5 // siginfo.h:229:1: 36 FPE_INTDIV = 1 // siginfo.h:225:1: 37 FPE_INTOVF = 2 // siginfo.h:226:1: 38 ILL_BADSTK = 8 // siginfo.h:222:1: 39 ILL_COPROC = 7 // siginfo.h:221:1: 40 ILL_ILLADR = 3 // siginfo.h:217:1: 41 ILL_ILLOPC = 1 // siginfo.h:215:1: 42 ILL_ILLOPN = 2 // siginfo.h:216:1: 43 ILL_ILLTRP = 4 // siginfo.h:218:1: 44 ILL_PRVOPC = 5 // siginfo.h:219:1: 45 ILL_PRVREG = 6 // siginfo.h:220:1: 46 INT16_MAX = 32767 // common_int_limits.h:53:1: 47 INT16_MIN = -32768 // common_int_limits.h:47:1: 48 INT32_MAX = 2147483647 // common_int_limits.h:54:1: 49 INT32_MIN = -2147483648 // common_int_limits.h:48:1: 50 INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1: 51 INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1: 52 INT8_MAX = 127 // common_int_limits.h:52:1: 53 INT8_MIN = -128 // common_int_limits.h:46:1: 54 INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1: 55 INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1: 56 INTPTR_MAX = 2147483647 // common_int_limits.h:105:1: 57 INTPTR_MIN = -2147483648 // common_int_limits.h:104:1: 58 INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1: 59 INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1: 60 INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1: 61 INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1: 62 INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1: 63 INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1: 64 INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1: 65 INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1: 66 INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1: 67 INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1: 68 INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1: 69 INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1: 70 INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1: 71 INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1: 72 INT_LEAST8_MAX = 127 // common_int_limits.h:72:1: 73 INT_LEAST8_MIN = -128 // common_int_limits.h:66:1: 74 LITTLE_ENDIAN = 1234 // endian.h:100:1: 75 MINSIGSTKSZ = 8192 // signal.h:189:1: 76 NBBY = 8 // types.h:316:1: 77 NFDBITS = 32 // fd_set.h:93:1: 78 NODEVMAJOR = -1 // types.h:258:1: 79 NSIG = 64 // signal.h:48:1: 80 PDP_ENDIAN = 3412 // endian.h:102:1: 81 POLL_ERR = 4 // siginfo.h:267:1: 82 POLL_HUP = 6 // siginfo.h:269:1: 83 POLL_IN = 1 // siginfo.h:264:1: 84 POLL_MSG = 3 // siginfo.h:266:1: 85 POLL_OUT = 2 // siginfo.h:265:1: 86 POLL_PRI = 5 // siginfo.h:268:1: 87 PTRDIFF_MAX = 2147483647 // common_int_limits.h:121:1: 88 PTRDIFF_MIN = -2147483648 // common_int_limits.h:120:1: 89 SA_NOCLDSTOP = 0x0008 // signal.h:151:1: 90 SA_NOCLDWAIT = 0x0020 // signal.h:152:1: 91 SA_NODEFER = 0x0010 // signal.h:148:1: 92 SA_NOKERNINFO = 0x0080 // signal.h:158:1: 93 SA_ONSTACK = 0x0001 // signal.h:145:1: 94 SA_RESETHAND = 0x0004 // signal.h:147:1: 95 SA_RESTART = 0x0002 // signal.h:146:1: 96 SA_SIGINFO = 0x0040 // signal.h:155:1: 97 SEGV_ACCERR = 2 // siginfo.h:236:1: 98 SEGV_MAPERR = 1 // siginfo.h:235:1: 99 SIGABRT = 6 // signal.h:57:1: 100 SIGALRM = 14 // signal.h:66:1: 101 SIGBUS = 10 // signal.h:62:1: 102 SIGCHLD = 20 // signal.h:72:1: 103 SIGCONT = 19 // signal.h:71:1: 104 SIGEMT = 7 // signal.h:59:1: 105 SIGEV_NONE = 0 // signal.h:224:1: 106 SIGEV_SA = 3 // signal.h:228:1: 107 SIGEV_SIGNAL = 1 // signal.h:225:1: 108 SIGEV_THREAD = 2 // signal.h:226:1: 109 SIGFPE = 8 // signal.h:60:1: 110 SIGHUP = 1 // signal.h:52:1: 111 SIGILL = 4 // signal.h:55:1: 112 SIGINFO = 29 // signal.h:81:1: 113 SIGINT = 2 // signal.h:53:1: 114 SIGIO = 23 // signal.h:75:1: 115 SIGIOT = 6 // signal.h:58:1: 116 SIGKILL = 9 // signal.h:61:1: 117 SIGPIPE = 13 // signal.h:65:1: 118 SIGPROF = 27 // signal.h:79:1: 119 SIGPWR = 32 // signal.h:84:1: 120 SIGQUIT = 3 // signal.h:54:1: 121 SIGRTMAX = 63 // signal.h:86:1: 122 SIGRTMIN = 33 // signal.h:85:1: 123 SIGSEGV = 11 // signal.h:63:1: 124 SIGSTKSZ = 40960 // signal.h:190:1: 125 SIGSTOP = 17 // signal.h:69:1: 126 SIGSYS = 12 // signal.h:64:1: 127 SIGTERM = 15 // signal.h:67:1: 128 SIGTRAP = 5 // signal.h:56:1: 129 SIGTSTP = 18 // signal.h:70:1: 130 SIGTTIN = 21 // signal.h:73:1: 131 SIGTTOU = 22 // signal.h:74:1: 132 SIGURG = 16 // signal.h:68:1: 133 SIGUSR1 = 30 // signal.h:82:1: 134 SIGUSR2 = 31 // signal.h:83:1: 135 SIGVTALRM = 26 // signal.h:78:1: 136 SIGWINCH = 28 // signal.h:80:1: 137 SIGXCPU = 24 // signal.h:76:1: 138 SIGXFSZ = 25 // signal.h:77:1: 139 SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1: 140 SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1: 141 SIG_BLOCK = 1 // signal.h:167:1: 142 SIG_CODE_BUS_ADDR_MASK = 0xfffffff0 // signal.h:154:1: 143 SIG_CODE_BUS_TYPE_MASK = 0x0000000f // signal.h:155:1: 144 SIG_CODE_FPE_CODE_MASK = 0x00000f00 // signal.h:131:1: 145 SIG_CODE_FPE_CODE_SHIFT = 8 // signal.h:132:1: 146 SIG_CODE_FPE_TYPE_MASK = 0x000000ff // signal.h:133:1: 147 SIG_CODE_SEGV_ADDR_MASK = 4294967280 // signal.h:156:1: 148 SIG_CODE_SEGV_TYPE_MASK = 15 // signal.h:157:1: 149 SIG_SETMASK = 3 // signal.h:169:1: 150 SIG_UNBLOCK = 2 // signal.h:168:1: 151 SIZE_MAX = 4294967295 // common_int_limits.h:128:1: 152 SI_ASYNCIO = -3 // siginfo.h:277:1: 153 SI_LWP = -5 // siginfo.h:282:1: 154 SI_MESGQ = -4 // siginfo.h:279:1: 155 SI_NOINFO = 32767 // siginfo.h:283:1: 156 SI_QUEUE = -1 // siginfo.h:274:1: 157 SI_TIMER = -2 // siginfo.h:275:1: 158 SI_USER = 0 // siginfo.h:273:1: 159 SS_DISABLE = 0x0004 // signal.h:185:1: 160 SS_ONSTACK = 0x0001 // signal.h:184:1: 161 TRAP_BRKPT = 1 // siginfo.h:244:1: 162 TRAP_CHLD = 4 // siginfo.h:247:1: 163 TRAP_DBREG = 6 // siginfo.h:249:1: 164 TRAP_EXEC = 3 // siginfo.h:246:1: 165 TRAP_LWP = 5 // siginfo.h:248:1: 166 TRAP_SCE = 7 // siginfo.h:250:1: 167 TRAP_SCX = 8 // siginfo.h:251:1: 168 TRAP_TRACE = 2 // siginfo.h:245:1: 169 UINT16_MAX = 65535 // common_int_limits.h:59:1: 170 UINT32_MAX = 4294967295 // common_int_limits.h:60:1: 171 UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1: 172 UINT8_MAX = 255 // common_int_limits.h:58:1: 173 UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1: 174 UINTPTR_MAX = 4294967295 // common_int_limits.h:106:1: 175 UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1: 176 UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1: 177 UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1: 178 UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1: 179 UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1: 180 UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1: 181 UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1: 182 UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1: 183 WCHAR_MAX = 2147483647 // wchar_limits.h:50:1: 184 WCHAR_MIN = -2147483648 // wchar_limits.h:42:1: 185 WINT_MAX = 2147483647 // wchar_limits.h:68:1: 186 WINT_MIN = -2147483648 // wchar_limits.h:60:1: 187 X_ARM_ARCH_4T = 0 // cdefs.h:44:1: 188 X_ARM_ARCH_5 = 0 // cdefs.h:40:1: 189 X_ARM_ARCH_5T = 0 // cdefs.h:36:1: 190 X_ARM_ARCH_6 = 0 // cdefs.h:31:1: 191 X_ARM_ARCH_7 = 0 // cdefs.h:20:1: 192 X_ARM_ARCH_DWORD_OK = 0 // cdefs.h:51:1: 193 X_ARM_ARCH_T2 = 0 // cdefs.h:24:1: 194 X_ARM_BSWAP_H_ = 0 // bswap.h:4:1: 195 X_ARM_BYTE_SWAP_H_ = 0 // byte_swap.h:33:1: 196 X_ARM_CDEFS_H_ = 0 // cdefs.h:4:1: 197 X_ARM_INT_CONST_H_ = 0 // int_const.h:33:1: 198 X_ARM_INT_LIMITS_H_ = 0 // int_limits.h:33:1: 199 X_ARM_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1: 200 X_ARM_INT_TYPES_H_ = 0 // int_types.h:33:1: 201 X_ARM_MCONTEXT_H_ = 0 // mcontext.h:33:1: 202 X_ARM_SIGNAL_H_ = 0 // signal.h:47:1: 203 X_ARM_TYPES_H_ = 0 // types.h:35:1: 204 X_ARM_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1: 205 X_BIG_ENDIAN = 4321 // endian.h:44:1: 206 X_BSD_INT16_T_ = 0 // types.h:65:1: 207 X_BSD_INT32_T_ = 0 // types.h:75:1: 208 X_BSD_INT64_T_ = 0 // types.h:85:1: 209 X_BSD_INT8_T_ = 0 // types.h:55:1: 210 X_BSD_INTPTR_T_ = 0 // stdint.h:80:1: 211 X_BSD_UINT16_T_ = 0 // types.h:70:1: 212 X_BSD_UINT32_T_ = 0 // types.h:80:1: 213 X_BSD_UINT64_T_ = 0 // types.h:90:1: 214 X_BSD_UINT8_T_ = 0 // types.h:60:1: 215 X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1: 216 X_BYTE_ORDER = 1234 // endian_machdep.h:7:1: 217 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 218 X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1: 219 X_LITTLE_ENDIAN = 1234 // endian.h:43:1: 220 X_NETBSD_SOURCE = 1 // featuretest.h:70:1: 221 X_NGREG = 17 // mcontext.h:48:1: 222 X_NSIG = 64 // signal.h:45:1: 223 X_PDP_ENDIAN = 3412 // endian.h:45:1: 224 X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1: 225 X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1: 226 X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1: 227 X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1: 228 X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1: 229 X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1: 230 X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1: 231 X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1: 232 X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1: 233 X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1: 234 X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1: 235 X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1: 236 X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1: 237 X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1: 238 X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1: 239 X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1: 240 X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1: 241 X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1: 242 X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1: 243 X_QUAD_HIGHWORD = 1 // endian.h:84:1: 244 X_QUAD_LOWWORD = 0 // endian.h:85:1: 245 X_REG_CPSR = 16 // mcontext.h:70:1: 246 X_REG_ELR = 32 // mcontext.h:104:1: 247 X_REG_FP = 11 // mcontext.h:118:1: 248 X_REG_LR = 14 // mcontext.h:120:1: 249 X_REG_PC = 15 // mcontext.h:121:1: 250 X_REG_R0 = 0 // mcontext.h:54:1: 251 X_REG_R1 = 1 // mcontext.h:55:1: 252 X_REG_R10 = 10 // mcontext.h:64:1: 253 X_REG_R11 = 11 // mcontext.h:65:1: 254 X_REG_R12 = 12 // mcontext.h:66:1: 255 X_REG_R13 = 13 // mcontext.h:67:1: 256 X_REG_R14 = 14 // mcontext.h:68:1: 257 X_REG_R15 = 15 // mcontext.h:69:1: 258 X_REG_R2 = 2 // mcontext.h:56:1: 259 X_REG_R3 = 3 // mcontext.h:57:1: 260 X_REG_R4 = 4 // mcontext.h:58:1: 261 X_REG_R5 = 5 // mcontext.h:59:1: 262 X_REG_R6 = 6 // mcontext.h:60:1: 263 X_REG_R7 = 7 // mcontext.h:61:1: 264 X_REG_R8 = 8 // mcontext.h:62:1: 265 X_REG_R9 = 9 // mcontext.h:63:1: 266 X_REG_RV = 0 // mcontext.h:117:1: 267 X_REG_SP = 13 // mcontext.h:119:1: 268 X_REG_SPSR = 33 // mcontext.h:105:1: 269 X_REG_TPIDR = 34 // mcontext.h:106:1: 270 X_REG_X0 = 0 // mcontext.h:72:1: 271 X_REG_X1 = 1 // mcontext.h:73:1: 272 X_REG_X10 = 10 // mcontext.h:82:1: 273 X_REG_X11 = 11 // mcontext.h:83:1: 274 X_REG_X12 = 12 // mcontext.h:84:1: 275 X_REG_X13 = 13 // mcontext.h:85:1: 276 X_REG_X14 = 14 // mcontext.h:86:1: 277 X_REG_X15 = 15 // mcontext.h:87:1: 278 X_REG_X16 = 16 // mcontext.h:88:1: 279 X_REG_X17 = 17 // mcontext.h:89:1: 280 X_REG_X18 = 18 // mcontext.h:90:1: 281 X_REG_X19 = 19 // mcontext.h:91:1: 282 X_REG_X2 = 2 // mcontext.h:74:1: 283 X_REG_X20 = 20 // mcontext.h:92:1: 284 X_REG_X21 = 21 // mcontext.h:93:1: 285 X_REG_X22 = 22 // mcontext.h:94:1: 286 X_REG_X23 = 23 // mcontext.h:95:1: 287 X_REG_X24 = 24 // mcontext.h:96:1: 288 X_REG_X25 = 25 // mcontext.h:97:1: 289 X_REG_X26 = 26 // mcontext.h:98:1: 290 X_REG_X27 = 27 // mcontext.h:99:1: 291 X_REG_X28 = 28 // mcontext.h:100:1: 292 X_REG_X29 = 29 // mcontext.h:101:1: 293 X_REG_X3 = 3 // mcontext.h:75:1: 294 X_REG_X30 = 30 // mcontext.h:102:1: 295 X_REG_X31 = 31 // mcontext.h:103:1: 296 X_REG_X4 = 4 // mcontext.h:76:1: 297 X_REG_X5 = 5 // mcontext.h:77:1: 298 X_REG_X6 = 6 // mcontext.h:78:1: 299 X_REG_X7 = 7 // mcontext.h:79:1: 300 X_REG_X8 = 8 // mcontext.h:80:1: 301 X_REG_X9 = 9 // mcontext.h:81:1: 302 X_SIGNAL_H_ = 0 // signal.h:35:1: 303 X_SIZE_T = 0 // types.h:279:1: 304 X_SYS_ANSI_H_ = 0 // ansi.h:33:1: 305 X_SYS_BSWAP_H_ = 0 // bswap.h:6:1: 306 X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1: 307 X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1: 308 X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1: 309 X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1: 310 X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1: 311 X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1: 312 X_SYS_ENDIAN_H_ = 0 // endian.h:35:1: 313 X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1: 314 X_SYS_SIGINFO_H_ = 0 // siginfo.h:33:1: 315 X_SYS_SIGNAL_H_ = 0 // signal.h:40:1: 316 X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1: 317 X_SYS_STDINT_H_ = 0 // stdint.h:33:1: 318 X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1: 319 X_SYS_TYPES_H_ = 0 // types.h:40:1: 320 X_SYS_UCONTEXT_H_ = 0 // ucontext.h:33:1: 321 X_UC_ARM_VFP = 0x00010000 // mcontext.h:263:1: 322 X_UC_CLRSTACK = 0x00040000 // mcontext.h:267:1: 323 X_UC_CPU = 0x04 // ucontext.h:58:1: 324 X_UC_FPU = 0x08 // ucontext.h:59:1: 325 X_UC_MACHINE_PAD = 1 // mcontext.h:203:1: 326 X_UC_MD = 0x400f0020 // ucontext.h:60:1: 327 X_UC_SETSTACK = 0x00020000 // mcontext.h:266:1: 328 X_UC_SIGMASK = 0x01 // ucontext.h:56:1: 329 X_UC_STACK = 0x02 // ucontext.h:57:1: 330 X_UC_TLSBASE = 0x00080000 // mcontext.h:260:1: 331 X_UC_UCONTEXT_ALIGN = -1 // ucontext.h:52:1: 332 ) 333 334 type Ptrdiff_t = int32 /* <builtin>:3:26 */ 335 336 type Size_t = uint32 /* <builtin>:9:23 */ 337 338 type Wchar_t = int32 /* <builtin>:15:24 */ 339 340 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 341 type X__float128 = float64 /* <builtin>:47:21 */ 342 343 // return true if value 'a' fits in type 't' 344 345 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 346 347 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 348 // Public domain. 349 // 350 // NOTE: Do not protect this header against multiple inclusion. Doing 351 // so can have subtle side-effects due to header file inclusion order 352 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 353 // protect each CPP macro that we want to supply. 354 355 // Feature-test macros are defined by several standards, and allow an 356 // application to specify what symbols they want the system headers to 357 // expose, and hence what standard they want them to conform to. 358 // There are two classes of feature-test macros. The first class 359 // specify complete standards, and if one of these is defined, header 360 // files will try to conform to the relevant standard. They are: 361 // 362 // ANSI macros: 363 // _ANSI_SOURCE ANSI C89 364 // 365 // POSIX macros: 366 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 367 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 368 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 369 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 370 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 371 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 372 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 373 // 374 // X/Open macros: 375 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 376 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 377 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 378 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 379 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 380 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 381 // 382 // NetBSD macros: 383 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 384 // 385 // If more than one of these "major" feature-test macros is defined, 386 // then the set of facilities provided (and namespace used) is the 387 // union of that specified by the relevant standards, and in case of 388 // conflict, the earlier standard in the above list has precedence (so 389 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 390 // of rename() that's used is the POSIX one). If none of the "major" 391 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 392 // 393 // There are also "minor" feature-test macros, which enable extra 394 // functionality in addition to some base standard. They should be 395 // defined along with one of the "major" macros. The "minor" macros 396 // are: 397 // 398 // _REENTRANT 399 // _ISOC99_SOURCE 400 // _ISOC11_SOURCE 401 // _LARGEFILE_SOURCE Large File Support 402 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 403 404 // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $ 405 406 // - 407 // Copyright (c) 1982, 1986, 1991, 1993, 1994 408 // The Regents of the University of California. All rights reserved. 409 // (c) UNIX System Laboratories, Inc. 410 // All or some portions of this file are derived from material licensed 411 // to the University of California by American Telephone and Telegraph 412 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 413 // the permission of UNIX System Laboratories, Inc. 414 // 415 // Redistribution and use in source and binary forms, with or without 416 // modification, are permitted provided that the following conditions 417 // are met: 418 // 1. Redistributions of source code must retain the above copyright 419 // notice, this list of conditions and the following disclaimer. 420 // 2. Redistributions in binary form must reproduce the above copyright 421 // notice, this list of conditions and the following disclaimer in the 422 // documentation and/or other materials provided with the distribution. 423 // 3. Neither the name of the University nor the names of its contributors 424 // may be used to endorse or promote products derived from this software 425 // without specific prior written permission. 426 // 427 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 428 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 429 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 430 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 431 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 432 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 433 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 434 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 435 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 436 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 437 // SUCH DAMAGE. 438 // 439 // @(#)types.h 8.4 (Berkeley) 1/21/94 440 441 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 442 443 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 444 // Public domain. 445 // 446 // NOTE: Do not protect this header against multiple inclusion. Doing 447 // so can have subtle side-effects due to header file inclusion order 448 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 449 // protect each CPP macro that we want to supply. 450 451 // Feature-test macros are defined by several standards, and allow an 452 // application to specify what symbols they want the system headers to 453 // expose, and hence what standard they want them to conform to. 454 // There are two classes of feature-test macros. The first class 455 // specify complete standards, and if one of these is defined, header 456 // files will try to conform to the relevant standard. They are: 457 // 458 // ANSI macros: 459 // _ANSI_SOURCE ANSI C89 460 // 461 // POSIX macros: 462 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 463 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 464 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 465 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 466 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 467 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 468 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 469 // 470 // X/Open macros: 471 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 472 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 473 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 474 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 475 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 476 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 477 // 478 // NetBSD macros: 479 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 480 // 481 // If more than one of these "major" feature-test macros is defined, 482 // then the set of facilities provided (and namespace used) is the 483 // union of that specified by the relevant standards, and in case of 484 // conflict, the earlier standard in the above list has precedence (so 485 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 486 // of rename() that's used is the POSIX one). If none of the "major" 487 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 488 // 489 // There are also "minor" feature-test macros, which enable extra 490 // functionality in addition to some base standard. They should be 491 // defined along with one of the "major" macros. The "minor" macros 492 // are: 493 // 494 // _REENTRANT 495 // _ISOC99_SOURCE 496 // _ISOC11_SOURCE 497 // _LARGEFILE_SOURCE Large File Support 498 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 499 500 // Machine type dependent parameters. 501 // $NetBSD: types.h,v 1.38 2019/04/06 03:06:25 thorpej Exp $ 502 503 // Copyright (c) 1990 The Regents of the University of California. 504 // All rights reserved. 505 // 506 // Redistribution and use in source and binary forms, with or without 507 // modification, are permitted provided that the following conditions 508 // are met: 509 // 1. Redistributions of source code must retain the above copyright 510 // notice, this list of conditions and the following disclaimer. 511 // 2. Redistributions in binary form must reproduce the above copyright 512 // notice, this list of conditions and the following disclaimer in the 513 // documentation and/or other materials provided with the distribution. 514 // 3. Neither the name of the University nor the names of its contributors 515 // may be used to endorse or promote products derived from this software 516 // without specific prior written permission. 517 // 518 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 519 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 520 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 521 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 522 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 523 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 524 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 525 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 526 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 527 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 528 // SUCH DAMAGE. 529 // 530 // from: @(#)types.h 7.5 (Berkeley) 3/9/91 531 532 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 533 534 // * Copyright (c) 1991, 1993 535 // The Regents of the University of California. All rights reserved. 536 // 537 // This code is derived from software contributed to Berkeley by 538 // Berkeley Software Design, Inc. 539 // 540 // Redistribution and use in source and binary forms, with or without 541 // modification, are permitted provided that the following conditions 542 // are met: 543 // 1. Redistributions of source code must retain the above copyright 544 // notice, this list of conditions and the following disclaimer. 545 // 2. Redistributions in binary form must reproduce the above copyright 546 // notice, this list of conditions and the following disclaimer in the 547 // documentation and/or other materials provided with the distribution. 548 // 3. Neither the name of the University nor the names of its contributors 549 // may be used to endorse or promote products derived from this software 550 // without specific prior written permission. 551 // 552 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 553 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 554 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 555 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 556 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 557 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 558 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 559 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 560 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 561 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 562 // SUCH DAMAGE. 563 // 564 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 565 566 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 567 568 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 569 // Public domain. 570 // 571 // NOTE: Do not protect this header against multiple inclusion. Doing 572 // so can have subtle side-effects due to header file inclusion order 573 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 574 // protect each CPP macro that we want to supply. 575 576 // Feature-test macros are defined by several standards, and allow an 577 // application to specify what symbols they want the system headers to 578 // expose, and hence what standard they want them to conform to. 579 // There are two classes of feature-test macros. The first class 580 // specify complete standards, and if one of these is defined, header 581 // files will try to conform to the relevant standard. They are: 582 // 583 // ANSI macros: 584 // _ANSI_SOURCE ANSI C89 585 // 586 // POSIX macros: 587 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 588 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 589 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 590 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 591 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 592 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 593 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 594 // 595 // X/Open macros: 596 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 597 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 598 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 599 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 600 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 601 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 602 // 603 // NetBSD macros: 604 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 605 // 606 // If more than one of these "major" feature-test macros is defined, 607 // then the set of facilities provided (and namespace used) is the 608 // union of that specified by the relevant standards, and in case of 609 // conflict, the earlier standard in the above list has precedence (so 610 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 611 // of rename() that's used is the POSIX one). If none of the "major" 612 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 613 // 614 // There are also "minor" feature-test macros, which enable extra 615 // functionality in addition to some base standard. They should be 616 // defined along with one of the "major" macros. The "minor" macros 617 // are: 618 // 619 // _REENTRANT 620 // _ISOC99_SOURCE 621 // _ISOC11_SOURCE 622 // _LARGEFILE_SOURCE Large File Support 623 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 624 625 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 626 627 // - 628 // Copyright (c) 2014 The NetBSD Foundation, Inc. 629 // All rights reserved. 630 // 631 // This code is derived from software contributed to The NetBSD Foundation 632 // by Matt Thomas of 3am Software Foundry. 633 // 634 // Redistribution and use in source and binary forms, with or without 635 // modification, are permitted provided that the following conditions 636 // are met: 637 // 1. Redistributions of source code must retain the above copyright 638 // notice, this list of conditions and the following disclaimer. 639 // 2. Redistributions in binary form must reproduce the above copyright 640 // notice, this list of conditions and the following disclaimer in the 641 // documentation and/or other materials provided with the distribution. 642 // 643 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 644 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 645 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 646 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 647 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 648 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 649 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 650 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 651 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 652 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 653 // POSSIBILITY OF SUCH DAMAGE. 654 655 // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ 656 657 // - 658 // Copyright (c) 2014 The NetBSD Foundation, Inc. 659 // All rights reserved. 660 // 661 // This code is derived from software contributed to The NetBSD Foundation 662 // by Joerg Sonnenberger. 663 // 664 // Redistribution and use in source and binary forms, with or without 665 // modification, are permitted provided that the following conditions 666 // are met: 667 // 1. Redistributions of source code must retain the above copyright 668 // notice, this list of conditions and the following disclaimer. 669 // 2. Redistributions in binary form must reproduce the above copyright 670 // notice, this list of conditions and the following disclaimer in the 671 // documentation and/or other materials provided with the distribution. 672 // 673 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 674 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 675 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 676 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 677 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 678 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 679 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 680 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 681 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 682 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 683 // POSSIBILITY OF SUCH DAMAGE. 684 685 // 7.18.1 Integer types 686 687 // 7.18.1.1 Exact-width integer types 688 689 type X__int8_t = int8 /* common_int_types.h:45:27 */ 690 type X__uint8_t = uint8 /* common_int_types.h:46:27 */ 691 type X__int16_t = int16 /* common_int_types.h:47:27 */ 692 type X__uint16_t = uint16 /* common_int_types.h:48:27 */ 693 type X__int32_t = int32 /* common_int_types.h:49:27 */ 694 type X__uint32_t = uint32 /* common_int_types.h:50:27 */ 695 type X__int64_t = int64 /* common_int_types.h:51:27 */ 696 type X__uint64_t = uint64 /* common_int_types.h:52:27 */ 697 698 // 7.18.1.4 Integer types capable of holding object pointers 699 700 type X__intptr_t = int32 /* common_int_types.h:58:27 */ 701 type X__uintptr_t = uint32 /* common_int_types.h:59:26 */ 702 703 // This should have always been an 8-bit type, but since it's been exposed 704 // to user-space, we don't want ABI breakage there. 705 type X__cpu_simple_lock_nv_t = int32 /* types.h:75:14 */ 706 type X__register_t = int32 /* types.h:77:14 */ 707 708 // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ 709 710 // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $ 711 712 // - 713 // Copyright (c) 2014 The NetBSD Foundation, Inc. 714 // All rights reserved. 715 // 716 // This code is derived from software contributed to The NetBSD Foundation 717 // by Matt Thomas of 3am Software Foundry. 718 // 719 // Redistribution and use in source and binary forms, with or without 720 // modification, are permitted provided that the following conditions 721 // are met: 722 // 1. Redistributions of source code must retain the above copyright 723 // notice, this list of conditions and the following disclaimer. 724 // 2. Redistributions in binary form must reproduce the above copyright 725 // notice, this list of conditions and the following disclaimer in the 726 // documentation and/or other materials provided with the distribution. 727 // 728 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 729 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 730 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 731 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 732 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 733 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 734 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 735 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 736 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 737 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 738 // POSSIBILITY OF SUCH DAMAGE. 739 740 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 741 742 // * Copyright (c) 1991, 1993 743 // The Regents of the University of California. All rights reserved. 744 // 745 // This code is derived from software contributed to Berkeley by 746 // Berkeley Software Design, Inc. 747 // 748 // Redistribution and use in source and binary forms, with or without 749 // modification, are permitted provided that the following conditions 750 // are met: 751 // 1. Redistributions of source code must retain the above copyright 752 // notice, this list of conditions and the following disclaimer. 753 // 2. Redistributions in binary form must reproduce the above copyright 754 // notice, this list of conditions and the following disclaimer in the 755 // documentation and/or other materials provided with the distribution. 756 // 3. Neither the name of the University nor the names of its contributors 757 // may be used to endorse or promote products derived from this software 758 // without specific prior written permission. 759 // 760 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 761 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 762 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 763 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 764 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 765 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 766 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 767 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 768 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 769 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 770 // SUCH DAMAGE. 771 // 772 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 773 774 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 775 776 // - 777 // Copyright (c) 2014 The NetBSD Foundation, Inc. 778 // All rights reserved. 779 // 780 // This code is derived from software contributed to The NetBSD Foundation 781 // by Matt Thomas of 3am Software Foundry. 782 // 783 // Redistribution and use in source and binary forms, with or without 784 // modification, are permitted provided that the following conditions 785 // are met: 786 // 1. Redistributions of source code must retain the above copyright 787 // notice, this list of conditions and the following disclaimer. 788 // 2. Redistributions in binary form must reproduce the above copyright 789 // notice, this list of conditions and the following disclaimer in the 790 // documentation and/or other materials provided with the distribution. 791 // 792 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 793 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 794 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 795 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 796 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 797 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 798 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 799 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 800 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 801 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 802 // POSSIBILITY OF SUCH DAMAGE. 803 804 // Types which are fundamental to the implementation and may appear in 805 // more than one standard header are defined here. Standard headers 806 // then use: 807 // #ifdef _BSD_SIZE_T_ 808 // typedef _BSD_SIZE_T_ size_t; 809 // #undef _BSD_SIZE_T_ 810 // #endif 811 812 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 813 814 // - 815 // Copyright (c) 2014 The NetBSD Foundation, Inc. 816 // All rights reserved. 817 // 818 // This code is derived from software contributed to The NetBSD Foundation 819 // by Matt Thomas of 3am Software Foundry. 820 // 821 // Redistribution and use in source and binary forms, with or without 822 // modification, are permitted provided that the following conditions 823 // are met: 824 // 1. Redistributions of source code must retain the above copyright 825 // notice, this list of conditions and the following disclaimer. 826 // 2. Redistributions in binary form must reproduce the above copyright 827 // notice, this list of conditions and the following disclaimer in the 828 // documentation and/or other materials provided with the distribution. 829 // 830 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 831 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 832 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 833 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 834 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 835 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 836 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 837 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 838 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 839 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 840 // POSSIBILITY OF SUCH DAMAGE. 841 842 // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $ 843 844 // - 845 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc. 846 // All rights reserved. 847 // 848 // This code is derived from software contributed to The NetBSD Foundation 849 // by Jun-ichiro itojun Hagino and by Klaus Klein. 850 // 851 // Redistribution and use in source and binary forms, with or without 852 // modification, are permitted provided that the following conditions 853 // are met: 854 // 1. Redistributions of source code must retain the above copyright 855 // notice, this list of conditions and the following disclaimer. 856 // 2. Redistributions in binary form must reproduce the above copyright 857 // notice, this list of conditions and the following disclaimer in the 858 // documentation and/or other materials provided with the distribution. 859 // 860 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 861 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 862 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 863 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 864 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 865 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 866 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 867 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 868 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 869 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 870 // POSSIBILITY OF SUCH DAMAGE. 871 872 // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ 873 874 // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $ 875 876 // - 877 // Copyright (c) 2014 The NetBSD Foundation, Inc. 878 // All rights reserved. 879 // 880 // This code is derived from software contributed to The NetBSD Foundation 881 // by Matt Thomas of 3am Software Foundry. 882 // 883 // Redistribution and use in source and binary forms, with or without 884 // modification, are permitted provided that the following conditions 885 // are met: 886 // 1. Redistributions of source code must retain the above copyright 887 // notice, this list of conditions and the following disclaimer. 888 // 2. Redistributions in binary form must reproduce the above copyright 889 // notice, this list of conditions and the following disclaimer in the 890 // documentation and/or other materials provided with the distribution. 891 // 892 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 893 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 894 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 895 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 896 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 897 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 898 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 899 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 900 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 901 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 902 // POSSIBILITY OF SUCH DAMAGE. 903 904 type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address 905 type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id 906 type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address 907 type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number 908 type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions 909 type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset 910 type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id 911 type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family 912 type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length 913 type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id 914 type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs) 915 type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */ 916 type X__wctrans_t = uintptr /* ansi.h:51:32 */ 917 type X__wctype_t = uintptr /* ansi.h:54:31 */ 918 919 // mbstate_t is an opaque object to keep conversion state, during multibyte 920 // stream conversions. The content must not be referenced by user programs. 921 type X__mbstate_t = struct { 922 F__mbstateL X__int64_t 923 F__ccgo_pad1 [120]byte 924 } /* ansi.h:63:3 */ 925 926 type X__va_list = X__builtin_va_list /* ansi.h:72:27 */ 927 928 type Int8_t = X__int8_t /* types.h:54:18 */ 929 930 type Uint8_t = X__uint8_t /* types.h:59:19 */ 931 932 type Int16_t = X__int16_t /* types.h:64:19 */ 933 934 type Uint16_t = X__uint16_t /* types.h:69:20 */ 935 936 type Int32_t = X__int32_t /* types.h:74:19 */ 937 938 type Uint32_t = X__uint32_t /* types.h:79:20 */ 939 940 type Int64_t = X__int64_t /* types.h:84:19 */ 941 942 type Uint64_t = X__uint64_t /* types.h:89:20 */ 943 944 type U_int8_t = Uint8_t /* types.h:93:18 */ 945 type U_int16_t = Uint16_t /* types.h:94:18 */ 946 type U_int32_t = Uint32_t /* types.h:95:18 */ 947 type U_int64_t = Uint64_t /* types.h:96:18 */ 948 949 // $NetBSD: endian.h,v 1.3 2001/06/23 12:20:27 bjh21 Exp $ 950 951 // $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $ 952 953 // Copyright (c) 1987, 1991, 1993 954 // The Regents of the University of California. All rights reserved. 955 // 956 // Redistribution and use in source and binary forms, with or without 957 // modification, are permitted provided that the following conditions 958 // are met: 959 // 1. Redistributions of source code must retain the above copyright 960 // notice, this list of conditions and the following disclaimer. 961 // 2. Redistributions in binary form must reproduce the above copyright 962 // notice, this list of conditions and the following disclaimer in the 963 // documentation and/or other materials provided with the distribution. 964 // 3. Neither the name of the University nor the names of its contributors 965 // may be used to endorse or promote products derived from this software 966 // without specific prior written permission. 967 // 968 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 969 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 970 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 971 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 972 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 973 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 974 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 975 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 976 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 977 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 978 // SUCH DAMAGE. 979 // 980 // @(#)endian.h 8.1 (Berkeley) 6/11/93 981 982 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 983 984 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 985 // Public domain. 986 // 987 // NOTE: Do not protect this header against multiple inclusion. Doing 988 // so can have subtle side-effects due to header file inclusion order 989 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 990 // protect each CPP macro that we want to supply. 991 992 // Feature-test macros are defined by several standards, and allow an 993 // application to specify what symbols they want the system headers to 994 // expose, and hence what standard they want them to conform to. 995 // There are two classes of feature-test macros. The first class 996 // specify complete standards, and if one of these is defined, header 997 // files will try to conform to the relevant standard. They are: 998 // 999 // ANSI macros: 1000 // _ANSI_SOURCE ANSI C89 1001 // 1002 // POSIX macros: 1003 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 1004 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 1005 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 1006 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 1007 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 1008 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 1009 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 1010 // 1011 // X/Open macros: 1012 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 1013 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 1014 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 1015 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 1016 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 1017 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 1018 // 1019 // NetBSD macros: 1020 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 1021 // 1022 // If more than one of these "major" feature-test macros is defined, 1023 // then the set of facilities provided (and namespace used) is the 1024 // union of that specified by the relevant standards, and in case of 1025 // conflict, the earlier standard in the above list has precedence (so 1026 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 1027 // of rename() that's used is the POSIX one). If none of the "major" 1028 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 1029 // 1030 // There are also "minor" feature-test macros, which enable extra 1031 // functionality in addition to some base standard. They should be 1032 // defined along with one of the "major" macros. The "minor" macros 1033 // are: 1034 // 1035 // _REENTRANT 1036 // _ISOC99_SOURCE 1037 // _ISOC11_SOURCE 1038 // _LARGEFILE_SOURCE Large File Support 1039 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 1040 1041 // Definitions for byte order, according to byte significance from low 1042 // address to high. 1043 1044 // C-family endian-ness definitions 1045 1046 // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $ 1047 1048 // - 1049 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc. 1050 // All rights reserved. 1051 // 1052 // This code is derived from software contributed to The NetBSD Foundation 1053 // by Jun-ichiro itojun Hagino and by Klaus Klein. 1054 // 1055 // Redistribution and use in source and binary forms, with or without 1056 // modification, are permitted provided that the following conditions 1057 // are met: 1058 // 1. Redistributions of source code must retain the above copyright 1059 // notice, this list of conditions and the following disclaimer. 1060 // 2. Redistributions in binary form must reproduce the above copyright 1061 // notice, this list of conditions and the following disclaimer in the 1062 // documentation and/or other materials provided with the distribution. 1063 // 1064 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1065 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1066 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1067 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1068 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1069 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1070 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1071 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1072 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1073 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1074 // POSSIBILITY OF SUCH DAMAGE. 1075 1076 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 1077 1078 // * Copyright (c) 1991, 1993 1079 // The Regents of the University of California. All rights reserved. 1080 // 1081 // This code is derived from software contributed to Berkeley by 1082 // Berkeley Software Design, Inc. 1083 // 1084 // Redistribution and use in source and binary forms, with or without 1085 // modification, are permitted provided that the following conditions 1086 // are met: 1087 // 1. Redistributions of source code must retain the above copyright 1088 // notice, this list of conditions and the following disclaimer. 1089 // 2. Redistributions in binary form must reproduce the above copyright 1090 // notice, this list of conditions and the following disclaimer in the 1091 // documentation and/or other materials provided with the distribution. 1092 // 3. Neither the name of the University nor the names of its contributors 1093 // may be used to endorse or promote products derived from this software 1094 // without specific prior written permission. 1095 // 1096 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1097 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1098 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1099 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1100 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1101 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1102 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1103 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1104 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1105 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1106 // SUCH DAMAGE. 1107 // 1108 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1109 1110 // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $ 1111 1112 // - 1113 // Copyright (c) 1982, 1986, 1991, 1993, 1994 1114 // The Regents of the University of California. All rights reserved. 1115 // (c) UNIX System Laboratories, Inc. 1116 // All or some portions of this file are derived from material licensed 1117 // to the University of California by American Telephone and Telegraph 1118 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1119 // the permission of UNIX System Laboratories, Inc. 1120 // 1121 // Redistribution and use in source and binary forms, with or without 1122 // modification, are permitted provided that the following conditions 1123 // are met: 1124 // 1. Redistributions of source code must retain the above copyright 1125 // notice, this list of conditions and the following disclaimer. 1126 // 2. Redistributions in binary form must reproduce the above copyright 1127 // notice, this list of conditions and the following disclaimer in the 1128 // documentation and/or other materials provided with the distribution. 1129 // 3. Neither the name of the University nor the names of its contributors 1130 // may be used to endorse or promote products derived from this software 1131 // without specific prior written permission. 1132 // 1133 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1134 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1135 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1136 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1137 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1138 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1139 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1140 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1141 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1142 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1143 // SUCH DAMAGE. 1144 // 1145 // @(#)types.h 8.4 (Berkeley) 1/21/94 1146 1147 type In_addr_t = X__in_addr_t /* endian.h:58:21 */ 1148 1149 type In_port_t = X__in_port_t /* endian.h:63:21 */ 1150 1151 // $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $ 1152 1153 // Written by Manuel Bouyer. Public domain 1154 1155 // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $ 1156 1157 // - 1158 // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. 1159 // All rights reserved. 1160 // 1161 // This code is derived from software contributed to The NetBSD Foundation 1162 // by Klaus Klein. 1163 // 1164 // Redistribution and use in source and binary forms, with or without 1165 // modification, are permitted provided that the following conditions 1166 // are met: 1167 // 1. Redistributions of source code must retain the above copyright 1168 // notice, this list of conditions and the following disclaimer. 1169 // 2. Redistributions in binary form must reproduce the above copyright 1170 // notice, this list of conditions and the following disclaimer in the 1171 // documentation and/or other materials provided with the distribution. 1172 // 1173 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1174 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1175 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1176 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1177 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1178 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1179 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1180 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1181 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1182 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1183 // POSSIBILITY OF SUCH DAMAGE. 1184 1185 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 1186 1187 // * Copyright (c) 1991, 1993 1188 // The Regents of the University of California. All rights reserved. 1189 // 1190 // This code is derived from software contributed to Berkeley by 1191 // Berkeley Software Design, Inc. 1192 // 1193 // Redistribution and use in source and binary forms, with or without 1194 // modification, are permitted provided that the following conditions 1195 // are met: 1196 // 1. Redistributions of source code must retain the above copyright 1197 // notice, this list of conditions and the following disclaimer. 1198 // 2. Redistributions in binary form must reproduce the above copyright 1199 // notice, this list of conditions and the following disclaimer in the 1200 // documentation and/or other materials provided with the distribution. 1201 // 3. Neither the name of the University nor the names of its contributors 1202 // may be used to endorse or promote products derived from this software 1203 // without specific prior written permission. 1204 // 1205 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1206 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1207 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1208 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1209 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1210 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1211 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1212 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1213 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1214 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1215 // SUCH DAMAGE. 1216 // 1217 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1218 1219 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 1220 1221 // - 1222 // Copyright (c) 2014 The NetBSD Foundation, Inc. 1223 // All rights reserved. 1224 // 1225 // This code is derived from software contributed to The NetBSD Foundation 1226 // by Matt Thomas of 3am Software Foundry. 1227 // 1228 // Redistribution and use in source and binary forms, with or without 1229 // modification, are permitted provided that the following conditions 1230 // are met: 1231 // 1. Redistributions of source code must retain the above copyright 1232 // notice, this list of conditions and the following disclaimer. 1233 // 2. Redistributions in binary form must reproduce the above copyright 1234 // notice, this list of conditions and the following disclaimer in the 1235 // documentation and/or other materials provided with the distribution. 1236 // 1237 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1238 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1239 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1240 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1241 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1242 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1243 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1244 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1245 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1246 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1247 // POSSIBILITY OF SUCH DAMAGE. 1248 1249 type Intptr_t = X__intptr_t /* stdint.h:79:20 */ 1250 1251 type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */ 1252 1253 // $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $ 1254 1255 // - 1256 // Copyright (c) 2014 The NetBSD Foundation, Inc. 1257 // All rights reserved. 1258 // 1259 // This code is derived from software contributed to The NetBSD Foundation 1260 // by Matt Thomas of 3am Software Foundry. 1261 // 1262 // Redistribution and use in source and binary forms, with or without 1263 // modification, are permitted provided that the following conditions 1264 // are met: 1265 // 1. Redistributions of source code must retain the above copyright 1266 // notice, this list of conditions and the following disclaimer. 1267 // 2. Redistributions in binary form must reproduce the above copyright 1268 // notice, this list of conditions and the following disclaimer in the 1269 // documentation and/or other materials provided with the distribution. 1270 // 1271 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1272 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1273 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1274 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1275 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1276 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1277 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1278 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1279 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1280 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1281 // POSSIBILITY OF SUCH DAMAGE. 1282 1283 // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ 1284 1285 // - 1286 // Copyright (c) 2014 The NetBSD Foundation, Inc. 1287 // All rights reserved. 1288 // 1289 // This code is derived from software contributed to The NetBSD Foundation 1290 // by Joerg Sonnenberger. 1291 // 1292 // Redistribution and use in source and binary forms, with or without 1293 // modification, are permitted provided that the following conditions 1294 // are met: 1295 // 1. Redistributions of source code must retain the above copyright 1296 // notice, this list of conditions and the following disclaimer. 1297 // 2. Redistributions in binary form must reproduce the above copyright 1298 // notice, this list of conditions and the following disclaimer in the 1299 // documentation and/or other materials provided with the distribution. 1300 // 1301 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1302 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1303 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1304 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1305 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1306 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1307 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1308 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1309 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1310 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1311 // POSSIBILITY OF SUCH DAMAGE. 1312 1313 // 7.18.1 Integer types 1314 1315 // 7.18.1.2 Minimum-width integer types 1316 1317 type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */ 1318 type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */ 1319 type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */ 1320 type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */ 1321 type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */ 1322 type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */ 1323 type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */ 1324 type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */ 1325 1326 // 7.18.1.3 Fastest minimum-width integer types 1327 type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */ 1328 type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */ 1329 type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */ 1330 type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */ 1331 type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */ 1332 type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */ 1333 type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */ 1334 type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */ 1335 1336 // 7.18.1.5 Greatest-width integer types 1337 1338 type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */ 1339 type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */ 1340 1341 type U_char = uint8 /* types.h:101:23 */ 1342 type U_short = uint16 /* types.h:102:24 */ 1343 type U_int = uint32 /* types.h:103:22 */ 1344 type U_long = uint32 /* types.h:104:23 */ 1345 1346 type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility 1347 type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility 1348 type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility 1349 type Ulong = uint32 /* types.h:109:23 */ // Sys V compatibility 1350 1351 type U_quad_t = Uint64_t /* types.h:112:18 */ // quads 1352 type Quad_t = Int64_t /* types.h:113:18 */ 1353 type Qaddr_t = uintptr /* types.h:114:16 */ 1354 1355 // The types longlong_t and u_longlong_t exist for use with the 1356 // Sun-derived XDR routines involving these types, and their usage 1357 // in other contexts is discouraged. Further note that these types 1358 // may not be equivalent to "long long" and "unsigned long long", 1359 // they are only guaranteed to be signed and unsigned 64-bit types 1360 // respectively. Portable programs that need 64-bit types should use 1361 // the C99 types int64_t and uint64_t instead. 1362 1363 type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR 1364 type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR 1365 1366 type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count 1367 type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size 1368 1369 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs) 1370 1371 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count 1372 1373 // We don't and shouldn't use caddr_t in the kernel anymore 1374 type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address 1375 1376 type Daddr_t = Int64_t /* types.h:154:18 */ // disk address 1377 1378 type Dev_t = Uint64_t /* types.h:157:18 */ // device number 1379 type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number 1380 1381 type Gid_t = X__gid_t /* types.h:161:18 */ // group id 1382 1383 type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id 1384 type Ino_t = Uint64_t /* types.h:166:18 */ // inode number 1385 type Key_t = int32 /* types.h:167:15 */ // IPC key (for Sys V IPC) 1386 1387 type Mode_t = X__mode_t /* types.h:170:18 */ // permissions 1388 1389 type Nlink_t = Uint32_t /* types.h:174:18 */ // link count 1390 1391 type Off_t = X__off_t /* types.h:177:18 */ // file offset 1392 1393 type Pid_t = X__pid_t /* types.h:182:18 */ // process id 1394 type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id 1395 type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit 1396 type Segsz_t = Int32_t /* types.h:187:18 */ // segment size 1397 type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset 1398 1399 type Uid_t = X__uid_t /* types.h:191:18 */ // user id 1400 1401 type Mqd_t = int32 /* types.h:195:14 */ 1402 1403 type Cpuid_t = uint32 /* types.h:197:23 */ 1404 1405 type Psetid_t = int32 /* types.h:199:14 */ 1406 1407 type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */ 1408 1409 // Major, minor numbers, dev_t's. 1410 type X__devmajor_t = Int32_t /* types.h:255:17 */ 1411 type X__devminor_t = Int32_t /* types.h:255:31 */ 1412 1413 type Clock_t = uint32 /* types.h:268:24 */ 1414 1415 type Ssize_t = int32 /* types.h:284:24 */ 1416 1417 type Time_t = X__int64_t /* types.h:289:23 */ 1418 1419 type Clockid_t = int32 /* types.h:294:26 */ 1420 1421 type Timer_t = int32 /* types.h:299:24 */ 1422 1423 type Suseconds_t = int32 /* types.h:304:27 */ 1424 1425 type Useconds_t = uint32 /* types.h:309:26 */ 1426 1427 // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $ 1428 1429 // - 1430 // Copyright (c) 1992, 1993 1431 // The Regents of the University of California. All rights reserved. 1432 // 1433 // Redistribution and use in source and binary forms, with or without 1434 // modification, are permitted provided that the following conditions 1435 // are met: 1436 // 1. Redistributions of source code must retain the above copyright 1437 // notice, this list of conditions and the following disclaimer. 1438 // 2. Redistributions in binary form must reproduce the above copyright 1439 // notice, this list of conditions and the following disclaimer in the 1440 // documentation and/or other materials provided with the distribution. 1441 // 3. Neither the name of the University nor the names of its contributors 1442 // may be used to endorse or promote products derived from this software 1443 // without specific prior written permission. 1444 // 1445 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1446 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1447 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1448 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1449 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1450 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1451 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1452 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1453 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1454 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1455 // SUCH DAMAGE. 1456 // 1457 // from: @(#)types.h 8.4 (Berkeley) 1/21/94 1458 1459 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 1460 1461 // * Copyright (c) 1991, 1993 1462 // The Regents of the University of California. All rights reserved. 1463 // 1464 // This code is derived from software contributed to Berkeley by 1465 // Berkeley Software Design, Inc. 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 // 3. Neither the name of the University nor the names of its contributors 1476 // may be used to endorse or promote products derived from this software 1477 // without specific prior written permission. 1478 // 1479 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1480 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1481 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1482 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1483 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1484 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1485 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1486 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1487 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1488 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1489 // SUCH DAMAGE. 1490 // 1491 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 1492 1493 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 1494 1495 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 1496 // Public domain. 1497 // 1498 // NOTE: Do not protect this header against multiple inclusion. Doing 1499 // so can have subtle side-effects due to header file inclusion order 1500 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 1501 // protect each CPP macro that we want to supply. 1502 1503 // Feature-test macros are defined by several standards, and allow an 1504 // application to specify what symbols they want the system headers to 1505 // expose, and hence what standard they want them to conform to. 1506 // There are two classes of feature-test macros. The first class 1507 // specify complete standards, and if one of these is defined, header 1508 // files will try to conform to the relevant standard. They are: 1509 // 1510 // ANSI macros: 1511 // _ANSI_SOURCE ANSI C89 1512 // 1513 // POSIX macros: 1514 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 1515 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 1516 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 1517 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 1518 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 1519 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 1520 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 1521 // 1522 // X/Open macros: 1523 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 1524 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 1525 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 1526 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 1527 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 1528 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 1529 // 1530 // NetBSD macros: 1531 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 1532 // 1533 // If more than one of these "major" feature-test macros is defined, 1534 // then the set of facilities provided (and namespace used) is the 1535 // union of that specified by the relevant standards, and in case of 1536 // conflict, the earlier standard in the above list has precedence (so 1537 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 1538 // of rename() that's used is the POSIX one). If none of the "major" 1539 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 1540 // 1541 // There are also "minor" feature-test macros, which enable extra 1542 // functionality in addition to some base standard. They should be 1543 // defined along with one of the "major" macros. The "minor" macros 1544 // are: 1545 // 1546 // _REENTRANT 1547 // _ISOC99_SOURCE 1548 // _ISOC11_SOURCE 1549 // _LARGEFILE_SOURCE Large File Support 1550 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 1551 1552 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 1553 1554 // - 1555 // Copyright (c) 2014 The NetBSD Foundation, Inc. 1556 // All rights reserved. 1557 // 1558 // This code is derived from software contributed to The NetBSD Foundation 1559 // by Matt Thomas of 3am Software Foundry. 1560 // 1561 // Redistribution and use in source and binary forms, with or without 1562 // modification, are permitted provided that the following conditions 1563 // are met: 1564 // 1. Redistributions of source code must retain the above copyright 1565 // notice, this list of conditions and the following disclaimer. 1566 // 2. Redistributions in binary form must reproduce the above copyright 1567 // notice, this list of conditions and the following disclaimer in the 1568 // documentation and/or other materials provided with the distribution. 1569 // 1570 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1571 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1572 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1573 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1574 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1575 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1576 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1577 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1578 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1579 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1580 // POSSIBILITY OF SUCH DAMAGE. 1581 1582 // Implementation dependent defines, hidden from user space. 1583 // POSIX does not specify them. 1584 1585 type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */ 1586 1587 // 32 = 2 ^ 5 1588 1589 // Select uses bit fields of file descriptors. These macros manipulate 1590 // such bit fields. Note: FD_SETSIZE may be defined by the user. 1591 1592 type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */ 1593 1594 // 32 = 2 ^ 5 1595 1596 // Select uses bit fields of file descriptors. These macros manipulate 1597 // such bit fields. Note: FD_SETSIZE may be defined by the user. 1598 1599 type Fd_set = Fd_set1 /* fd_set.h:68:3 */ 1600 1601 // Expose our internals if we are not required to hide them. 1602 1603 type Kauth_cred_t = uintptr /* types.h:318:27 */ 1604 1605 type Pri_t = int32 /* types.h:320:13 */ 1606 1607 // $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $ 1608 1609 // - 1610 // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc. 1611 // All rights reserved. 1612 // 1613 // This code is derived from software contributed to The NetBSD Foundation 1614 // by Nathan J. Williams. 1615 // 1616 // Redistribution and use in source and binary forms, with or without 1617 // modification, are permitted provided that the following conditions 1618 // are met: 1619 // 1. Redistributions of source code must retain the above copyright 1620 // notice, this list of conditions and the following disclaimer. 1621 // 2. Redistributions in binary form must reproduce the above copyright 1622 // notice, this list of conditions and the following disclaimer in the 1623 // documentation and/or other materials provided with the distribution. 1624 // 1625 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1626 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1627 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1628 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1629 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1630 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1631 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1632 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1633 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1634 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1635 // POSSIBILITY OF SUCH DAMAGE. 1636 1637 // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the 1638 // POSIX spinlock object. 1639 // 1640 // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer. 1641 // This does not work for volatile types. Since C++ does not touch the guts 1642 // of those types, we do not include volatile in the C++ definitions. 1643 type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */ 1644 type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */ 1645 1646 // Copied from PTQ_HEAD in pthread_queue.h 1647 1648 type Pthread_queue_struct_t = struct { 1649 Fptqh_first uintptr 1650 Fptqh_last uintptr 1651 } /* pthread_types.h:61:1 */ 1652 1653 type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */ 1654 type X__pthread_attr_st = struct { 1655 Fpta_magic uint32 1656 Fpta_flags int32 1657 Fpta_private uintptr 1658 } /* pthread_types.h:65:1 */ 1659 1660 type X__pthread_mutex_st = struct { 1661 Fptm_magic uint32 1662 Fptm_errorcheck X__pthread_spin_t 1663 F__8 struct { 1664 F__ccgo_pad1 [0]uint32 1665 Fptm_ceiling uint8 1666 F__ccgo_pad2 [3]byte 1667 } 1668 Fptm_owner Pthread_t 1669 Fptm_waiters uintptr 1670 Fptm_recursed uint32 1671 Fptm_spare2 uintptr 1672 } /* pthread_types.h:66:1 */ 1673 1674 type X__pthread_mutexattr_st = struct { 1675 Fptma_magic uint32 1676 Fptma_private uintptr 1677 } /* pthread_types.h:67:1 */ 1678 1679 type X__pthread_cond_st = struct { 1680 Fptc_magic uint32 1681 Fptc_lock X__pthread_spin_t 1682 Fptc_waiters Pthread_queue_t 1683 Fptc_mutex uintptr 1684 Fptc_private uintptr 1685 } /* pthread_types.h:68:1 */ 1686 1687 type X__pthread_condattr_st = struct { 1688 Fptca_magic uint32 1689 Fptca_private uintptr 1690 } /* pthread_types.h:69:1 */ 1691 1692 type X__pthread_rwlock_st = struct { 1693 Fptr_magic uint32 1694 Fptr_interlock X__pthread_spin_t 1695 Fptr_rblocked Pthread_queue_t 1696 Fptr_wblocked Pthread_queue_t 1697 Fptr_nreaders uint32 1698 Fptr_owner Pthread_t 1699 Fptr_private uintptr 1700 } /* pthread_types.h:71:1 */ 1701 1702 type X__pthread_rwlockattr_st = struct { 1703 Fptra_magic uint32 1704 Fptra_private uintptr 1705 } /* pthread_types.h:72:1 */ 1706 1707 type X__pthread_barrier_st = struct { 1708 Fptb_magic uint32 1709 Fptb_lock Pthread_spin_t 1710 Fptb_waiters Pthread_queue_t 1711 Fptb_initcount uint32 1712 Fptb_curcount uint32 1713 Fptb_generation uint32 1714 Fptb_private uintptr 1715 } /* pthread_types.h:73:1 */ 1716 1717 type X__pthread_barrierattr_st = struct { 1718 Fptba_magic uint32 1719 Fptba_private uintptr 1720 } /* pthread_types.h:74:1 */ 1721 1722 type Pthread_t = uintptr /* pthread_types.h:76:29 */ 1723 type Pthread_attr_t = X__pthread_attr_st /* pthread_types.h:77:34 */ 1724 type Pthread_mutex_t = X__pthread_mutex_st /* pthread_types.h:78:35 */ 1725 type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */ 1726 type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */ 1727 type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */ 1728 type X__pthread_once_st = struct { 1729 Fpto_mutex Pthread_mutex_t 1730 Fpto_done int32 1731 } /* pthread_types.h:82:9 */ 1732 1733 type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */ 1734 type X__pthread_spinlock_st = struct { 1735 Fpts_magic uint32 1736 Fpts_spin X__pthread_spin_t 1737 Fpts_flags int32 1738 } /* pthread_types.h:83:9 */ 1739 1740 type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */ 1741 type Pthread_rwlock_t = X__pthread_rwlock_st /* pthread_types.h:84:36 */ 1742 type Pthread_rwlockattr_t = X__pthread_rwlockattr_st /* pthread_types.h:85:40 */ 1743 type Pthread_barrier_t = X__pthread_barrier_st /* pthread_types.h:86:37 */ 1744 type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */ 1745 type Pthread_key_t = int32 /* pthread_types.h:88:13 */ 1746 1747 // $NetBSD: signal.h,v 1.72 2017/04/21 15:10:35 christos Exp $ 1748 1749 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1750 // The Regents of the University of California. All rights reserved. 1751 // (c) UNIX System Laboratories, Inc. 1752 // All or some portions of this file are derived from material licensed 1753 // to the University of California by American Telephone and Telegraph 1754 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1755 // the permission of UNIX System Laboratories, Inc. 1756 // 1757 // Redistribution and use in source and binary forms, with or without 1758 // modification, are permitted provided that the following conditions 1759 // are met: 1760 // 1. Redistributions of source code must retain the above copyright 1761 // notice, this list of conditions and the following disclaimer. 1762 // 2. Redistributions in binary form must reproduce the above copyright 1763 // notice, this list of conditions and the following disclaimer in the 1764 // documentation and/or other materials provided with the distribution. 1765 // 3. Neither the name of the University nor the names of its contributors 1766 // may be used to endorse or promote products derived from this software 1767 // without specific prior written permission. 1768 // 1769 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1770 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1771 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1772 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1773 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1774 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1775 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1776 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1777 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1778 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1779 // SUCH DAMAGE. 1780 // 1781 // @(#)signal.h 8.4 (Berkeley) 5/4/95 1782 1783 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 1784 1785 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 1786 // Public domain. 1787 // 1788 // NOTE: Do not protect this header against multiple inclusion. Doing 1789 // so can have subtle side-effects due to header file inclusion order 1790 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 1791 // protect each CPP macro that we want to supply. 1792 1793 // Feature-test macros are defined by several standards, and allow an 1794 // application to specify what symbols they want the system headers to 1795 // expose, and hence what standard they want them to conform to. 1796 // There are two classes of feature-test macros. The first class 1797 // specify complete standards, and if one of these is defined, header 1798 // files will try to conform to the relevant standard. They are: 1799 // 1800 // ANSI macros: 1801 // _ANSI_SOURCE ANSI C89 1802 // 1803 // POSIX macros: 1804 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 1805 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 1806 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 1807 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 1808 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 1809 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 1810 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 1811 // 1812 // X/Open macros: 1813 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 1814 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 1815 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 1816 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 1817 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 1818 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 1819 // 1820 // NetBSD macros: 1821 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 1822 // 1823 // If more than one of these "major" feature-test macros is defined, 1824 // then the set of facilities provided (and namespace used) is the 1825 // union of that specified by the relevant standards, and in case of 1826 // conflict, the earlier standard in the above list has precedence (so 1827 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 1828 // of rename() that's used is the POSIX one). If none of the "major" 1829 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 1830 // 1831 // There are also "minor" feature-test macros, which enable extra 1832 // functionality in addition to some base standard. They should be 1833 // defined along with one of the "major" macros. The "minor" macros 1834 // are: 1835 // 1836 // _REENTRANT 1837 // _ISOC99_SOURCE 1838 // _ISOC11_SOURCE 1839 // _LARGEFILE_SOURCE Large File Support 1840 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 1841 1842 // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $ 1843 1844 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1845 // The Regents of the University of California. All rights reserved. 1846 // (c) UNIX System Laboratories, Inc. 1847 // All or some portions of this file are derived from material licensed 1848 // to the University of California by American Telephone and Telegraph 1849 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1850 // the permission of UNIX System Laboratories, Inc. 1851 // 1852 // Redistribution and use in source and binary forms, with or without 1853 // modification, are permitted provided that the following conditions 1854 // are met: 1855 // 1. Redistributions of source code must retain the above copyright 1856 // notice, this list of conditions and the following disclaimer. 1857 // 2. Redistributions in binary form must reproduce the above copyright 1858 // notice, this list of conditions and the following disclaimer in the 1859 // documentation and/or other materials provided with the distribution. 1860 // 3. Neither the name of the University nor the names of its contributors 1861 // may be used to endorse or promote products derived from this software 1862 // without specific prior written permission. 1863 // 1864 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1865 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1866 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1867 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1868 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1869 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1870 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1871 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1872 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1873 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1874 // SUCH DAMAGE. 1875 // 1876 // @(#)signal.h 8.4 (Berkeley) 5/4/95 1877 1878 // This header file defines various signal-related types. We also keep 1879 // the macros to manipulate sigset_t here, to encapsulate knowledge of 1880 // its internals. 1881 1882 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 1883 1884 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 1885 // Public domain. 1886 // 1887 // NOTE: Do not protect this header against multiple inclusion. Doing 1888 // so can have subtle side-effects due to header file inclusion order 1889 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 1890 // protect each CPP macro that we want to supply. 1891 1892 // Feature-test macros are defined by several standards, and allow an 1893 // application to specify what symbols they want the system headers to 1894 // expose, and hence what standard they want them to conform to. 1895 // There are two classes of feature-test macros. The first class 1896 // specify complete standards, and if one of these is defined, header 1897 // files will try to conform to the relevant standard. They are: 1898 // 1899 // ANSI macros: 1900 // _ANSI_SOURCE ANSI C89 1901 // 1902 // POSIX macros: 1903 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 1904 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 1905 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 1906 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 1907 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 1908 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 1909 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 1910 // 1911 // X/Open macros: 1912 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 1913 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 1914 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 1915 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 1916 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 1917 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 1918 // 1919 // NetBSD macros: 1920 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 1921 // 1922 // If more than one of these "major" feature-test macros is defined, 1923 // then the set of facilities provided (and namespace used) is the 1924 // union of that specified by the relevant standards, and in case of 1925 // conflict, the earlier standard in the above list has precedence (so 1926 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 1927 // of rename() that's used is the POSIX one). If none of the "major" 1928 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 1929 // 1930 // There are also "minor" feature-test macros, which enable extra 1931 // functionality in addition to some base standard. They should be 1932 // defined along with one of the "major" macros. The "minor" macros 1933 // are: 1934 // 1935 // _REENTRANT 1936 // _ISOC99_SOURCE 1937 // _ISOC11_SOURCE 1938 // _LARGEFILE_SOURCE Large File Support 1939 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 1940 1941 // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ 1942 1943 // - 1944 // Copyright (c) 2014 The NetBSD Foundation, Inc. 1945 // All rights reserved. 1946 // 1947 // This code is derived from software contributed to The NetBSD Foundation 1948 // by Matt Thomas of 3am Software Foundry. 1949 // 1950 // Redistribution and use in source and binary forms, with or without 1951 // modification, are permitted provided that the following conditions 1952 // are met: 1953 // 1. Redistributions of source code must retain the above copyright 1954 // notice, this list of conditions and the following disclaimer. 1955 // 2. Redistributions in binary form must reproduce the above copyright 1956 // notice, this list of conditions and the following disclaimer in the 1957 // documentation and/or other materials provided with the distribution. 1958 // 1959 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1960 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1961 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1962 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1963 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1964 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1965 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1966 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1967 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 1968 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 1969 // POSSIBILITY OF SUCH DAMAGE. 1970 1971 // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ 1972 1973 // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $ 1974 1975 // - 1976 // Copyright (c) 2014 The NetBSD Foundation, Inc. 1977 // All rights reserved. 1978 // 1979 // This code is derived from software contributed to The NetBSD Foundation 1980 // by Matt Thomas of 3am Software Foundry. 1981 // 1982 // Redistribution and use in source and binary forms, with or without 1983 // modification, are permitted provided that the following conditions 1984 // are met: 1985 // 1. Redistributions of source code must retain the above copyright 1986 // notice, this list of conditions and the following disclaimer. 1987 // 2. Redistributions in binary form must reproduce the above copyright 1988 // notice, this list of conditions and the following disclaimer in the 1989 // documentation and/or other materials provided with the distribution. 1990 // 1991 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1992 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1993 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1994 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1995 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1996 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 1997 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 1998 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 1999 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2000 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2001 // POSSIBILITY OF SUCH DAMAGE. 2002 2003 type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */ 2004 2005 // Macro for manipulating signal masks. 2006 2007 type Sigaltstack = struct { 2008 Fss_sp uintptr 2009 Fss_size Size_t 2010 Fss_flags int32 2011 } /* sigtypes.h:108:9 */ 2012 2013 // Macro for manipulating signal masks. 2014 2015 type Stack_t = Sigaltstack /* sigtypes.h:116:3 */ 2016 2017 // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $ 2018 2019 // * Copyright (c) 1991, 1993 2020 // The Regents of the University of California. All rights reserved. 2021 // 2022 // This code is derived from software contributed to Berkeley by 2023 // Berkeley Software Design, Inc. 2024 // 2025 // Redistribution and use in source and binary forms, with or without 2026 // modification, are permitted provided that the following conditions 2027 // are met: 2028 // 1. Redistributions of source code must retain the above copyright 2029 // notice, this list of conditions and the following disclaimer. 2030 // 2. Redistributions in binary form must reproduce the above copyright 2031 // notice, this list of conditions and the following disclaimer in the 2032 // documentation and/or other materials provided with the distribution. 2033 // 3. Neither the name of the University nor the names of its contributors 2034 // may be used to endorse or promote products derived from this software 2035 // without specific prior written permission. 2036 // 2037 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2038 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2039 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2040 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2041 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2042 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2043 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2044 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2045 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2046 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2047 // SUCH DAMAGE. 2048 // 2049 // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 2050 2051 // $NetBSD: siginfo.h,v 1.33.2.1 2019/10/15 18:32:13 martin Exp $ 2052 2053 // - 2054 // Copyright (c) 2002 The NetBSD Foundation, Inc. 2055 // All rights reserved. 2056 // 2057 // This code is derived from software contributed to The NetBSD Foundation 2058 // by Christos Zoulas. 2059 // 2060 // Redistribution and use in source and binary forms, with or without 2061 // modification, are permitted provided that the following conditions 2062 // are met: 2063 // 1. Redistributions of source code must retain the above copyright 2064 // notice, this list of conditions and the following disclaimer. 2065 // 2. Redistributions in binary form must reproduce the above copyright 2066 // notice, this list of conditions and the following disclaimer in the 2067 // documentation and/or other materials provided with the distribution. 2068 // 2069 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2070 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2071 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2072 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2073 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2074 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2075 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2076 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2077 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2078 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2079 // POSSIBILITY OF SUCH DAMAGE. 2080 2081 // $NetBSD: signal.h,v 1.15 2018/04/01 04:35:04 ryo Exp $ 2082 2083 // Copyright (c) 1994-1996 Mark Brinicombe. 2084 // Copyright (c) 1994 Brini. 2085 // All rights reserved. 2086 // 2087 // This code is derived from software written for Brini by Mark Brinicombe 2088 // 2089 // Redistribution and use in source and binary forms, with or without 2090 // modification, are permitted provided that the following conditions 2091 // are met: 2092 // 1. Redistributions of source code must retain the above copyright 2093 // notice, this list of conditions and the following disclaimer. 2094 // 2. Redistributions in binary form must reproduce the above copyright 2095 // notice, this list of conditions and the following disclaimer in the 2096 // documentation and/or other materials provided with the distribution. 2097 // 3. All advertising materials mentioning features or use of this software 2098 // must display the following acknowledgement: 2099 // This product includes software developed by Brini. 2100 // 4. The name of the company nor the name of the author may be used to 2101 // endorse or promote products derived from this software without specific 2102 // prior written permission. 2103 // 2104 // THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED 2105 // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2106 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2107 // IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 2108 // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2109 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2110 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2111 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2112 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2113 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2114 // SUCH DAMAGE. 2115 // 2116 // RiscBSD kernel project 2117 // 2118 // signal.h 2119 // 2120 // Architecture dependent signal types and structures 2121 // 2122 // Created : 30/09/94 2123 2124 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 2125 2126 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 2127 // Public domain. 2128 // 2129 // NOTE: Do not protect this header against multiple inclusion. Doing 2130 // so can have subtle side-effects due to header file inclusion order 2131 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 2132 // protect each CPP macro that we want to supply. 2133 2134 // Feature-test macros are defined by several standards, and allow an 2135 // application to specify what symbols they want the system headers to 2136 // expose, and hence what standard they want them to conform to. 2137 // There are two classes of feature-test macros. The first class 2138 // specify complete standards, and if one of these is defined, header 2139 // files will try to conform to the relevant standard. They are: 2140 // 2141 // ANSI macros: 2142 // _ANSI_SOURCE ANSI C89 2143 // 2144 // POSIX macros: 2145 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 2146 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 2147 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 2148 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 2149 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 2150 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 2151 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 2152 // 2153 // X/Open macros: 2154 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 2155 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 2156 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 2157 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 2158 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 2159 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 2160 // 2161 // NetBSD macros: 2162 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 2163 // 2164 // If more than one of these "major" feature-test macros is defined, 2165 // then the set of facilities provided (and namespace used) is the 2166 // union of that specified by the relevant standards, and in case of 2167 // conflict, the earlier standard in the above list has precedence (so 2168 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 2169 // of rename() that's used is the POSIX one). If none of the "major" 2170 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 2171 // 2172 // There are also "minor" feature-test macros, which enable extra 2173 // functionality in addition to some base standard. They should be 2174 // defined along with one of the "major" macros. The "minor" macros 2175 // are: 2176 // 2177 // _REENTRANT 2178 // _ISOC99_SOURCE 2179 // _ISOC11_SOURCE 2180 // _LARGEFILE_SOURCE Large File Support 2181 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 2182 2183 // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $ 2184 2185 // Copyright (c) 1982, 1986, 1989, 1991, 1993 2186 // The Regents of the University of California. All rights reserved. 2187 // (c) UNIX System Laboratories, Inc. 2188 // All or some portions of this file are derived from material licensed 2189 // to the University of California by American Telephone and Telegraph 2190 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 2191 // the permission of UNIX System Laboratories, Inc. 2192 // 2193 // Redistribution and use in source and binary forms, with or without 2194 // modification, are permitted provided that the following conditions 2195 // are met: 2196 // 1. Redistributions of source code must retain the above copyright 2197 // notice, this list of conditions and the following disclaimer. 2198 // 2. Redistributions in binary form must reproduce the above copyright 2199 // notice, this list of conditions and the following disclaimer in the 2200 // documentation and/or other materials provided with the distribution. 2201 // 3. Neither the name of the University nor the names of its contributors 2202 // may be used to endorse or promote products derived from this software 2203 // without specific prior written permission. 2204 // 2205 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2206 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2207 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2208 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2209 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2210 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2211 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2212 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2213 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2214 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2215 // SUCH DAMAGE. 2216 // 2217 // @(#)signal.h 8.4 (Berkeley) 5/4/95 2218 2219 type Sig_atomic_t = int32 /* signal.h:53:13 */ 2220 2221 // Information pushed on stack when a signal is delivered. 2222 // This is used by the kernel to restore state following 2223 // execution of the signal handler. It is also made available 2224 // to the handler to allow it to restore state properly if 2225 // a non-standard exit is performed. 2226 2227 type Sigcontext = struct { 2228 Fsc_onstack int32 2229 F__sc_mask13 int32 2230 Fsc_spsr uint32 2231 Fsc_r0 uint32 2232 Fsc_r1 uint32 2233 Fsc_r2 uint32 2234 Fsc_r3 uint32 2235 Fsc_r4 uint32 2236 Fsc_r5 uint32 2237 Fsc_r6 uint32 2238 Fsc_r7 uint32 2239 Fsc_r8 uint32 2240 Fsc_r9 uint32 2241 Fsc_r10 uint32 2242 Fsc_r11 uint32 2243 Fsc_r12 uint32 2244 Fsc_usr_sp uint32 2245 Fsc_usr_lr uint32 2246 Fsc_svc_lr uint32 2247 Fsc_pc uint32 2248 Fsc_mask Sigset_t 2249 } /* signal.h:95:1 */ 2250 2251 // Signals codes 2252 2253 // SIGFPE codes 2254 // 2255 // see ieeefp.h for definition of FP exception codes 2256 2257 // SIGILL codes 2258 // 2259 // the signal code is the instruction that raised the signal 2260 2261 // SIGBUS and SIGSEGV codes 2262 // 2263 // The signal code is combination of the fault address and the fault code. 2264 // 2265 // The fault code is the coproc #15 fault status code 2266 // 2267 // The exception to this is a SIGBUS or SIGSEGV from a prefetch abort. 2268 // In this case the fault status code is not valid so the TYPE_MASK 2269 // should be treated as undefined (in practice it is the bottom 4 bits 2270 // of the fault address). 2271 2272 // End of signal.h 2273 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 2274 2275 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 2276 // Public domain. 2277 // 2278 // NOTE: Do not protect this header against multiple inclusion. Doing 2279 // so can have subtle side-effects due to header file inclusion order 2280 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 2281 // protect each CPP macro that we want to supply. 2282 2283 // Feature-test macros are defined by several standards, and allow an 2284 // application to specify what symbols they want the system headers to 2285 // expose, and hence what standard they want them to conform to. 2286 // There are two classes of feature-test macros. The first class 2287 // specify complete standards, and if one of these is defined, header 2288 // files will try to conform to the relevant standard. They are: 2289 // 2290 // ANSI macros: 2291 // _ANSI_SOURCE ANSI C89 2292 // 2293 // POSIX macros: 2294 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 2295 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 2296 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 2297 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 2298 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 2299 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 2300 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 2301 // 2302 // X/Open macros: 2303 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 2304 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 2305 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 2306 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 2307 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 2308 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 2309 // 2310 // NetBSD macros: 2311 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 2312 // 2313 // If more than one of these "major" feature-test macros is defined, 2314 // then the set of facilities provided (and namespace used) is the 2315 // union of that specified by the relevant standards, and in case of 2316 // conflict, the earlier standard in the above list has precedence (so 2317 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 2318 // of rename() that's used is the POSIX one). If none of the "major" 2319 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 2320 // 2321 // There are also "minor" feature-test macros, which enable extra 2322 // functionality in addition to some base standard. They should be 2323 // defined along with one of the "major" macros. The "minor" macros 2324 // are: 2325 // 2326 // _REENTRANT 2327 // _ISOC99_SOURCE 2328 // _ISOC11_SOURCE 2329 // _LARGEFILE_SOURCE Large File Support 2330 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 2331 2332 type Sigval = struct{ Fsival_int int32 } /* siginfo.h:41:9 */ 2333 2334 // Signals codes 2335 2336 // SIGFPE codes 2337 // 2338 // see ieeefp.h for definition of FP exception codes 2339 2340 // SIGILL codes 2341 // 2342 // the signal code is the instruction that raised the signal 2343 2344 // SIGBUS and SIGSEGV codes 2345 // 2346 // The signal code is combination of the fault address and the fault code. 2347 // 2348 // The fault code is the coproc #15 fault status code 2349 // 2350 // The exception to this is a SIGBUS or SIGSEGV from a prefetch abort. 2351 // In this case the fault status code is not valid so the TYPE_MASK 2352 // should be treated as undefined (in practice it is the bottom 4 bits 2353 // of the fault address). 2354 2355 // End of signal.h 2356 // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ 2357 2358 // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998. 2359 // Public domain. 2360 // 2361 // NOTE: Do not protect this header against multiple inclusion. Doing 2362 // so can have subtle side-effects due to header file inclusion order 2363 // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, 2364 // protect each CPP macro that we want to supply. 2365 2366 // Feature-test macros are defined by several standards, and allow an 2367 // application to specify what symbols they want the system headers to 2368 // expose, and hence what standard they want them to conform to. 2369 // There are two classes of feature-test macros. The first class 2370 // specify complete standards, and if one of these is defined, header 2371 // files will try to conform to the relevant standard. They are: 2372 // 2373 // ANSI macros: 2374 // _ANSI_SOURCE ANSI C89 2375 // 2376 // POSIX macros: 2377 // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) 2378 // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 2379 // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 2380 // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 2381 // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 2382 // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 2383 // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 2384 // 2385 // X/Open macros: 2386 // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 2387 // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions 2388 // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 2389 // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 2390 // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option 2391 // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option 2392 // 2393 // NetBSD macros: 2394 // _NETBSD_SOURCE == 1 Make all NetBSD features available. 2395 // 2396 // If more than one of these "major" feature-test macros is defined, 2397 // then the set of facilities provided (and namespace used) is the 2398 // union of that specified by the relevant standards, and in case of 2399 // conflict, the earlier standard in the above list has precedence (so 2400 // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version 2401 // of rename() that's used is the POSIX one). If none of the "major" 2402 // feature-test macros is defined, _NETBSD_SOURCE is assumed. 2403 // 2404 // There are also "minor" feature-test macros, which enable extra 2405 // functionality in addition to some base standard. They should be 2406 // defined along with one of the "major" macros. The "minor" macros 2407 // are: 2408 // 2409 // _REENTRANT 2410 // _ISOC99_SOURCE 2411 // _ISOC11_SOURCE 2412 // _LARGEFILE_SOURCE Large File Support 2413 // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html> 2414 2415 type Sigval_t = Sigval /* siginfo.h:44:3 */ 2416 2417 type X_ksiginfo = struct { 2418 F_signo int32 2419 F_code int32 2420 F_errno int32 2421 F__ccgo_pad1 [4]byte 2422 F_reason struct { 2423 F__ccgo_pad1 [0]uint64 2424 F_rt struct { 2425 F_pid X__pid_t 2426 F_uid X__uid_t 2427 F_value Sigval_t 2428 } 2429 F__ccgo_pad2 [68]byte 2430 } 2431 } /* siginfo.h:46:1 */ 2432 2433 type Siginfo = struct { 2434 F__ccgo_pad1 [0]uint64 2435 Fsi_pad [128]uint8 2436 } /* siginfo.h:148:9 */ 2437 2438 type Siginfo_t = Siginfo /* siginfo.h:151:3 */ 2439 2440 //* Field access macros 2441 2442 //* si_code 2443 // SIGILL 2444 2445 // SIGFPE 2446 2447 // SIGSEGV 2448 2449 // SIGBUS 2450 2451 // SIGTRAP 2452 2453 // SIGCHLD 2454 // did not create a core file 2455 // created a core file 2456 2457 // SIGIO 2458 2459 //* si_code 2460 // set by timer_settime(2) 2461 // asynchronous I/O signal 2462 // an empty message queue 2463 2464 // $NetBSD: ucontext.h,v 1.19 2018/02/27 23:09:02 uwe Exp $ 2465 2466 // - 2467 // Copyright (c) 1999, 2003 The NetBSD Foundation, Inc. 2468 // All rights reserved. 2469 // 2470 // This code is derived from software contributed to The NetBSD Foundation 2471 // by Klaus Klein, and by Jason R. Thorpe. 2472 // 2473 // Redistribution and use in source and binary forms, with or without 2474 // modification, are permitted provided that the following conditions 2475 // are met: 2476 // 1. Redistributions of source code must retain the above copyright 2477 // notice, this list of conditions and the following disclaimer. 2478 // 2. Redistributions in binary form must reproduce the above copyright 2479 // notice, this list of conditions and the following disclaimer in the 2480 // documentation and/or other materials provided with the distribution. 2481 // 2482 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2483 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2484 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2485 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2486 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2487 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2488 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2489 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2490 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2491 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2492 // POSSIBILITY OF SUCH DAMAGE. 2493 2494 // $NetBSD: sigtypes.h,v 1.11 2017/01/12 18:29:14 christos Exp $ 2495 2496 // Copyright (c) 1982, 1986, 1989, 1991, 1993 2497 // The Regents of the University of California. All rights reserved. 2498 // (c) UNIX System Laboratories, Inc. 2499 // All or some portions of this file are derived from material licensed 2500 // to the University of California by American Telephone and Telegraph 2501 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 2502 // the permission of UNIX System Laboratories, Inc. 2503 // 2504 // Redistribution and use in source and binary forms, with or without 2505 // modification, are permitted provided that the following conditions 2506 // are met: 2507 // 1. Redistributions of source code must retain the above copyright 2508 // notice, this list of conditions and the following disclaimer. 2509 // 2. Redistributions in binary form must reproduce the above copyright 2510 // notice, this list of conditions and the following disclaimer in the 2511 // documentation and/or other materials provided with the distribution. 2512 // 3. Neither the name of the University nor the names of its contributors 2513 // may be used to endorse or promote products derived from this software 2514 // without specific prior written permission. 2515 // 2516 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2517 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2518 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2519 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2520 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2521 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2522 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2523 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2524 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2525 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2526 // SUCH DAMAGE. 2527 // 2528 // @(#)signal.h 8.4 (Berkeley) 5/4/95 2529 2530 // $NetBSD: mcontext.h,v 1.21 2018/10/12 01:28:58 ryo Exp $ 2531 2532 // - 2533 // Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. 2534 // All rights reserved. 2535 // 2536 // This code is derived from software contributed to The NetBSD Foundation 2537 // by Klaus Klein and by Jason R. Thorpe of Wasabi Systems, Inc. 2538 // 2539 // Redistribution and use in source and binary forms, with or without 2540 // modification, are permitted provided that the following conditions 2541 // are met: 2542 // 1. Redistributions of source code must retain the above copyright 2543 // notice, this list of conditions and the following disclaimer. 2544 // 2. Redistributions in binary form must reproduce the above copyright 2545 // notice, this list of conditions and the following disclaimer in the 2546 // documentation and/or other materials provided with the distribution. 2547 // 2548 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2549 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2550 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2551 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2552 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2553 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2554 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2555 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2556 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2557 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2558 // POSSIBILITY OF SUCH DAMAGE. 2559 2560 // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $ 2561 2562 // - 2563 // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. 2564 // All rights reserved. 2565 // 2566 // This code is derived from software contributed to The NetBSD Foundation 2567 // by Klaus Klein. 2568 // 2569 // Redistribution and use in source and binary forms, with or without 2570 // modification, are permitted provided that the following conditions 2571 // are met: 2572 // 1. Redistributions of source code must retain the above copyright 2573 // notice, this list of conditions and the following disclaimer. 2574 // 2. Redistributions in binary form must reproduce the above copyright 2575 // notice, this list of conditions and the following disclaimer in the 2576 // documentation and/or other materials provided with the distribution. 2577 // 2578 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2579 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2580 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2581 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2582 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2583 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2584 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2585 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2586 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2587 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2588 // POSSIBILITY OF SUCH DAMAGE. 2589 2590 // General register state 2591 type X__greg_t = uint32 /* mcontext.h:49:22 */ 2592 2593 type X__gregset_t = [17]X__greg_t /* mcontext.h:52:18 */ 2594 2595 // Convenience synonyms 2596 2597 // Floating point register state 2598 // Note: the storage layout of this structure must be identical to ARMFPE! 2599 type X__fpregset_t = struct { 2600 F__fp_fpsr uint32 2601 F__fp_fr [8]struct { 2602 F__fp_exponent uint32 2603 F__fp_mantissa_hi uint32 2604 F__fp_mantissa_lo uint32 2605 } 2606 } /* mcontext.h:178:3 */ 2607 2608 type X__vfpregset_t = struct { 2609 F__vfp_fpscr uint32 2610 F__ccgo_pad1 [4]byte 2611 F__vfp_fstmx [32]Uint64_t 2612 F__vfp_fpsid uint32 2613 F__ccgo_pad2 [4]byte 2614 } /* mcontext.h:190:3 */ 2615 2616 type Mcontext_t = struct { 2617 F__gregs X__gregset_t 2618 F__ccgo_pad1 [4]byte 2619 F__fpu struct { 2620 F__ccgo_pad1 [0]uint64 2621 F__fpregs X__fpregset_t 2622 F__ccgo_pad2 [172]byte 2623 } 2624 F_mc_tlsbase X__greg_t 2625 F_mc_user_tpid X__greg_t 2626 } /* mcontext.h:200:3 */ 2627 type Mcontext32_t = struct { 2628 F__gregs X__gregset_t 2629 F__ccgo_pad1 [4]byte 2630 F__fpu struct { 2631 F__ccgo_pad1 [0]uint64 2632 F__fpregs X__fpregset_t 2633 F__ccgo_pad2 [172]byte 2634 } 2635 F_mc_tlsbase X__greg_t 2636 F_mc_user_tpid X__greg_t 2637 } /* mcontext.h:200:15 */ 2638 2639 // Machine-dependent uc_flags 2640 2641 // Machine-dependent uc_flags for arm 2642 2643 // used by signal delivery to indicate status of signal stack 2644 2645 type X__ucontext = struct { 2646 Fuc_flags uint32 2647 Fuc_link uintptr 2648 Fuc_sigmask Sigset_t 2649 Fuc_stack Stack_t 2650 F__ccgo_pad1 [4]byte 2651 Fuc_mcontext Mcontext_t 2652 F__uc_pad [1]int32 2653 F__ccgo_pad2 [4]byte 2654 } /* ucontext.h:38:9 */ 2655 2656 // Machine-dependent uc_flags 2657 2658 // Machine-dependent uc_flags for arm 2659 2660 // used by signal delivery to indicate status of signal stack 2661 2662 type Ucontext_t = X__ucontext /* ucontext.h:38:27 */ 2663 2664 // uc_flags 2665 2666 // if your port needs more MD bits, please try to choose bits from _UC_MD 2667 // first, rather than picking random unused bits. 2668 // 2669 // _UC_MD details 2670 // 2671 // _UC_TLSBASE Context contains valid pthread private pointer 2672 // All ports must define this MD flag 2673 // 0x00040000 hppa, mips 2674 // 0x00000020 alpha 2675 // 0x00080000 all other ports 2676 // 2677 // _UC_SETSTACK Context uses signal stack 2678 // 0x00020000 arm 2679 // [undefined] alpha, powerpc and vax 2680 // 0x00010000 other ports 2681 // 2682 // _UC_CLRSTACK Context does not use signal stack 2683 // 0x00040000 arm 2684 // [undefined] alpha, powerpc and vax 2685 // 0x00020000 other ports 2686 // 2687 // _UC_POWERPC_VEC Context contains valid AltiVec context 2688 // 0x00010000 powerpc only 2689 // 2690 // _UC_POWERPC_SPE Context contains valid SPE context 2691 // 0x00020000 powerpc only 2692 // 2693 // _UC_M68K_UC_USER Used by m68k machdep code, but undocumented 2694 // 0x40000000 m68k only 2695 // 2696 // _UC_ARM_VFP Unused 2697 // 0x00010000 arm only 2698 // 2699 // _UC_VM Context contains valid virtual 8086 context 2700 // 0x00040000 i386, amd64 only 2701 // 2702 // _UC_FXSAVE Context contains FPU context in that 2703 // is in FXSAVE format in XMM space 2704 // 0x00000020 i386, amd64 only 2705 2706 // Signal vector "template" used in sigaction call. 2707 type Sigaction = struct { 2708 F_sa_u struct{ F_sa_handler uintptr } 2709 Fsa_mask Sigset_t 2710 Fsa_flags int32 2711 } /* signal.h:123:1 */ 2712 2713 // $NetBSD: signal.h,v 1.15 2018/04/01 04:35:04 ryo Exp $ 2714 2715 // Copyright (c) 1994-1996 Mark Brinicombe. 2716 // Copyright (c) 1994 Brini. 2717 // All rights reserved. 2718 // 2719 // This code is derived from software written for Brini by Mark Brinicombe 2720 // 2721 // Redistribution and use in source and binary forms, with or without 2722 // modification, are permitted provided that the following conditions 2723 // are met: 2724 // 1. Redistributions of source code must retain the above copyright 2725 // notice, this list of conditions and the following disclaimer. 2726 // 2. Redistributions in binary form must reproduce the above copyright 2727 // notice, this list of conditions and the following disclaimer in the 2728 // documentation and/or other materials provided with the distribution. 2729 // 3. All advertising materials mentioning features or use of this software 2730 // must display the following acknowledgement: 2731 // This product includes software developed by Brini. 2732 // 4. The name of the company nor the name of the author may be used to 2733 // endorse or promote products derived from this software without specific 2734 // prior written permission. 2735 // 2736 // THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED 2737 // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2738 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2739 // IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 2740 // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2741 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2742 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2743 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2744 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2745 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2746 // SUCH DAMAGE. 2747 // 2748 // RiscBSD kernel project 2749 // 2750 // signal.h 2751 // 2752 // Architecture dependent signal types and structures 2753 // 2754 // Created : 30/09/94 2755 2756 // End of signal.h 2757 2758 // Only valid for SIGCHLD. 2759 2760 // Flags for sigprocmask(): 2761 2762 type Sig_t = uintptr /* signal.h:172:14 */ // type of signal function 2763 2764 // Flags used with stack_t/struct sigaltstack. 2765 2766 // Structure used in sigstack call. 2767 type Sigstack = struct { 2768 Fss_sp uintptr 2769 Fss_onstack int32 2770 } /* signal.h:198:1 */ 2771 2772 // Macro for converting signal number to a mask suitable for 2773 // sigblock(). 2774 2775 type Sigevent = struct { 2776 Fsigev_notify int32 2777 Fsigev_signo int32 2778 Fsigev_value struct{ Fsival_int int32 } 2779 Fsigev_notify_function uintptr 2780 Fsigev_notify_attributes uintptr 2781 } /* signal.h:216:1 */ 2782 2783 // $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $ 2784 2785 // Copyright (c) 1982, 1986, 1993 2786 // The Regents of the University of California. All rights reserved. 2787 // 2788 // Redistribution and use in source and binary forms, with or without 2789 // modification, are permitted provided that the following conditions 2790 // are met: 2791 // 1. Redistributions of source code must retain the above copyright 2792 // notice, this list of conditions and the following disclaimer. 2793 // 2. Redistributions in binary form must reproduce the above copyright 2794 // notice, this list of conditions and the following disclaimer in the 2795 // documentation and/or other materials provided with the distribution. 2796 // 3. Neither the name of the University nor the names of its contributors 2797 // may be used to endorse or promote products derived from this software 2798 // without specific prior written permission. 2799 // 2800 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2801 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2802 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2803 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2804 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2805 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2806 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2807 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2808 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2809 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2810 // SUCH DAMAGE. 2811 // 2812 // @(#)time.h 8.5 (Berkeley) 5/4/95 2813 // 2814 // Extracted by Kamil Rytarowski from: 2815 // NetBSD: src/sys/sys/time.h,v 1.69 2015/05/19 23:35:11 riastradh Exp 2816 2817 // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $ 2818 2819 // - 2820 // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc. 2821 // All rights reserved. 2822 // 2823 // This code is derived from software contributed to The NetBSD Foundation 2824 // by Jun-ichiro itojun Hagino and by Klaus Klein. 2825 // 2826 // Redistribution and use in source and binary forms, with or without 2827 // modification, are permitted provided that the following conditions 2828 // are met: 2829 // 1. Redistributions of source code must retain the above copyright 2830 // notice, this list of conditions and the following disclaimer. 2831 // 2. Redistributions in binary form must reproduce the above copyright 2832 // notice, this list of conditions and the following disclaimer in the 2833 // documentation and/or other materials provided with the distribution. 2834 // 2835 // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 2836 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2837 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2838 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2839 // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2840 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2841 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2842 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2843 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2844 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2845 // POSSIBILITY OF SUCH DAMAGE. 2846 2847 type Timespec = struct { 2848 Ftv_sec Time_t 2849 Ftv_nsec int32 2850 F__ccgo_pad1 [4]byte 2851 } /* timespec.h:47:1 */ 2852 2853 var _ uint8 /* gen.c:2:13: */