aboutsummaryrefslogtreecommitdiffstats
path: root/src/project.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/project.h')
-rw-r--r--src/project.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/project.h b/src/project.h
new file mode 100644
index 0000000..da07ded
--- /dev/null
+++ b/src/project.h
@@ -0,0 +1,56 @@
+#include "config.h"
+
+#include <math.h>
+
+#include <sys/time.h>
+#include <time.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stddef.h>
+
+#include <malloc.h>
+
+#include <string.h>
+#include <strings.h>
+
+#include <unistd.h>
+
+#include <stdint.h>
+
+
+#include <sys/types.h>
+
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <attr/xattr.h>
+#include <errno.h>
+
+
+#include <ext2fs/ext2fs.h>
+#include <e2p/e2p.h>
+
+#define BUF_SZ (16*1024*1024)
+
+#define EXT2_DO_MOAN(v,wot,file,function,line) \
+ if (v) { \
+ fprintf (stderr, "%s:%s:%d %s failed %d(%s)\n", file,function, line, wot, (v) ,error_message(v)); \
+ }
+
+
+#define EXT2_MOAN(v,wot) \
+ do { \
+ EXT2_DO_MOAN(v,wot,__FILE__,__FUNCTION__,__LINE__) \
+ } while (0)
+
+
+#define EXT2_MOAN_FAIL(v,wot) \
+ do { \
+ (v)= wot; \
+ EXT2_DO_MOAN(v,#wot,__FILE__,__FUNCTION__,__LINE__) \
+ } while (0)
+
+
+
+#include "prototypes.h"
+