1
# Generated by h2py from /usr/include/sys/wait.h
2
from warnings import warnpy3k
3
warnpy3k("the WAIT module has been removed in Python 3.0", stacklevel=2)
6
# Included from standards.h
7
def _W_INT(i): return (i)
12
def WIFEXITED(stat): return ((_W_INT(stat)&0377)==0)
14
def WEXITSTATUS(stat): return ((_W_INT(stat)>>8)&0377)
16
def WTERMSIG(stat): return (_W_INT(stat)&0177)
18
def WSTOPSIG(stat): return ((_W_INT(stat)>>8)&0377)
25
WOPTMASK = (WEXITED|WTRAPPED|WSTOPPED|WCONTINUED|WNOHANG|WNOWAIT)
30
def WWORD(stat): return (_W_INT(stat)&0177777)
32
def WIFCONTINUED(stat): return (WWORD(stat)==WCONTFLG)
34
def WCOREDUMP(stat): return (_W_INT(stat) & WCOREFLAG)
37
# Included from sys/types.h
39
# Included from sgidefs.h
50
# Included from sys/bsd_types.h
52
# Included from sys/mkdev.h
64
def major(dev): return __major(MKDEV_VER, dev)
66
def minor(dev): return __minor(MKDEV_VER, dev)
69
# Included from sys/select.h
73
# Included from string.h
77
# Included from sys/procset.h
82
# Included from sys/signal.h
128
# Included from sys/siginfo.h
183
SA_ONSTACK = 0x00000001
184
SA_RESETHAND = 0x00000002
185
SA_RESTART = 0x00000004
186
SA_SIGINFO = 0x00000008
187
SA_NODEFER = 0x00000010
188
SA_NOCLDWAIT = 0x00010000
189
SA_NOCLDSTOP = 0x00020000
190
_SA_BSDCALL = 0x10000000
193
SS_ONSTACK = 0x00000001
194
SS_DISABLE = 0x00000002
196
# Included from sys/ucontext.h
205
UC_MCONTEXT = (UC_CPU|UC_MAU)
206
UC_ALL = (UC_SIGMASK|UC_STACK|UC_MCONTEXT)
286
CXT_CAUSE = CTX_CAUSE
290
SV_INTERRUPT = 0x0002
292
def sigmask(sig): return (1L << ((sig)-1))
294
def sigmask(sig): return (1L << ((sig)-1))
312
BRK_PSEUDO_OP_BIT = 0x80
313
BRK_PSEUDO_OP_MAX = 0x3
314
BRK_CACHE_SYNC = 0x80
315
BRK_SWASH_FLUSH = 0x81
316
BRK_SWASH_SWTCH = 0x82
319
# Included from sys/resource.h
335
RLIMIT_AS = RLIMIT_VMEM
337
RLIM32_INFINITY = 0x7fffffff
338
RLIM_INFINITY = 0x7fffffff