Guido van Rossum | 1ce7c6f | 1997-01-15 19:19:19 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/sys/wait.h |
| 2 | |
| 3 | # Included from standards.h |
| 4 | def _W_INT(i): return (i) |
| 5 | |
| 6 | WUNTRACED = 0004 |
| 7 | WNOHANG = 0100 |
| 8 | _WSTOPPED = 0177 |
| 9 | def WIFEXITED(stat): return ((_W_INT(stat)&0377)==0) |
| 10 | |
| 11 | def WEXITSTATUS(stat): return ((_W_INT(stat)>>8)&0377) |
| 12 | |
| 13 | def WTERMSIG(stat): return (_W_INT(stat)&0177) |
| 14 | |
| 15 | def WSTOPSIG(stat): return ((_W_INT(stat)>>8)&0377) |
| 16 | |
| 17 | WEXITED = 0001 |
| 18 | WTRAPPED = 0002 |
| 19 | WSTOPPED = 0004 |
| 20 | WCONTINUED = 0010 |
| 21 | WNOWAIT = 0200 |
| 22 | WOPTMASK = (WEXITED|WTRAPPED|WSTOPPED|WCONTINUED|WNOHANG|WNOWAIT) |
| 23 | WSTOPFLG = 0177 |
| 24 | WCONTFLG = 0177777 |
| 25 | WCOREFLAG = 0200 |
| 26 | WSIGMASK = 0177 |
| 27 | def WWORD(stat): return (_W_INT(stat)&0177777) |
| 28 | |
| 29 | def WIFCONTINUED(stat): return (WWORD(stat)==WCONTFLG) |
| 30 | |
| 31 | def WCOREDUMP(stat): return (_W_INT(stat) & WCOREFLAG) |
| 32 | |
| 33 | |
| 34 | # Included from sys/types.h |
| 35 | |
| 36 | # Included from sgidefs.h |
| 37 | _MIPS_ISA_MIPS1 = 1 |
| 38 | _MIPS_ISA_MIPS2 = 2 |
| 39 | _MIPS_ISA_MIPS3 = 3 |
| 40 | _MIPS_ISA_MIPS4 = 4 |
| 41 | _MIPS_SIM_ABI32 = 1 |
| 42 | _MIPS_SIM_NABI32 = 2 |
| 43 | _MIPS_SIM_ABI64 = 3 |
| 44 | P_MYID = (-1) |
| 45 | P_MYHOSTID = (-1) |
| 46 | |
| 47 | # Included from sys/bsd_types.h |
| 48 | |
| 49 | # Included from sys/mkdev.h |
| 50 | ONBITSMAJOR = 7 |
| 51 | ONBITSMINOR = 8 |
| 52 | OMAXMAJ = 0x7f |
| 53 | OMAXMIN = 0xff |
| 54 | NBITSMAJOR = 14 |
| 55 | NBITSMINOR = 18 |
| 56 | MAXMAJ = 0x1ff |
| 57 | MAXMIN = 0x3ffff |
| 58 | OLDDEV = 0 |
| 59 | NEWDEV = 1 |
| 60 | MKDEV_VER = NEWDEV |
| 61 | def major(dev): return __major(MKDEV_VER, dev) |
| 62 | |
| 63 | def minor(dev): return __minor(MKDEV_VER, dev) |
| 64 | |
| 65 | |
| 66 | # Included from sys/select.h |
| 67 | FD_SETSIZE = 1024 |
| 68 | __NBBY = 8 |
| 69 | |
| 70 | # Included from string.h |
| 71 | NULL = 0L |
| 72 | NBBY = 8 |
| 73 | |
| 74 | # Included from sys/procset.h |
| 75 | P_INITPID = 1 |
| 76 | P_INITUID = 0 |
| 77 | P_INITPGID = 0 |
| 78 | |
| 79 | # Included from sys/signal.h |
| 80 | SIGHUP = 1 |
| 81 | SIGINT = 2 |
| 82 | SIGQUIT = 3 |
| 83 | SIGILL = 4 |
| 84 | SIGTRAP = 5 |
| 85 | SIGIOT = 6 |
| 86 | SIGABRT = 6 |
| 87 | SIGEMT = 7 |
| 88 | SIGFPE = 8 |
| 89 | SIGKILL = 9 |
| 90 | SIGBUS = 10 |
| 91 | SIGSEGV = 11 |
| 92 | SIGSYS = 12 |
| 93 | SIGPIPE = 13 |
| 94 | SIGALRM = 14 |
| 95 | SIGTERM = 15 |
| 96 | SIGUSR1 = 16 |
| 97 | SIGUSR2 = 17 |
| 98 | SIGCLD = 18 |
| 99 | SIGCHLD = 18 |
| 100 | SIGPWR = 19 |
| 101 | SIGWINCH = 20 |
| 102 | SIGURG = 21 |
| 103 | SIGPOLL = 22 |
| 104 | SIGIO = 22 |
| 105 | SIGSTOP = 23 |
| 106 | SIGTSTP = 24 |
| 107 | SIGCONT = 25 |
| 108 | SIGTTIN = 26 |
| 109 | SIGTTOU = 27 |
| 110 | SIGVTALRM = 28 |
| 111 | SIGPROF = 29 |
| 112 | SIGXCPU = 30 |
| 113 | SIGXFSZ = 31 |
| 114 | SIG32 = 32 |
| 115 | SIGCKPT = 33 |
| 116 | SIGRTMIN = 49 |
| 117 | SIGRTMAX = 64 |
| 118 | SIGPTINTR = 47 |
| 119 | SIGPTRESCHED = 48 |
| 120 | __sigargs = int |
| 121 | SIGEV_NONE = 128 |
| 122 | SIGEV_SIGNAL = 129 |
| 123 | SIGEV_CALLBACK = 130 |
| 124 | |
| 125 | # Included from sys/siginfo.h |
| 126 | ILL_ILLOPC = 1 |
| 127 | ILL_ILLOPN = 2 |
| 128 | ILL_ILLADR = 3 |
| 129 | ILL_ILLTRP = 4 |
| 130 | ILL_PRVOPC = 5 |
| 131 | ILL_PRVREG = 6 |
| 132 | ILL_COPROC = 7 |
| 133 | ILL_BADSTK = 8 |
| 134 | NSIGILL = 8 |
| 135 | FPE_INTDIV = 1 |
| 136 | FPE_INTOVF = 2 |
| 137 | FPE_FLTDIV = 3 |
| 138 | FPE_FLTOVF = 4 |
| 139 | FPE_FLTUND = 5 |
| 140 | FPE_FLTRES = 6 |
| 141 | FPE_FLTINV = 7 |
| 142 | FPE_FLTSUB = 8 |
| 143 | NSIGFPE = 8 |
| 144 | SEGV_MAPERR = 1 |
| 145 | SEGV_ACCERR = 2 |
| 146 | NSIGSEGV = 2 |
| 147 | BUS_ADRALN = 1 |
| 148 | BUS_ADRERR = 2 |
| 149 | BUS_OBJERR = 3 |
| 150 | NSIGBUS = 3 |
| 151 | TRAP_BRKPT = 1 |
| 152 | TRAP_TRACE = 2 |
| 153 | NSIGTRAP = 2 |
| 154 | CLD_EXITED = 1 |
| 155 | CLD_KILLED = 2 |
| 156 | CLD_DUMPED = 3 |
| 157 | CLD_TRAPPED = 4 |
| 158 | CLD_STOPPED = 5 |
| 159 | CLD_CONTINUED = 6 |
| 160 | NSIGCLD = 6 |
| 161 | POLL_IN = 1 |
| 162 | POLL_OUT = 2 |
| 163 | POLL_MSG = 3 |
| 164 | POLL_ERR = 4 |
| 165 | POLL_PRI = 5 |
| 166 | POLL_HUP = 6 |
| 167 | NSIGPOLL = 6 |
| 168 | SI_MAXSZ = 128 |
| 169 | SI_USER = 0 |
| 170 | SI_KILL = SI_USER |
| 171 | SI_QUEUE = -1 |
| 172 | SI_ASYNCIO = -2 |
| 173 | SI_TIMER = -3 |
| 174 | SI_MESGQ = -4 |
| 175 | SIG_NOP = 0 |
| 176 | SIG_BLOCK = 1 |
| 177 | SIG_UNBLOCK = 2 |
| 178 | SIG_SETMASK = 3 |
| 179 | SIG_SETMASK32 = 256 |
| 180 | SA_ONSTACK = 0x00000001 |
| 181 | SA_RESETHAND = 0x00000002 |
| 182 | SA_RESTART = 0x00000004 |
| 183 | SA_SIGINFO = 0x00000008 |
| 184 | SA_NODEFER = 0x00000010 |
| 185 | SA_NOCLDWAIT = 0x00010000 |
| 186 | SA_NOCLDSTOP = 0x00020000 |
| 187 | _SA_BSDCALL = 0x10000000 |
| 188 | MINSIGSTKSZ = 512 |
| 189 | SIGSTKSZ = 8192 |
| 190 | SS_ONSTACK = 0x00000001 |
| 191 | SS_DISABLE = 0x00000002 |
| 192 | |
| 193 | # Included from sys/ucontext.h |
| 194 | NGREG = 36 |
| 195 | NGREG = 37 |
| 196 | GETCONTEXT = 0 |
| 197 | SETCONTEXT = 1 |
| 198 | UC_SIGMASK = 001 |
| 199 | UC_STACK = 002 |
| 200 | UC_CPU = 004 |
| 201 | UC_MAU = 010 |
| 202 | UC_MCONTEXT = (UC_CPU|UC_MAU) |
| 203 | UC_ALL = (UC_SIGMASK|UC_STACK|UC_MCONTEXT) |
| 204 | CTX_R0 = 0 |
| 205 | CTX_AT = 1 |
| 206 | CTX_V0 = 2 |
| 207 | CTX_V1 = 3 |
| 208 | CTX_A0 = 4 |
| 209 | CTX_A1 = 5 |
| 210 | CTX_A2 = 6 |
| 211 | CTX_A3 = 7 |
| 212 | CTX_T0 = 8 |
| 213 | CTX_T1 = 9 |
| 214 | CTX_T2 = 10 |
| 215 | CTX_T3 = 11 |
| 216 | CTX_T4 = 12 |
| 217 | CTX_T5 = 13 |
| 218 | CTX_T6 = 14 |
| 219 | CTX_T7 = 15 |
| 220 | CTX_A4 = 8 |
| 221 | CTX_A5 = 9 |
| 222 | CTX_A6 = 10 |
| 223 | CTX_A7 = 11 |
| 224 | CTX_T0 = 12 |
| 225 | CTX_T1 = 13 |
| 226 | CTX_T2 = 14 |
| 227 | CTX_T3 = 15 |
| 228 | CTX_S0 = 16 |
| 229 | CTX_S1 = 17 |
| 230 | CTX_S2 = 18 |
| 231 | CTX_S3 = 19 |
| 232 | CTX_S4 = 20 |
| 233 | CTX_S5 = 21 |
| 234 | CTX_S6 = 22 |
| 235 | CTX_S7 = 23 |
| 236 | CTX_T8 = 24 |
| 237 | CTX_T9 = 25 |
| 238 | CTX_K0 = 26 |
| 239 | CTX_K1 = 27 |
| 240 | CTX_GP = 28 |
| 241 | CTX_SP = 29 |
| 242 | CTX_S8 = 30 |
| 243 | CTX_RA = 31 |
| 244 | CTX_MDLO = 32 |
| 245 | CTX_MDHI = 33 |
| 246 | CTX_CAUSE = 34 |
| 247 | CTX_EPC = 35 |
| 248 | CTX_SR = 36 |
| 249 | CXT_R0 = CTX_R0 |
| 250 | CXT_AT = CTX_AT |
| 251 | CXT_V0 = CTX_V0 |
| 252 | CXT_V1 = CTX_V1 |
| 253 | CXT_A0 = CTX_A0 |
| 254 | CXT_A1 = CTX_A1 |
| 255 | CXT_A2 = CTX_A2 |
| 256 | CXT_A3 = CTX_A3 |
| 257 | CXT_T0 = CTX_T0 |
| 258 | CXT_T1 = CTX_T1 |
| 259 | CXT_T2 = CTX_T2 |
| 260 | CXT_T3 = CTX_T3 |
| 261 | CXT_T4 = CTX_T4 |
| 262 | CXT_T5 = CTX_T5 |
| 263 | CXT_T6 = CTX_T6 |
| 264 | CXT_T7 = CTX_T7 |
| 265 | CXT_S0 = CTX_S0 |
| 266 | CXT_S1 = CTX_S1 |
| 267 | CXT_S2 = CTX_S2 |
| 268 | CXT_S3 = CTX_S3 |
| 269 | CXT_S4 = CTX_S4 |
| 270 | CXT_S5 = CTX_S5 |
| 271 | CXT_S6 = CTX_S6 |
| 272 | CXT_S7 = CTX_S7 |
| 273 | CXT_T8 = CTX_T8 |
| 274 | CXT_T9 = CTX_T9 |
| 275 | CXT_K0 = CTX_K0 |
| 276 | CXT_K1 = CTX_K1 |
| 277 | CXT_GP = CTX_GP |
| 278 | CXT_SP = CTX_SP |
| 279 | CXT_S8 = CTX_S8 |
| 280 | CXT_RA = CTX_RA |
| 281 | CXT_MDLO = CTX_MDLO |
| 282 | CXT_MDHI = CTX_MDHI |
| 283 | CXT_CAUSE = CTX_CAUSE |
| 284 | CXT_EPC = CTX_EPC |
| 285 | CXT_SR = CTX_SR |
| 286 | SV_ONSTACK = 0x0001 |
| 287 | SV_INTERRUPT = 0x0002 |
| 288 | NUMBSDSIGS = (32) |
| 289 | def sigmask(sig): return (1L << ((sig)-1)) |
| 290 | |
| 291 | def sigmask(sig): return (1L << ((sig)-1)) |
| 292 | |
| 293 | SIG_ERR = (-1) |
| 294 | SIG_IGN = (1) |
| 295 | SIG_HOLD = (2) |
| 296 | SIG_DFL = (0) |
| 297 | NSIG = 65 |
| 298 | MAXSIG = (NSIG-1) |
| 299 | NUMSIGS = (NSIG-1) |
| 300 | BRK_USERBP = 0 |
| 301 | BRK_KERNELBP = 1 |
| 302 | BRK_ABORT = 2 |
| 303 | BRK_BD_TAKEN = 3 |
| 304 | BRK_BD_NOTTAKEN = 4 |
| 305 | BRK_SSTEPBP = 5 |
| 306 | BRK_OVERFLOW = 6 |
| 307 | BRK_DIVZERO = 7 |
| 308 | BRK_RANGE = 8 |
| 309 | BRK_PSEUDO_OP_BIT = 0x80 |
| 310 | BRK_PSEUDO_OP_MAX = 0x3 |
| 311 | BRK_CACHE_SYNC = 0x80 |
| 312 | BRK_SWASH_FLUSH = 0x81 |
| 313 | BRK_SWASH_SWTCH = 0x82 |
| 314 | BRK_MULOVF = 1023 |
| 315 | |
| 316 | # Included from sys/resource.h |
| 317 | PRIO_MIN = -20 |
| 318 | PRIO_MAX = 20 |
| 319 | PRIO_PROCESS = 0 |
| 320 | PRIO_PGRP = 1 |
| 321 | PRIO_USER = 2 |
| 322 | RUSAGE_SELF = 0 |
| 323 | RUSAGE_CHILDREN = -1 |
| 324 | RLIMIT_CPU = 0 |
| 325 | RLIMIT_FSIZE = 1 |
| 326 | RLIMIT_DATA = 2 |
| 327 | RLIMIT_STACK = 3 |
| 328 | RLIMIT_CORE = 4 |
| 329 | RLIMIT_NOFILE = 5 |
| 330 | RLIMIT_VMEM = 6 |
| 331 | RLIMIT_RSS = 7 |
| 332 | RLIMIT_AS = RLIMIT_VMEM |
| 333 | RLIM_NLIMITS = 8 |
| 334 | RLIM32_INFINITY = 0x7fffffff |
| 335 | RLIM_INFINITY = 0x7fffffff |