From b4332be8130c00d5cd6eaa4b3a1b6c1b7f152b08 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 7 Mar 2001 13:33:37 +0000 Subject: [PATCH] Added sh_mmap(). For now, only the "use glibc" interface works, the others miss several essential functions (namely sh_ftruncate and sh_mmap). --- lib/lfs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/lfs.h b/lib/lfs.h index b9fb4872..d4d4a60b 100644 --- a/lib/lfs.h +++ b/lib/lfs.h @@ -25,10 +25,13 @@ #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 implementations of LFS in Linux 2.2 * and 2.4 differ, but fortunately for us only in things like stat64 which @@ -86,6 +89,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) +#define sh_mmap(a,l,p,f,d,o) mmap(a,l,p,f,d,o) #endif /* !SHERLOCK_CONFIG_LFS */ -- 2.39.5