"Robert P. J. Day" | 63fc1a9 | 2006-07-02 19:47:05 +0000 | [diff] [blame] | 1 | /* vi: set sw=4 ts=4: */ |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 2 | /* |
| 3 | * File: e2fsbb.h |
| 4 | * |
| 5 | * Redefine a bunch of e2fsprogs stuff to use busybox routines |
| 6 | * instead. This makes upgrade between e2fsprogs versions easy. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __E2FSBB_H__ |
| 10 | #define __E2FSBB_H__ 1 |
| 11 | |
| 12 | #include "libbb.h" |
| 13 | |
| 14 | /* version we've last synced against */ |
Mike Frysinger | 874af85 | 2006-03-08 07:03:27 +0000 | [diff] [blame] | 15 | #define E2FSPROGS_VERSION "1.38" |
| 16 | #define E2FSPROGS_DATE "30-Jun-2005" |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 17 | |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 18 | typedef long errcode_t; |
| 19 | #define ERRCODE_RANGE 8 |
| 20 | #define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1))) |
| 21 | |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 22 | /* header defines */ |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 23 | #define ENABLE_HTREE 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 24 | #define HAVE_ERRNO_H 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 25 | #define HAVE_EXT2_IOCTLS 1 |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 26 | #define HAVE_LINUX_FD_H 1 |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 27 | #define HAVE_MNTENT_H 1 |
| 28 | #define HAVE_NETINET_IN_H 1 |
| 29 | #define HAVE_NET_IF_H 1 |
Mike Frysinger | 51a43b4 | 2005-09-24 07:11:16 +0000 | [diff] [blame] | 30 | #define HAVE_SYS_IOCTL_H 1 |
| 31 | #define HAVE_SYS_MOUNT_H 1 |
| 32 | #define HAVE_SYS_QUEUE_H 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 33 | #define HAVE_SYS_STAT_H 1 |
| 34 | #define HAVE_SYS_TYPES_H 1 |
| 35 | #define HAVE_UNISTD_H 1 |
Mike Frysinger | 942e137 | 2005-06-11 00:03:13 +0000 | [diff] [blame] | 36 | |
Rob Landley | 391a904 | 2006-01-23 21:38:06 +0000 | [diff] [blame] | 37 | /* Endianness */ |
Rob Landley | 7c94bed | 2006-05-03 21:58:45 +0000 | [diff] [blame] | 38 | #if BB_BIG_ENDIAN |
Rob Landley | 391a904 | 2006-01-23 21:38:06 +0000 | [diff] [blame] | 39 | #define ENABLE_SWAPFS 1 |
| 40 | #define WORDS_BIGENDIAN 1 |
| 41 | #endif |
| 42 | |
Mike Frysinger | d89e629 | 2005-04-24 05:07:59 +0000 | [diff] [blame] | 43 | #endif /* __E2FSBB_H__ */ |