nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

wait.h (295B)


      1 #ifndef WAIT_H
      2 #define WAIT_H
      3 
      4 extern int wait_pid();
      5 extern int wait_nohang();
      6 extern int wait_stop();
      7 extern int wait_stopnohang();
      8 
      9 #define wait_crashed(w) ((w) & 127)
     10 #define wait_exitcode(w) ((w) >> 8)
     11 #define wait_stopsig(w) ((w) >> 8)
     12 #define wait_stopped(w) (((w) & 127) == 127)
     13 
     14 #endif