Annotation of linux/include/sys/wait.h, revision 1.1.1.2

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: 
1.1.1.2 ! root       13: #define WIFEXITED(s)   (!((s)&0xFF))
1.1       root       14: #define WIFSTOPPED(s)  (((s)&0xFF)==0x7F)
                     15: #define WEXITSTATUS(s) (((s)>>8)&0xFF)
                     16: #define WTERMSIG(s)    ((s)&0x7F)
1.1.1.2 ! root       17: #define WCOREDUMP(s)   ((s)&0x80)
1.1       root       18: #define WSTOPSIG(s)    (((s)>>8)&0xFF)
                     19: #define WIFSIGNALED(s) (((unsigned int)(s)-1 & 0xFFFF) < 0xFF)
                     20: 
                     21: pid_t wait(int *stat_loc);
                     22: pid_t waitpid(pid_t pid, int *stat_loc, int options);
                     23: 
                     24: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.