home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / WAIT.H < prev    next >
C/C++ Source or Header  |  1992-11-18  |  622b  |  29 lines

  1. /* sys/wait.h (emx+gcc) */
  2.  
  3. #if !defined (_SYS_WAIT_H)
  4. #define _SYS_WAIT_H
  5.  
  6. #if defined (__cplusplus)
  7. extern "C" {
  8. #endif
  9.  
  10. #define WNOHANG         1
  11. #define WUNTRACED       2
  12.  
  13. #define WIFEXITED(st)   (((st) & 0xff) == 0)
  14. #define WIFSIGNALED(st) (((st) & 0xff) != 0x7f && ((st) >> 8) == 0)
  15. #define WIFSTOPPED(st)  (((st) & 0xff) == 0x7f)
  16.  
  17. #define WEXITSTATUS(st) ((st) >> 8)
  18. #define WSTOPSIG(st)    ((st) >> 8)
  19. #define WTERMSIG(st)    ((st) & 0x7f)
  20.  
  21. int wait (int *status);
  22. int waitpid (int pid, int *status, int options);
  23.  
  24. #if defined (__cplusplus)
  25. }
  26. #endif
  27.  
  28. #endif /* !defined (SYS_WAIT_H) */
  29.