summaryrefslogtreecommitdiff
path: root/src/exit-status.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-20 18:22:03 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-20 18:22:03 +0100
commit9a57c62944258c750d80bca4fe56de4dbab46d67 (patch)
tree7194ffec3e7e66b63a9e457b8a79be9c25daeafb /src/exit-status.h
parent0129173ab03994d21a21f9fc1f454faf62b97043 (diff)
systemctl: highlight failed processes in systemctl status
Diffstat (limited to 'src/exit-status.h')
-rw-r--r--src/exit-status.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exit-status.h b/src/exit-status.h
index 178bdf6d61..28f03a5911 100644
--- a/src/exit-status.h
+++ b/src/exit-status.h
@@ -22,6 +22,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <stdbool.h>
+
typedef enum ExitStatus {
/* EXIT_SUCCESS defined by libc */
/* EXIT_FAILURE defined by libc */
@@ -75,4 +77,7 @@ typedef enum ExitStatusLevel {
const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level);
+bool is_clean_exit(int code, int status);
+bool is_clean_exit_lsb(int code, int status);
+
#endif