4 * Redefine a bunch of e2fsprogs stuff to use busybox routines
5 * instead. This makes upgrade between e2fsprogs versions easy.
13 /* version we've last synced against */
14 #define E2FSPROGS_VERSION "1.37"
15 #define E2FSPROGS_DATE "21-Mar-2005"
17 /* make sure com_err.h isnt included before us */
19 #error You should not have included com_err.h !
24 #define com_err(w, c, fmt, args...) bb_error_msg(fmt, ## args)
25 typedef long errcode_t;
26 #define ERRCODE_RANGE 8
27 #define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
32 #define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural))
35 #define fatal_error(msg, err) bb_error_msg_and_die(msg)
36 #define usage() bb_show_usage()
37 #define perror(msg) bb_perror_msg(msg)
40 #define HAVE_ERRNO_H 1
41 #define HAVE_UNISTD_H 1
42 #define HAVE_EXT2_IOCTLS 1
43 #define HAVE_STDLIB_H 1
44 #define HAVE_SYS_STAT_H 1
45 #define HAVE_SYS_TYPES_H 1
46 #define HAVE_UNISTD_H 1
47 #define HAVE_SYS_IOCTL_H 1
48 #define HAVE_SYS_QUEUE_H 1
49 #define HAVE_SYS_SOCKET_H 1
50 #define HAVE_NETINET_IN_H 1
51 #define HAVE_INTTYPES_H 1
52 #define HAVE_NET_IF_H 1
53 #define HAVE_GETOPT_H 1
54 #define HAVE_SYS_RESOURCE_H 1
55 #define HAVE_SYS_MOUNT_H 1
56 #define HAVE_SYS_TIME_H 1
57 #define HAVE_LINUX_FD_H 1
58 #define HAVE_MNTENT_H 1
60 #endif /* __E2FSBB_H__ */