root/include/sys/wait.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _SYS_WAIT_H
   2 #define _SYS_WAIT_H
   3 
   4 #include <sys/types.h>
   5 
   6 #define _LOW(v)         ( (v) & 0377)
   7 #define _HIGH(v)        ( ((v) >> 8) & 0377)
   8 
   9 /* options for waitpid, WUNTRACED not supported */
  10 #define WNOHANG         1
  11 #define WUNTRACED       2
  12 
  13 #define WIFEXITED(s)    (!((s)&0xFF))
  14 #define WIFSTOPPED(s)   (((s)&0xFF)==0x7F)
  15 #define WEXITSTATUS(s)  (((s)>>8)&0xFF)
  16 #define WTERMSIG(s)     ((s)&0x7F)
  17 #define WCOREDUMP(s)    ((s)&0x80)
  18 #define WSTOPSIG(s)     (((s)>>8)&0xFF)
  19 #define WIFSIGNALED(s)  (((unsigned int)(s)-1 & 0xFFFF) < 0xFF)
  20 
  21 pid_t wait(int *stat_loc);
  22 pid_t waitpid(pid_t pid, int *stat_loc, int options);
  23 
  24 #endif

/* [previous][next][first][last][top][bottom][index][help] */