/*
* Sherlock Library -- Large File Support
*
- * (c) 1999--2000 Martin Mares <mj@ucw.cz>
+ * (c) 1999--2001 Martin Mares <mj@ucw.cz>
*/
#ifndef _SHERLOCK_LFS_H
#define sh_seek lseek64
#define sh_pread pread64
#define sh_pwrite pwrite64
+#define sh_ftruncate ftruncate64
+#define sh_mmap(a,l,p,f,d,o) mmap64(a,l,p,f,d,o)
#define SHERLOCK_HAVE_PREAD
#else
+#error Non-libc interface to LFS is currently broken, you have to fix it.
+
/*
- * 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.
*/
#define sh_open open
#define sh_seek(f,o,w) lseek(f,o,w)
+#define sh_ftruncate(f,o) ftruncate(f,o)
+#define sh_mmap(a,l,p,f,d,o) mmap(a,l,p,f,d,o)
#endif /* !SHERLOCK_CONFIG_LFS */