2 * Sherlock Library -- Large File Support
4 * (c) 1999--2002 Martin Mares <mj@ucw.cz>
7 #ifndef _SHERLOCK_LFS_H
8 #define _SHERLOCK_LFS_H
13 #ifdef SHERLOCK_CONFIG_LFS
15 #define sh_open open64
16 #define sh_seek lseek64
17 #define sh_pread pread64
18 #define sh_pwrite pwrite64
19 #define sh_ftruncate ftruncate64
20 #define sh_mmap(a,l,p,f,d,o) mmap64(a,l,p,f,d,o)
21 #define sh_pread pread64
22 #define sh_pwrite pwrite64
24 #else /* !SHERLOCK_CONFIG_LFS */
27 #define sh_seek(f,o,w) lseek(f,o,w)
28 #define sh_ftruncate(f,o) ftruncate(f,o)
29 #define sh_mmap(a,l,p,f,d,o) mmap(a,l,p,f,d,o)
30 #define sh_pread pread
31 #define sh_pwrite pwrite
33 #endif /* !SHERLOCK_CONFIG_LFS */
35 #endif /* !_SHERLOCK_LFS_H */