blob: 78e7cbd04c829a4f54d3a77688a28390cb366645 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Mike Frysingerd89e6292005-04-24 05:07:59 +00002/*
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 Frysinger874af852006-03-08 07:03:27 +000015#define E2FSPROGS_VERSION "1.38"
16#define E2FSPROGS_DATE "30-Jun-2005"
Mike Frysingerd89e6292005-04-24 05:07:59 +000017
Mike Frysingerd89e6292005-04-24 05:07:59 +000018typedef long errcode_t;
19#define ERRCODE_RANGE 8
20#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
21
Mike Frysinger942e1372005-06-11 00:03:13 +000022/* header defines */
Mike Frysinger51a43b42005-09-24 07:11:16 +000023#define ENABLE_HTREE 1
Mike Frysinger942e1372005-06-11 00:03:13 +000024#define HAVE_ERRNO_H 1
Mike Frysinger942e1372005-06-11 00:03:13 +000025#define HAVE_EXT2_IOCTLS 1
Mike Frysinger51a43b42005-09-24 07:11:16 +000026#define HAVE_LINUX_FD_H 1
Mike Frysinger51a43b42005-09-24 07:11:16 +000027#define HAVE_MNTENT_H 1
28#define HAVE_NETINET_IN_H 1
29#define HAVE_NET_IF_H 1
Mike Frysinger51a43b42005-09-24 07:11:16 +000030#define HAVE_SYS_IOCTL_H 1
31#define HAVE_SYS_MOUNT_H 1
32#define HAVE_SYS_QUEUE_H 1
Mike Frysinger942e1372005-06-11 00:03:13 +000033#define HAVE_SYS_STAT_H 1
34#define HAVE_SYS_TYPES_H 1
35#define HAVE_UNISTD_H 1
Mike Frysinger942e1372005-06-11 00:03:13 +000036
Rob Landley391a9042006-01-23 21:38:06 +000037/* Endianness */
Rob Landley7c94bed2006-05-03 21:58:45 +000038#if BB_BIG_ENDIAN
Rob Landley391a9042006-01-23 21:38:06 +000039#define ENABLE_SWAPFS 1
40#define WORDS_BIGENDIAN 1
41#endif
42
Mike Frysingerd89e6292005-04-24 05:07:59 +000043#endif /* __E2FSBB_H__ */