Home
last modified time | relevance | path

Searched refs:exit_status_mappings (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/shared/
Dexit-status.c13 const ExitStatusMapping exit_status_mappings[256] = { variable
103 if (code < 0 || (size_t) code >= ELEMENTSOF(exit_status_mappings)) in exit_status_to_string()
105 return class & exit_status_mappings[code].class ? exit_status_mappings[code].name : NULL; in exit_status_to_string()
109 if (code < 0 || (size_t) code >= ELEMENTSOF(exit_status_mappings)) in exit_status_class()
112 switch (exit_status_mappings[code].class) { in exit_status_class()
129 for (size_t i = 0; i < ELEMENTSOF(exit_status_mappings); i++) in exit_status_from_string()
130 if (streq_ptr(s, exit_status_mappings[i].name)) in exit_status_from_string()
Dexit-status.h101 extern const ExitStatusMapping exit_status_mappings[256];
/systemd-251/src/analyze/
Danalyze-exit-status.c21 for (size_t i = 0; i < ELEMENTSOF(exit_status_mappings); i++) { in verb_exit_status()
22 if (!exit_status_mappings[i].name) in verb_exit_status()
26 TABLE_STRING, exit_status_mappings[i].name, in verb_exit_status()
40 assert(status >= 0 && (size_t) status < ELEMENTSOF(exit_status_mappings)); in verb_exit_status()
42 TABLE_STRING, exit_status_mappings[status].name ?: "-", in verb_exit_status()