comparison src/syswait.h @ 10715:9278298301fb

Test WAIT_USE_INT.
author Richard M. Stallman <rms@gnu.org>
date Sat, 11 Feb 1995 22:07:09 +0000
parents 1a2b17eab8d9
children d8bc42dd7235
comparison
equal deleted inserted replaced
10714:a383e6129216 10715:9278298301fb
21 On many systems, there is a structure defined for this. 21 On many systems, there is a structure defined for this.
22 But on vanilla-ish USG systems there is not. */ 22 But on vanilla-ish USG systems there is not. */
23 23
24 #ifndef VMS 24 #ifndef VMS
25 #ifndef WAITTYPE 25 #ifndef WAITTYPE
26 #if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX) 26 #if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX) || defined (WAIT_USE_INT)
27 #define WAITTYPE int 27 #define WAITTYPE int
28 #define WIFSTOPPED(w) ((w&0377) == 0177) 28 #define WIFSTOPPED(w) ((w&0377) == 0177)
29 #define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0) 29 #define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0)
30 #define WIFEXITED(w) ((w&0377) == 0) 30 #define WIFEXITED(w) ((w&0377) == 0)
31 #define WRETCODE(w) (w >> 8) 31 #define WRETCODE(w) (w >> 8)