blob: 975e5676c1b562bbd19a5f81aa4104f856d987ec [file] [log] [blame]
Mike Frysingerd89e6292005-04-24 05:07:59 +00001/*
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 Frysinger874af852006-03-08 07:03:27 +000014#define E2FSPROGS_VERSION "1.38"
15#define E2FSPROGS_DATE "30-Jun-2005"
Mike Frysingerd89e6292005-04-24 05:07:59 +000016
Mike Frysingerd89e6292005-04-24 05:07:59 +000017typedef long errcode_t;
18#define ERRCODE_RANGE 8
19#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
20
Mike Frysinger942e1372005-06-11 00:03:13 +000021/* header defines */
Mike Frysinger51a43b42005-09-24 07:11:16 +000022#define ENABLE_HTREE 1
Mike Frysinger942e1372005-06-11 00:03:13 +000023#define HAVE_ERRNO_H 1
Mike Frysinger942e1372005-06-11 00:03:13 +000024#define HAVE_EXT2_IOCTLS 1
Mike Frysinger51a43b42005-09-24 07:11:16 +000025#define HAVE_LINUX_FD_H 1
Mike Frysinger51a43b42005-09-24 07:11:16 +000026#define HAVE_MNTENT_H 1
27#define HAVE_NETINET_IN_H 1
28#define HAVE_NET_IF_H 1
Mike Frysinger51a43b42005-09-24 07:11:16 +000029#define HAVE_SYS_IOCTL_H 1
30#define HAVE_SYS_MOUNT_H 1
31#define HAVE_SYS_QUEUE_H 1
Mike Frysinger942e1372005-06-11 00:03:13 +000032#define HAVE_SYS_STAT_H 1
33#define HAVE_SYS_TYPES_H 1
34#define HAVE_UNISTD_H 1
Mike Frysinger942e1372005-06-11 00:03:13 +000035
Rob Landley391a9042006-01-23 21:38:06 +000036/* Endianness */
Rob Landley7c94bed2006-05-03 21:58:45 +000037#if BB_BIG_ENDIAN
Rob Landley391a9042006-01-23 21:38:06 +000038#define ENABLE_SWAPFS 1
39#define WORDS_BIGENDIAN 1
40#endif
41
Mike Frysingerd89e6292005-04-24 05:07:59 +000042#endif /* __E2FSBB_H__ */