]> git.ipfire.org Git - thirdparty/util-linux.git/blame - include/exitcodes.h
Merge branch 'ci/cache-openwrt-sdk' of https://github.com/t-8ch/util-linux
[thirdparty/util-linux.git] / include / exitcodes.h
CommitLineData
b8f040cd
SK
1#ifndef UTIL_LINUX_EXITCODES_H
2#define UTIL_LINUX_EXITCODES_H
70b604b8
KZ
3/*
4 * BE CAREFUL
5 *
6 * These exit codes are part of the official interface for mount,
7 * fsck, mkfs, etc. wrappers.
8 */
b8f040cd
SK
9
10/* Exit codes used by mkfs-type programs */
70b604b8
KZ
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 */
b8f040cd 14
5d6fb944 15/* Exit codes used by fsck-type programs */
70b604b8
KZ
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 */
5d6fb944 24
c3e29c68
TW
25#define EXIT_NOTSUPP 2
26
b8f040cd 27#endif /* UTIL_LINUX_EXITCODES_H */