aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/e2fsbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/e2fsbb.h')
-rw-r--r--e2fsprogs/e2fsbb.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/e2fsprogs/e2fsbb.h b/e2fsprogs/e2fsbb.h
index ddd196644..975e5676c 100644
--- a/e2fsprogs/e2fsbb.h
+++ b/e2fsprogs/e2fsbb.h
@@ -14,44 +14,27 @@
14#define E2FSPROGS_VERSION "1.38" 14#define E2FSPROGS_VERSION "1.38"
15#define E2FSPROGS_DATE "30-Jun-2005" 15#define E2FSPROGS_DATE "30-Jun-2005"
16 16
17/* make sure com_err.h isnt included before us */
18#ifdef __COM_ERR_H__
19#error You should not have included com_err.h !
20#endif
21#define __COM_ERR_H__
22
23/* com_err crap */
24#define com_err(w, c, fmt, args...) bb_error_msg(fmt, ## args)
25typedef long errcode_t; 17typedef long errcode_t;
26#define ERRCODE_RANGE 8 18#define ERRCODE_RANGE 8
27#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1))) 19#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
28 20
29/* misc crap */
30#define fatal_error(err, msg) bb_error_msg_and_die(msg)
31#define usage() bb_show_usage()
32
33/* header defines */ 21/* header defines */
34#define ENABLE_HTREE 1 22#define ENABLE_HTREE 1
35#define HAVE_ERRNO_H 1 23#define HAVE_ERRNO_H 1
36#define HAVE_EXT2_IOCTLS 1 24#define HAVE_EXT2_IOCTLS 1
37#define HAVE_INTTYPES_H 1
38#define HAVE_LINUX_FD_H 1 25#define HAVE_LINUX_FD_H 1
39#define HAVE_MALLOC_H 1
40#define HAVE_MNTENT_H 1 26#define HAVE_MNTENT_H 1
41#define HAVE_NETINET_IN_H 1 27#define HAVE_NETINET_IN_H 1
42#define HAVE_NET_IF_H 1 28#define HAVE_NET_IF_H 1
43#define HAVE_SYS_IOCTL_H 1 29#define HAVE_SYS_IOCTL_H 1
44#define HAVE_SYS_MOUNT_H 1 30#define HAVE_SYS_MOUNT_H 1
45#define HAVE_SYS_QUEUE_H 1 31#define HAVE_SYS_QUEUE_H 1
46#define HAVE_SYS_RESOURCE_H 1
47#define HAVE_SYS_SOCKET_H 1
48#define HAVE_SYS_STAT_H 1 32#define HAVE_SYS_STAT_H 1
49#define HAVE_SYS_TIME_H 1
50#define HAVE_SYS_TYPES_H 1 33#define HAVE_SYS_TYPES_H 1
51#define HAVE_UNISTD_H 1 34#define HAVE_UNISTD_H 1
52 35
53/* Endianness */ 36/* Endianness */
54#if __BYTE_ORDER == __BIG_ENDIAN 37#if BB_BIG_ENDIAN
55#define ENABLE_SWAPFS 1 38#define ENABLE_SWAPFS 1
56#define WORDS_BIGENDIAN 1 39#define WORDS_BIGENDIAN 1
57#endif 40#endif