chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
path-lookup: monitor /etc/systemd/user for user manager
[elogind.git]
/
src
/
exit-status.h
diff --git
a/src/exit-status.h
b/src/exit-status.h
index 178bdf6d616c7f9df053b89e2378b6994d645a6e..3e977b10ef4edff44f12e9b6251859493916ba67 100644
(file)
--- 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/>.
***/
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 */
typedef enum ExitStatus {
/* EXIT_SUCCESS defined by libc */
/* EXIT_FAILURE defined by libc */
@@
-62,7
+64,8
@@
typedef enum ExitStatus {
EXIT_CONFIRM,
EXIT_STDERR,
EXIT_TCPWRAP,
EXIT_CONFIRM,
EXIT_STDERR,
EXIT_TCPWRAP,
- EXIT_PAM
+ EXIT_PAM,
+ EXIT_NETWORK
} ExitStatus;
} ExitStatus;
@@
-75,4
+78,7
@@
typedef enum ExitStatusLevel {
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);
+
#endif
#endif