aboutsummaryrefslogtreecommitdiff
path: root/util-linux/e2fsbb.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-22 02:33:37 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-22 02:33:37 +0000
commitde9f1f757af7e15881156b610431cd00c262f768 (patch)
treea7fd230099dc3388b179ca51e806495f052c01c5 /util-linux/e2fsbb.h
parent2c12d435e5ccd402f6210827df0b2038093fbcee (diff)
downloadbusybox-de9f1f757af7e15881156b610431cd00c262f768.tar.gz
import lsattr and chattr from e2fsprogs
Diffstat (limited to 'util-linux/e2fsbb.h')
-rw-r--r--util-linux/e2fsbb.h22
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 @@
+/*
+ * File: e2fsbb.h
+ *
+ * Redefine a bunch of e2fsprogs stuff to use busybox routines
+ * instead. This makes upgrade between e2fsprogs versions easy.
+ */
+
+#ifndef __E2FSBB_H__
+#define __E2FSBB_H__ 1
+
+#include "libbb.h"
+
+#define _(x) x
+
+#define com_err(w, c, fmt, args...) bb_error_msg(fmt, ## args)
+
+#define fputs(msg, fd) bb_error_msg(msg)
+#define fatal_error(msg, err) bb_error_msg_and_die(msg)
+#define usage() bb_show_usage()
+#define perror(msg) bb_perror_msg(msg)
+
+#endif /* __E2FSBB_H__ */