X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flfs.h;h=b9fb487291151febf4d81c53fe6b112d14567894;hb=fc7ef7712e802fe3deb66c89d7dff0315d1d7ce2;hp=7a63597fe3c1a086139517698a7c4b2972eb8a2a;hpb=1571781022499a9d0c32d249f89945d034d1cbff;p=libucw.git diff --git a/lib/lfs.h b/lib/lfs.h index 7a63597f..b9fb4872 100644 --- a/lib/lfs.h +++ b/lib/lfs.h @@ -1,7 +1,7 @@ /* * Sherlock Library -- Large File Support * - * (c) 1999--2000 Martin Mares + * (c) 1999--2001 Martin Mares */ #ifndef _SHERLOCK_LFS_H @@ -24,12 +24,13 @@ #define sh_seek lseek64 #define sh_pread pread64 #define sh_pwrite pwrite64 +#define sh_ftruncate ftruncate64 #define SHERLOCK_HAVE_PREAD #else /* - * Talk directly with the kernel. The LFS implementations of LFS in Linux 2.2 + * Talk directly with the kernel. The implementations of LFS in Linux 2.2 * and 2.4 differ, but fortunately for us only in things like stat64 which * we don't need to use. */ @@ -84,6 +85,7 @@ extern loff_t llseek(int fd, loff_t pos, int whence); #define sh_open open #define sh_seek(f,o,w) lseek(f,o,w) +#define sh_ftruncate(f,o) ftruncate(f,o) #endif /* !SHERLOCK_CONFIG_LFS */