diff options
author | fishsoupisgood <github@madingley.org> | 2018-05-12 17:10:22 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2018-05-12 17:10:22 +0100 |
commit | b6afefb5d12dbed4801272dae3048588dfc1cb9a (patch) | |
tree | 0dc99b5b05d54cd5496b26fa37e19cc79f0b4b5e /src/project.h | |
download | ext_clone-b6afefb5d12dbed4801272dae3048588dfc1cb9a.tar.gz ext_clone-b6afefb5d12dbed4801272dae3048588dfc1cb9a.tar.bz2 ext_clone-b6afefb5d12dbed4801272dae3048588dfc1cb9a.zip |
first working version
Diffstat (limited to 'src/project.h')
-rw-r--r-- | src/project.h | 56 |
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" + |