Annotation of coherent/f/usr/include.78/sys/wait.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * /usr/include/sys/wait.h
        !             3:  *
        !             4:  * Support for wait() and waitpid() system calls.
        !             5:  *
        !             6:  * Revised Mon Mar 22 13:10:53 1993 CST
        !             7:  */
        !             8: 
        !             9: #ifndef        __SYS_WAIT_H__
        !            10: #define        __SYS_WAIT_H__
        !            11: 
        !            12: /*
        !            13:  * This header is defined in the POSIX.1 standard ISO/IEC 9945-1:1990, and as
        !            14:  * such client programs which include this header should not use any symbols
        !            15:  * which end in "_t".
        !            16:  */
        !            17: 
        !            18: /*
        !            19:  * The contents of this header are also defined by the provisions of binary
        !            20:  * compatibility standards such as the iBCS2 specification and the System V
        !            21:  * ABI. The visibility of certain symbols defined by those standards may be
        !            22:  * controlled by feature-test macros such as _SYSV3 for iBCS2, and _SYSV4 for
        !            23:  * System V, Release 4.
        !            24:  */
        !            25: 
        !            26: #include <sys/ccompat.h>
        !            27: #include <sys/__pid.h>
        !            28: 
        !            29: 
        !            30: #define        __WSIGMASK              0x7F
        !            31: #define        __WSTOPFLG              0x7F
        !            32: 
        !            33: #if    _SYSV4
        !            34: 
        !            35: # define       WEXITED         0x01
        !            36: # define       WTRAPPED        0x02
        !            37: 
        !            38: # define       WSTOPFLG        __WSTOPFLG
        !            39: # define       WCOREFLG        0x80
        !            40: 
        !            41: # define       WCONTINUED      0x08
        !            42: # define       WNOWAIT         0x80
        !            43: 
        !            44: # define       WCOREDUMP(stat) ((stat) & WCOREFLG)
        !            45: 
        !            46: #endif
        !            47: 
        !            48: 
        !            49: #define        WUNTRACED       0x04
        !            50: #define        WNOHANG         0x40
        !            51: 
        !            52: 
        !            53: #define        __WLOBYTE(stat)         ((stat) & 0xFF)
        !            54: #define        __WHIBYTE(stat)         (((stat) >> 8) & 0xFF)
        !            55: 
        !            56: #define        WIFEXITED(stat)         (__WLOBYTE (stat) == 0)
        !            57: #define        WEXITSTATUS(stat)       (__WHIBYTE (stat))
        !            58: 
        !            59: #define        WIFSIGNALED(stat)       (__WLOBYTE (stat) > 0 && __WHIBYTE (stat) == 0)
        !            60: #define        WTERMSIG(stat)          (__WLOBYTE (stat) & __WSIGMASK)
        !            61: 
        !            62: #define        WIFSTOPPED(stat)        (__WLOBYTE (stat) == __WSTOPFLG && \
        !            63:                                 __WHIBYTE (stat) != 0)
        !            64: #define        WSTOPSIG(stat)          (__WHIBYTE (stat))
        !            65: 
        !            66: 
        !            67: __EXTERN_C_BEGIN__
        !            68: 
        !            69: __pid_t                wait            __PROTO ((int * _stat_loc));
        !            70: __pid_t                waitpid         __PROTO ((__pid_t _pid, int * _stat_loc,
        !            71:                                          int _options));
        !            72: 
        !            73: __EXTERN_C_END__
        !            74: 
        !            75: #endif /* ! defined (__SYS_WAIT_H__) */

unix.superglobalmegacorp.com

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