lib/ac/wait.h
changeset 0 6f7a81934006
child 2 b3afb9f1e801
equal deleted inserted replaced
-1:000000000000 0:6f7a81934006
       
     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