1 /* wait.h - header file for remote wait call */
3 /* Copyright 1992 Free Software Foundation, Inc.
5 This code was donated by Wind River Systems, Inc. */
10 01a,05jun90,llk borrowed.
13 /* Define how to access the structure that the wait system call stores.
14 On many systems, there is a structure defined for this.
15 But on vanilla-ish USG systems there is not. */
17 #ifndef HAVE_WAIT_STRUCT
19 #define WIFSTOPPED(w) (((w)&0377) == 0177)
20 #define WIFSIGNALED(w) (((w)&0377) != 0177 && ((w)&~0377) == 0)
21 #define WIFEXITED(w) (((w)&0377) == 0)
22 #define WRETCODE(w) ((w) >> 8)
23 #define WSTOPSIG(w) ((w) >> 8)
24 #define WCOREDUMP(w) (((w)&0200) != 0)
25 #define WTERMSIG(w) ((w) & 0177)
26 #define WSETEXIT(w, status) ((w) = (status))
27 #define WSETSTOP(w,sig) ((w) = (0177 | ((sig) << 8)))
32 /* don't include sys/wait.h */
38 #define WAITTYPE union wait
39 #define WRETCODE(w) (w).w_retcode
40 #define WSTOPSIG(w) (w).w_stopsig
41 #define WCOREDUMP(w) (w).w_coredump
42 #define WTERMSIG(w) (w).w_termsig
43 #define WSETEXIT(w, status) ((w).w_status = (status))
44 #define WSETSTOP(w,sig) \
45 ((w).w_stopsig = (sig), (w).w_coredump = 0, (w).w_termsig = 0177)
This page took 0.029357 seconds and 4 git commands to generate.