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