Searched refs:EXIT_BITS (Results 1 - 3 of 3) sorted by relevance

/ast/src/lib/libast/include/
H A Dwait.h68 #define WIFEXITED(x) (!((x)&((1<<(EXIT_BITS-1))-1)))
72 #define WEXITSTATUS(x) (((x)>>EXIT_BITS)&((1<<EXIT_BITS)-1))
76 #define WIFSIGNALED(x) (((x)&((1<<(EXIT_BITS-1))-1))!=0)
80 #define WTERMSIG(x) ((x)&((1<<(EXIT_BITS-1))-1))
84 #define WIFSTOPPED(x) (((x)&((1<<EXIT_BITS)-1))==((1<<(EXIT_BITS-1))-1))
92 #define WTERMCORE(x) ((x)&(1<<(EXIT_BITS-1)))
H A Dast.h70 #define EXIT_BITS 8 /* # exit status bits */ macro
73 #define EXIT_QUIT ((1<<(EXIT_BITS))-1) /* parent should quit */
74 #define EXIT_NOTFOUND ((1<<(EXIT_BITS-1))-1) /* command not found */
75 #define EXIT_NOEXEC ((1<<(EXIT_BITS-1))-2) /* other exec error */
77 #define EXIT_CODE(x) ((x)&((1<<EXIT_BITS)-1))
78 #define EXIT_CORE(x) (EXIT_CODE(x)|(1<<EXIT_BITS)|(1<<(EXIT_BITS-1)))
79 #define EXIT_TERM(x) (EXIT_CODE(x)|(1<<EXIT_BITS))
82 * NOTE: for compatibility the following work for EXIT_BITS={7,8}
85 #define EXIT_STATUS(x) (((x)&((1<<(EXIT_BITS
[all...]
/ast/src/lib/libcoshell/
H A Dsystem.c53 status &= ((1<<(EXIT_BITS-1))-1);
55 status = (status & ((1<<EXIT_BITS)-1)) << EXIT_BITS;

Completed in 12 milliseconds