pthread_openbsd_386.go (104069B)
1 // Code generated by 'ccgo pthread/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 pthread/pthread_openbsd_386.go -pkgname pthread', DO NOT EDIT. 2 3 package pthread 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 ARG_MAX = 524288 // syslimits.h:38:1: 19 BC_BASE_MAX = 2147483647 // syslimits.h:51:1: 20 BC_DIM_MAX = 65535 // syslimits.h:52:1: 21 BC_SCALE_MAX = 2147483647 // syslimits.h:53:1: 22 BC_STRING_MAX = 2147483647 // syslimits.h:54:1: 23 BIG_ENDIAN = 4321 // endian.h:45:1: 24 BUS_ADRALN = 1 // siginfo.h:83:1: 25 BUS_ADRERR = 2 // siginfo.h:84:1: 26 BUS_OBJERR = 3 // siginfo.h:85:1: 27 BYTE_ORDER = 1234 // endian.h:47:1: 28 CHAR_BIT = 8 // limits.h:36:1: 29 CHAR_MAX = 0x7f // limits.h:46:1: 30 CHAR_MIN = -128 // limits.h:47:1: 31 CHILD_MAX = 80 // syslimits.h:39:1: 32 CLD_CONTINUED = 6 // siginfo.h:105:1: 33 CLD_DUMPED = 3 // siginfo.h:102:1: 34 CLD_EXITED = 1 // siginfo.h:100:1: 35 CLD_KILLED = 2 // siginfo.h:101:1: 36 CLD_STOPPED = 5 // siginfo.h:104:1: 37 CLD_TRAPPED = 4 // siginfo.h:103:1: 38 CLK_TCK = 100 // time.h:68:1: 39 CLOCKS_PER_SEC = 100 // time.h:71:1: 40 CLOCK_BOOTTIME = 6 // _time.h:40:1: 41 CLOCK_MONOTONIC = 3 // _time.h:37:1: 42 CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1: 43 CLOCK_REALTIME = 0 // _time.h:35:1: 44 CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1: 45 CLOCK_UPTIME = 5 // _time.h:39:1: 46 COLL_WEIGHTS_MAX = 2 // syslimits.h:55:1: 47 DST_AUST = 2 // time.h:78:1: 48 DST_CAN = 6 // time.h:82:1: 49 DST_EET = 5 // time.h:81:1: 50 DST_MET = 4 // time.h:80:1: 51 DST_NONE = 0 // time.h:76:1: 52 DST_USA = 1 // time.h:77:1: 53 DST_WET = 3 // time.h:79:1: 54 EMT_TAGOVF = 1 // siginfo.h:66:1: 55 EXPR_NEST_MAX = 32 // syslimits.h:56:1: 56 FD_SETSIZE = 1024 // select.h:62:1: 57 FPE_FLTDIV = 3 // siginfo.h:71:1: 58 FPE_FLTINV = 7 // siginfo.h:75:1: 59 FPE_FLTOVF = 4 // siginfo.h:72:1: 60 FPE_FLTRES = 6 // siginfo.h:74:1: 61 FPE_FLTSUB = 8 // siginfo.h:76:1: 62 FPE_FLTUND = 5 // siginfo.h:73:1: 63 FPE_INTDIV = 1 // siginfo.h:69:1: 64 FPE_INTOVF = 2 // siginfo.h:70:1: 65 GID_MAX = 4294967295 // limits.h:84:1: 66 HOST_NAME_MAX = 255 // syslimits.h:76:1: 67 ILL_BADSTK = 8 // siginfo.h:63:1: 68 ILL_COPROC = 7 // siginfo.h:62:1: 69 ILL_ILLADR = 3 // siginfo.h:58:1: 70 ILL_ILLOPC = 1 // siginfo.h:56:1: 71 ILL_ILLOPN = 2 // siginfo.h:57:1: 72 ILL_ILLTRP = 4 // siginfo.h:59:1: 73 ILL_PRVOPC = 5 // siginfo.h:60:1: 74 ILL_PRVREG = 6 // siginfo.h:61:1: 75 INT_MAX = 0x7fffffff // limits.h:57:1: 76 INT_MIN = -2147483648 // limits.h:58:1: 77 IOV_MAX = 1024 // syslimits.h:64:1: 78 ITIMER_PROF = 2 // time.h:146:1: 79 ITIMER_REAL = 0 // time.h:144:1: 80 ITIMER_VIRTUAL = 1 // time.h:145:1: 81 LINE_MAX = 2048 // syslimits.h:57:1: 82 LINK_MAX = 32767 // syslimits.h:40:1: 83 LITTLE_ENDIAN = 1234 // endian.h:44:1: 84 LLONG_MAX = 0x7fffffffffffffff // limits.h:76:1: 85 LLONG_MIN = -9223372036854775808 // limits.h:78:1: 86 LOGIN_NAME_MAX = 32 // syslimits.h:72:1: 87 LONG_BIT = 32 // limits.h:91:1: 88 LONG_MAX = 0x7fffffff // limits.h:69:1: 89 LONG_MIN = -2147483648 // limits.h:70:1: 90 MAX_CANON = 255 // syslimits.h:41:1: 91 MAX_INPUT = 255 // syslimits.h:42:1: 92 MB_LEN_MAX = 4 // limits.h:50:1: 93 MINSIGSTKSZ = 12288 // signal.h:183:1: 94 NAME_MAX = 255 // syslimits.h:43:1: 95 NBBY = 8 // select.h:111:1: 96 NGROUPS_MAX = 16 // syslimits.h:44:1: 97 NL_ARGMAX = 9 // limits.h:89:1: 98 NL_LANGMAX = 14 // limits.h:90:1: 99 NL_MSGMAX = 32767 // limits.h:91:1: 100 NL_SETMAX = 255 // limits.h:92:1: 101 NL_TEXTMAX = 255 // limits.h:93:1: 102 NSIG = 33 // signal.h:48:1: 103 NSIGBUS = 3 // siginfo.h:86:1: 104 NSIGCLD = 6 // siginfo.h:106:1: 105 NSIGEMT = 1 // siginfo.h:67:1: 106 NSIGFPE = 8 // siginfo.h:77:1: 107 NSIGILL = 8 // siginfo.h:64:1: 108 NSIGSEGV = 2 // siginfo.h:81:1: 109 NSIGTRAP = 2 // siginfo.h:95:1: 110 NZERO = 20 // syslimits.h:65:1: 111 OPEN_MAX = 64 // syslimits.h:45:1: 112 PATH_MAX = 1024 // syslimits.h:46:1: 113 PDP_ENDIAN = 3412 // endian.h:46:1: 114 PIPE_BUF = 512 // syslimits.h:47:1: 115 PTHREAD_BARRIER_SERIAL_THREAD = -1 // pthread.h:88:1: 116 PTHREAD_CANCEL_ASYNCHRONOUS = 2 // pthread.h:82:1: 117 PTHREAD_CANCEL_DEFERRED = 0 // pthread.h:81:1: 118 PTHREAD_CANCEL_DISABLE = 1 // pthread.h:80:1: 119 PTHREAD_CANCEL_ENABLE = 0 // pthread.h:79:1: 120 PTHREAD_CREATE_DETACHED = 1 // pthread.h:65:1: 121 PTHREAD_CREATE_JOINABLE = 0 // pthread.h:66:1: 122 PTHREAD_DESTRUCTOR_ITERATIONS = 4 // pthread.h:52:1: 123 PTHREAD_DETACHED = 0x1 // pthread.h:60:1: 124 PTHREAD_DONE_INIT = 1 // pthread.h:147:1: 125 PTHREAD_EXPLICIT_SCHED = 0 // pthread.h:68:1: 126 PTHREAD_INHERIT_SCHED = 0x4 // pthread.h:62:1: 127 PTHREAD_KEYS_MAX = 256 // pthread.h:53:1: 128 PTHREAD_NEEDS_INIT = 0 // pthread.h:146:1: 129 PTHREAD_NOFLOAT = 0x8 // pthread.h:63:1: 130 PTHREAD_PRIO_INHERIT = 1 // pthread.h:162:1: 131 PTHREAD_PRIO_NONE = 0 // pthread.h:161:1: 132 PTHREAD_PRIO_PROTECT = 2 // pthread.h:163:1: 133 PTHREAD_PROCESS_PRIVATE = 0 // pthread.h:73:1: 134 PTHREAD_PROCESS_SHARED = 1 // pthread.h:74:1: 135 PTHREAD_SCOPE_PROCESS = 0 // pthread.h:67:1: 136 PTHREAD_SCOPE_SYSTEM = 0x2 // pthread.h:61:1: 137 PTHREAD_STACK_MIN = 4096 // pthread.h:54:1: 138 PTHREAD_THREADS_MAX = 4294967295 // pthread.h:55:1: 139 QUAD_MAX = 0x7fffffffffffffff // limits.h:48:1: 140 QUAD_MIN = -9223372036854775808 // limits.h:49:1: 141 RE_DUP_MAX = 255 // syslimits.h:59:1: 142 SA_NOCLDSTOP = 0x0008 // signal.h:132:1: 143 SA_NOCLDWAIT = 0x0020 // signal.h:130:1: 144 SA_NODEFER = 0x0010 // signal.h:129:1: 145 SA_ONSTACK = 0x0001 // signal.h:126:1: 146 SA_RESETHAND = 0x0004 // signal.h:128:1: 147 SA_RESTART = 0x0002 // signal.h:127:1: 148 SA_SIGINFO = 0x0040 // signal.h:134:1: 149 SCHAR_MAX = 0x7f // limits.h:38:1: 150 SCHAR_MIN = -128 // limits.h:39:1: 151 SCHED_FIFO = 1 // sched.h:47:1: 152 SCHED_OTHER = 2 // sched.h:48:1: 153 SCHED_RR = 3 // sched.h:49:1: 154 SEGV_ACCERR = 2 // siginfo.h:80:1: 155 SEGV_MAPERR = 1 // siginfo.h:79:1: 156 SEM_VALUE_MAX = 4294967295 // syslimits.h:60:1: 157 SHRT_MAX = 0x7fff // limits.h:53:1: 158 SHRT_MIN = -32768 // limits.h:54:1: 159 SIGABRT = 6 // signal.h:56:1: 160 SIGALRM = 14 // signal.h:67:1: 161 SIGBUS = 10 // signal.h:63:1: 162 SIGCHLD = 20 // signal.h:73:1: 163 SIGCONT = 19 // signal.h:72:1: 164 SIGEMT = 7 // signal.h:59:1: 165 SIGFPE = 8 // signal.h:61:1: 166 SIGHUP = 1 // signal.h:51:1: 167 SIGILL = 4 // signal.h:54:1: 168 SIGINFO = 29 // signal.h:85:1: 169 SIGINT = 2 // signal.h:52:1: 170 SIGIO = 23 // signal.h:77:1: 171 SIGIOT = 6 // signal.h:58:1: 172 SIGKILL = 9 // signal.h:62:1: 173 SIGPIPE = 13 // signal.h:66:1: 174 SIGPROF = 27 // signal.h:82:1: 175 SIGQUIT = 3 // signal.h:53:1: 176 SIGSEGV = 11 // signal.h:64:1: 177 SIGSTKSZ = 28672 // signal.h:185:1: 178 SIGSTOP = 17 // signal.h:70:1: 179 SIGSYS = 12 // signal.h:65:1: 180 SIGTERM = 15 // signal.h:68:1: 181 SIGTHR = 32 // signal.h:90:1: 182 SIGTRAP = 5 // signal.h:55:1: 183 SIGTSTP = 18 // signal.h:71:1: 184 SIGTTIN = 21 // signal.h:74:1: 185 SIGTTOU = 22 // signal.h:75:1: 186 SIGURG = 16 // signal.h:69:1: 187 SIGUSR1 = 30 // signal.h:87:1: 188 SIGUSR2 = 31 // signal.h:88:1: 189 SIGVTALRM = 26 // signal.h:81:1: 190 SIGWINCH = 28 // signal.h:84:1: 191 SIGXCPU = 24 // signal.h:79:1: 192 SIGXFSZ = 25 // signal.h:80:1: 193 SIG_BLOCK = 1 // signal.h:140:1: 194 SIG_SETMASK = 3 // signal.h:142:1: 195 SIG_UNBLOCK = 2 // signal.h:141:1: 196 SIZE_T_MAX = 4294967295 // limits.h:45:1: 197 SI_LWP = -1 // siginfo.h:47:1: 198 SI_MAXSZ = 128 // siginfo.h:127:1: 199 SI_NOINFO = 32767 // siginfo.h:45:1: 200 SI_QUEUE = -2 // siginfo.h:48:1: 201 SI_TIMER = -3 // siginfo.h:49:1: 202 SI_USER = 0 // siginfo.h:46:1: 203 SSIZE_MAX = 2147483647 // limits.h:41:1: 204 SS_DISABLE = 0x0004 // signal.h:182:1: 205 SS_ONSTACK = 0x0001 // signal.h:181:1: 206 SV_INTERRUPT = 2 // signal.h:158:1: 207 SV_ONSTACK = 1 // signal.h:157:1: 208 SV_RESETHAND = 4 // signal.h:159:1: 209 SYMLINK_MAX = 1024 // syslimits.h:48:1: 210 SYMLOOP_MAX = 32 // syslimits.h:49:1: 211 TIMER_ABSTIME = 0x1 // _time.h:62:1: 212 TIMER_RELTIME = 0x0 // _time.h:61:1: 213 TIME_UTC = 1 // time.h:179:1: 214 TRAP_BRKPT = 1 // siginfo.h:93:1: 215 TRAP_TRACE = 2 // siginfo.h:94:1: 216 TTY_NAME_MAX = 260 // syslimits.h:71:1: 217 UCHAR_MAX = 0xff // limits.h:41:1: 218 UID_MAX = 4294967295 // limits.h:83:1: 219 UINT_MAX = 0xffffffff // limits.h:56:1: 220 ULLONG_MAX = 0xffffffffffffffff // limits.h:74:1: 221 ULONG_MAX = 0xffffffff // limits.h:68:1: 222 UQUAD_MAX = 0xffffffffffffffff // limits.h:47:1: 223 USHRT_MAX = 0xffff // limits.h:52:1: 224 WORD_BIT = 32 // limits.h:93:1: 225 X_BIG_ENDIAN = 4321 // _endian.h:43:1: 226 X_BYTE_ORDER = 1234 // endian.h:58:1: 227 X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1: 228 X_CLOCK_T_DEFINED_ = 0 // types.h:157:1: 229 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 230 X_ILP32 = 1 // <predefined>:1:1: 231 X_INT16_T_DEFINED_ = 0 // types.h:84:1: 232 X_INT32_T_DEFINED_ = 0 // types.h:94:1: 233 X_INT64_T_DEFINED_ = 0 // types.h:104:1: 234 X_INT8_T_DEFINED_ = 0 // types.h:74:1: 235 X_LIMITS_H_ = 0 // limits.h:36:1: 236 X_LITTLE_ENDIAN = 1234 // _endian.h:42:1: 237 X_LOCALE_T_DEFINED_ = 0 // time.h:106:1: 238 X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1: 239 X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1: 240 X_MACHINE_LIMITS_H_ = 0 // limits.h:36:1: 241 X_MACHINE_SIGNAL_H_ = 0 // signal.h:36:1: 242 X_MACHINE__TYPES_H_ = 0 // _types.h:36:1: 243 X_MAXCOMLEN = 24 // syslimits.h:79:1: 244 X_MAX_PAGE_SHIFT = 12 // _types.h:52:1: 245 X_NSIG = 33 // signal.h:45:1: 246 X_OFF_T_DEFINED_ = 0 // types.h:192:1: 247 X_PDP_ENDIAN = 3412 // _endian.h:44:1: 248 X_PID_T_DEFINED_ = 0 // types.h:167:1: 249 X_POSIX2_BC_BASE_MAX = 99 // limits.h:71:1: 250 X_POSIX2_BC_DIM_MAX = 2048 // limits.h:72:1: 251 X_POSIX2_BC_SCALE_MAX = 99 // limits.h:73:1: 252 X_POSIX2_BC_STRING_MAX = 1000 // limits.h:74:1: 253 X_POSIX2_CHARCLASS_NAME_MAX = 14 // limits.h:79:1: 254 X_POSIX2_COLL_WEIGHTS_MAX = 2 // limits.h:75:1: 255 X_POSIX2_EXPR_NEST_MAX = 32 // limits.h:76:1: 256 X_POSIX2_LINE_MAX = 2048 // limits.h:77:1: 257 X_POSIX2_RE_DUP_MAX = 255 // limits.h:78:1: 258 X_POSIX_ARG_MAX = 4096 // limits.h:41:1: 259 X_POSIX_CHILD_MAX = 25 // limits.h:42:1: 260 X_POSIX_CLOCKRES_MIN = 20000000 // limits.h:61:1: 261 X_POSIX_HOST_NAME_MAX = 255 // limits.h:82:1: 262 X_POSIX_LINK_MAX = 8 // limits.h:43:1: 263 X_POSIX_LOGIN_NAME_MAX = 9 // limits.h:83:1: 264 X_POSIX_MAX_CANON = 255 // limits.h:44:1: 265 X_POSIX_MAX_INPUT = 255 // limits.h:45:1: 266 X_POSIX_NAME_MAX = 14 // limits.h:46:1: 267 X_POSIX_NGROUPS_MAX = 8 // limits.h:62:1: 268 X_POSIX_OPEN_MAX = 20 // limits.h:63:1: 269 X_POSIX_PATH_MAX = 256 // limits.h:47:1: 270 X_POSIX_PIPE_BUF = 512 // limits.h:48:1: 271 X_POSIX_RE_DUP_MAX = 255 // limits.h:49:1: 272 X_POSIX_SEM_NSEMS_MAX = 256 // limits.h:50:1: 273 X_POSIX_SEM_VALUE_MAX = 32767 // limits.h:51:1: 274 X_POSIX_SSIZE_MAX = 32767 // limits.h:52:1: 275 X_POSIX_STREAM_MAX = 8 // limits.h:53:1: 276 X_POSIX_SYMLINK_MAX = 255 // limits.h:54:1: 277 X_POSIX_SYMLOOP_MAX = 8 // limits.h:55:1: 278 X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // limits.h:56:1: 279 X_POSIX_THREAD_KEYS_MAX = 128 // limits.h:57:1: 280 X_POSIX_THREAD_THREADS_MAX = 4 // limits.h:58:1: 281 X_POSIX_TTY_NAME_MAX = 9 // limits.h:84:1: 282 X_POSIX_TZNAME_MAX = 6 // limits.h:64:1: 283 X_PTHREAD_H_ = 0 // pthread.h:38:1: 284 X_QUAD_HIGHWORD = 1 // _endian.h:95:1: 285 X_QUAD_LOWWORD = 0 // _endian.h:96:1: 286 X_SCHED_H_ = 0 // sched.h:40:1: 287 X_SELECT_DEFINED_ = 0 // select.h:126:1: 288 X_SIGSET_T_DEFINED_ = 0 // select.h:121:1: 289 X_SIZE_T_DEFINED_ = 0 // types.h:172:1: 290 X_SSIZE_T_DEFINED_ = 0 // types.h:177:1: 291 X_STACKALIGNBYTES = 15 // _types.h:49:1: 292 X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1: 293 X_SYS_ENDIAN_H_ = 0 // endian.h:38:1: 294 X_SYS_LIMITS_H_ = 0 // limits.h:27:1: 295 X_SYS_SELECT_H_ = 0 // select.h:35:1: 296 X_SYS_SIGINFO_H = 0 // siginfo.h:29:1: 297 X_SYS_SIGNAL_H_ = 0 // signal.h:41:1: 298 X_SYS_TIME_H_ = 0 // time.h:36:1: 299 X_SYS_TYPES_H_ = 0 // types.h:41:1: 300 X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1: 301 X_SYS__TIME_H_ = 0 // _time.h:33:1: 302 X_SYS__TYPES_H_ = 0 // _types.h:35:1: 303 X_TIMER_T_DEFINED_ = 0 // types.h:187:1: 304 X_TIMESPEC_DECLARED = 0 // select.h:48:1: 305 X_TIMEVAL_DECLARED = 0 // select.h:40:1: 306 X_TIME_H_ = 0 // time.h:42:1: 307 X_TIME_T_DEFINED_ = 0 // types.h:182:1: 308 X_UINT16_T_DEFINED_ = 0 // types.h:89:1: 309 X_UINT32_T_DEFINED_ = 0 // types.h:99:1: 310 X_UINT64_T_DEFINED_ = 0 // types.h:109:1: 311 X_UINT8_T_DEFINED_ = 0 // types.h:79:1: 312 X_XOPEN_IOV_MAX = 16 // limits.h:106:1: 313 X_XOPEN_NAME_MAX = 255 // limits.h:107:1: 314 X_XOPEN_PATH_MAX = 1024 // limits.h:108:1: 315 I386 = 1 // <predefined>:339:1: 316 Unix = 1 // <predefined>:340:1: 317 ) 318 319 // Flags for once initialization. 320 321 // Static once initialization values. 322 323 // Static initialization values. 324 325 // Mutex types. 326 const ( /* pthread.h:168:1: */ 327 PTHREAD_MUTEX_ERRORCHECK = 1 // Error checking mutex 328 PTHREAD_MUTEX_RECURSIVE = 2 // Recursive mutex 329 PTHREAD_MUTEX_NORMAL = 3 // No error checking 330 PTHREAD_MUTEX_STRICT_NP = 4 // Strict error checking 331 PTHREAD_MUTEX_TYPE_MAX = 5 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 // $OpenBSD: pthread.h,v 1.4 2018/03/05 01:15:26 deraadt Exp $ 344 345 // Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu 346 // Copyright (c) 1995-1998 by John Birrell <jb@cimlogic.com.au> 347 // All rights reserved. 348 // 349 // Redistribution and use in source and binary forms, with or without 350 // modification, are permitted provided that the following conditions 351 // are met: 352 // 1. Redistributions of source code must retain the above copyright 353 // notice, this list of conditions and the following disclaimer. 354 // 2. Redistributions in binary form must reproduce the above copyright 355 // notice, this list of conditions and the following disclaimer in the 356 // documentation and/or other materials provided with the distribution. 357 // 3. All advertising materials mentioning features or use of this software 358 // must display the following acknowledgement: 359 // This product includes software developed by Chris Provenzano. 360 // 4. The name of Chris Provenzano may not be used to endorse or promote 361 // products derived from this software without specific prior written 362 // permission. 363 // 364 // THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND 365 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 366 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 367 // ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY 368 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 369 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 370 // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 371 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 372 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 373 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 374 // SUCH DAMAGE. 375 // 376 // $FreeBSD: pthread.h,v 1.13 1999/07/31 08:36:07 rse Exp $ 377 378 // Header files. 379 // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ 380 // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ 381 382 // - 383 // Copyright (c) 1982, 1986, 1991, 1993 384 // The Regents of the University of California. All rights reserved. 385 // (c) UNIX System Laboratories, Inc. 386 // All or some portions of this file are derived from material licensed 387 // to the University of California by American Telephone and Telegraph 388 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 389 // the permission of UNIX System Laboratories, Inc. 390 // 391 // Redistribution and use in source and binary forms, with or without 392 // modification, are permitted provided that the following conditions 393 // are met: 394 // 1. Redistributions of source code must retain the above copyright 395 // notice, this list of conditions and the following disclaimer. 396 // 2. Redistributions in binary form must reproduce the above copyright 397 // notice, this list of conditions and the following disclaimer in the 398 // documentation and/or other materials provided with the distribution. 399 // 3. Neither the name of the University nor the names of its contributors 400 // may be used to endorse or promote products derived from this software 401 // without specific prior written permission. 402 // 403 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 404 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 405 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 406 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 407 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 408 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 409 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 410 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 411 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 412 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 413 // SUCH DAMAGE. 414 // 415 // @(#)types.h 8.4 (Berkeley) 1/21/94 416 417 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 418 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 419 420 // Copyright (c) 1991, 1993 421 // The Regents of the University of California. All rights reserved. 422 // 423 // This code is derived from software contributed to Berkeley by 424 // Berkeley Software Design, Inc. 425 // 426 // Redistribution and use in source and binary forms, with or without 427 // modification, are permitted provided that the following conditions 428 // are met: 429 // 1. Redistributions of source code must retain the above copyright 430 // notice, this list of conditions and the following disclaimer. 431 // 2. Redistributions in binary form must reproduce the above copyright 432 // notice, this list of conditions and the following disclaimer in the 433 // documentation and/or other materials provided with the distribution. 434 // 3. Neither the name of the University nor the names of its contributors 435 // may be used to endorse or promote products derived from this software 436 // without specific prior written permission. 437 // 438 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 439 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 440 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 441 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 442 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 443 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 444 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 445 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 446 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 447 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 448 // SUCH DAMAGE. 449 // 450 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 451 452 // $OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $ 453 454 // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95. 455 // Public domain. 456 457 // Macro to test if we're using a specific version of gcc or later. 458 459 // The __CONCAT macro is used to concatenate parts of symbol names, e.g. 460 // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. 461 // The __CONCAT macro is a bit tricky -- make sure you don't put spaces 462 // in between its arguments. Do not use __CONCAT on double-quoted strings, 463 // such as those from the __STRING macro: to concatenate strings just put 464 // them next to each other. 465 466 // GCC1 and some versions of GCC2 declare dead (non-returning) and 467 // pure (no side effects) functions using "volatile" and "const"; 468 // unfortunately, these then cause warnings under "-ansi -pedantic". 469 // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these 470 // work for GNU C++ (modulo a slight glitch in the C++ grammar in 471 // the distribution version of 2.5.5). 472 473 // __returns_twice makes the compiler not assume the function 474 // only returns once. This affects registerisation of variables: 475 // even local variables need to be in memory across such a call. 476 // Example: setjmp() 477 478 // __only_inline makes the compiler only use this function definition 479 // for inlining; references that can't be inlined will be left as 480 // external references instead of generating a local copy. The 481 // matching library should include a simple extern definition for 482 // the function to handle those references. c.f. ctype.h 483 484 // GNU C version 2.96 adds explicit branch prediction so that 485 // the CPU back-end can hint the processor and also so that 486 // code blocks can be reordered such that the predicted path 487 // sees a more linear flow, thus improving cache behavior, etc. 488 // 489 // The following two macros provide us with a way to utilize this 490 // compiler feature. Use __predict_true() if you expect the expression 491 // to evaluate to true, and __predict_false() if you expect the 492 // expression to evaluate to false. 493 // 494 // A few notes about usage: 495 // 496 // * Generally, __predict_false() error condition checks (unless 497 // you have some _strong_ reason to do otherwise, in which case 498 // document it), and/or __predict_true() `no-error' condition 499 // checks, assuming you want to optimize for the no-error case. 500 // 501 // * Other than that, if you don't know the likelihood of a test 502 // succeeding from empirical or other `hard' evidence, don't 503 // make predictions. 504 // 505 // * These are meant to be used in places that are run `a lot'. 506 // It is wasteful to make predictions in code that is run 507 // seldomly (e.g. at subsystem initialization time) as the 508 // basic block reordering that this affects can often generate 509 // larger code. 510 511 // Delete pseudo-keywords wherever they are not available or needed. 512 513 // The __packed macro indicates that a variable or structure members 514 // should have the smallest possible alignment, despite any host CPU 515 // alignment requirements. 516 // 517 // The __aligned(x) macro specifies the minimum alignment of a 518 // variable or structure. 519 // 520 // These macros together are useful for describing the layout and 521 // alignment of messages exchanged with hardware or other systems. 522 523 // "The nice thing about standards is that there are so many to choose from." 524 // There are a number of "feature test macros" specified by (different) 525 // standards that determine which interfaces and types the header files 526 // should expose. 527 // 528 // Because of inconsistencies in these macros, we define our own 529 // set in the private name space that end in _VISIBLE. These are 530 // always defined and so headers can test their values easily. 531 // Things can get tricky when multiple feature macros are defined. 532 // We try to take the union of all the features requested. 533 // 534 // The following macros are guaranteed to have a value after cdefs.h 535 // has been included: 536 // __POSIX_VISIBLE 537 // __XPG_VISIBLE 538 // __ISO_C_VISIBLE 539 // __BSD_VISIBLE 540 541 // X/Open Portability Guides and Single Unix Specifications. 542 // _XOPEN_SOURCE XPG3 543 // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4 544 // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2 545 // _XOPEN_SOURCE == 500 XPG5 546 // _XOPEN_SOURCE == 520 XPG5v2 547 // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI 548 // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI 549 // 550 // The XPG spec implies a specific value for _POSIX_C_SOURCE. 551 552 // POSIX macros, these checks must follow the XOPEN ones above. 553 // 554 // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE) 555 // _POSIX_C_SOURCE == 1 1003.1-1990 556 // _POSIX_C_SOURCE == 2 1003.2-1992 557 // _POSIX_C_SOURCE == 199309L 1003.1b-1993 558 // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995, 559 // and the omnibus ISO/IEC 9945-1:1996 560 // _POSIX_C_SOURCE == 200112L 1003.1-2001 561 // _POSIX_C_SOURCE == 200809L 1003.1-2008 562 // 563 // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though 564 // this may be overridden by the _ISOC99_SOURCE macro later. 565 566 // _ANSI_SOURCE means to expose ANSI C89 interfaces only. 567 // If the user defines it in addition to one of the POSIX or XOPEN 568 // macros, assume the POSIX/XOPEN macro(s) should take precedence. 569 570 // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus 571 // override any of the other macros since they are non-exclusive. 572 573 // Finally deal with BSD-specific interfaces that are not covered 574 // by any standards. We expose these when none of the POSIX or XPG 575 // macros is defined or if the user explicitly asks for them. 576 577 // Default values. 578 579 // $OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $ 580 581 // - 582 // Copyright (c) 1997 Niklas Hallqvist. All rights reserved. 583 // 584 // Redistribution and use in source and binary forms, with or without 585 // modification, are permitted provided that the following conditions 586 // are met: 587 // 1. Redistributions of source code must retain the above copyright 588 // notice, this list of conditions and the following disclaimer. 589 // 2. Redistributions in binary form must reproduce the above copyright 590 // notice, this list of conditions and the following disclaimer in the 591 // documentation and/or other materials provided with the distribution. 592 // 593 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 594 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 595 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 596 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 597 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 598 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 599 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 600 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 601 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 602 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 603 604 // Public definitions for little- and big-endian systems. 605 // This file should be included as <endian.h> in userspace and as 606 // <sys/endian.h> in the kernel. 607 // 608 // System headers that need endian information but that can't or don't 609 // want to export the public names here should include <sys/_endian.h> 610 // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc. 611 612 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 613 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 614 615 // Copyright (c) 1991, 1993 616 // The Regents of the University of California. All rights reserved. 617 // 618 // This code is derived from software contributed to Berkeley by 619 // Berkeley Software Design, Inc. 620 // 621 // Redistribution and use in source and binary forms, with or without 622 // modification, are permitted provided that the following conditions 623 // are met: 624 // 1. Redistributions of source code must retain the above copyright 625 // notice, this list of conditions and the following disclaimer. 626 // 2. Redistributions in binary form must reproduce the above copyright 627 // notice, this list of conditions and the following disclaimer in the 628 // documentation and/or other materials provided with the distribution. 629 // 3. Neither the name of the University nor the names of its contributors 630 // may be used to endorse or promote products derived from this software 631 // without specific prior written permission. 632 // 633 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 634 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 635 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 636 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 637 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 638 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 639 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 640 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 641 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 642 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 643 // SUCH DAMAGE. 644 // 645 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 646 647 // $OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $ 648 649 // - 650 // Copyright (c) 1997 Niklas Hallqvist. All rights reserved. 651 // 652 // Redistribution and use in source and binary forms, with or without 653 // modification, are permitted provided that the following conditions 654 // are met: 655 // 1. Redistributions of source code must retain the above copyright 656 // notice, this list of conditions and the following disclaimer. 657 // 2. Redistributions in binary form must reproduce the above copyright 658 // notice, this list of conditions and the following disclaimer in the 659 // documentation and/or other materials provided with the distribution. 660 // 661 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 662 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 663 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 664 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 665 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 666 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 667 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 668 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 669 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 670 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 671 672 // Internal endianness macros. This pulls in <machine/endian.h> to 673 // get the correct setting direction for the platform and sets internal 674 // ('__' prefix) macros appropriately. 675 676 // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ 677 678 // - 679 // Copyright (c) 1990, 1993 680 // The Regents of the University of California. All rights reserved. 681 // 682 // Redistribution and use in source and binary forms, with or without 683 // modification, are permitted provided that the following conditions 684 // are met: 685 // 1. Redistributions of source code must retain the above copyright 686 // notice, this list of conditions and the following disclaimer. 687 // 2. Redistributions in binary form must reproduce the above copyright 688 // notice, this list of conditions and the following disclaimer in the 689 // documentation and/or other materials provided with the distribution. 690 // 3. Neither the name of the University nor the names of its contributors 691 // may be used to endorse or promote products derived from this software 692 // without specific prior written permission. 693 // 694 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 695 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 696 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 697 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 698 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 699 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 700 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 701 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 702 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 703 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 704 // SUCH DAMAGE. 705 // 706 // @(#)types.h 8.3 (Berkeley) 1/5/94 707 708 // $OpenBSD: _types.h,v 1.23 2018/03/05 01:15:25 deraadt Exp $ 709 710 // - 711 // Copyright (c) 1990, 1993 712 // The Regents of the University of California. All rights reserved. 713 // 714 // Redistribution and use in source and binary forms, with or without 715 // modification, are permitted provided that the following conditions 716 // are met: 717 // 1. Redistributions of source code must retain the above copyright 718 // notice, this list of conditions and the following disclaimer. 719 // 2. Redistributions in binary form must reproduce the above copyright 720 // notice, this list of conditions and the following disclaimer in the 721 // documentation and/or other materials provided with the distribution. 722 // 3. Neither the name of the University nor the names of its contributors 723 // may be used to endorse or promote products derived from this software 724 // without specific prior written permission. 725 // 726 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 727 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 728 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 729 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 730 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 731 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 732 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 733 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 734 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 735 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 736 // SUCH DAMAGE. 737 // 738 // @(#)types.h 8.3 (Berkeley) 1/5/94 739 // @(#)ansi.h 8.2 (Berkeley) 1/4/94 740 741 // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned 742 // value for all data types (int, long, ...). The result is an 743 // unsigned long and must be cast to any desired pointer type. 744 // 745 // _ALIGNED_POINTER is a boolean macro that checks whether an address 746 // is valid to fetch data elements of type t from on this architecture. 747 // This does not reflect the optimal alignment, just the possibility 748 // (within reasonable limits). 749 750 // 7.18.1.1 Exact-width integer types 751 type X__int8_t = int8 /* _types.h:61:22 */ 752 type X__uint8_t = uint8 /* _types.h:62:24 */ 753 type X__int16_t = int16 /* _types.h:63:17 */ 754 type X__uint16_t = uint16 /* _types.h:64:25 */ 755 type X__int32_t = int32 /* _types.h:65:15 */ 756 type X__uint32_t = uint32 /* _types.h:66:23 */ 757 type X__int64_t = int64 /* _types.h:67:20 */ 758 type X__uint64_t = uint64 /* _types.h:68:28 */ 759 760 // 7.18.1.2 Minimum-width integer types 761 type X__int_least8_t = X__int8_t /* _types.h:71:19 */ 762 type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */ 763 type X__int_least16_t = X__int16_t /* _types.h:73:20 */ 764 type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */ 765 type X__int_least32_t = X__int32_t /* _types.h:75:20 */ 766 type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */ 767 type X__int_least64_t = X__int64_t /* _types.h:77:20 */ 768 type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */ 769 770 // 7.18.1.3 Fastest minimum-width integer types 771 type X__int_fast8_t = X__int32_t /* _types.h:81:20 */ 772 type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */ 773 type X__int_fast16_t = X__int32_t /* _types.h:83:20 */ 774 type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */ 775 type X__int_fast32_t = X__int32_t /* _types.h:85:20 */ 776 type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */ 777 type X__int_fast64_t = X__int64_t /* _types.h:87:20 */ 778 type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */ 779 780 // 7.18.1.4 Integer types capable of holding object pointers 781 type X__intptr_t = int32 /* _types.h:103:16 */ 782 type X__uintptr_t = uint32 /* _types.h:104:24 */ 783 784 // 7.18.1.5 Greatest-width integer types 785 type X__intmax_t = X__int64_t /* _types.h:107:20 */ 786 type X__uintmax_t = X__uint64_t /* _types.h:108:21 */ 787 788 // Register size 789 type X__register_t = int32 /* _types.h:111:16 */ 790 791 // VM system types 792 type X__vaddr_t = uint32 /* _types.h:114:24 */ 793 type X__paddr_t = uint32 /* _types.h:115:24 */ 794 type X__vsize_t = uint32 /* _types.h:116:24 */ 795 type X__psize_t = uint32 /* _types.h:117:24 */ 796 797 // Standard system types 798 type X__double_t = float64 /* _types.h:120:22 */ 799 type X__float_t = float64 /* _types.h:121:22 */ 800 type X__ptrdiff_t = int32 /* _types.h:122:16 */ 801 type X__size_t = uint32 /* _types.h:123:24 */ 802 type X__ssize_t = int32 /* _types.h:124:16 */ 803 type X__va_list = X__builtin_va_list /* _types.h:126:27 */ 804 805 // Wide character support types 806 type X__wchar_t = int32 /* _types.h:133:15 */ 807 type X__wint_t = int32 /* _types.h:135:15 */ 808 type X__rune_t = int32 /* _types.h:136:15 */ 809 type X__wctrans_t = uintptr /* _types.h:137:14 */ 810 type X__wctype_t = uintptr /* _types.h:138:14 */ 811 812 type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file 813 type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O 814 type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC 815 type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers 816 type X__cpuid_t = uint32 /* _types.h:43:23 */ // CPU id 817 type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number 818 type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number 819 type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count 820 type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count 821 type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id 822 type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid 823 type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address 824 type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type 825 type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number 826 type X__key_t = int32 /* _types.h:53:15 */ // IPC key (for Sys V IPC) 827 type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions 828 type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count 829 type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size 830 type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id 831 type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit 832 type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type 833 type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size 834 type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls 835 type X__suseconds_t = int32 /* _types.h:62:15 */ // microseconds (signed) 836 type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time 837 type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers 838 type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id 839 type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds 840 841 // mbstate_t is an opaque object to keep conversion state, during multibyte 842 // stream conversions. The content must not be referenced by user programs. 843 type X__mbstate_t = struct { 844 F__ccgo_pad1 [0]uint32 845 F__mbstate8 [128]int8 846 } /* _types.h:75:3 */ 847 848 // Tell sys/endian.h we have MD variants of the swap macros. 849 850 // Note that these macros evaluate their arguments several times. 851 852 // Public names 853 854 // These are specified to be function-like macros to match the spec 855 856 // POSIX names 857 858 // original BSD names 859 860 // these were exposed here before 861 862 // ancient stuff 863 864 type U_char = uint8 /* types.h:51:23 */ 865 type U_short = uint16 /* types.h:52:24 */ 866 type U_int = uint32 /* types.h:53:22 */ 867 type U_long = uint32 /* types.h:54:23 */ 868 869 type Unchar = uint8 /* types.h:56:23 */ // Sys V compatibility 870 type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility 871 type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility 872 type Ulong = uint32 /* types.h:59:23 */ // Sys V compatibility 873 874 type Cpuid_t = X__cpuid_t /* types.h:61:19 */ // CPU id 875 type Register_t = X__register_t /* types.h:62:22 */ // register-sized type 876 877 // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE 878 // but the rest of the includes are not ready for that yet. 879 880 type Int8_t = X__int8_t /* types.h:75:19 */ 881 882 type Uint8_t = X__uint8_t /* types.h:80:20 */ 883 884 type Int16_t = X__int16_t /* types.h:85:20 */ 885 886 type Uint16_t = X__uint16_t /* types.h:90:21 */ 887 888 type Int32_t = X__int32_t /* types.h:95:20 */ 889 890 type Uint32_t = X__uint32_t /* types.h:100:21 */ 891 892 type Int64_t = X__int64_t /* types.h:105:20 */ 893 894 type Uint64_t = X__uint64_t /* types.h:110:21 */ 895 896 // BSD-style unsigned bits types 897 type U_int8_t = X__uint8_t /* types.h:114:19 */ 898 type U_int16_t = X__uint16_t /* types.h:115:20 */ 899 type U_int32_t = X__uint32_t /* types.h:116:20 */ 900 type U_int64_t = X__uint64_t /* types.h:117:20 */ 901 902 // quads, deprecated in favor of 64 bit int types 903 type Quad_t = X__int64_t /* types.h:120:19 */ 904 type U_quad_t = X__uint64_t /* types.h:121:20 */ 905 906 // VM system types 907 type Vaddr_t = X__vaddr_t /* types.h:125:19 */ 908 type Paddr_t = X__paddr_t /* types.h:126:19 */ 909 type Vsize_t = X__vsize_t /* types.h:127:19 */ 910 type Psize_t = X__psize_t /* types.h:128:19 */ 911 912 // Standard system types 913 type Blkcnt_t = X__blkcnt_t /* types.h:132:20 */ // blocks allocated for file 914 type Blksize_t = X__blksize_t /* types.h:133:21 */ // optimal blocksize for I/O 915 type Caddr_t = uintptr /* types.h:134:14 */ // core address 916 type Daddr32_t = X__int32_t /* types.h:135:19 */ // 32-bit disk address 917 type Daddr_t = X__int64_t /* types.h:136:19 */ // 64-bit disk address 918 type Dev_t = X__dev_t /* types.h:137:18 */ // device number 919 type Fixpt_t = X__fixpt_t /* types.h:138:19 */ // fixed point number 920 type Gid_t = X__gid_t /* types.h:139:18 */ // group id 921 type Id_t = X__id_t /* types.h:140:17 */ // may contain pid, uid or gid 922 type Ino_t = X__ino_t /* types.h:141:18 */ // inode number 923 type Key_t = X__key_t /* types.h:142:18 */ // IPC key (for Sys V IPC) 924 type Mode_t = X__mode_t /* types.h:143:18 */ // permissions 925 type Nlink_t = X__nlink_t /* types.h:144:19 */ // link count 926 type Rlim_t = X__rlim_t /* types.h:145:18 */ // resource limit 927 type Segsz_t = X__segsz_t /* types.h:146:19 */ // segment size 928 type Uid_t = X__uid_t /* types.h:147:18 */ // user id 929 type Useconds_t = X__useconds_t /* types.h:148:22 */ // microseconds 930 type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed) 931 type Fsblkcnt_t = X__fsblkcnt_t /* types.h:150:22 */ // file system block count 932 type Fsfilcnt_t = X__fsfilcnt_t /* types.h:151:22 */ // file system file count 933 934 // The following types may be defined in multiple header files. 935 type Clock_t = X__clock_t /* types.h:158:19 */ 936 937 type Clockid_t = X__clockid_t /* types.h:163:21 */ 938 939 type Pid_t = X__pid_t /* types.h:168:18 */ 940 941 type Ssize_t = X__ssize_t /* types.h:178:19 */ 942 943 type Time_t = X__time_t /* types.h:183:18 */ 944 945 type Timer_t = X__timer_t /* types.h:188:19 */ 946 947 type Off_t = X__off_t /* types.h:193:18 */ 948 949 // Major, minor numbers, dev_t's. 950 951 // $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $ 952 // $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ 953 954 // Copyright (c) 1982, 1986, 1993 955 // The Regents of the University of California. All rights reserved. 956 // 957 // Redistribution and use in source and binary forms, with or without 958 // modification, are permitted provided that the following conditions 959 // are met: 960 // 1. Redistributions of source code must retain the above copyright 961 // notice, this list of conditions and the following disclaimer. 962 // 2. Redistributions in binary form must reproduce the above copyright 963 // notice, this list of conditions and the following disclaimer in the 964 // documentation and/or other materials provided with the distribution. 965 // 3. Neither the name of the University nor the names of its contributors 966 // may be used to endorse or promote products derived from this software 967 // without specific prior written permission. 968 // 969 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 970 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 971 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 972 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 973 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 974 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 975 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 976 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 977 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 978 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 979 // SUCH DAMAGE. 980 // 981 // @(#)time.h 8.2 (Berkeley) 7/10/94 982 983 // $OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $ 984 985 // - 986 // Copyright (c) 1992, 1993 987 // The Regents of the University of California. All rights reserved. 988 // 989 // Redistribution and use in source and binary forms, with or without 990 // modification, are permitted provided that the following conditions 991 // are met: 992 // 1. Redistributions of source code must retain the above copyright 993 // notice, this list of conditions and the following disclaimer. 994 // 2. Redistributions in binary form must reproduce the above copyright 995 // notice, this list of conditions and the following disclaimer in the 996 // documentation and/or other materials provided with the distribution. 997 // 3. Neither the name of the University nor the names of its contributors 998 // may be used to endorse or promote products derived from this software 999 // without specific prior written permission. 1000 // 1001 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1002 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1003 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1004 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1005 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1006 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1007 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1008 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1009 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1010 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1011 // SUCH DAMAGE. 1012 // 1013 // @(#)select.h 8.2 (Berkeley) 1/4/94 1014 1015 // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ 1016 // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ 1017 1018 // - 1019 // Copyright (c) 1982, 1986, 1991, 1993 1020 // The Regents of the University of California. All rights reserved. 1021 // (c) UNIX System Laboratories, Inc. 1022 // All or some portions of this file are derived from material licensed 1023 // to the University of California by American Telephone and Telegraph 1024 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1025 // the permission of UNIX System Laboratories, Inc. 1026 // 1027 // Redistribution and use in source and binary forms, with or without 1028 // modification, are permitted provided that the following conditions 1029 // are met: 1030 // 1. Redistributions of source code must retain the above copyright 1031 // notice, this list of conditions and the following disclaimer. 1032 // 2. Redistributions in binary form must reproduce the above copyright 1033 // notice, this list of conditions and the following disclaimer in the 1034 // documentation and/or other materials provided with the distribution. 1035 // 3. Neither the name of the University nor the names of its contributors 1036 // may be used to endorse or promote products derived from this software 1037 // without specific prior written permission. 1038 // 1039 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1040 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1041 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1042 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1043 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1044 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1045 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1046 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1047 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1048 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1049 // SUCH DAMAGE. 1050 // 1051 // @(#)types.h 8.4 (Berkeley) 1/21/94 1052 1053 type Timeval = struct { 1054 Ftv_sec Time_t 1055 Ftv_usec Suseconds_t 1056 } /* select.h:41:1 */ 1057 1058 type Timespec = struct { 1059 Ftv_sec Time_t 1060 Ftv_nsec int32 1061 } /* select.h:49:1 */ 1062 1063 // Select uses bit masks of file descriptors in longs. These macros 1064 // manipulate such bit fields (the filesystem macros use chars). 1065 // FD_SETSIZE may be defined by the user, but the default here should 1066 // be enough for most uses. 1067 1068 // We don't want to pollute the namespace with select(2) internals. 1069 // Non-underscore versions are exposed later #if __BSD_VISIBLE 1070 type X__fd_mask = Uint32_t /* select.h:70:18 */ 1071 1072 type Fd_set1 = struct{ Ffds_bits [32]X__fd_mask } /* select.h:74:9 */ 1073 1074 type Fd_set = Fd_set1 /* select.h:76:3 */ 1075 1076 type Sigset_t = uint32 /* select.h:122:22 */ 1077 1078 type Timezone = struct { 1079 Ftz_minuteswest int32 1080 Ftz_dsttime int32 1081 } /* time.h:72:1 */ 1082 1083 // Operations on timevals. 1084 1085 // Operations on timespecs. 1086 1087 // Names of the interval timers, and structure 1088 // defining a timer setting. 1089 1090 type Itimerval = struct { 1091 Fit_interval struct { 1092 Ftv_sec Time_t 1093 Ftv_usec Suseconds_t 1094 } 1095 Fit_value struct { 1096 Ftv_sec Time_t 1097 Ftv_usec Suseconds_t 1098 } 1099 } /* time.h:148:1 */ 1100 1101 // clock information structure for sysctl({CTL_KERN, KERN_CLOCKRATE}) 1102 type Clockinfo = struct { 1103 Fhz int32 1104 Ftick int32 1105 Fstathz int32 1106 Fprofhz int32 1107 } /* time.h:157:1 */ 1108 1109 // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $ 1110 // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ 1111 1112 // Copyright (c) 1989 The Regents of the University of California. 1113 // All rights reserved. 1114 // 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 // @(#)time.h 5.12 (Berkeley) 3/9/91 1146 1147 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1148 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1149 1150 // Copyright (c) 1991, 1993 1151 // The Regents of the University of California. All rights reserved. 1152 // 1153 // This code is derived from software contributed to Berkeley by 1154 // Berkeley Software Design, Inc. 1155 // 1156 // Redistribution and use in source and binary forms, with or without 1157 // modification, are permitted provided that the following conditions 1158 // are met: 1159 // 1. Redistributions of source code must retain the above copyright 1160 // notice, this list of conditions and the following disclaimer. 1161 // 2. Redistributions in binary form must reproduce the above copyright 1162 // notice, this list of conditions and the following disclaimer in the 1163 // documentation and/or other materials provided with the distribution. 1164 // 3. Neither the name of the University nor the names of its contributors 1165 // may be used to endorse or promote products derived from this software 1166 // without specific prior written permission. 1167 // 1168 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1169 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1170 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1171 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1172 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1173 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1174 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1175 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1176 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1177 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1178 // SUCH DAMAGE. 1179 // 1180 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1181 1182 // $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $ 1183 1184 // Written by Todd C. Miller, September 9, 2016 1185 // Public domain. 1186 1187 // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ 1188 1189 // - 1190 // Copyright (c) 1990, 1993 1191 // The Regents of the University of California. All rights reserved. 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 // @(#)types.h 8.3 (Berkeley) 1/5/94 1218 1219 // Frequency of the clock ticks reported by times(). Deprecated - use 1220 // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.) 1221 1222 // $OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $ 1223 1224 // Copyright (c) 1982, 1986, 1993 1225 // The Regents of the University of California. All rights reserved. 1226 // 1227 // Redistribution and use in source and binary forms, with or without 1228 // modification, are permitted provided that the following conditions 1229 // are met: 1230 // 1. Redistributions of source code must retain the above copyright 1231 // notice, this list of conditions and the following disclaimer. 1232 // 2. Redistributions in binary form must reproduce the above copyright 1233 // notice, this list of conditions and the following disclaimer in the 1234 // documentation and/or other materials provided with the distribution. 1235 // 3. Neither the name of the University nor the names of its contributors 1236 // may be used to endorse or promote products derived from this software 1237 // without specific prior written permission. 1238 // 1239 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1240 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1241 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1242 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1243 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1244 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1245 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1246 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1247 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1248 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1249 // SUCH DAMAGE. 1250 1251 // Per-process and per-thread clocks encode the PID or TID into the 1252 // high bits, with the type in the bottom bits 1253 1254 // Structure defined by POSIX 1003.1b to be like a itimerval, 1255 // but with timespecs. Used in the timer_*() system calls. 1256 type Itimerspec = struct { 1257 Fit_interval struct { 1258 Ftv_sec Time_t 1259 Ftv_nsec int32 1260 } 1261 Fit_value struct { 1262 Ftv_sec Time_t 1263 Ftv_nsec int32 1264 } 1265 } /* _time.h:56:1 */ 1266 1267 type Locale_t = uintptr /* time.h:107:14 */ 1268 1269 type Tm = struct { 1270 Ftm_sec int32 1271 Ftm_min int32 1272 Ftm_hour int32 1273 Ftm_mday int32 1274 Ftm_mon int32 1275 Ftm_year int32 1276 Ftm_wday int32 1277 Ftm_yday int32 1278 Ftm_isdst int32 1279 Ftm_gmtoff int32 1280 Ftm_zone uintptr 1281 } /* time.h:111:1 */ 1282 1283 // $OpenBSD: signal.h,v 1.29 2018/04/18 16:05:20 deraadt Exp $ 1284 // $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ 1285 1286 // Copyright (c) 1982, 1986, 1989, 1991, 1993 1287 // The Regents of the University of California. All rights reserved. 1288 // (c) UNIX System Laboratories, Inc. 1289 // All or some portions of this file are derived from material licensed 1290 // to the University of California by American Telephone and Telegraph 1291 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1292 // the permission of UNIX System Laboratories, Inc. 1293 // 1294 // Redistribution and use in source and binary forms, with or without 1295 // modification, are permitted provided that the following conditions 1296 // are met: 1297 // 1. Redistributions of source code must retain the above copyright 1298 // notice, this list of conditions and the following disclaimer. 1299 // 2. Redistributions in binary form must reproduce the above copyright 1300 // notice, this list of conditions and the following disclaimer in the 1301 // documentation and/or other materials provided with the distribution. 1302 // 3. Neither the name of the University nor the names of its contributors 1303 // may be used to endorse or promote products derived from this software 1304 // without specific prior written permission. 1305 // 1306 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1307 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1308 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1309 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1310 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1311 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1312 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1313 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1314 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1315 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1316 // SUCH DAMAGE. 1317 // 1318 // @(#)signal.h 8.2 (Berkeley) 1/21/94 1319 1320 // $OpenBSD: signal.h,v 1.11 2016/05/10 18:39:45 deraadt Exp $ 1321 // $NetBSD: signal.h,v 1.6 1996/01/08 13:51:43 mycroft Exp $ 1322 1323 // Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California. 1324 // All rights reserved. 1325 // 1326 // Redistribution and use in source and binary forms, with or without 1327 // modification, are permitted provided that the following conditions 1328 // are met: 1329 // 1. Redistributions of source code must retain the above copyright 1330 // notice, this list of conditions and the following disclaimer. 1331 // 2. Redistributions in binary form must reproduce the above copyright 1332 // notice, this list of conditions and the following disclaimer in the 1333 // documentation and/or other materials provided with the distribution. 1334 // 3. Neither the name of the University nor the names of its contributors 1335 // may be used to endorse or promote products derived from this software 1336 // without specific prior written permission. 1337 // 1338 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1339 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1340 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1341 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1342 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1343 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1344 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1345 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1346 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1347 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1348 // SUCH DAMAGE. 1349 // 1350 // @(#)signal.h 7.16 (Berkeley) 3/17/91 1351 1352 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1353 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1354 1355 // Copyright (c) 1991, 1993 1356 // The Regents of the University of California. All rights reserved. 1357 // 1358 // This code is derived from software contributed to Berkeley by 1359 // Berkeley Software Design, Inc. 1360 // 1361 // Redistribution and use in source and binary forms, with or without 1362 // modification, are permitted provided that the following conditions 1363 // are met: 1364 // 1. Redistributions of source code must retain the above copyright 1365 // notice, this list of conditions and the following disclaimer. 1366 // 2. Redistributions in binary form must reproduce the above copyright 1367 // notice, this list of conditions and the following disclaimer in the 1368 // documentation and/or other materials provided with the distribution. 1369 // 3. Neither the name of the University nor the names of its contributors 1370 // may be used to endorse or promote products derived from this software 1371 // without specific prior written permission. 1372 // 1373 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1374 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1375 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1376 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1377 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1378 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1379 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1380 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1381 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1382 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1383 // SUCH DAMAGE. 1384 // 1385 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1386 1387 type Sig_atomic_t = int32 /* signal.h:40:13 */ 1388 1389 // Information pushed on stack when a signal is delivered. 1390 // This is used by the kernel to restore state following 1391 // execution of the signal handler. It is also made available 1392 // to the handler to allow it to restore state properly if 1393 // a non-standard exit is performed. 1394 type Sigcontext = struct { 1395 Fsc_gs int32 1396 Fsc_fs int32 1397 Fsc_es int32 1398 Fsc_ds int32 1399 Fsc_edi int32 1400 Fsc_esi int32 1401 Fsc_ebp int32 1402 Fsc_ebx int32 1403 Fsc_edx int32 1404 Fsc_ecx int32 1405 Fsc_eax int32 1406 Fsc_eip int32 1407 Fsc_cs int32 1408 Fsc_eflags int32 1409 Fsc_esp int32 1410 Fsc_ss int32 1411 Fsc_cookie int32 1412 Fsc_mask int32 1413 Fsc_trapno int32 1414 Fsc_err int32 1415 Fsc_fpstate uintptr 1416 } /* signal.h:54:1 */ 1417 1418 // Language spec says we must list exactly one parameter, even though we 1419 // actually supply three. Ugh! 1420 1421 // $OpenBSD: siginfo.h,v 1.12 2017/04/07 04:48:44 guenther Exp $ 1422 1423 // Copyright (c) 1997 Theo de Raadt 1424 // All rights reserved. 1425 // 1426 // Redistribution and use in source and binary forms, with or without 1427 // modification, are permitted provided that the following conditions 1428 // are met: 1429 // 1. Redistributions of source code must retain the above copyright 1430 // notice, this list of conditions and the following disclaimer. 1431 // 2. Redistributions in binary form must reproduce the above copyright 1432 // notice, this list of conditions and the following disclaimer in the 1433 // documentation and/or other materials provided with the distribution. 1434 // 1435 // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1436 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1437 // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1438 // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1439 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1440 // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1441 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1442 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1443 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 1444 // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1445 1446 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1447 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1448 1449 // Copyright (c) 1991, 1993 1450 // The Regents of the University of California. All rights reserved. 1451 // 1452 // This code is derived from software contributed to Berkeley by 1453 // Berkeley Software Design, Inc. 1454 // 1455 // Redistribution and use in source and binary forms, with or without 1456 // modification, are permitted provided that the following conditions 1457 // are met: 1458 // 1. Redistributions of source code must retain the above copyright 1459 // notice, this list of conditions and the following disclaimer. 1460 // 2. Redistributions in binary form must reproduce the above copyright 1461 // notice, this list of conditions and the following disclaimer in the 1462 // documentation and/or other materials provided with the distribution. 1463 // 3. Neither the name of the University nor the names of its contributors 1464 // may be used to endorse or promote products derived from this software 1465 // without specific prior written permission. 1466 // 1467 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1468 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1469 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1470 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1471 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1472 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1473 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1474 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1475 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1476 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1477 // SUCH DAMAGE. 1478 // 1479 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1480 1481 type Sigval = struct{ Fsival_int int32 } /* siginfo.h:33:1 */ 1482 1483 // Negative signal codes are reserved for future use for 1484 // user generated signals. 1485 1486 // The machine dependent signal codes (SIGILL, SIGFPE, 1487 // SIGSEGV, and SIGBUS) 1488 1489 // SIGTRAP signal codes 1490 1491 // SIGCHLD signal codes 1492 1493 // $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $ 1494 // $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ 1495 1496 // Copyright (c) 1982, 1986, 1993 1497 // The Regents of the University of California. All rights reserved. 1498 // 1499 // Redistribution and use in source and binary forms, with or without 1500 // modification, are permitted provided that the following conditions 1501 // are met: 1502 // 1. Redistributions of source code must retain the above copyright 1503 // notice, this list of conditions and the following disclaimer. 1504 // 2. Redistributions in binary form must reproduce the above copyright 1505 // notice, this list of conditions and the following disclaimer in the 1506 // documentation and/or other materials provided with the distribution. 1507 // 3. Neither the name of the University nor the names of its contributors 1508 // may be used to endorse or promote products derived from this software 1509 // without specific prior written permission. 1510 // 1511 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1512 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1513 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1514 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1515 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1516 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1517 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1518 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1519 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1520 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1521 // SUCH DAMAGE. 1522 // 1523 // @(#)time.h 8.2 (Berkeley) 7/10/94 1524 1525 type Siginfo_t = struct { 1526 Fsi_signo int32 1527 Fsi_code int32 1528 Fsi_errno int32 1529 F_data struct{ F_pad [29]int32 } 1530 } /* siginfo.h:173:3 */ 1531 1532 // Signal vector "template" used in sigaction call. 1533 type Sigaction = struct { 1534 F__sigaction_u struct{ F__sa_handler uintptr } 1535 Fsa_mask Sigset_t 1536 Fsa_flags int32 1537 } /* signal.h:112:1 */ 1538 1539 // if SA_SIGINFO is set, sa_sigaction is to be used instead of sa_handler. 1540 1541 // Flags for sigprocmask: 1542 1543 type Sig_t = uintptr /* signal.h:146:14 */ // type of signal function 1544 1545 // 4.3 compatibility: 1546 // Signal vector "template" used in sigvec call. 1547 type Sigvec = struct { 1548 Fsv_handler uintptr 1549 Fsv_mask int32 1550 Fsv_flags int32 1551 } /* signal.h:152:1 */ 1552 1553 // Macro for converting signal number to a mask suitable for 1554 // sigblock(). 1555 1556 // Structure used in sigaltstack call. 1557 type Sigaltstack = struct { 1558 Fss_sp uintptr 1559 Fss_size Size_t 1560 Fss_flags int32 1561 } /* signal.h:176:9 */ 1562 1563 // Macro for converting signal number to a mask suitable for 1564 // sigblock(). 1565 1566 // Structure used in sigaltstack call. 1567 type Stack_t = Sigaltstack /* signal.h:180:3 */ 1568 1569 type Ucontext_t = Sigcontext /* signal.h:190:27 */ 1570 1571 // $OpenBSD: limits.h,v 1.19 2015/01/20 22:09:50 tedu Exp $ 1572 // $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ 1573 1574 // Copyright (c) 1988 The Regents of the University of California. 1575 // All rights reserved. 1576 // 1577 // Redistribution and use in source and binary forms, with or without 1578 // modification, are permitted provided that the following conditions 1579 // are met: 1580 // 1. Redistributions of source code must retain the above copyright 1581 // notice, this list of conditions and the following disclaimer. 1582 // 2. Redistributions in binary form must reproduce the above copyright 1583 // notice, this list of conditions and the following disclaimer in the 1584 // documentation and/or other materials provided with the distribution. 1585 // 3. Neither the name of the University nor the names of its contributors 1586 // may be used to endorse or promote products derived from this software 1587 // without specific prior written permission. 1588 // 1589 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1590 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1591 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1592 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1593 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1594 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1595 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1596 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1597 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1598 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1599 // SUCH DAMAGE. 1600 // 1601 // @(#)limits.h 5.9 (Berkeley) 4/3/91 1602 1603 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1604 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1605 1606 // Copyright (c) 1991, 1993 1607 // The Regents of the University of California. All rights reserved. 1608 // 1609 // This code is derived from software contributed to Berkeley by 1610 // Berkeley Software Design, Inc. 1611 // 1612 // Redistribution and use in source and binary forms, with or without 1613 // modification, are permitted provided that the following conditions 1614 // are met: 1615 // 1. Redistributions of source code must retain the above copyright 1616 // notice, this list of conditions and the following disclaimer. 1617 // 2. Redistributions in binary form must reproduce the above copyright 1618 // notice, this list of conditions and the following disclaimer in the 1619 // documentation and/or other materials provided with the distribution. 1620 // 3. Neither the name of the University nor the names of its contributors 1621 // may be used to endorse or promote products derived from this software 1622 // without specific prior written permission. 1623 // 1624 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1625 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1626 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1627 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1628 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1629 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1630 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1631 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1632 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1633 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1634 // SUCH DAMAGE. 1635 // 1636 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1637 1638 // $OpenBSD: limits.h,v 1.10 2012/06/30 20:21:10 guenther Exp $ 1639 // Copyright (c) 2002 Marc Espie. 1640 // 1641 // Redistribution and use in source and binary forms, with or without 1642 // modification, are permitted provided that the following conditions 1643 // are met: 1644 // 1. Redistributions of source code must retain the above copyright 1645 // notice, this list of conditions and the following disclaimer. 1646 // 2. Redistributions in binary form must reproduce the above copyright 1647 // notice, this list of conditions and the following disclaimer in the 1648 // documentation and/or other materials provided with the distribution. 1649 // 1650 // THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS 1651 // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1652 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1653 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBSD 1654 // PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1655 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1656 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1657 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1658 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1659 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1660 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1661 1662 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1663 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1664 1665 // Copyright (c) 1991, 1993 1666 // The Regents of the University of California. All rights reserved. 1667 // 1668 // This code is derived from software contributed to Berkeley by 1669 // Berkeley Software Design, Inc. 1670 // 1671 // Redistribution and use in source and binary forms, with or without 1672 // modification, are permitted provided that the following conditions 1673 // are met: 1674 // 1. Redistributions of source code must retain the above copyright 1675 // notice, this list of conditions and the following disclaimer. 1676 // 2. Redistributions in binary form must reproduce the above copyright 1677 // notice, this list of conditions and the following disclaimer in the 1678 // documentation and/or other materials provided with the distribution. 1679 // 3. Neither the name of the University nor the names of its contributors 1680 // may be used to endorse or promote products derived from this software 1681 // without specific prior written permission. 1682 // 1683 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1684 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1685 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1686 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1687 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1688 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1689 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1690 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1691 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1692 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1693 // SUCH DAMAGE. 1694 // 1695 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1696 1697 // Common definitions for limits.h. 1698 1699 // Legacy 1700 // $OpenBSD: limits.h,v 1.14 2015/04/30 13:42:08 millert Exp $ 1701 // $NetBSD: limits.h,v 1.11 1995/12/21 01:08:59 mycroft Exp $ 1702 1703 // Copyright (c) 1988 The Regents of the University of California. 1704 // All rights reserved. 1705 // 1706 // Redistribution and use in source and binary forms, with or without 1707 // modification, are permitted provided that the following conditions 1708 // are met: 1709 // 1. Redistributions of source code must retain the above copyright 1710 // notice, this list of conditions and the following disclaimer. 1711 // 2. Redistributions in binary form must reproduce the above copyright 1712 // notice, this list of conditions and the following disclaimer in the 1713 // documentation and/or other materials provided with the distribution. 1714 // 3. Neither the name of the University nor the names of its contributors 1715 // may be used to endorse or promote products derived from this software 1716 // without specific prior written permission. 1717 // 1718 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1719 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1720 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1721 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1722 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1723 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1724 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1725 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1726 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1727 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1728 // SUCH DAMAGE. 1729 // 1730 // @(#)limits.h 7.2 (Berkeley) 6/28/90 1731 1732 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1733 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1734 1735 // Copyright (c) 1991, 1993 1736 // The Regents of the University of California. All rights reserved. 1737 // 1738 // This code is derived from software contributed to Berkeley by 1739 // Berkeley Software Design, Inc. 1740 // 1741 // Redistribution and use in source and binary forms, with or without 1742 // modification, are permitted provided that the following conditions 1743 // are met: 1744 // 1. Redistributions of source code must retain the above copyright 1745 // notice, this list of conditions and the following disclaimer. 1746 // 2. Redistributions in binary form must reproduce the above copyright 1747 // notice, this list of conditions and the following disclaimer in the 1748 // documentation and/or other materials provided with the distribution. 1749 // 3. Neither the name of the University nor the names of its contributors 1750 // may be used to endorse or promote products derived from this software 1751 // without specific prior written permission. 1752 // 1753 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1754 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1755 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1756 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1757 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1758 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1759 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1760 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1761 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1762 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1763 // SUCH DAMAGE. 1764 // 1765 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1766 1767 // max value for unsigned long long 1768 // max value for a signed long long 1769 // min value for a signed long long 1770 1771 // $OpenBSD: syslimits.h,v 1.15 2022/02/22 16:58:08 deraadt Exp $ 1772 // $NetBSD: syslimits.h,v 1.12 1995/10/05 05:26:19 thorpej Exp $ 1773 1774 // Copyright (c) 1988, 1993 1775 // The Regents of the University of California. All rights reserved. 1776 // 1777 // Redistribution and use in source and binary forms, with or without 1778 // modification, are permitted provided that the following conditions 1779 // are met: 1780 // 1. Redistributions of source code must retain the above copyright 1781 // notice, this list of conditions and the following disclaimer. 1782 // 2. Redistributions in binary form must reproduce the above copyright 1783 // notice, this list of conditions and the following disclaimer in the 1784 // documentation and/or other materials provided with the distribution. 1785 // 3. Neither the name of the University nor the names of its contributors 1786 // may be used to endorse or promote products derived from this software 1787 // without specific prior written permission. 1788 // 1789 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1790 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1791 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1792 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1793 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1794 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1795 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1796 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1797 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1798 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1799 // SUCH DAMAGE. 1800 // 1801 // @(#)syslimits.h 8.1 (Berkeley) 6/2/93 1802 1803 // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $ 1804 // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $ 1805 1806 // Copyright (c) 1991, 1993 1807 // The Regents of the University of California. All rights reserved. 1808 // 1809 // This code is derived from software contributed to Berkeley by 1810 // Berkeley Software Design, Inc. 1811 // 1812 // Redistribution and use in source and binary forms, with or without 1813 // modification, are permitted provided that the following conditions 1814 // are met: 1815 // 1. Redistributions of source code must retain the above copyright 1816 // notice, this list of conditions and the following disclaimer. 1817 // 2. Redistributions in binary form must reproduce the above copyright 1818 // notice, this list of conditions and the following disclaimer in the 1819 // documentation and/or other materials provided with the distribution. 1820 // 3. Neither the name of the University nor the names of its contributors 1821 // may be used to endorse or promote products derived from this software 1822 // without specific prior written permission. 1823 // 1824 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1825 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1826 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1827 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1828 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1829 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1830 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1831 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1832 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1833 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1834 // SUCH DAMAGE. 1835 // 1836 // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 1837 1838 // $OpenBSD: sched.h,v 1.1 2017/10/15 23:40:33 guenther Exp $ 1839 1840 // sched.h: POSIX 1003.1b Process Scheduling header 1841 1842 // - 1843 // Copyright (c) 1996, 1997 1844 // HD Associates, Inc. All rights reserved. 1845 // 1846 // Redistribution and use in source and binary forms, with or without 1847 // modification, are permitted provided that the following conditions 1848 // are met: 1849 // 1. Redistributions of source code must retain the above copyright 1850 // notice, this list of conditions and the following disclaimer. 1851 // 2. Redistributions in binary form must reproduce the above copyright 1852 // notice, this list of conditions and the following disclaimer in the 1853 // documentation and/or other materials provided with the distribution. 1854 // 3. All advertising materials mentioning features or use of this software 1855 // must display the following acknowledgement: 1856 // This product includes software developed by HD Associates, Inc 1857 // and Jukka Antero Ukkonen. 1858 // 4. Neither the name of the author nor the names of any co-contributors 1859 // may be used to endorse or promote products derived from this software 1860 // without specific prior written permission. 1861 // 1862 // THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES AND CONTRIBUTORS ``AS IS'' AND 1863 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1864 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1865 // ARE DISCLAIMED. IN NO EVENT SHALL HD ASSOCIATES OR CONTRIBUTORS BE LIABLE 1866 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1867 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1868 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1869 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1870 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1871 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1872 // SUCH DAMAGE. 1873 // 1874 1875 // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ 1876 // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ 1877 1878 // - 1879 // Copyright (c) 1982, 1986, 1991, 1993 1880 // The Regents of the University of California. All rights reserved. 1881 // (c) UNIX System Laboratories, Inc. 1882 // All or some portions of this file are derived from material licensed 1883 // to the University of California by American Telephone and Telegraph 1884 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1885 // the permission of UNIX System Laboratories, Inc. 1886 // 1887 // Redistribution and use in source and binary forms, with or without 1888 // modification, are permitted provided that the following conditions 1889 // are met: 1890 // 1. Redistributions of source code must retain the above copyright 1891 // notice, this list of conditions and the following disclaimer. 1892 // 2. Redistributions in binary form must reproduce the above copyright 1893 // notice, this list of conditions and the following disclaimer in the 1894 // documentation and/or other materials provided with the distribution. 1895 // 3. Neither the name of the University nor the names of its contributors 1896 // may be used to endorse or promote products derived from this software 1897 // without specific prior written permission. 1898 // 1899 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1900 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1901 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1902 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1903 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1904 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1905 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1906 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1907 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1908 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1909 // SUCH DAMAGE. 1910 // 1911 // @(#)types.h 8.4 (Berkeley) 1/21/94 1912 1913 // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $ 1914 // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ 1915 1916 // Copyright (c) 1989 The Regents of the University of California. 1917 // All rights reserved. 1918 // 1919 // (c) UNIX System Laboratories, Inc. 1920 // All or some portions of this file are derived from material licensed 1921 // to the University of California by American Telephone and Telegraph 1922 // Co. or Unix System Laboratories, Inc. and are reproduced herein with 1923 // the permission of UNIX System Laboratories, Inc. 1924 // 1925 // Redistribution and use in source and binary forms, with or without 1926 // modification, are permitted provided that the following conditions 1927 // are met: 1928 // 1. Redistributions of source code must retain the above copyright 1929 // notice, this list of conditions and the following disclaimer. 1930 // 2. Redistributions in binary form must reproduce the above copyright 1931 // notice, this list of conditions and the following disclaimer in the 1932 // documentation and/or other materials provided with the distribution. 1933 // 3. Neither the name of the University nor the names of its contributors 1934 // may be used to endorse or promote products derived from this software 1935 // without specific prior written permission. 1936 // 1937 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1938 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1939 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1940 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1941 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1942 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1943 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1944 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1945 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1946 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1947 // SUCH DAMAGE. 1948 // 1949 // @(#)time.h 5.12 (Berkeley) 3/9/91 1950 1951 // Scheduling policies 1952 1953 type Sched_param = struct{ Fsched_priority int32 } /* sched.h:51:1 */ 1954 1955 type Pthread_once = struct { 1956 Fstate int32 1957 Fmutex Pthread_mutex_t 1958 } /* pthread.h:101:1 */ 1959 1960 // Primitive system data type definitions required by P1003.1c. 1961 // 1962 // Note that P1003.1c specifies that there are no defined comparison 1963 // or assignment operators for the types pthread_attr_t, pthread_cond_t, 1964 // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t. 1965 type Pthread_t = uintptr /* pthread.h:112:26 */ 1966 type Pthread_attr_t = uintptr /* pthread.h:113:30 */ 1967 type Pthread_mutex_t = uintptr /* pthread.h:114:39 */ 1968 type Pthread_mutexattr_t = uintptr /* pthread.h:115:35 */ 1969 type Pthread_cond_t = uintptr /* pthread.h:116:30 */ 1970 type Pthread_condattr_t = uintptr /* pthread.h:117:34 */ 1971 type Pthread_key_t = int32 /* pthread.h:118:16 */ 1972 type Pthread_once_t = Pthread_once /* pthread.h:119:30 */ 1973 type Pthread_rwlock_t = uintptr /* pthread.h:120:32 */ 1974 type Pthread_rwlockattr_t = uintptr /* pthread.h:121:35 */ 1975 type Pthread_barrier_t = uintptr /* pthread.h:122:33 */ 1976 type Pthread_barrierattr_t = uintptr /* pthread.h:123:36 */ 1977 type Pthread_spinlock_t = uintptr /* pthread.h:124:33 */ 1978 1979 // Additional type definitions: 1980 // 1981 // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for 1982 // use in header symbols. 1983 type Pthread_addr_t = uintptr /* pthread.h:132:14 */ 1984 type Pthread_startroutine_t = uintptr /* pthread.h:133:14 */ 1985 1986 var _ int8 /* gen.c:2:13: */