bigbiff bigbiff | e60683a | 2013-02-22 20:55:50 -0500 | [diff] [blame] | 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 | /* Exit codes used by mount-line programs */ |
| 26 | #define MOUNT_EX_SUCCESS 0 /* No errors */ |
| 27 | #define MOUNT_EX_USAGE 1 /* incorrect invocation or permission */ |
| 28 | #define MOUNT_EX_SYSERR 2 /* out of memory, cannot fork, ... */ |
| 29 | #define MOUNT_EX_SOFTWARE 4 /* internal mount bug or wrong version */ |
| 30 | #define MOUNT_EX_USER 8 /* user interrupt */ |
| 31 | #define MOUNT_EX_FILEIO 16 /* problems writing, locking, ... mtab/fstab */ |
| 32 | #define MOUNT_EX_FAIL 32 /* mount failure */ |
| 33 | #define MOUNT_EX_SOMEOK 64 /* some mount succeeded */ |
| 34 | |
| 35 | #endif /* UTIL_LINUX_EXITCODES_H */ |