/* Generic wait.h */ #ifndef _AC_WAIT_H #define _AC_WAIT_H #include #if HAVE_SYS_WAIT_H # include #endif #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #ifdef WCONTINUED # define WAIT_FLAGS ( WNOHANG | WUNTRACED | WCONTINUED ) #else # define WAIT_FLAGS ( WNOHANG | WUNTRACED ) #endif #endif /* _AC_WAIT_H */