diff options
author | Denis Vlasenko | 2006-12-26 01:30:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-26 01:30:59 +0000 |
commit | c4f623ef2a7980a63de7c9f1d539a656b83f10e7 (patch) | |
tree | a294e28b0112052cb9d58b403554b3390e76f50c /e2fsprogs/old_e2fsprogs/e2fsbb.h | |
parent | 64c54025842f205ad722675105b88044a5b6845a (diff) | |
download | busybox-c4f623ef2a7980a63de7c9f1d539a656b83f10e7.zip busybox-c4f623ef2a7980a63de7c9f1d539a656b83f10e7.tar.gz |
put small subset of e2fsprogs back in the tree:
lsattr, chattr, fsck. Old e2fsprogs tree is in
e2fsprogs/old_e2fsprogs/*.
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/e2fsbb.h')
-rw-r--r-- | e2fsprogs/old_e2fsprogs/e2fsbb.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/e2fsprogs/old_e2fsprogs/e2fsbb.h b/e2fsprogs/old_e2fsprogs/e2fsbb.h new file mode 100644 index 0000000..78e7cbd --- /dev/null +++ b/e2fsprogs/old_e2fsprogs/e2fsbb.h @@ -0,0 +1,43 @@ +/* vi: set sw=4 ts=4: */ +/* + * 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" + +/* version we've last synced against */ +#define E2FSPROGS_VERSION "1.38" +#define E2FSPROGS_DATE "30-Jun-2005" + +typedef long errcode_t; +#define ERRCODE_RANGE 8 +#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1))) + +/* header defines */ +#define ENABLE_HTREE 1 +#define HAVE_ERRNO_H 1 +#define HAVE_EXT2_IOCTLS 1 +#define HAVE_LINUX_FD_H 1 +#define HAVE_MNTENT_H 1 +#define HAVE_NETINET_IN_H 1 +#define HAVE_NET_IF_H 1 +#define HAVE_SYS_IOCTL_H 1 +#define HAVE_SYS_MOUNT_H 1 +#define HAVE_SYS_QUEUE_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_UNISTD_H 1 + +/* Endianness */ +#if BB_BIG_ENDIAN +#define ENABLE_SWAPFS 1 +#define WORDS_BIGENDIAN 1 +#endif + +#endif /* __E2FSBB_H__ */ |