1 #include <sys/types.h> 2 #if HAVE_SYS_WAIT_H 3 # include <sys/wait.h> 4 #endif 5 #ifndef WEXITSTATUS 6 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7 #endif 8 #ifndef WIFEXITED 9 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10 #endif 11