Remove the damage caused by my bad advice.
The old world never coped with > 32-bit file offsets, Mac OS doesn't have an
off64_t, and we should fix bionic to have _FILE_OFFSET_BITS rather than turd
up all calling code.
Change-Id: I0cb8b1f83fc19ce1fcf51257594551cfd1aa968c
diff --git a/src/file_linux.cc b/src/file_linux.cc
index 1f4be51..367dbe8 100644
--- a/src/file_linux.cc
+++ b/src/file_linux.cc
@@ -43,21 +43,21 @@
}
-off64_t LinuxFile::Position() {
+off_t LinuxFile::Position() {
DCHECK_GE(fd_, 0);
- return lseek64(fd_, 0, SEEK_CUR);
+ return lseek(fd_, 0, SEEK_CUR);
}
-off64_t LinuxFile::Length() {
+off_t LinuxFile::Length() {
DCHECK_GE(fd_, 0);
- off64_t position = lseek64(fd_, 0, SEEK_CUR);
+ off_t position = lseek(fd_, 0, SEEK_CUR);
if (position < 0) {
// The file is not capable of seeking. Return an error.
return -1;
}
- off64_t result = lseek64(fd_, 0, SEEK_END);
- lseek64(fd_, position, SEEK_SET);
+ off_t result = lseek(fd_, 0, SEEK_END);
+ lseek(fd_, position, SEEK_SET);
return result;
}