|
|
1.1 ! root 1: #ifndef _SYS_WAIT_H ! 2: #define _SYS_WAIT_H ! 3: ! 4: #include <sys/types.h> ! 5: ! 6: #define _LOW(v) ( (v) & 0377) ! 7: #define _HIGH(v) ( ((v) >> 8) & 0377) ! 8: ! 9: /* options for waitpid, WUNTRACED not supported */ ! 10: #define WNOHANG 1 ! 11: #define WUNTRACED 2 ! 12: ! 13: #define WIFEXITED(s) (!((s)&0xFF) ! 14: #define WIFSTOPPED(s) (((s)&0xFF)==0x7F) ! 15: #define WEXITSTATUS(s) (((s)>>8)&0xFF) ! 16: #define WTERMSIG(s) ((s)&0x7F) ! 17: #define WSTOPSIG(s) (((s)>>8)&0xFF) ! 18: #define WIFSIGNALED(s) (((unsigned int)(s)-1 & 0xFFFF) < 0xFF) ! 19: ! 20: pid_t wait(int *stat_loc); ! 21: pid_t waitpid(pid_t pid, int *stat_loc, int options); ! 22: ! 23: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.