+2004-09-17 Theodore Ts'o <tytso@mit.edu>
+
+ * llseek.c (blkid_llseek): On non-linux systems, use lseek64() if
+ it is present. (Addresses Debian bug #269044)
+
2004-05-12 Theodore Ts'o <tytso@mit.edu>
* read.c (blkid_read_cache): Add missing fclose() which was
blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int origin)
{
+#if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE)
+ return lseek64 (fd, offset, origin);
+#else
if ((sizeof(off_t) < sizeof(blkid_loff_t)) &&
(offset >= ((blkid_loff_t) 1 << ((sizeof(off_t)*8) - 1)))) {
errno = EOVERFLOW;
return -1;
}
return lseek(fd, (off_t) offset, origin);
+#endif
}
#endif /* linux */
+2004-09-17 Theodore Ts'o <tytso@mit.edu>
+
+ * llseek.c (ext2fs_llseek): On non-linux systems, use lseek64() if
+ it is present. (Addresses Debian bug #269044)
+
2004-07-28 Theodore Ts'o <tytso@mit.edu>
* rw_bitmaps.c (read_bitmaps), block.c (block_iterate_ind,
ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin)
{
+#if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE)
+ return lseek64 (fd, offset, origin);
+#else
if ((sizeof(off_t) < sizeof(ext2_loff_t)) &&
(offset >= ((ext2_loff_t) 1 << ((sizeof(off_t)*8) -1)))) {
errno = EINVAL;
return -1;
}
return lseek (fd, (off_t) offset, origin);
+#endif
}
#endif /* linux */