Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 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 | /* version we've last synced against */ |
Mike Frysinger | 874af85 | 2006-03-08 07:03:27 +0000 | [diff] [blame] | 14 | #define E2FSPROGS_VERSION "1.38" |
| 15 | #define E2FSPROGS_DATE "30-Jun-2005" |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 16 | |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 17 | typedef long errcode_t; |
| 18 | #define ERRCODE_RANGE 8 |
| 19 | #define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1))) |
| 20 | |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 21 | /* header defines */ |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 22 | #define ENABLE_HTREE 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 23 | #define HAVE_ERRNO_H 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 24 | #define HAVE_EXT2_IOCTLS 1 |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 25 | #define HAVE_LINUX_FD_H 1 |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 26 | #define HAVE_MNTENT_H 1 |
| 27 | #define HAVE_NETINET_IN_H 1 |
| 28 | #define HAVE_NET_IF_H 1 |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 29 | #define HAVE_SYS_IOCTL_H 1 |
| 30 | #define HAVE_SYS_MOUNT_H 1 |
| 31 | #define HAVE_SYS_QUEUE_H 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 32 | #define HAVE_SYS_STAT_H 1 |
| 33 | #define HAVE_SYS_TYPES_H 1 |
| 34 | #define HAVE_UNISTD_H 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 35 | |
Rob Landley | 391a904 | 2006-01-23 21:38:06 +0000 | [diff] [blame] | 36 | /* Endianness */ |
Rob Landley | 7c94bed | 2006-05-03 21:58:45 +0000 | [diff] [blame] | 37 | #if BB_BIG_ENDIAN |
Rob Landley | 391a904 | 2006-01-23 21:38:06 +0000 | [diff] [blame] | 38 | #define ENABLE_SWAPFS 1 |
| 39 | #define WORDS_BIGENDIAN 1 |
| 40 | #endif |
| 41 | |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 42 | #endif /* __E2FSBB_H__ */ |