Lines Matching refs:stat
123 * macros for stat return from wait functions
133 #define WLOBYTE(stat) ((int)((stat)&0377))
134 #define WHIBYTE(stat) ((int)(((stat)>>8)&0377))
135 #define WWORD(stat) ((int)((stat))&0177777)
137 #define WIFEXITED(stat) (WLOBYTE(stat) == 0)
138 #define WIFSIGNALED(stat) (WLOBYTE(stat) > 0 && WHIBYTE(stat) == 0)
139 #define WIFSTOPPED(stat) (WLOBYTE(stat) == WSTOPFLG&&WHIBYTE(stat) != 0)
140 #define WIFCONTINUED(stat) (WWORD(stat) == WCONTFLG)
142 #define WEXITSTATUS(stat) WHIBYTE(stat)
143 #define WTERMSIG(stat) (WLOBYTE(stat)&WSIGMASK)
144 #define WSTOPSIG(stat) WHIBYTE(stat)
145 #define WCOREDUMP(stat) ((stat)&WCOREFLG)