wait.h 610 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __WAIT_H
  2. #define __WAIT_H
  3. #pragma lib "/$M/lib/ape/libap.a"
  4. /* flag bits for third argument of waitpid */
  5. #define WNOHANG 0x1
  6. #define WUNTRACED 0x2
  7. /* macros for examining status returned */
  8. #define WIFEXITED(s) (((s) & 0xFF) == 0)
  9. #define WEXITSTATUS(s) ((s>>8)&0xFF)
  10. #define WIFSIGNALED(s) (((s) & 0xFF) != 0)
  11. #define WTERMSIG(s) ((s) & 0xFF)
  12. #define WIFSTOPPED(s) (0)
  13. #define WSTOPSIG(s) (0)
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. pid_t wait(int *);
  18. pid_t waitpid(pid_t, int *, int);
  19. pid_t wait3(int *, int, void *);
  20. pid_t wait4(pid_t, int *, int, void *);
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif