]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/exitcodes.h
Merge branch 'timer' of https://github.com/Villemoes/util-linux
[thirdparty/util-linux.git] / include / exitcodes.h
1 #ifndef UTIL_LINUX_EXITCODES_H
2 #define UTIL_LINUX_EXITCODES_H
3 /*
4 * BE CAREFUL
5 *
6 * These exit codes are part of the official interface for mount,
7 * fsck, mkfs, etc. wrappers.
8 */
9
10 /* Exit codes used by mkfs-type programs */
11 #define MKFS_EX_OK 0 /* No errors */
12 #define MKFS_EX_ERROR 8 /* Operational error */
13 #define MKFS_EX_USAGE 16 /* Usage or syntax error */
14
15 /* Exit codes used by fsck-type programs */
16 #define FSCK_EX_OK 0 /* No errors */
17 #define FSCK_EX_NONDESTRUCT 1 /* File system errors corrected */
18 #define FSCK_EX_REBOOT 2 /* System should be rebooted */
19 #define FSCK_EX_DESTRUCT FSCK_EX_REBOOT /* Alias */
20 #define FSCK_EX_UNCORRECTED 4 /* File system errors left uncorrected */
21 #define FSCK_EX_ERROR 8 /* Operational error */
22 #define FSCK_EX_USAGE 16 /* Usage or syntax error */
23 #define FSCK_EX_LIBRARY 128 /* Shared library error */
24
25 #endif /* UTIL_LINUX_EXITCODES_H */