1 #ifndef mywait_h 2 #define mywait_h 3 4 static const char mywait_h_rcsid[]="$Id: mywait.h,v 1.2 1999/03/31 07:30:03 mrsam Exp $"; 5 6 #include "config.h" 7 #include <sys/types.h> 8 #if HAVE_SYS_WAIT_H 9 #include <sys/wait.h> 10 #endif 11 #ifndef WEXITSTATUS 12 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 13 #endif 14 #ifndef WIFEXITED 15 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 16 #endif 17 18 #endif 19