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