]> mj.ucw.cz Git - libucw.git/blob - lib/lfs.h
Added license notices to all library files which are not specific
[libucw.git] / lib / lfs.h
1 /*
2  *      Sherlock Library -- Large File Support
3  *
4  *      (c) 1999--2002 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #ifndef _SHERLOCK_LFS_H
11 #define _SHERLOCK_LFS_H
12
13 #include <fcntl.h>
14 #include <unistd.h>
15
16 #ifdef SHERLOCK_CONFIG_LFS
17
18 #define sh_open open64
19 #define sh_seek lseek64
20 #define sh_pread pread64
21 #define sh_pwrite pwrite64
22 #define sh_ftruncate ftruncate64
23 #define sh_mmap(a,l,p,f,d,o) mmap64(a,l,p,f,d,o)
24 #define sh_pread pread64
25 #define sh_pwrite pwrite64
26
27 #else   /* !SHERLOCK_CONFIG_LFS */
28
29 #define sh_open open
30 #define sh_seek(f,o,w) lseek(f,o,w)
31 #define sh_ftruncate(f,o) ftruncate(f,o)
32 #define sh_mmap(a,l,p,f,d,o) mmap(a,l,p,f,d,o)
33 #define sh_pread pread
34 #define sh_pwrite pwrite
35
36 #endif  /* !SHERLOCK_CONFIG_LFS */
37
38 #define SHERLOCK_HAVE_PREAD
39
40 #endif  /* !_SHERLOCK_LFS_H */