Barry Warsaw | 5284589 | 1997-12-02 04:49:09 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/sys/stropts.h |
| 2 | |
| 3 | # Included from sys/feature_tests.h |
| 4 | _POSIX_C_SOURCE = 1 |
| 5 | _LARGEFILE64_SOURCE = 1 |
| 6 | _LARGEFILE_SOURCE = 1 |
| 7 | _FILE_OFFSET_BITS = 32 |
| 8 | _XOPEN_VERSION = 4 |
| 9 | _XOPEN_VERSION = 3 |
| 10 | |
| 11 | # Included from sys/types.h |
| 12 | |
| 13 | # Included from sys/isa_defs.h |
| 14 | _CHAR_ALIGNMENT = 1 |
| 15 | _SHORT_ALIGNMENT = 2 |
| 16 | _INT_ALIGNMENT = 4 |
| 17 | _LONG_ALIGNMENT = 4 |
| 18 | _LONG_LONG_ALIGNMENT = 4 |
| 19 | _DOUBLE_ALIGNMENT = 4 |
| 20 | _LONG_DOUBLE_ALIGNMENT = 4 |
| 21 | _POINTER_ALIGNMENT = 4 |
| 22 | _MAX_ALIGNMENT = 4 |
| 23 | _ALIGNMENT_REQUIRED = 0 |
| 24 | _CHAR_ALIGNMENT = 1 |
| 25 | _SHORT_ALIGNMENT = 2 |
| 26 | _INT_ALIGNMENT = 4 |
| 27 | _LONG_ALIGNMENT = 4 |
| 28 | _LONG_LONG_ALIGNMENT = 8 |
| 29 | _DOUBLE_ALIGNMENT = 8 |
| 30 | _LONG_DOUBLE_ALIGNMENT = 16 |
| 31 | _POINTER_ALIGNMENT = 4 |
| 32 | _MAX_ALIGNMENT = 16 |
| 33 | _ALIGNMENT_REQUIRED = 1 |
| 34 | _CHAR_ALIGNMENT = 1 |
| 35 | _SHORT_ALIGNMENT = 2 |
| 36 | _INT_ALIGNMENT = 4 |
| 37 | _LONG_LONG_ALIGNMENT = 8 |
| 38 | _DOUBLE_ALIGNMENT = 8 |
| 39 | _ALIGNMENT_REQUIRED = 1 |
| 40 | _LONG_ALIGNMENT = 4 |
| 41 | _LONG_DOUBLE_ALIGNMENT = 8 |
| 42 | _POINTER_ALIGNMENT = 4 |
| 43 | _MAX_ALIGNMENT = 8 |
| 44 | _LONG_ALIGNMENT = 8 |
| 45 | _LONG_DOUBLE_ALIGNMENT = 16 |
| 46 | _POINTER_ALIGNMENT = 8 |
| 47 | _MAX_ALIGNMENT = 16 |
| 48 | |
| 49 | # Included from sys/machtypes.h |
| 50 | |
| 51 | # Included from sys/int_types.h |
| 52 | SHRT_MIN = (-32768) |
| 53 | SHRT_MAX = 32767 |
| 54 | USHRT_MAX = 65535 |
| 55 | INT_MIN = (-2147483647-1) |
| 56 | INT_MAX = 2147483647 |
| 57 | LONG_MIN = (-9223372036854775807L-1L) |
| 58 | LONG_MAX = 9223372036854775807L |
| 59 | LONG_MIN = (-2147483647L-1L) |
| 60 | LONG_MAX = 2147483647L |
| 61 | P_MYID = (-1) |
| 62 | |
| 63 | # Included from sys/select.h |
| 64 | |
| 65 | # Included from sys/time.h |
| 66 | DST_NONE = 0 |
| 67 | DST_USA = 1 |
| 68 | DST_AUST = 2 |
| 69 | DST_WET = 3 |
| 70 | DST_MET = 4 |
| 71 | DST_EET = 5 |
| 72 | DST_CAN = 6 |
| 73 | DST_GB = 7 |
| 74 | DST_RUM = 8 |
| 75 | DST_TUR = 9 |
| 76 | DST_AUSTALT = 10 |
| 77 | ITIMER_REAL = 0 |
| 78 | ITIMER_VIRTUAL = 1 |
| 79 | ITIMER_PROF = 2 |
| 80 | ITIMER_REALPROF = 3 |
| 81 | SEC = 1 |
| 82 | MILLISEC = 1000 |
| 83 | MICROSEC = 1000000 |
| 84 | NANOSEC = 1000000000 |
| 85 | __CLOCK_REALTIME0 = 0 |
| 86 | CLOCK_VIRTUAL = 1 |
| 87 | CLOCK_PROF = 2 |
| 88 | __CLOCK_REALTIME3 = 3 |
| 89 | CLOCK_REALTIME = __CLOCK_REALTIME3 |
| 90 | CLOCK_REALTIME = __CLOCK_REALTIME0 |
| 91 | TIMER_RELTIME = 0x0 |
| 92 | TIMER_ABSTIME = 0x1 |
| 93 | |
| 94 | # Included from sys/mutex.h |
| 95 | def MUTEX_HELD(x): return (mutex_owned(x)) |
| 96 | |
| 97 | def TICK_TO_SEC(tick): return ((tick) / hz) |
| 98 | |
| 99 | def SEC_TO_TICK(sec): return ((sec) * hz) |
| 100 | |
| 101 | def TICK_TO_MSEC(tick): return \ |
| 102 | |
| 103 | def MSEC_TO_TICK(msec): return \ |
| 104 | |
| 105 | def MSEC_TO_TICK_ROUNDUP(msec): return \ |
| 106 | |
| 107 | def TICK_TO_USEC(tick): return ((tick) * usec_per_tick) |
| 108 | |
| 109 | def USEC_TO_TICK(usec): return ((usec) / usec_per_tick) |
| 110 | |
| 111 | def USEC_TO_TICK_ROUNDUP(usec): return \ |
| 112 | |
| 113 | def TICK_TO_NSEC(tick): return ((tick) * nsec_per_tick) |
| 114 | |
| 115 | def NSEC_TO_TICK(nsec): return ((nsec) / nsec_per_tick) |
| 116 | |
| 117 | def NSEC_TO_TICK_ROUNDUP(nsec): return \ |
| 118 | |
| 119 | def TIMEVAL_TO_TICK(tvp): return \ |
| 120 | |
| 121 | def TIMESTRUC_TO_TICK(tsp): return \ |
| 122 | |
| 123 | |
| 124 | # Included from time.h |
| 125 | NULL = 0 |
| 126 | CLOCKS_PER_SEC = 1000000 |
| 127 | |
| 128 | # Included from sys/siginfo.h |
| 129 | SIGEV_NONE = 1 |
| 130 | SIGEV_SIGNAL = 2 |
| 131 | SIGEV_THREAD = 3 |
| 132 | SI_NOINFO = 32767 |
| 133 | SI_USER = 0 |
| 134 | SI_LWP = (-1) |
| 135 | SI_QUEUE = (-2) |
| 136 | SI_TIMER = (-3) |
| 137 | SI_ASYNCIO = (-4) |
| 138 | SI_MESGQ = (-5) |
| 139 | |
| 140 | # Included from sys/machsig.h |
| 141 | ILL_ILLOPC = 1 |
| 142 | ILL_ILLOPN = 2 |
| 143 | ILL_ILLADR = 3 |
| 144 | ILL_ILLTRP = 4 |
| 145 | ILL_PRVOPC = 5 |
| 146 | ILL_PRVREG = 6 |
| 147 | ILL_COPROC = 7 |
| 148 | ILL_BADSTK = 8 |
| 149 | NSIGILL = 8 |
| 150 | EMT_TAGOVF = 1 |
| 151 | NSIGEMT = 1 |
| 152 | FPE_INTDIV = 1 |
| 153 | FPE_INTOVF = 2 |
| 154 | FPE_FLTDIV = 3 |
| 155 | FPE_FLTOVF = 4 |
| 156 | FPE_FLTUND = 5 |
| 157 | FPE_FLTRES = 6 |
| 158 | FPE_FLTINV = 7 |
| 159 | FPE_FLTSUB = 8 |
| 160 | NSIGFPE = 8 |
| 161 | SEGV_MAPERR = 1 |
| 162 | SEGV_ACCERR = 2 |
| 163 | NSIGSEGV = 2 |
| 164 | BUS_ADRALN = 1 |
| 165 | BUS_ADRERR = 2 |
| 166 | BUS_OBJERR = 3 |
| 167 | NSIGBUS = 3 |
| 168 | TRAP_BRKPT = 1 |
| 169 | TRAP_TRACE = 2 |
| 170 | TRAP_RWATCH = 3 |
| 171 | TRAP_WWATCH = 4 |
| 172 | TRAP_XWATCH = 5 |
| 173 | NSIGTRAP = 5 |
| 174 | CLD_EXITED = 1 |
| 175 | CLD_KILLED = 2 |
| 176 | CLD_DUMPED = 3 |
| 177 | CLD_TRAPPED = 4 |
| 178 | CLD_STOPPED = 5 |
| 179 | CLD_CONTINUED = 6 |
| 180 | NSIGCLD = 6 |
| 181 | POLL_IN = 1 |
| 182 | POLL_OUT = 2 |
| 183 | POLL_MSG = 3 |
| 184 | POLL_ERR = 4 |
| 185 | POLL_PRI = 5 |
| 186 | POLL_HUP = 6 |
| 187 | NSIGPOLL = 6 |
| 188 | PROF_SIG = 1 |
| 189 | NSIGPROF = 1 |
| 190 | SI_MAXSZ = 128 |
| 191 | def SI_CANQUEUE(c): return ((c) <= SI_QUEUE) |
| 192 | |
| 193 | FD_SETSIZE = 1024 |
| 194 | _NBBY = 8 |
| 195 | NBBY = _NBBY |
| 196 | |
| 197 | # Included from sys/conf.h |
| 198 | |
| 199 | # Included from sys/t_lock.h |
| 200 | |
| 201 | # Included from sys/machlock.h |
| 202 | LOCK_HELD_VALUE = 0xff |
| 203 | def SPIN_LOCK(pl): return ((pl) > ipltospl(LOCK_LEVEL)) |
| 204 | |
| 205 | def LOCK_SAMPLE_INTERVAL(i): return (((i) & 0xff) == 0) |
| 206 | |
| 207 | LOCK_LEVEL = 10 |
| 208 | CLOCK_LEVEL = 10 |
| 209 | PTR24_LSB = 5 |
| 210 | PTR24_MSB = (PTR24_LSB + 24) |
| 211 | PTR24_ALIGN = 32 |
| 212 | PTR24_BASE = 0xe0000000 |
| 213 | |
| 214 | # Included from sys/sleepq.h |
| 215 | NSLEEPQ = 512 |
| 216 | |
| 217 | # Included from sys/turnstile.h |
| 218 | |
| 219 | # Included from sys/param.h |
| 220 | _POSIX_VDISABLE = 0 |
| 221 | MAX_INPUT = 512 |
| 222 | MAX_CANON = 256 |
| 223 | UID_NOBODY = 60001 |
| 224 | GID_NOBODY = UID_NOBODY |
| 225 | UID_NOACCESS = 60002 |
| 226 | MAXPID = 30000 |
| 227 | MAXUID = 2147483647 |
| 228 | MAXLINK = 32767 |
| 229 | NMOUNT = 40 |
| 230 | CANBSIZ = 256 |
| 231 | NOFILE = 20 |
| 232 | NGROUPS_UMIN = 0 |
| 233 | NGROUPS_UMAX = 32 |
| 234 | NGROUPS_MAX_DEFAULT = 16 |
| 235 | PMASK = 0177 |
| 236 | PCATCH = 0400 |
| 237 | PNOSTOP = 01000 |
| 238 | PSWP = 0 |
| 239 | PINOD = 10 |
| 240 | PSNDD = PINOD |
| 241 | PAMAP = PINOD |
| 242 | PPMAP = PAMAP |
| 243 | PRIBIO = 20 |
| 244 | PZERO = 25 |
| 245 | PMEM = 0 |
| 246 | NZERO = 20 |
| 247 | PPIPE = 26 |
| 248 | PVFS = 27 |
| 249 | PWAIT = 30 |
| 250 | PLOCK = 35 |
| 251 | PSLEP = 39 |
| 252 | PUSER = 60 |
| 253 | PIDLE = 127 |
| 254 | NULL = 0 |
| 255 | CMASK = 0 |
| 256 | CDLIMIT = (1L<<11) |
| 257 | NBPS = 0x20000 |
| 258 | NBPSCTR = 512 |
| 259 | UBSIZE = 512 |
| 260 | SCTRSHFT = 9 |
| 261 | SYSNAME = 9 |
| 262 | PREMOTE = 39 |
| 263 | MAXPATHLEN = 1024 |
| 264 | MAXSYMLINKS = 20 |
| 265 | MAXNAMELEN = 256 |
| 266 | NADDR = 13 |
| 267 | PIPE_BUF = 5120 |
| 268 | PIPE_MAX = 5120 |
| 269 | NBBY = 8 |
| 270 | MAXBSIZE = 8192 |
| 271 | DEV_BSIZE = 512 |
| 272 | DEV_BSHIFT = 9 |
| 273 | MAXFRAG = 8 |
| 274 | MAXOFF_T = 0x7fffffff |
| 275 | MAXOFFSET_T = MAXOFF_T |
| 276 | def btodb(bytes): return \ |
| 277 | |
| 278 | def dbtob(db): return \ |
| 279 | |
| 280 | def lbtodb(bytes): return \ |
| 281 | |
| 282 | def ldbtob(db): return \ |
| 283 | |
| 284 | NCARGS = 0x100000 |
| 285 | FSHIFT = 8 |
| 286 | FSCALE = (1<<FSHIFT) |
| 287 | def DELAY(n): return drv_usecwait(n) |
| 288 | |
| 289 | def mmu_ptob(x): return ((x) << MMU_PAGESHIFT) |
| 290 | |
| 291 | def mmu_btop(x): return (((x)) >> MMU_PAGESHIFT) |
| 292 | |
| 293 | def mmu_btopr(x): return ((((x) + MMU_PAGEOFFSET) >> MMU_PAGESHIFT)) |
| 294 | |
| 295 | def mmu_ptod(x): return ((x) << (MMU_PAGESHIFT - DEV_BSHIFT)) |
| 296 | |
| 297 | def ptod(x): return ((x) << (PAGESHIFT - DEV_BSHIFT)) |
| 298 | |
| 299 | def ptob(x): return ((x) << PAGESHIFT) |
| 300 | |
| 301 | def btop(x): return ((u_int)((x) >> PAGESHIFT)) |
| 302 | |
| 303 | def btopr(x): return ((u_int)(((x) + PAGEOFFSET) >> PAGESHIFT)) |
| 304 | |
| 305 | def dtop(DD): return (((DD) + NDPP - 1) >> (PAGESHIFT - DEV_BSHIFT)) |
| 306 | |
| 307 | def dtopt(DD): return ((DD) >> (PAGESHIFT - DEV_BSHIFT)) |
| 308 | |
| 309 | def PAGOFF(x): return (((uint)(x)) & PAGEOFFSET) |
| 310 | |
| 311 | _AIO_LISTIO_MAX = (256) |
| 312 | _AIO_MAX = (-1) |
| 313 | _AIO_PRIO_DELTA_MAX = (-1) |
| 314 | _MQ_OPEN_MAX = (32) |
| 315 | _MQ_PRIO_MAX = (32) |
| 316 | _SEM_NSEMS_MAX = INT_MAX |
| 317 | _SEM_VALUE_MAX = INT_MAX |
| 318 | |
| 319 | # Included from sys/unistd.h |
| 320 | _SC_ARG_MAX = 1 |
| 321 | _SC_CHILD_MAX = 2 |
| 322 | _SC_CLK_TCK = 3 |
| 323 | _SC_NGROUPS_MAX = 4 |
| 324 | _SC_OPEN_MAX = 5 |
| 325 | _SC_JOB_CONTROL = 6 |
| 326 | _SC_SAVED_IDS = 7 |
| 327 | _SC_VERSION = 8 |
| 328 | _SC_PASS_MAX = 9 |
| 329 | _SC_LOGNAME_MAX = 10 |
| 330 | _SC_PAGESIZE = 11 |
| 331 | _SC_XOPEN_VERSION = 12 |
| 332 | _SC_NPROCESSORS_CONF = 14 |
| 333 | _SC_NPROCESSORS_ONLN = 15 |
| 334 | _SC_STREAM_MAX = 16 |
| 335 | _SC_TZNAME_MAX = 17 |
| 336 | _SC_AIO_LISTIO_MAX = 18 |
| 337 | _SC_AIO_MAX = 19 |
| 338 | _SC_AIO_PRIO_DELTA_MAX = 20 |
| 339 | _SC_ASYNCHRONOUS_IO = 21 |
| 340 | _SC_DELAYTIMER_MAX = 22 |
| 341 | _SC_FSYNC = 23 |
| 342 | _SC_MAPPED_FILES = 24 |
| 343 | _SC_MEMLOCK = 25 |
| 344 | _SC_MEMLOCK_RANGE = 26 |
| 345 | _SC_MEMORY_PROTECTION = 27 |
| 346 | _SC_MESSAGE_PASSING = 28 |
| 347 | _SC_MQ_OPEN_MAX = 29 |
| 348 | _SC_MQ_PRIO_MAX = 30 |
| 349 | _SC_PRIORITIZED_IO = 31 |
| 350 | _SC_PRIORITY_SCHEDULING = 32 |
| 351 | _SC_REALTIME_SIGNALS = 33 |
| 352 | _SC_RTSIG_MAX = 34 |
| 353 | _SC_SEMAPHORES = 35 |
| 354 | _SC_SEM_NSEMS_MAX = 36 |
| 355 | _SC_SEM_VALUE_MAX = 37 |
| 356 | _SC_SHARED_MEMORY_OBJECTS = 38 |
| 357 | _SC_SIGQUEUE_MAX = 39 |
| 358 | _SC_SIGRT_MIN = 40 |
| 359 | _SC_SIGRT_MAX = 41 |
| 360 | _SC_SYNCHRONIZED_IO = 42 |
| 361 | _SC_TIMERS = 43 |
| 362 | _SC_TIMER_MAX = 44 |
| 363 | _SC_2_C_BIND = 45 |
| 364 | _SC_2_C_DEV = 46 |
| 365 | _SC_2_C_VERSION = 47 |
| 366 | _SC_2_FORT_DEV = 48 |
| 367 | _SC_2_FORT_RUN = 49 |
| 368 | _SC_2_LOCALEDEF = 50 |
| 369 | _SC_2_SW_DEV = 51 |
| 370 | _SC_2_UPE = 52 |
| 371 | _SC_2_VERSION = 53 |
| 372 | _SC_BC_BASE_MAX = 54 |
| 373 | _SC_BC_DIM_MAX = 55 |
| 374 | _SC_BC_SCALE_MAX = 56 |
| 375 | _SC_BC_STRING_MAX = 57 |
| 376 | _SC_COLL_WEIGHTS_MAX = 58 |
| 377 | _SC_EXPR_NEST_MAX = 59 |
| 378 | _SC_LINE_MAX = 60 |
| 379 | _SC_RE_DUP_MAX = 61 |
| 380 | _SC_XOPEN_CRYPT = 62 |
| 381 | _SC_XOPEN_ENH_I18N = 63 |
| 382 | _SC_XOPEN_SHM = 64 |
| 383 | _CS_PATH = 65 |
| 384 | _SC_2_CHAR_TERM = 66 |
| 385 | _SC_XOPEN_XCU_VERSION = 67 |
| 386 | _CS_LFS_CFLAGS = 68 |
| 387 | _CS_LFS_LDFLAGS = 69 |
| 388 | _CS_LFS_LIBS = 70 |
| 389 | _CS_LFS_LINTFLAGS = 71 |
| 390 | _CS_LFS64_CFLAGS = 72 |
| 391 | _CS_LFS64_LDFLAGS = 73 |
| 392 | _CS_LFS64_LIBS = 74 |
| 393 | _CS_LFS64_LINTFLAGS = 75 |
| 394 | _SC_ATEXIT_MAX = 76 |
| 395 | _SC_IOV_MAX = 77 |
| 396 | _SC_XOPEN_UNIX = 78 |
| 397 | _SC_PAGE_SIZE = _SC_PAGESIZE |
| 398 | _SC_PHYS_PAGES = 500 |
| 399 | _SC_AVPHYS_PAGES = 501 |
| 400 | _SC_COHER_BLKSZ = 503 |
| 401 | _SC_SPLIT_CACHE = 504 |
| 402 | _SC_ICACHE_SZ = 505 |
| 403 | _SC_DCACHE_SZ = 506 |
| 404 | _SC_ICACHE_LINESZ = 507 |
| 405 | _SC_DCACHE_LINESZ = 508 |
| 406 | _SC_ICACHE_BLKSZ = 509 |
| 407 | _SC_DCACHE_BLKSZ = 510 |
| 408 | _SC_DCACHE_TBLKSZ = 511 |
| 409 | _SC_ICACHE_ASSOC = 512 |
| 410 | _SC_DCACHE_ASSOC = 513 |
| 411 | _SC_THREAD_DESTRUCTOR_ITERATIONS = 568 |
| 412 | _SC_GETGR_R_SIZE_MAX = 569 |
| 413 | _SC_GETPW_R_SIZE_MAX = 570 |
| 414 | _SC_LOGIN_NAME_MAX = 571 |
| 415 | _SC_THREAD_KEYS_MAX = 572 |
| 416 | _SC_THREAD_STACK_MIN = 573 |
| 417 | _SC_THREAD_THREADS_MAX = 574 |
| 418 | _SC_TTY_NAME_MAX = 575 |
| 419 | _SC_THREADS = 576 |
| 420 | _SC_THREAD_ATTR_STACKADDR = 577 |
| 421 | _SC_THREAD_ATTR_STACKSIZE = 578 |
| 422 | _SC_THREAD_PRIORITY_SCHEDULING = 579 |
| 423 | _SC_THREAD_PRIO_INHERIT = 580 |
| 424 | _SC_THREAD_PRIO_PROTECT = 581 |
| 425 | _SC_THREAD_PROCESS_SHARED = 582 |
| 426 | _SC_THREAD_SAFE_FUNCTIONS = 583 |
| 427 | _SC_PPC_GRANULE_SZ = 601 |
| 428 | _SC_PPC_TB_TICKSPSECH = 602 |
| 429 | _SC_PPC_TB_TICKSPSECL = 603 |
| 430 | _PC_LINK_MAX = 1 |
| 431 | _PC_MAX_CANON = 2 |
| 432 | _PC_MAX_INPUT = 3 |
| 433 | _PC_NAME_MAX = 4 |
| 434 | _PC_PATH_MAX = 5 |
| 435 | _PC_PIPE_BUF = 6 |
| 436 | _PC_NO_TRUNC = 7 |
| 437 | _PC_VDISABLE = 8 |
| 438 | _PC_CHOWN_RESTRICTED = 9 |
| 439 | _PC_ASYNC_IO = 10 |
| 440 | _PC_PRIO_IO = 11 |
| 441 | _PC_SYNC_IO = 12 |
| 442 | _PC_FILESIZEBITS = 67 |
| 443 | _PC_LAST = 67 |
| 444 | _POSIX_VERSION = 199506L |
| 445 | _POSIX2_VERSION = 199209L |
| 446 | _POSIX2_C_VERSION = 199209L |
| 447 | _XOPEN_XCU_VERSION = 4 |
| 448 | _POSIX2_C_BIND = 1 |
| 449 | _POSIX2_CHAR_TERM = 1 |
| 450 | _POSIX2_LOCALEDEF = 1 |
| 451 | _POSIX2_C_DEV = 1 |
| 452 | _POSIX2_SW_DEV = 1 |
| 453 | _POSIX2_UPE = 1 |
| 454 | |
| 455 | # Included from sys/pirec.h |
| 456 | NTSTILE_SQ = 2 |
| 457 | TSTILE_FREE = 0 |
| 458 | TSTILE_ACTIVE = 1 |
| 459 | TS_ROWSZ = 512 |
| 460 | TS_COLSZ = 128 |
| 461 | TS_ROWBITS = 9 |
| 462 | TS_COLBITS = 7 |
| 463 | TS_ROWMASK = ((1 << TS_ROWBITS) - 1) |
| 464 | def TS_COL(ts_id): return ((ts_id) >> TS_ROWBITS) |
| 465 | |
| 466 | def TS_ROW(ts_id): return ((ts_id) & TS_ROWMASK) |
| 467 | |
| 468 | def TSTILE_PRIO_INVERTED(ts): return \ |
| 469 | |
| 470 | |
| 471 | # Included from sys/rwlock.h |
| 472 | def RW_READ_HELD(x): return (rw_read_held((x))) |
| 473 | |
| 474 | def RW_WRITE_HELD(x): return (rw_write_held((x))) |
| 475 | |
| 476 | def RW_LOCK_HELD(x): return (rw_lock_held((x))) |
| 477 | |
| 478 | def RW_ISWRITER(x): return (rw_iswriter(x)) |
| 479 | |
| 480 | |
| 481 | # Included from sys/semaphore.h |
| 482 | |
| 483 | # Included from sys/thread.h |
| 484 | |
| 485 | # Included from sys/condvar.h |
| 486 | |
| 487 | # Included from sys/klwp.h |
| 488 | |
| 489 | # Included from sys/signal.h |
| 490 | SIGHUP = 1 |
| 491 | SIGINT = 2 |
| 492 | SIGQUIT = 3 |
| 493 | SIGILL = 4 |
| 494 | SIGTRAP = 5 |
| 495 | SIGIOT = 6 |
| 496 | SIGABRT = 6 |
| 497 | SIGEMT = 7 |
| 498 | SIGFPE = 8 |
| 499 | SIGKILL = 9 |
| 500 | SIGBUS = 10 |
| 501 | SIGSEGV = 11 |
| 502 | SIGSYS = 12 |
| 503 | SIGPIPE = 13 |
| 504 | SIGALRM = 14 |
| 505 | SIGTERM = 15 |
| 506 | SIGUSR1 = 16 |
| 507 | SIGUSR2 = 17 |
| 508 | SIGCLD = 18 |
| 509 | SIGCHLD = 18 |
| 510 | SIGPWR = 19 |
| 511 | SIGWINCH = 20 |
| 512 | SIGURG = 21 |
| 513 | SIGPOLL = 22 |
| 514 | SIGIO = SIGPOLL |
| 515 | SIGSTOP = 23 |
| 516 | SIGTSTP = 24 |
| 517 | SIGCONT = 25 |
| 518 | SIGTTIN = 26 |
| 519 | SIGTTOU = 27 |
| 520 | SIGVTALRM = 28 |
| 521 | SIGPROF = 29 |
| 522 | SIGXCPU = 30 |
| 523 | SIGXFSZ = 31 |
| 524 | SIGWAITING = 32 |
| 525 | SIGLWP = 33 |
| 526 | SIGFREEZE = 34 |
| 527 | SIGTHAW = 35 |
| 528 | SIGCANCEL = 36 |
| 529 | SIGLOST = 37 |
| 530 | _SIGRTMIN = 38 |
| 531 | _SIGRTMAX = 45 |
| 532 | SIG_BLOCK = 1 |
| 533 | SIG_UNBLOCK = 2 |
| 534 | SIG_SETMASK = 3 |
| 535 | SIGNO_MASK = 0xFF |
| 536 | SIGDEFER = 0x100 |
| 537 | SIGHOLD = 0x200 |
| 538 | SIGRELSE = 0x400 |
| 539 | SIGIGNORE = 0x800 |
| 540 | SIGPAUSE = 0x1000 |
| 541 | SA_NOCLDSTOP = 0x00020000 |
| 542 | SA_ONSTACK = 0x00000001 |
| 543 | SA_RESETHAND = 0x00000002 |
| 544 | SA_RESTART = 0x00000004 |
| 545 | SA_SIGINFO = 0x00000008 |
| 546 | SA_NODEFER = 0x00000010 |
| 547 | SA_NOCLDWAIT = 0x00010000 |
| 548 | SA_WAITSIG = 0x00010000 |
| 549 | NSIG = 46 |
| 550 | MAXSIG = 45 |
| 551 | S_SIGNAL = 1 |
| 552 | S_SIGSET = 2 |
| 553 | S_SIGACTION = 3 |
| 554 | S_NONE = 4 |
| 555 | MINSIGSTKSZ = 2048 |
| 556 | SIGSTKSZ = 8192 |
| 557 | SS_ONSTACK = 0x00000001 |
| 558 | SS_DISABLE = 0x00000002 |
| 559 | SN_PROC = 1 |
| 560 | SN_CANCEL = 2 |
| 561 | SN_SEND = 3 |
| 562 | |
| 563 | # Included from sys/ucontext.h |
| 564 | |
| 565 | # Included from sys/regset.h |
| 566 | REG_PSR = (0) |
| 567 | REG_PC = (1) |
| 568 | REG_nPC = (2) |
| 569 | REG_Y = (3) |
| 570 | REG_G1 = (4) |
| 571 | REG_G2 = (5) |
| 572 | REG_G3 = (6) |
| 573 | REG_G4 = (7) |
| 574 | REG_G5 = (8) |
| 575 | REG_G6 = (9) |
| 576 | REG_G7 = (10) |
| 577 | REG_O0 = (11) |
| 578 | REG_O1 = (12) |
| 579 | REG_O2 = (13) |
| 580 | REG_O3 = (14) |
| 581 | REG_O4 = (15) |
| 582 | REG_O5 = (16) |
| 583 | REG_O6 = (17) |
| 584 | REG_O7 = (18) |
| 585 | REG_PS = REG_PSR |
| 586 | REG_SP = REG_O6 |
| 587 | REG_R0 = REG_O0 |
| 588 | REG_R1 = REG_O1 |
| 589 | _NGREG = 19 |
| 590 | NGREG = _NGREG |
| 591 | SPARC_MAXREGWINDOW = 31 |
| 592 | MAXFPQ = 16 |
| 593 | XRS_ID = 0x78727300 |
| 594 | |
| 595 | # Included from v7/sys/privregs.h |
| 596 | |
| 597 | # Included from v7/sys/psr.h |
| 598 | PSR_CWP = 0x0000001F |
| 599 | PSR_ET = 0x00000020 |
| 600 | PSR_PS = 0x00000040 |
| 601 | PSR_S = 0x00000080 |
| 602 | PSR_PIL = 0x00000F00 |
| 603 | PSR_EF = 0x00001000 |
| 604 | PSR_EC = 0x00002000 |
| 605 | PSR_RSV = 0x000FC000 |
| 606 | PSR_ICC = 0x00F00000 |
| 607 | PSR_C = 0x00100000 |
| 608 | PSR_V = 0x00200000 |
| 609 | PSR_Z = 0x00400000 |
| 610 | PSR_N = 0x00800000 |
| 611 | PSR_VER = 0x0F000000 |
| 612 | PSR_IMPL = 0xF0000000 |
| 613 | PSL_ALLCC = PSR_ICC |
| 614 | PSL_USER = (PSR_S) |
| 615 | PSL_USERMASK = (PSR_ICC) |
| 616 | PSL_UBITS = (PSR_ICC|PSR_EF) |
| 617 | def USERMODE(ps): return (((ps) & PSR_PS) == 0) |
| 618 | |
| 619 | |
| 620 | # Included from sys/fsr.h |
| 621 | FSR_CEXC = 0x0000001f |
| 622 | FSR_AEXC = 0x000003e0 |
| 623 | FSR_FCC = 0x00000c00 |
| 624 | FSR_PR = 0x00001000 |
| 625 | FSR_QNE = 0x00002000 |
| 626 | FSR_FTT = 0x0001c000 |
| 627 | FSR_VER = 0x000e0000 |
| 628 | FSR_TEM = 0x0f800000 |
| 629 | FSR_RP = 0x30000000 |
| 630 | FSR_RD = 0xc0000000 |
| 631 | FSR_VER_SHIFT = 17 |
| 632 | FSR_FCC1 = 0x00000003 |
| 633 | FSR_FCC2 = 0x0000000C |
| 634 | FSR_FCC3 = 0x00000030 |
| 635 | FSR_CEXC_NX = 0x00000001 |
| 636 | FSR_CEXC_DZ = 0x00000002 |
| 637 | FSR_CEXC_UF = 0x00000004 |
| 638 | FSR_CEXC_OF = 0x00000008 |
| 639 | FSR_CEXC_NV = 0x00000010 |
| 640 | FSR_AEXC_NX = (0x1 << 5) |
| 641 | FSR_AEXC_DZ = (0x2 << 5) |
| 642 | FSR_AEXC_UF = (0x4 << 5) |
| 643 | FSR_AEXC_OF = (0x8 << 5) |
| 644 | FSR_AEXC_NV = (0x10 << 5) |
| 645 | FTT_NONE = 0 |
| 646 | FTT_IEEE = 1 |
| 647 | FTT_UNFIN = 2 |
| 648 | FTT_UNIMP = 3 |
| 649 | FTT_SEQ = 4 |
| 650 | FTT_ALIGN = 5 |
| 651 | FTT_DFAULT = 6 |
| 652 | FSR_FTT_SHIFT = 14 |
| 653 | FSR_FTT_IEEE = (FTT_IEEE << FSR_FTT_SHIFT) |
| 654 | FSR_FTT_UNFIN = (FTT_UNFIN << FSR_FTT_SHIFT) |
| 655 | FSR_FTT_UNIMP = (FTT_UNIMP << FSR_FTT_SHIFT) |
| 656 | FSR_FTT_SEQ = (FTT_SEQ << FSR_FTT_SHIFT) |
| 657 | FSR_FTT_ALIGN = (FTT_ALIGN << FSR_FTT_SHIFT) |
| 658 | FSR_FTT_DFAULT = (FTT_DFAULT << FSR_FTT_SHIFT) |
| 659 | FSR_TEM_NX = (0x1 << 23) |
| 660 | FSR_TEM_DZ = (0x2 << 23) |
| 661 | FSR_TEM_UF = (0x4 << 23) |
| 662 | FSR_TEM_OF = (0x8 << 23) |
| 663 | FSR_TEM_NV = (0x10 << 23) |
| 664 | RP_DBLEXT = 0 |
| 665 | RP_SINGLE = 1 |
| 666 | RP_DOUBLE = 2 |
| 667 | RP_RESERVED = 3 |
| 668 | RD_NEAR = 0 |
| 669 | RD_ZER0 = 1 |
| 670 | RD_POSINF = 2 |
| 671 | RD_NEGINF = 3 |
| 672 | FPRS_DL = 0x1 |
| 673 | FPRS_DU = 0x2 |
| 674 | FPRS_FEF = 0x4 |
| 675 | def SAVE_GLOBALS(RP): return \ |
| 676 | |
| 677 | def RESTORE_GLOBALS(RP): return \ |
| 678 | |
| 679 | def SAVE_OUTS(RP): return \ |
| 680 | |
| 681 | def RESTORE_OUTS(RP): return \ |
| 682 | |
| 683 | def SAVE_WINDOW(SBP): return \ |
| 684 | |
| 685 | def RESTORE_WINDOW(SBP): return \ |
| 686 | |
| 687 | def STORE_FPREGS(FP): return \ |
| 688 | |
| 689 | def LOAD_FPREGS(FP): return \ |
| 690 | |
| 691 | _SPARC_MAXREGWINDOW = 31 |
| 692 | _XRS_ID = 0x78727300 |
| 693 | GETCONTEXT = 0 |
| 694 | SETCONTEXT = 1 |
| 695 | UC_SIGMASK = 001 |
| 696 | UC_STACK = 002 |
| 697 | UC_CPU = 004 |
| 698 | UC_MAU = 010 |
| 699 | UC_FPU = UC_MAU |
| 700 | UC_INTR = 020 |
| 701 | UC_MCONTEXT = (UC_CPU|UC_FPU) |
| 702 | UC_ALL = (UC_SIGMASK|UC_STACK|UC_MCONTEXT) |
| 703 | _SIGQUEUE_MAX = 32 |
| 704 | _SIGNOTIFY_MAX = 32 |
| 705 | |
| 706 | # Included from sys/pcb.h |
| 707 | INSTR_VALID = 0x02 |
| 708 | NORMAL_STEP = 0x04 |
| 709 | WATCH_STEP = 0x08 |
| 710 | |
| 711 | # Included from sys/msacct.h |
| 712 | LMS_USER = 0 |
| 713 | LMS_SYSTEM = 1 |
| 714 | LMS_TRAP = 2 |
| 715 | LMS_TFAULT = 3 |
| 716 | LMS_DFAULT = 4 |
| 717 | LMS_KFAULT = 5 |
| 718 | LMS_USER_LOCK = 6 |
| 719 | LMS_SLEEP = 7 |
| 720 | LMS_WAIT_CPU = 8 |
| 721 | LMS_STOPPED = 9 |
| 722 | NMSTATES = 10 |
| 723 | |
| 724 | # Included from sys/lwp.h |
| 725 | |
| 726 | # Included from sys/synch.h |
| 727 | USYNC_THREAD = 0 |
| 728 | USYNC_PROCESS = 1 |
| 729 | TRACE_TYPE = 2 |
| 730 | LWP_DETACHED = 0x00000040 |
| 731 | LWP_SUSPENDED = 0x00000080 |
| 732 | __LWP_ASLWP = 0x00000100 |
| 733 | MAXSYSARGS = 8 |
| 734 | NORMALRETURN = 0 |
| 735 | JUSTRETURN = 1 |
| 736 | LWP_USER = 0x01 |
| 737 | LWP_SYS = 0x02 |
| 738 | |
| 739 | # Included from vm/page.h |
| 740 | PAGE_HASHAVELEN = 4 |
| 741 | PAGE_HASHVPSHIFT = 6 |
| 742 | PG_EXCL = 0x0001 |
| 743 | PG_WAIT = 0x0002 |
| 744 | PG_PHYSCONTIG = 0x0004 |
| 745 | PG_MATCH_COLOR = 0x0008 |
| 746 | PG_FREE_LIST = 1 |
| 747 | PG_CACHE_LIST = 2 |
| 748 | PG_LIST_TAIL = 0 |
| 749 | PG_LIST_HEAD = 1 |
| 750 | PAGE_IO_INUSE = 0x1 |
| 751 | PAGE_IO_WANTED = 0x2 |
| 752 | P_FREE = 0x80 |
| 753 | def PP_SETAGED(pp): return ASSERT(PP_ISAGED(pp)) |
| 754 | |
| 755 | TS_FREE = 0x00 |
| 756 | TS_SLEEP = 0x01 |
| 757 | TS_RUN = 0x02 |
| 758 | TS_ONPROC = 0x04 |
| 759 | TS_ZOMB = 0x08 |
| 760 | TS_STOPPED = 0x10 |
| 761 | T_INTR_THREAD = 0x0001 |
| 762 | T_WAKEABLE = 0x0002 |
| 763 | T_TOMASK = 0x0004 |
| 764 | T_TALLOCSTK = 0x0008 |
| 765 | T_LWPZOMB = 0x0010 |
| 766 | T_WOULDBLOCK = 0x0020 |
| 767 | T_DONTBLOCK = 0x0040 |
| 768 | T_DONTPEND = 0x0080 |
| 769 | T_SYS_PROF = 0x0100 |
| 770 | T_WAITCVSEM = 0x0200 |
| 771 | T_WATCHPT = 0x0400 |
| 772 | TP_WAITFOR = 0x001 |
| 773 | TP_HOLDLWP = 0x002 |
| 774 | TP_TWAIT = 0x004 |
| 775 | TP_LWPEXIT = 0x008 |
| 776 | TP_PRSTOP = 0x010 |
| 777 | TP_CHKPT = 0x020 |
| 778 | TP_EXITLWP = 0x040 |
| 779 | TP_PRVSTOP = 0x080 |
| 780 | TP_MSACCT = 0x100 |
| 781 | TP_STOPPING = 0x200 |
| 782 | TP_WATCHPT = 0x400 |
| 783 | TP_PAUSE = 0x800 |
| 784 | TS_LOAD = 0x0001 |
| 785 | TS_DONT_SWAP = 0x0002 |
| 786 | TS_SWAPENQ = 0x0004 |
| 787 | TS_ON_SWAPQ = 0x0008 |
| 788 | TS_CSTART = 0x0100 |
| 789 | TS_UNPAUSE = 0x0200 |
| 790 | TS_XSTART = 0x0400 |
| 791 | TS_PSTART = 0x0800 |
| 792 | TS_RESUME = 0x1000 |
| 793 | TS_ALLSTART = (TS_CSTART|TS_UNPAUSE|TS_XSTART|TS_PSTART|TS_RESUME) |
| 794 | def CPR_VSTOPPED(t): return \ |
| 795 | |
| 796 | def THREAD_TRANSITION(tp): return thread_transition(tp); |
| 797 | |
| 798 | def THREAD_STOP(tp): return \ |
| 799 | |
| 800 | def THREAD_ZOMB(tp): return THREAD_SET_STATE(tp, TS_ZOMB, NULL) |
| 801 | |
| 802 | def SEMA_HELD(x): return (sema_held((x))) |
| 803 | |
| 804 | NO_LOCKS_HELD = 1 |
| 805 | NO_COMPETING_THREADS = 1 |
| 806 | FMNAMESZ = 8 |
| 807 | |
| 808 | # Included from sys/systm.h |
| 809 | |
| 810 | # Included from sys/varargs.h |
| 811 | |
| 812 | # Included from sys/va_list.h |
| 813 | def va_start(list): return __builtin_va_info(list) |
| 814 | |
| 815 | NSYSCALL = 250 |
| 816 | SE_LOADABLE = 0x08 |
| 817 | SE_LOADED = 0x10 |
| 818 | SE_NOUNLOAD = 0x20 |
| 819 | SE_ARGC = 0x40 |
| 820 | NUMRC = 512 |
| 821 | NUMPHASE = 64 |
| 822 | PFCHAR = 10 |
| 823 | KPFCHILDSLP = 35 |
| 824 | KPFTRON = 36 |
| 825 | KPFTRON2 = 37 |
| 826 | KPFTROFF = 38 |
| 827 | KPT_SYSCALL = 0 |
| 828 | KPT_INTR = 1 |
| 829 | KPT_TRAP_RET = 2 |
| 830 | KPT_INT_KRET = 3 |
| 831 | KPT_INT_URET = 4 |
| 832 | KPT_SLEEP = 5 |
| 833 | KPT_WAKEUP = 6 |
| 834 | KPT_PSWTCH = 7 |
| 835 | KPT_SPL = 8 |
| 836 | KPT_CSERVE = 9 |
| 837 | KPT_RSERVE = 10 |
| 838 | KPT_UXMEMF = 11 |
| 839 | KPT_SWTCH = 12 |
| 840 | KPT_QSWTCH = 13 |
| 841 | KPT_STKBX = 14 |
| 842 | KPT_END = 15 |
| 843 | KPT_IDLE = 16 |
| 844 | KPT_PREEMPT = 17 |
| 845 | KPT_P_QSWTCH = 18 |
| 846 | KPT_LAST = 19 |
| 847 | |
| 848 | # Included from sys/devops.h |
| 849 | |
| 850 | # Included from sys/cred.h |
| 851 | |
| 852 | # Included from sys/uio.h |
| 853 | |
| 854 | # Included from sys/buf.h |
| 855 | |
| 856 | # Included from sys/kstat.h |
| 857 | KSTAT_IOC_BASE = (ord('K') << 8) |
| 858 | KSTAT_IOC_CHAIN_ID = KSTAT_IOC_BASE | 0x01 |
| 859 | KSTAT_IOC_READ = KSTAT_IOC_BASE | 0x02 |
| 860 | KSTAT_IOC_WRITE = KSTAT_IOC_BASE | 0x03 |
| 861 | KSTAT_STRLEN = 31 |
| 862 | def KSTAT_ENTER(k): return \ |
| 863 | |
| 864 | def KSTAT_EXIT(k): return \ |
| 865 | |
| 866 | KSTAT_TYPE_RAW = 0 |
| 867 | KSTAT_TYPE_NAMED = 1 |
| 868 | KSTAT_TYPE_INTR = 2 |
| 869 | KSTAT_TYPE_IO = 3 |
| 870 | KSTAT_TYPE_TIMER = 4 |
| 871 | KSTAT_NUM_TYPES = 5 |
| 872 | KSTAT_FLAG_VIRTUAL = 0x01 |
| 873 | KSTAT_FLAG_VAR_SIZE = 0x02 |
| 874 | KSTAT_FLAG_WRITABLE = 0x04 |
| 875 | KSTAT_FLAG_PERSISTENT = 0x08 |
| 876 | KSTAT_FLAG_DORMANT = 0x10 |
| 877 | KSTAT_FLAG_INVALID = 0x20 |
| 878 | KSTAT_READ = 0 |
| 879 | KSTAT_WRITE = 1 |
| 880 | KSTAT_DATA_CHAR = 0 |
| 881 | KSTAT_DATA_INT32 = 1 |
| 882 | KSTAT_DATA_UINT32 = 2 |
| 883 | KSTAT_DATA_INT64 = 3 |
| 884 | KSTAT_DATA_UINT64 = 4 |
| 885 | KSTAT_DATA_LONG = 1 |
| 886 | KSTAT_DATA_ULONG = 2 |
| 887 | KSTAT_DATA_LONGLONG = 3 |
| 888 | KSTAT_DATA_ULONGLONG = 4 |
| 889 | KSTAT_DATA_FLOAT = 5 |
| 890 | KSTAT_DATA_DOUBLE = 6 |
| 891 | KSTAT_INTR_HARD = 0 |
| 892 | KSTAT_INTR_SOFT = 1 |
| 893 | KSTAT_INTR_WATCHDOG = 2 |
| 894 | KSTAT_INTR_SPURIOUS = 3 |
| 895 | KSTAT_INTR_MULTSVC = 4 |
| 896 | KSTAT_NUM_INTRS = 5 |
| 897 | B_BUSY = 0x0001 |
| 898 | B_DONE = 0x0002 |
| 899 | B_ERROR = 0x0004 |
| 900 | B_PAGEIO = 0x0010 |
| 901 | B_PHYS = 0x0020 |
| 902 | B_READ = 0x0040 |
| 903 | B_WRITE = 0x0100 |
| 904 | B_KERNBUF = 0x0008 |
| 905 | B_WANTED = 0x0080 |
| 906 | B_AGE = 0x000200 |
| 907 | B_ASYNC = 0x000400 |
| 908 | B_DELWRI = 0x000800 |
| 909 | B_STALE = 0x001000 |
| 910 | B_DONTNEED = 0x002000 |
| 911 | B_REMAPPED = 0x004000 |
| 912 | B_FREE = 0x008000 |
| 913 | B_INVAL = 0x010000 |
| 914 | B_FORCE = 0x020000 |
| 915 | B_HEAD = 0x040000 |
| 916 | B_NOCACHE = 0x080000 |
| 917 | B_TRUNC = 0x100000 |
| 918 | B_SHADOW = 0x200000 |
| 919 | def notavail(bp): return \ |
| 920 | |
| 921 | |
| 922 | # Included from sys/poll.h |
| 923 | POLLIN = 0x0001 |
| 924 | POLLPRI = 0x0002 |
| 925 | POLLOUT = 0x0004 |
| 926 | POLLRDNORM = 0x0040 |
| 927 | POLLWRNORM = POLLOUT |
| 928 | POLLRDBAND = 0x0080 |
| 929 | POLLWRBAND = 0x0100 |
| 930 | POLLNORM = POLLRDNORM |
| 931 | POLLERR = 0x0008 |
| 932 | POLLHUP = 0x0010 |
| 933 | POLLNVAL = 0x0020 |
| 934 | POLLRDDATA = 0x200 |
| 935 | POLLNOERR = 0x400 |
| 936 | T_POLLTIME = 0x01 |
| 937 | T_POLLWAKE = 0x02 |
| 938 | |
| 939 | # Included from vm/as.h |
| 940 | |
| 941 | # Included from sys/watchpoint.h |
| 942 | |
| 943 | # Included from vm/seg_enum.h |
| 944 | |
| 945 | # Included from sys/copyops.h |
| 946 | WP_NOWATCH = 0x01 |
| 947 | WP_SETPROT = 0x02 |
| 948 | |
| 949 | # Included from vm/seg.h |
| 950 | |
| 951 | # Included from sys/vnode.h |
| 952 | |
| 953 | # Included from sys/resource.h |
| 954 | PRIO_PROCESS = 0 |
| 955 | PRIO_PGRP = 1 |
| 956 | PRIO_USER = 2 |
| 957 | RLIMIT_CPU = 0 |
| 958 | RLIMIT_FSIZE = 1 |
| 959 | RLIMIT_DATA = 2 |
| 960 | RLIMIT_STACK = 3 |
| 961 | RLIMIT_CORE = 4 |
| 962 | RLIMIT_NOFILE = 5 |
| 963 | RLIMIT_VMEM = 6 |
| 964 | RLIMIT_AS = RLIMIT_VMEM |
| 965 | RLIM_NLIMITS = 7 |
| 966 | RLIM_INFINITY = 0x7fffffff |
| 967 | RLIM_SAVED_MAX = 0x7ffffffe |
| 968 | RLIM_SAVED_CUR = 0x7ffffffd |
| 969 | RUSAGE_SELF = 0 |
| 970 | RUSAGE_CHILDREN = -1 |
| 971 | VROOT = 0x01 |
| 972 | VNOCACHE = 0x02 |
| 973 | VNOMAP = 0x04 |
| 974 | VDUP = 0x08 |
| 975 | VNOSWAP = 0x10 |
| 976 | VNOMOUNT = 0x20 |
| 977 | VISSWAP = 0x40 |
| 978 | VSWAPLIKE = 0x80 |
| 979 | VVFSLOCK = 0x100 |
| 980 | VVFSWAIT = 0x200 |
| 981 | VVMLOCK = 0x400 |
| 982 | VDIROPEN = 0x800 |
| 983 | AT_TYPE = 0x0001 |
| 984 | AT_MODE = 0x0002 |
| 985 | AT_UID = 0x0004 |
| 986 | AT_GID = 0x0008 |
| 987 | AT_FSID = 0x0010 |
| 988 | AT_NODEID = 0x0020 |
| 989 | AT_NLINK = 0x0040 |
| 990 | AT_SIZE = 0x0080 |
| 991 | AT_ATIME = 0x0100 |
| 992 | AT_MTIME = 0x0200 |
| 993 | AT_CTIME = 0x0400 |
| 994 | AT_RDEV = 0x0800 |
| 995 | AT_BLKSIZE = 0x1000 |
| 996 | AT_NBLOCKS = 0x2000 |
| 997 | AT_VCODE = 0x4000 |
| 998 | AT_ALL = (AT_TYPE|AT_MODE|AT_UID|AT_GID|AT_FSID|AT_NODEID|\ |
| 999 | AT_NLINK|AT_SIZE|AT_ATIME|AT_MTIME|AT_CTIME|\ |
| 1000 | AT_RDEV|AT_BLKSIZE|AT_NBLOCKS|AT_VCODE) |
| 1001 | AT_STAT = (AT_MODE|AT_UID|AT_GID|AT_FSID|AT_NODEID|AT_NLINK|\ |
| 1002 | AT_SIZE|AT_ATIME|AT_MTIME|AT_CTIME|AT_RDEV) |
| 1003 | AT_TIMES = (AT_ATIME|AT_MTIME|AT_CTIME) |
| 1004 | AT_NOSET = (AT_NLINK|AT_RDEV|AT_FSID|AT_NODEID|AT_TYPE|\ |
| 1005 | AT_BLKSIZE|AT_NBLOCKS|AT_VCODE) |
| 1006 | VSUID = 04000 |
| 1007 | VSGID = 02000 |
| 1008 | VSVTX = 01000 |
| 1009 | VREAD = 00400 |
| 1010 | VWRITE = 00200 |
| 1011 | VEXEC = 00100 |
| 1012 | MODEMASK = 07777 |
| 1013 | PERMMASK = 00777 |
| 1014 | def MANDMODE(mode): return (((mode) & (VSGID|(VEXEC>>3))) == VSGID) |
| 1015 | |
| 1016 | VSA_ACL = 0x0001 |
| 1017 | VSA_ACLCNT = 0x0002 |
| 1018 | VSA_DFACL = 0x0004 |
| 1019 | VSA_DFACLCNT = 0x0008 |
| 1020 | LOOKUP_DIR = 0x01 |
| 1021 | ATTR_UTIME = 0x01 |
| 1022 | ATTR_EXEC = 0x02 |
| 1023 | ATTR_COMM = 0x04 |
| 1024 | ATTR_HINT = 0x08 |
| 1025 | ATTR_REAL = 0x10 |
| 1026 | |
| 1027 | # Included from vm/faultcode.h |
| 1028 | FC_HWERR = 0x1 |
| 1029 | FC_ALIGN = 0x2 |
| 1030 | FC_OBJERR = 0x3 |
| 1031 | FC_PROT = 0x4 |
| 1032 | FC_NOMAP = 0x5 |
| 1033 | FC_NOSUPPORT = 0x6 |
| 1034 | def FC_MAKE_ERR(e): return (((e) << 8) | FC_OBJERR) |
| 1035 | |
| 1036 | def FC_CODE(fc): return ((fc) & 0xff) |
| 1037 | |
| 1038 | def FC_ERRNO(fc): return ((unsigned)(fc) >> 8) |
| 1039 | |
| 1040 | |
| 1041 | # Included from vm/hat.h |
| 1042 | HAT_FLAGS_RESV = 0xFF000000 |
| 1043 | HAT_LOAD = 0x00 |
| 1044 | HAT_LOAD_LOCK = 0x01 |
| 1045 | HAT_LOAD_ADV = 0x04 |
| 1046 | HAT_LOAD_CONTIG = 0x10 |
| 1047 | HAT_LOAD_NOCONSIST = 0x20 |
| 1048 | HAT_LOAD_SHARE = 0x40 |
| 1049 | HAT_LOAD_REMAP = 0x80 |
| 1050 | HAT_PLAT_ATTR_MASK = 0xF00000 |
| 1051 | HAT_PROT_MASK = 0x0F |
| 1052 | HAT_NOFAULT = 0x10 |
| 1053 | HAT_NOSYNC = 0x20 |
| 1054 | HAT_STRICTORDER = 0x0000 |
| 1055 | HAT_UNORDERED_OK = 0x0100 |
| 1056 | HAT_MERGING_OK = 0x0200 |
| 1057 | HAT_LOADCACHING_OK = 0x0300 |
| 1058 | HAT_STORECACHING_OK = 0x0400 |
| 1059 | HAT_ORDER_MASK = 0x0700 |
| 1060 | HAT_NEVERSWAP = 0x0000 |
| 1061 | HAT_STRUCTURE_BE = 0x1000 |
| 1062 | HAT_STRUCTURE_LE = 0x2000 |
| 1063 | HAT_ENDIAN_MASK = 0x3000 |
| 1064 | HAT_KMEM = 0x10000 |
| 1065 | HAT_COW = 0x0001 |
| 1066 | HAT_UNLOAD = 0x00 |
| 1067 | HAT_UNLOAD_NOSYNC = 0x02 |
| 1068 | HAT_UNLOAD_UNLOCK = 0x04 |
| 1069 | HAT_UNLOAD_OTHER = 0x08 |
| 1070 | HAT_UNLOAD_UNMAP = 0x10 |
| 1071 | HAT_SYNC_DONTZERO = 0x00 |
| 1072 | HAT_SYNC_ZERORM = 0x01 |
| 1073 | HAT_SYNC_STOPON_REF = 0x02 |
| 1074 | HAT_SYNC_STOPON_MOD = 0x04 |
| 1075 | HAT_SYNC_STOPON_RM = (HAT_SYNC_STOPON_REF | HAT_SYNC_STOPON_MOD) |
| 1076 | HAT_DUP_ALL = 1 |
| 1077 | HAT_DUP_COW = 2 |
| 1078 | HAT_MAP = 0x00 |
| 1079 | HAT_ADV_PGUNLOAD = 0x00 |
| 1080 | HAT_FORCE_PGUNLOAD = 0x01 |
| 1081 | P_MOD = 0x1 |
| 1082 | P_REF = 0x2 |
| 1083 | P_RO = 0x4 |
| 1084 | def hat_ismod(pp): return (hat_page_getattr(pp, P_MOD)) |
| 1085 | |
| 1086 | def hat_isref(pp): return (hat_page_getattr(pp, P_REF)) |
| 1087 | |
| 1088 | def hat_isro(pp): return (hat_page_getattr(pp, P_RO)) |
| 1089 | |
| 1090 | def hat_setmod(pp): return (hat_page_setattr(pp, P_MOD)) |
| 1091 | |
| 1092 | def hat_setref(pp): return (hat_page_setattr(pp, P_REF)) |
| 1093 | |
| 1094 | def hat_setrefmod(pp): return (hat_page_setattr(pp, P_REF|P_MOD)) |
| 1095 | |
| 1096 | def hat_clrmod(pp): return (hat_page_clrattr(pp, P_MOD)) |
| 1097 | |
| 1098 | def hat_clrref(pp): return (hat_page_clrattr(pp, P_REF)) |
| 1099 | |
| 1100 | def hat_clrrefmod(pp): return (hat_page_clrattr(pp, P_REF|P_MOD)) |
| 1101 | |
| 1102 | def hat_page_is_mapped(pp): return (hat_page_getshare(pp)) |
| 1103 | |
| 1104 | HAT_DONTALLOC = 0 |
| 1105 | HAT_ALLOC = 1 |
| 1106 | HRM_SHIFT = 4 |
| 1107 | HRM_BYTES = (1 << HRM_SHIFT) |
| 1108 | HRM_PAGES = ((HRM_BYTES * NBBY) / 2) |
| 1109 | HRM_PGPERBYTE = (NBBY/2) |
| 1110 | HRM_PGBYTEMASK = (HRM_PGPERBYTE-1) |
| 1111 | HRM_HASHSIZE = 0x200 |
| 1112 | HRM_HASHMASK = (HRM_HASHSIZE - 1) |
| 1113 | HRM_BLIST_INCR = 0x200 |
| 1114 | HRM_SWSMONID = 1 |
| 1115 | SSL_NLEVELS = 4 |
| 1116 | SSL_BFACTOR = 4 |
| 1117 | SSL_LOG2BF = 2 |
| 1118 | def seg_pages(seg): return \ |
| 1119 | |
| 1120 | AS_PAGLCK = 0x80 |
| 1121 | AS_CLAIMGAP = 0x40 |
| 1122 | AS_UNMAPWAIT = 0x20 |
| 1123 | AS_LREP_LINKEDLIST = 0 |
| 1124 | AS_LREP_SKIPLIST = 1 |
| 1125 | AS_MUTATION_THRESH = 225 |
| 1126 | AH_DIR = 0x1 |
| 1127 | AH_LO = 0x0 |
| 1128 | AH_HI = 0x1 |
| 1129 | AH_CONTAIN = 0x2 |
| 1130 | |
| 1131 | # Included from sys/dditypes.h |
| 1132 | DDI_DEVICE_ATTR_V0 = 0x0001 |
| 1133 | DDI_NEVERSWAP_ACC = 0x00 |
| 1134 | DDI_STRUCTURE_LE_ACC = 0x01 |
| 1135 | DDI_STRUCTURE_BE_ACC = 0x02 |
| 1136 | DDI_STRICTORDER_ACC = 0x00 |
| 1137 | DDI_UNORDERED_OK_ACC = 0x01 |
| 1138 | DDI_MERGING_OK_ACC = 0x02 |
| 1139 | DDI_LOADCACHING_OK_ACC = 0x03 |
| 1140 | DDI_STORECACHING_OK_ACC = 0x04 |
| 1141 | DDI_DATA_SZ01_ACC = 1 |
| 1142 | DDI_DATA_SZ02_ACC = 2 |
| 1143 | DDI_DATA_SZ04_ACC = 4 |
| 1144 | DDI_DATA_SZ08_ACC = 8 |
| 1145 | VERS_ACCHDL = 0x0001 |
| 1146 | VERS1_NOFAULT = 1 |
| 1147 | PEEK_START = 1 |
| 1148 | POKE_START = 2 |
| 1149 | PEEK_FAULT = 4 |
| 1150 | POKE_FAULT = 8 |
| 1151 | DEVID_NONE = 0 |
| 1152 | DEVID_SCSI3_WWN = 1 |
| 1153 | DEVID_SCSI_SERIAL = 2 |
| 1154 | DEVID_FAB = 3 |
| 1155 | DEVID_ENCAP = 4 |
| 1156 | DEVID_MAXTYPE = 4 |
| 1157 | |
| 1158 | # Included from sys/ddidmareq.h |
| 1159 | DMA_UNIT_8 = 1 |
| 1160 | DMA_UNIT_16 = 2 |
| 1161 | DMA_UNIT_32 = 4 |
| 1162 | DMALIM_VER0 = ((0x86000000) + 0) |
| 1163 | DDI_DMA_FORCE_PHYSICAL = 0x0100 |
| 1164 | DMA_ATTR_V0 = 0 |
| 1165 | DMA_ATTR_VERSION = DMA_ATTR_V0 |
| 1166 | DDI_DMA_CALLBACK_RUNOUT = 0 |
| 1167 | DDI_DMA_CALLBACK_DONE = 1 |
| 1168 | DDI_DMA_WRITE = 0x0001 |
| 1169 | DDI_DMA_READ = 0x0002 |
| 1170 | DDI_DMA_RDWR = (DDI_DMA_READ | DDI_DMA_WRITE) |
| 1171 | DDI_DMA_REDZONE = 0x0004 |
| 1172 | DDI_DMA_PARTIAL = 0x0008 |
| 1173 | DDI_DMA_CONSISTENT = 0x0010 |
| 1174 | DDI_DMA_EXCLUSIVE = 0x0020 |
| 1175 | DDI_DMA_STREAMING = 0x0040 |
| 1176 | DDI_DMA_VME_USEA32 = 0x1000 |
| 1177 | DDI_DMA_SBUS_64BIT = 0x2000 |
| 1178 | DDI_DMA_MAPPED = 0 |
| 1179 | DDI_DMA_MAPOK = 0 |
| 1180 | DDI_DMA_PARTIAL_MAP = 1 |
| 1181 | DDI_DMA_DONE = 2 |
| 1182 | DDI_DMA_NORESOURCES = -1 |
| 1183 | DDI_DMA_NOMAPPING = -2 |
| 1184 | DDI_DMA_TOOBIG = -3 |
| 1185 | DDI_DMA_TOOSMALL = -4 |
| 1186 | DDI_DMA_LOCKED = -5 |
| 1187 | DDI_DMA_BADLIMITS = -6 |
| 1188 | DDI_DMA_STALE = -7 |
| 1189 | DDI_DMA_BADATTR = -8 |
| 1190 | DDI_DMA_INUSE = -9 |
| 1191 | DDI_DMA_SYNC_FORDEV = 0x0 |
| 1192 | DDI_DMA_SYNC_FORCPU = 0x1 |
| 1193 | DDI_DMA_SYNC_FORKERNEL = 0x2 |
| 1194 | |
| 1195 | # Included from sys/ddimapreq.h |
| 1196 | |
| 1197 | # Included from sys/mman.h |
| 1198 | PROT_READ = 0x1 |
| 1199 | PROT_WRITE = 0x2 |
| 1200 | PROT_EXEC = 0x4 |
| 1201 | PROT_USER = 0x8 |
| 1202 | PROT_ZFOD = (PROT_READ | PROT_WRITE | PROT_USER) |
| 1203 | PROT_ZFOD = (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER) |
| 1204 | PROT_ALL = (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER) |
| 1205 | PROT_NONE = 0x0 |
| 1206 | MAP_SHARED = 1 |
| 1207 | MAP_PRIVATE = 2 |
| 1208 | MAP_TYPE = 0xf |
| 1209 | MAP_FIXED = 0x10 |
| 1210 | MAP_NORESERVE = 0x40 |
| 1211 | MAP_RENAME = 0x20 |
| 1212 | PROC_TEXT = (PROT_EXEC | PROT_READ) |
| 1213 | PROC_DATA = (PROT_READ | PROT_WRITE | PROT_EXEC) |
| 1214 | SHARED = 0x10 |
| 1215 | PRIVATE = 0x20 |
| 1216 | VALID_ATTR = (PROT_READ|PROT_WRITE|PROT_EXEC|SHARED|PRIVATE) |
| 1217 | PROT_EXCL = 0x20 |
| 1218 | MAP_INHERIT = 0x80 |
| 1219 | _MAP_NEW = 0x80000000 |
| 1220 | MADV_NORMAL = 0 |
| 1221 | MADV_RANDOM = 1 |
| 1222 | MADV_SEQUENTIAL = 2 |
| 1223 | MADV_WILLNEED = 3 |
| 1224 | MADV_DONTNEED = 4 |
| 1225 | MS_SYNC = 0x0 |
| 1226 | MS_ASYNC = 0x1 |
| 1227 | MS_INVALIDATE = 0x2 |
| 1228 | MC_SYNC = 1 |
| 1229 | MC_LOCK = 2 |
| 1230 | MC_UNLOCK = 3 |
| 1231 | MC_ADVISE = 4 |
| 1232 | MC_LOCKAS = 5 |
| 1233 | MC_UNLOCKAS = 6 |
| 1234 | MCL_CURRENT = 0x1 |
| 1235 | MCL_FUTURE = 0x2 |
| 1236 | DDI_MAP_VERSION = 0x0001 |
| 1237 | DDI_MF_USER_MAPPING = 0x1 |
| 1238 | DDI_MF_KERNEL_MAPPING = 0x2 |
| 1239 | DDI_MF_DEVICE_MAPPING = 0x4 |
| 1240 | DDI_ME_GENERIC = (-1) |
| 1241 | DDI_ME_UNIMPLEMENTED = (-2) |
| 1242 | DDI_ME_NORESOURCES = (-3) |
| 1243 | DDI_ME_UNSUPPORTED = (-4) |
| 1244 | DDI_ME_REGSPEC_RANGE = (-5) |
| 1245 | DDI_ME_RNUMBER_RANGE = (-6) |
| 1246 | DDI_ME_INVAL = (-7) |
| 1247 | |
| 1248 | # Included from sys/ddipropdefs.h |
| 1249 | PH_FROM_PROM = 0x01 |
| 1250 | DDI_PROP_SUCCESS = 0 |
| 1251 | DDI_PROP_NOT_FOUND = 1 |
| 1252 | DDI_PROP_UNDEFINED = 2 |
| 1253 | DDI_PROP_NO_MEMORY = 3 |
| 1254 | DDI_PROP_INVAL_ARG = 4 |
| 1255 | DDI_PROP_BUF_TOO_SMALL = 5 |
| 1256 | DDI_PROP_CANNOT_DECODE = 6 |
| 1257 | DDI_PROP_CANNOT_ENCODE = 7 |
| 1258 | DDI_PROP_END_OF_DATA = 8 |
| 1259 | DDI_PROP_FOUND_1275 = 255 |
| 1260 | PROP_1275_INT_SIZE = 4 |
| 1261 | DDI_PROP_DONTPASS = 0x0001 |
| 1262 | DDI_PROP_CANSLEEP = 0x0002 |
| 1263 | DDI_PROP_SYSTEM_DEF = 0x0004 |
| 1264 | DDI_PROP_NOTPROM = 0x0008 |
| 1265 | DDI_PROP_DONTSLEEP = 0x0010 |
| 1266 | DDI_PROP_STACK_CREATE = 0x0020 |
| 1267 | DDI_PROP_UNDEF_IT = 0x0040 |
| 1268 | DDI_PROP_HW_DEF = 0x0080 |
| 1269 | DDI_PROP_TYPE_INT = 0x0100 |
| 1270 | DDI_PROP_TYPE_STRING = 0x0200 |
| 1271 | DDI_PROP_TYPE_BYTE = 0x0400 |
| 1272 | DDI_PROP_TYPE_COMPOSITE = 0x0800 |
| 1273 | DDI_PROP_TYPE_ANY = (DDI_PROP_TYPE_INT | \ |
| 1274 | DDI_PROP_TYPE_STRING | \ |
| 1275 | DDI_PROP_TYPE_BYTE | \ |
| 1276 | DDI_PROP_TYPE_COMPOSITE) |
| 1277 | DDI_PROP_TYPE_MASK = (DDI_PROP_TYPE_INT | \ |
| 1278 | DDI_PROP_TYPE_STRING | \ |
| 1279 | DDI_PROP_TYPE_BYTE | \ |
| 1280 | DDI_PROP_TYPE_COMPOSITE) |
| 1281 | DDI_RELATIVE_ADDRESSING = "relative-addressing" |
| 1282 | DDI_GENERIC_ADDRESSING = "generic-addressing" |
| 1283 | |
| 1284 | # Included from sys/ddidevmap.h |
| 1285 | KMEM_PAGEABLE = 0x100 |
| 1286 | KMEM_NON_PAGEABLE = 0x200 |
| 1287 | DEVMAP_OPS_REV = 1 |
| 1288 | DEVMAP_DEFAULTS = 0x00 |
| 1289 | DEVMAP_MAPPING_INVALID = 0x01 |
| 1290 | DEVMAP_ALLOW_REMAP = 0x02 |
| 1291 | DEVMAP_USE_PAGESIZE = 0x04 |
| 1292 | DEVMAP_UNLOAD_PENDING = 0x08 |
| 1293 | DEVMAP_SETUP_DONE = 0x100 |
| 1294 | DEVMAP_LOCK_INITED = 0x200 |
| 1295 | DEVMAP_FAULTING = 0x400 |
| 1296 | DEVMAP_LOCKED = 0x800 |
| 1297 | DEVMAP_FLAG_LARGE = 0x1000 |
| 1298 | DEVMAP_FLAG_KPMEM = 0x2000 |
| 1299 | DEVMAP_FLAG_KMEM = 0x4000 |
| 1300 | DEVMAP_FLAG_DEVMEM = 0x8000 |
| 1301 | PROT_NONE = 0x0 |
| 1302 | PROT_READ = 0x1 |
| 1303 | PROT_WRITE = 0x2 |
| 1304 | PROT_EXEC = 0x4 |
| 1305 | PROT_USER = 0x8 |
| 1306 | PROT_ALL = (PROT_READ | PROT_WRITE | PROT_EXEC | PROT_USER) |
| 1307 | DDI_UMEM_SLEEP = 0x0 |
| 1308 | DDI_UMEM_NOSLEEP = 0x01 |
| 1309 | DDI_UMEM_PAGEABLE = 0x02 |
| 1310 | |
| 1311 | # Included from sys/nexusdefs.h |
| 1312 | |
| 1313 | # Included from sys/aio_req.h |
| 1314 | BUSO_REV = 3 |
| 1315 | BUSO_REV_3 = 3 |
| 1316 | DEVO_REV = 3 |
| 1317 | CB_REV = 1 |
| 1318 | DDI_IDENTIFIED = (0) |
| 1319 | DDI_NOT_IDENTIFIED = (-1) |
| 1320 | DDI_PROBE_DONTCARE = 0 |
| 1321 | DDI_PROBE_PARTIAL = 1 |
| 1322 | DDI_PROBE_SUCCESS = 2 |
| 1323 | MAPDEV_REV = 1 |
| 1324 | |
| 1325 | # Included from sys/model.h |
| 1326 | DATAMODEL_MASK = 0x0FF00000 |
| 1327 | DATAMODEL_ILP32 = 0x00100000 |
| 1328 | DATAMODEL_LP64 = 0x00200000 |
| 1329 | DATAMODEL_NONE = 0 |
| 1330 | DATAMODEL_NATIVE = DATAMODEL_LP64 |
| 1331 | DATAMODEL_NATIVE = DATAMODEL_ILP32 |
| 1332 | D_NEW = 0x00 |
| 1333 | D_OLD = 0x01 |
| 1334 | D_TAPE = 0x08 |
| 1335 | D_NOBRKUP = 0x10 |
| 1336 | D_MTSAFE = 0x0020 |
| 1337 | _D_QNEXTLESS = 0x0040 |
| 1338 | _D_MTOCSHARED = 0x0080 |
| 1339 | D_MTOCEXCL = 0x0800 |
| 1340 | D_MTPUTSHARED = 0x1000 |
| 1341 | D_MTPERQ = 0x2000 |
| 1342 | D_MTQPAIR = 0x4000 |
| 1343 | D_MTPERMOD = 0x6000 |
| 1344 | D_MTOUTPERIM = 0x8000 |
| 1345 | D_MTINNER_MOD = (D_MTPUTSHARED|_D_MTOCSHARED) |
| 1346 | D_MTOUTER_MOD = (D_MTOCEXCL) |
| 1347 | D_MP = D_MTSAFE |
| 1348 | D_64BIT = 0x200 |
| 1349 | D_SYNCSTR = 0x400 |
| 1350 | D_DEVMAP = 0x100 |
| 1351 | D_MODELS = DATAMODEL_MASK |
| 1352 | D_ILP32 = DATAMODEL_ILP32 |
| 1353 | D_LP64 = DATAMODEL_LP64 |
| 1354 | D_NATIVE = DATAMODEL_NATIVE |
| 1355 | D_HOTPLUG = 0x4 |
| 1356 | SNDZERO = 0x001 |
| 1357 | SNDPIPE = 0x002 |
| 1358 | RNORM = 0x000 |
| 1359 | RMSGD = 0x001 |
| 1360 | RMSGN = 0x002 |
| 1361 | RMODEMASK = 0x003 |
| 1362 | RPROTDAT = 0x004 |
| 1363 | RPROTDIS = 0x008 |
| 1364 | RPROTNORM = 0x010 |
| 1365 | RPROTMASK = 0x01c |
| 1366 | RFLUSHMASK = 0x020 |
| 1367 | RFLUSHPCPROT = 0x020 |
| 1368 | RERRNORM = 0x001 |
| 1369 | RERRNONPERSIST = 0x002 |
| 1370 | RERRMASK = (RERRNORM|RERRNONPERSIST) |
| 1371 | WERRNORM = 0x004 |
| 1372 | WERRNONPERSIST = 0x008 |
| 1373 | WERRMASK = (WERRNORM|WERRNONPERSIST) |
| 1374 | FLUSHR = 0x01 |
| 1375 | FLUSHW = 0x02 |
| 1376 | FLUSHRW = 0x03 |
| 1377 | FLUSHBAND = 0x04 |
| 1378 | MAPINOK = 0x01 |
| 1379 | NOMAPIN = 0x02 |
| 1380 | REMAPOK = 0x04 |
| 1381 | NOREMAP = 0x08 |
| 1382 | S_INPUT = 0x0001 |
| 1383 | S_HIPRI = 0x0002 |
| 1384 | S_OUTPUT = 0x0004 |
| 1385 | S_MSG = 0x0008 |
| 1386 | S_ERROR = 0x0010 |
| 1387 | S_HANGUP = 0x0020 |
| 1388 | S_RDNORM = 0x0040 |
| 1389 | S_WRNORM = S_OUTPUT |
| 1390 | S_RDBAND = 0x0080 |
| 1391 | S_WRBAND = 0x0100 |
| 1392 | S_BANDURG = 0x0200 |
| 1393 | RS_HIPRI = 0x01 |
| 1394 | STRUIO_POSTPONE = 0x08 |
| 1395 | STRUIO_MAPIN = 0x10 |
| 1396 | MSG_HIPRI = 0x01 |
| 1397 | MSG_ANY = 0x02 |
| 1398 | MSG_BAND = 0x04 |
| 1399 | MSG_XPG4 = 0x08 |
| 1400 | MSG_IPEEK = 0x10 |
| 1401 | MSG_DISCARDTAIL = 0x20 |
| 1402 | MSG_HOLDSIG = 0x40 |
| 1403 | MSG_IGNERROR = 0x80 |
| 1404 | MSG_DELAYERROR = 0x100 |
| 1405 | MSG_IGNFLOW = 0x200 |
| 1406 | MSG_NOMARK = 0x400 |
| 1407 | MORECTL = 1 |
| 1408 | MOREDATA = 2 |
| 1409 | MUXID_ALL = (-1) |
| 1410 | ANYMARK = 0x01 |
| 1411 | LASTMARK = 0x02 |
| 1412 | STR = (ord('S')<<8) |
| 1413 | I_NREAD = (STR|01) |
| 1414 | I_PUSH = (STR|02) |
| 1415 | I_POP = (STR|03) |
| 1416 | I_LOOK = (STR|04) |
| 1417 | I_FLUSH = (STR|05) |
| 1418 | I_SRDOPT = (STR|06) |
| 1419 | I_GRDOPT = (STR|07) |
| 1420 | I_STR = (STR|010) |
| 1421 | I_SETSIG = (STR|011) |
| 1422 | I_GETSIG = (STR|012) |
| 1423 | I_FIND = (STR|013) |
| 1424 | I_LINK = (STR|014) |
| 1425 | I_UNLINK = (STR|015) |
| 1426 | I_PEEK = (STR|017) |
| 1427 | I_FDINSERT = (STR|020) |
| 1428 | I_SENDFD = (STR|021) |
| 1429 | I_RECVFD = (STR|022) |
| 1430 | I_E_RECVFD = (STR|016) |
| 1431 | I_RECVFD = (STR|016) |
| 1432 | I_SWROPT = (STR|023) |
| 1433 | I_GWROPT = (STR|024) |
| 1434 | I_LIST = (STR|025) |
| 1435 | I_PLINK = (STR|026) |
| 1436 | I_PUNLINK = (STR|027) |
| 1437 | I_FLUSHBAND = (STR|034) |
| 1438 | I_CKBAND = (STR|035) |
| 1439 | I_GETBAND = (STR|036) |
| 1440 | I_ATMARK = (STR|037) |
| 1441 | I_SETCLTIME = (STR|040) |
| 1442 | I_GETCLTIME = (STR|041) |
| 1443 | I_CANPUT = (STR|042) |
| 1444 | I_SERROPT = (STR|043) |
| 1445 | I_GERROPT = (STR|044) |
| 1446 | I_ESETSIG = (STR|045) |
| 1447 | I_EGETSIG = (STR|046) |
| 1448 | __I_PUSH_NOCTTY = (STR|047) |
| 1449 | _INFTIM = -1 |
| 1450 | INFTIM = _INFTIM |