#ifndef CBDUTIL_H #define CBDUTIL_H /* * Platform specific macros that affect system headers */ #ifdef linux #ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE #endif #endif /* * Include and define all the basic things that would normally be * expected to be available on the current platform. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include extern uint verbose_level; void __attribute__((noreturn)) error(const char* fmt, ...); int verbose(uint level, const char* fmt, ...); bool ask_user_bool(tristate_t auto_response, const char* fmt, ...); void pblk_read(int fd, u64 pblk, u32 count, u8* data); void pblk_write(int fd, u64 pblk, u32 count, const u8* data); void cbd_check_header(const struct cbd_header* header); #endif