Lines Matching defs:status
23 #include "exit-status.h"
27 const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) {
32 switch ((int) status) {
43 switch ((int) status) {
159 switch ((int) status) {
185 bool is_clean_exit(int code, int status, ExitStatusSet *success_status) {
188 return status == 0 ||
190 set_contains(success_status->status, INT_TO_PTR(status)));
196 status == SIGHUP ||
197 status == SIGINT ||
198 status == SIGTERM ||
199 status == SIGPIPE ||
201 set_contains(success_status->signal, INT_TO_PTR(status)));
206 bool is_clean_exit_lsb(int code, int status, ExitStatusSet *success_status) {
208 if (is_clean_exit(code, status, success_status))
213 (status == EXIT_NOTINSTALLED || status == EXIT_NOTCONFIGURED);
219 set_free(x->status);
221 x->status = x->signal = NULL;
228 return set_isempty(x->status) && set_isempty(x->signal);
231 bool exit_status_set_test(ExitStatusSet *x, int code, int status) {
236 if (code == CLD_EXITED && set_contains(x->status, INT_TO_PTR(status)))
239 if (IN_SET(code, CLD_KILLED, CLD_DUMPED) && set_contains(x->signal, INT_TO_PTR(status)))