chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd-python: refuse path and flags together in __init__
[elogind.git]
/
src
/
shared
/
exit-status.h
diff --git
a/src/shared/exit-status.h
b/src/shared/exit-status.h
index 3f42c15e3b97d071dd4b9483896a4c51b3e9e8d6..d3b548fc96ad40df3a0cee43612ee658deb6e290 100644
(file)
--- a/
src/shared/exit-status.h
+++ b/
src/shared/exit-status.h
@@
-22,7
+22,7
@@
***/
#include <stdbool.h>
***/
#include <stdbool.h>
-
+#include "set.h"
typedef enum ExitStatus {
/* EXIT_SUCCESS defined by libc */
/* EXIT_FAILURE defined by libc */
typedef enum ExitStatus {
/* EXIT_SUCCESS defined by libc */
/* EXIT_FAILURE defined by libc */
@@
-77,7
+77,12
@@
typedef enum ExitStatusLevel {
EXIT_STATUS_FULL = EXIT_STATUS_LSB
} ExitStatusLevel;
EXIT_STATUS_FULL = EXIT_STATUS_LSB
} ExitStatusLevel;
+typedef struct ExitStatusSet {
+ Set *code;
+ Set *signal;
+} ExitStatusSet;
+
const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level);
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);
+bool is_clean_exit(int code, int status
, ExitStatusSet *success_status
);
+bool is_clean_exit_lsb(int code, int status
, ExitStatusSet *success_status
);