2006-07-03 01:17:05 +05:30
|
|
|
/* vi: set sw=4 ts=4: */
|
2005-04-24 10:37:59 +05:30
|
|
|
/*
|
|
|
|
* 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 */
|
2006-03-08 12:33:27 +05:30
|
|
|
#define E2FSPROGS_VERSION "1.38"
|
|
|
|
#define E2FSPROGS_DATE "30-Jun-2005"
|
2005-04-24 10:37:59 +05:30
|
|
|
|
|
|
|
typedef long errcode_t;
|
|
|
|
#define ERRCODE_RANGE 8
|
|
|
|
#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
|
|
|
|
|
2005-06-11 05:33:13 +05:30
|
|
|
/* header defines */
|
2005-09-24 12:41:16 +05:30
|
|
|
#define ENABLE_HTREE 1
|
2005-06-11 05:33:13 +05:30
|
|
|
#define HAVE_ERRNO_H 1
|
|
|
|
#define HAVE_EXT2_IOCTLS 1
|
2005-09-24 12:41:16 +05:30
|
|
|
#define HAVE_LINUX_FD_H 1
|
|
|
|
#define HAVE_MNTENT_H 1
|
|
|
|
#define HAVE_NETINET_IN_H 1
|
|
|
|
#define HAVE_NET_IF_H 1
|
2005-06-11 05:33:13 +05:30
|
|
|
#define HAVE_SYS_IOCTL_H 1
|
2005-09-24 12:41:16 +05:30
|
|
|
#define HAVE_SYS_MOUNT_H 1
|
2005-06-11 05:33:13 +05:30
|
|
|
#define HAVE_SYS_QUEUE_H 1
|
2005-09-24 12:41:16 +05:30
|
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
#define HAVE_UNISTD_H 1
|
2005-06-11 05:33:13 +05:30
|
|
|
|
2006-01-24 03:08:06 +05:30
|
|
|
/* Endianness */
|
2006-05-04 03:28:45 +05:30
|
|
|
#if BB_BIG_ENDIAN
|
2006-01-24 03:08:06 +05:30
|
|
|
#define ENABLE_SWAPFS 1
|
|
|
|
#define WORDS_BIGENDIAN 1
|
|
|
|
#endif
|
|
|
|
|
2005-04-24 10:37:59 +05:30
|
|
|
#endif /* __E2FSBB_H__ */
|