Mon Aug 2 08:49:30 1993 Stu Grossman (grossman at cygnus.com)

* wait.h (WEXITSTATUS, WSTOPSIG): Mask down to 8 bits.  This is
	for systems that store stuff into the high 16 bits of a wait
	status.
This commit is contained in:
Stu Grossman 1993-08-02 15:55:05 +00:00
parent db691e4b55
commit d93e0582fa
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@
#define WIFSTOPPED(w) (((w)&0377) == 0177)
#endif
#define WEXITSTATUS(w) ((w) >> 8) /* same as WRETCODE */
#define WEXITSTATUS(w) (((w) >> 8) & 0377) /* same as WRETCODE */
#define WTERMSIG(w) ((w) & 0177)
#define WSTOPSIG(w) ((w) >> 8)
#define WSTOPSIG WEXITSTATUS
/* These are not defined in POSIX, but are used by our programs. */