diff options
Diffstat (limited to 'util-linux/e2fsbb.h')
-rw-r--r-- | util-linux/e2fsbb.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/util-linux/e2fsbb.h b/util-linux/e2fsbb.h new file mode 100644 index 000000000..46690a65d --- /dev/null +++ b/util-linux/e2fsbb.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * File: e2fsbb.h | ||
3 | * | ||
4 | * Redefine a bunch of e2fsprogs stuff to use busybox routines | ||
5 | * instead. This makes upgrade between e2fsprogs versions easy. | ||
6 | */ | ||
7 | |||
8 | #ifndef __E2FSBB_H__ | ||
9 | #define __E2FSBB_H__ 1 | ||
10 | |||
11 | #include "libbb.h" | ||
12 | |||
13 | #define _(x) x | ||
14 | |||
15 | #define com_err(w, c, fmt, args...) bb_error_msg(fmt, ## args) | ||
16 | |||
17 | #define fputs(msg, fd) bb_error_msg(msg) | ||
18 | #define fatal_error(msg, err) bb_error_msg_and_die(msg) | ||
19 | #define usage() bb_show_usage() | ||
20 | #define perror(msg) bb_perror_msg(msg) | ||
21 | |||
22 | #endif /* __E2FSBB_H__ */ | ||