Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

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