X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fio.h;h=739921355fe1513c06d043fe1d5e4d8d91601add;hb=d9c55a4d021b4a317a25f14f89468d62592aae0b;hp=01d077994b15b40ee232a67a126fc074a68514c9;hpb=ba1c173f544383aa6553a75dee6e6858d8f243a4;p=libucw.git diff --git a/ucw/io.h b/ucw/io.h index 01d07799..73992135 100644 --- a/ucw/io.h +++ b/ucw/io.h @@ -12,8 +12,18 @@ #include #include +#include +#include + +#ifdef CONFIG_UCW_CLEAN_ABI +#define careful_read ucw_careful_read +#define careful_write ucw_careful_write +#define mmap_file ucw_mmap_file +#define munmap_file ucw_munmap_file +#define sync_dir ucw_sync_dir +#endif -#ifdef CONFIG_LFS +#ifdef CONFIG_UCW_LARGE_FILES #define ucw_open open64 #define ucw_seek lseek64 @@ -27,7 +37,7 @@ #define ucw_fstat fstat64 typedef struct stat64 ucw_stat_t; -#else /* !CONFIG_LFS */ +#else /* !CONFIG_UCW_LARGE_FILES */ #define ucw_open open #define ucw_seek(f,o,w) lseek(f,o,w) @@ -39,7 +49,7 @@ typedef struct stat64 ucw_stat_t; #define ucw_fstat fstat typedef struct stat ucw_stat_t; -#endif /* !CONFIG_LFS */ +#endif /* !CONFIG_UCW_LARGE_FILES */ #if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0) #define ucw_fdatasync fdatasync