home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 13 / DJCRX201.ZIP / include / sys / wait.h < prev   
C/C++ Source or Header  |  1996-09-01  |  1KB  |  45 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_sys_wait_h_
  3. #define __dj_include_sys_wait_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #include <sys/djtypes.h>
  14.  
  15. #define WEXITSTATUS(stat_val)    (  (stat_val) & 0x000ff)
  16. #define WIFEXITED(stat_val)    (!((stat_val) & 0x3ff00))
  17. #define WIFSIGNALED(stat_val)    ( ((stat_val) & 0x3ff00))
  18. #define WIFSTOPPED(stat_val)    0
  19. #define WNOHANG            1
  20. #define WSTOPSIG(stat_val)    0
  21. #define WTERMSIG(stat_val)    ( ((stat_val) >> 8 ) & 0x3ff)
  22. #define WUNTRACED
  23.  
  24. __DJ_pid_t
  25. #undef __DJ_pid_t
  26. #define __DJ_pid_t
  27.  
  28. pid_t wait(int *stat_loc);
  29. pid_t waitpid(pid_t pid, int *stat_loc, int options);
  30.  
  31. #ifndef _POSIX_SOURCE
  32.  
  33. #endif /* !_POSIX_SOURCE */
  34. #endif /* !__STRICT_ANSI__ */
  35. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  36.  
  37. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  38. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43.  
  44. #endif /* !__dj_include_sys_wait_h_ */
  45.