2005-04-24 05:07:59 +00:00
|
|
|
/*
|
|
|
|
* 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.37"
|
|
|
|
#define E2FSPROGS_DATE "21-Mar-2005"
|
|
|
|
|
|
|
|
/* make sure com_err.h isnt included before us */
|
|
|
|
#ifdef __COM_ERR_H__
|
|
|
|
#error You should not have included com_err.h !
|
|
|
|
#endif
|
|
|
|
#define __COM_ERR_H__
|
|
|
|
|
|
|
|
/* com_err crap */
|
|
|
|
#define com_err(w, c, fmt, args...) bb_error_msg(fmt, ## args)
|
|
|
|
typedef long errcode_t;
|
|
|
|
#define ERRCODE_RANGE 8
|
|
|
|
#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
|
|
|
|
|
|
|
|
/* NLS crap */
|
|
|
|
#define _(x) x
|
2005-05-07 06:49:54 +00:00
|
|
|
#define N_(x) x
|
2005-04-24 05:07:59 +00:00
|
|
|
|
|
|
|
/* misc crap */
|
2005-09-24 07:11:16 +00:00
|
|
|
#define fatal_error(err, msg) bb_error_msg_and_die(msg)
|
2005-04-24 05:07:59 +00:00
|
|
|
#define usage() bb_show_usage()
|
|
|
|
|
2005-06-11 00:03:13 +00:00
|
|
|
/* header defines */
|
2005-09-24 07:11:16 +00:00
|
|
|
#define ENABLE_HTREE 1
|
2005-06-11 00:03:13 +00:00
|
|
|
#define HAVE_ERRNO_H 1
|
|
|
|
#define HAVE_EXT2_IOCTLS 1
|
2005-09-24 07:11:16 +00:00
|
|
|
#define HAVE_INTTYPES_H 1
|
|
|
|
#define HAVE_LINUX_FD_H 1
|
|
|
|
#define HAVE_MALLOC_H 1
|
|
|
|
#define HAVE_MNTENT_H 1
|
|
|
|
#define HAVE_NETINET_IN_H 1
|
|
|
|
#define HAVE_NET_IF_H 1
|
2005-06-11 00:03:13 +00:00
|
|
|
#define HAVE_SYS_IOCTL_H 1
|
2005-09-24 07:11:16 +00:00
|
|
|
#define HAVE_SYS_MOUNT_H 1
|
2005-06-11 00:03:13 +00:00
|
|
|
#define HAVE_SYS_QUEUE_H 1
|
|
|
|
#define HAVE_SYS_RESOURCE_H 1
|
2005-09-24 07:11:16 +00:00
|
|
|
#define HAVE_SYS_SOCKET_H 1
|
|
|
|
#define HAVE_SYS_STAT_H 1
|
2005-06-11 00:03:13 +00:00
|
|
|
#define HAVE_SYS_TIME_H 1
|
2005-09-24 07:11:16 +00:00
|
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
#define HAVE_UNISTD_H 1
|
2005-06-11 00:03:13 +00:00
|
|
|
|
2006-01-23 21:38:06 +00:00
|
|
|
/* Endianness */
|
|
|
|
#if __BYTE_ORDER== __BIG_ENDIAN
|
|
|
|
#define ENABLE_SWAPFS 1
|
|
|
|
#define WORDS_BIGENDIAN 1
|
|
|
|
#endif
|
|
|
|
|
2005-04-24 05:07:59 +00:00
|
|
|
#endif /* __E2FSBB_H__ */
|