e2fsbb.h 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* vi: set sw=4 ts=4: */
  2. /*
  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. #ifndef E2FSBB_H
  9. #define E2FSBB_H 1
  10. #include "libbb.h"
  11. /* version we've last synced against */
  12. #define E2FSPROGS_VERSION "1.38"
  13. #define E2FSPROGS_DATE "30-Jun-2005"
  14. typedef long errcode_t;
  15. #define ERRCODE_RANGE 8
  16. #define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
  17. /* header defines */
  18. #define ENABLE_HTREE 1
  19. #define HAVE_ERRNO_H 1
  20. #define HAVE_EXT2_IOCTLS 1
  21. #define HAVE_LINUX_FD_H 1
  22. #define HAVE_MNTENT_H 1
  23. #define HAVE_NETINET_IN_H 1
  24. #define HAVE_NET_IF_H 1
  25. #define HAVE_SYS_IOCTL_H 1
  26. #define HAVE_SYS_MOUNT_H 1
  27. #define HAVE_SYS_QUEUE_H 1
  28. #define HAVE_SYS_STAT_H 1
  29. #define HAVE_SYS_TYPES_H 1
  30. #define HAVE_UNISTD_H 1
  31. /* Endianness */
  32. #if BB_BIG_ENDIAN
  33. #define ENABLE_SWAPFS 1
  34. #define WORDS_BIGENDIAN 1
  35. #endif
  36. #endif