home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / sys / wait.h < prev   
Encoding:
C/C++ Source or Header  |  1995-01-10  |  832 b   |  47 lines

  1.  
  2. /*
  3.  * $VER: sys/wait.h 1.0 (17.4.93)
  4.  *
  5.  * (c)Copyright 1992 Obvious Implementations Corp, All Rights Reserved
  6.  */
  7.  
  8. #ifndef SYS_WAIT_H
  9. #define SYS_WAIT_H
  10.  
  11. #ifndef SYS_RESOURCE_H
  12. #include <sys/resource.h>
  13. #endif
  14.  
  15. union wait {
  16.  struct {
  17.  char wu_termsig;
  18.  char wu_stopval;
  19.  char wu_flags;
  20.  char wu_status;
  21.  long wu_retcode;
  22.  char wu_stopsig;
  23.  char wu_reserved;
  24.  } u;
  25. };
  26.  
  27. #define WF_EXITED 0x0001 
  28.  
  29. #define w_termsig u.wu_termsig
  30. #define w_stopval u.wu_stopval
  31. #define w_retcode u.wu_retcode
  32. #define w_status u.wu_status
  33. #define w_stopsig u.wu_stopsig
  34. #define w_coredump u.wu_termsig 
  35.  
  36. #define WNOHANG 0x0001
  37. #define WUNTRACED 0x0002
  38.  
  39. #define WIFSTOPPED(reason) 0
  40. #define WIFEXITED(reason) ((reason).u.wu_flags & WF_EXITED)
  41. #define WIFSIGNALED(reason) 0
  42.  
  43. int wait(union wait *);
  44. int wait3(union wait *, int, struct rusage *);
  45.  
  46. #endif
  47.