]> git.ipfire.org Git - thirdparty/util-linux.git/blob - include/exitcodes.h
mount: (new) share exit codes by include/exitcodes.h
[thirdparty/util-linux.git] / include / exitcodes.h
1 #ifndef UTIL_LINUX_EXITCODES_H
2 #define UTIL_LINUX_EXITCODES_H
3
4 /* Exit codes used by mkfs-type programs */
5 #define MKFS_OK 0 /* No errors */
6 #define MKFS_ERROR 8 /* Operational error */
7 #define MKFS_USAGE 16 /* Usage or syntax error */
8
9 /* Exit codes used by fsck-type programs */
10 #define FSCK_OK 0 /* No errors */
11 #define FSCK_NONDESTRUCT 1 /* File system errors corrected */
12 #define FSCK_REBOOT 2 /* System should be rebooted */
13 #define FSCK_UNCORRECTED 4 /* File system errors left uncorrected */
14 #define FSCK_ERROR 8 /* Operational error */
15 #define FSCK_USAGE 16 /* Usage or syntax error */
16 #define FSCK_LIBRARY 128 /* Shared library error */
17
18 /* exit status */
19 #define MOUNT_EX_SUCCESS 0 /* No errors */
20 #define MOUNT_EX_USAGE 1 /* incorrect invocation or permission */
21 #define MOUNT_EX_SYSERR 2 /* out of memory, cannot fork, ... */
22 #define MOUNT_EX_SOFTWARE 4 /* internal mount bug or wrong version */
23 #define MOUNT_EX_USER 8 /* user interrupt */
24 #define MOUNT_EX_FILEIO 16 /* problems writing, locking, ... mtab/fstab */
25 #define MOUNT_EX_FAIL 32 /* mount failure */
26 #define MOUNT_EX_SOMEOK 64 /* some mount succeeded */
27
28 #endif /* UTIL_LINUX_EXITCODES_H */