]> mj.ucw.cz Git - libucw.git/commitdiff
CONFIG_LFS has been removed, CONFIG_LARGE_DB got replaced by CONFIG_LARGE_FILES.
authorMartin Mares <mj@ucw.cz>
Sat, 11 Dec 2004 12:01:05 +0000 (12:01 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 11 Dec 2004 12:01:05 +0000 (12:01 +0000)
lib/config.h
lib/lfs.h

index 8411bae746ef77ab54216b22c96f36fccfc33e76..c601cd2848da370b139b5cc9fb1ee737a770f66b 100644 (file)
@@ -34,6 +34,10 @@ typedef unsigned int sh_time_t;              /* Timestamp */
 #define NULL (void *)0
 #endif
 
-typedef s64 sh_off_t;                  /* FIXME */
+#ifdef CONFIG_LARGE_FILES              /* File positions */
+typedef s64 sh_off_t;
+#else
+typedef s32 sh_off_t;
+#endif
 
 #endif
index 85990dae3c34fe94ea1becc9022d30658a9fefc8..501a5fc712982d402c77ebfdd265381176662f24 100644 (file)
--- a/lib/lfs.h
+++ b/lib/lfs.h
@@ -13,7 +13,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#ifdef CONFIG_LFS
+#ifdef CONFIG_LARGE_FILES
 
 #define sh_open open64
 #define sh_seek lseek64
@@ -24,7 +24,7 @@
 #define sh_pread pread64
 #define sh_pwrite pwrite64
 
-#else  /* !CONFIG_LFS */
+#else  /* !CONFIG_LARGE_FILES */
 
 #define sh_open open
 #define sh_seek(f,o,w) lseek(f,o,w)
@@ -33,7 +33,7 @@
 #define sh_pread pread
 #define sh_pwrite pwrite
 
-#endif /* !CONFIG_LFS */
+#endif /* !CONFIG_LARGE_FILES */
 
 #define SHERLOCK_HAVE_PREAD