summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-03-17 14:00:20 -0700
committerAndroid Code Review <code-review@android.com>2010-03-17 14:00:20 -0700
commitb0ae864dffd288c3547618b3a193569ea579eea5 (patch)
tree1a14cdfee83eea3c73688af113cec636193470e3
parenta9c41a8e0a62f70a37f7040740a9b1ef06a66612 (diff)
parente31c1d0b48b4654d3562fc6c9dd648d72356449e (diff)
downloadbionic-b0ae864dffd288c3547618b3a193569ea579eea5.zip
bionic-b0ae864dffd288c3547618b3a193569ea579eea5.tar.gz
bionic-b0ae864dffd288c3547618b3a193569ea579eea5.tar.bz2
Merge "Fix pread()/pwrite() stubs"
-rw-r--r--libc/unistd/pread.c4
-rw-r--r--libc/unistd/pwrite.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libc/unistd/pread.c b/libc/unistd/pread.c
index d2f71f7..b55623e 100644
--- a/libc/unistd/pread.c
+++ b/libc/unistd/pread.c
@@ -25,10 +25,10 @@
#include <sys/types.h>
#include <unistd.h>
-extern int __pread64(int fd, void *buf, size_t nbytes, off_t lo, off_t hi);
+extern int __pread64(int fd, void *buf, size_t nbytes, loff_t offset);
ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset)
{
- return __pread64(fd, buf, nbytes, offset, 0);
+ return __pread64(fd, buf, nbytes, offset);
}
diff --git a/libc/unistd/pwrite.c b/libc/unistd/pwrite.c
index 5adf40a..ea080d2 100644
--- a/libc/unistd/pwrite.c
+++ b/libc/unistd/pwrite.c
@@ -28,10 +28,10 @@
#include <sys/types.h>
#include <unistd.h>
-extern int __pwrite64(int fd, void *buf, size_t nbytes, off_t lo, off_t hi);
+extern int __pwrite64(int fd, void *buf, size_t nbytes, loff_t offset);
ssize_t pwrite(int fd, void *buf, size_t nbytes, off_t offset)
{
- return __pwrite64(fd, buf, nbytes, offset, 0);
+ return __pwrite64(fd, buf, nbytes, offset);
}