summaryrefslogtreecommitdiffstats
path: root/exfat
diff options
context:
space:
mode:
authorAndrey Alekseenko <andrei.alekseenko@gmail.com>2016-01-15 06:02:58 +0100
committerDees Troy <dees_troy@teamw.in>2016-01-19 23:24:47 +0100
commitf510988cf4e64d38500729cc0a621b631d3e258d (patch)
tree7f35e1a5ea56ef5665f4be7c2597054e8d591584 /exfat
parentUpdate qcom hardware crypto code (diff)
downloadandroid_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.tar
android_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.tar.gz
android_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.tar.bz2
android_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.tar.lz
android_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.tar.xz
android_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.tar.zst
android_bootable_recovery-f510988cf4e64d38500729cc0a621b631d3e258d.zip
Diffstat (limited to 'exfat')
-rw-r--r--exfat/libexfat/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exfat/libexfat/io.c b/exfat/libexfat/io.c
index 3c3bd270b..60aabb5ec 100644
--- a/exfat/libexfat/io.c
+++ b/exfat/libexfat/io.c
@@ -298,7 +298,7 @@ loff_t exfat_seek(struct exfat_dev* dev, loff_t offset, int whence)
/* XXX SEEK_CUR will be handled incorrectly */
return dev->pos = lseek(dev->fd, offset, whence);
#else
- return lseek(dev->fd, offset, whence);
+ return lseek64(dev->fd, offset, whence);
#endif
}
@@ -332,7 +332,7 @@ ssize_t exfat_pread(struct exfat_dev* dev, void* buffer, size_t size,
#ifdef USE_UBLIO
return ublio_pread(dev->ufh, buffer, size, offset);
#else
- return pread(dev->fd, buffer, size, offset);
+ return pread64(dev->fd, buffer, size, offset);
#endif
}
@@ -342,7 +342,7 @@ ssize_t exfat_pwrite(struct exfat_dev* dev, const void* buffer, size_t size,
#ifdef USE_UBLIO
return ublio_pwrite(dev->ufh, buffer, size, offset);
#else
- return pwrite(dev->fd, buffer, size, offset);
+ return pwrite64(dev->fd, buffer, size, offset);
#endif
}