summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/pread_write.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 01:20:31 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 01:20:31 +0000
commit4dcc5dd8a7cdb20a5f5ca7fb20beb30297b93de5 (patch)
tree2f43d8a67de9f7a26c3df9c5fd19a7553814b496 /libc/sysdeps/linux/common/pread_write.c
parent7a460199ade21f597a2500bbd3b25f236075bce3 (diff)
s/__read/read/ and write in fake part
Diffstat (limited to 'libc/sysdeps/linux/common/pread_write.c')
-rw-r--r--libc/sysdeps/linux/common/pread_write.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/pread_write.c b/libc/sysdeps/linux/common/pread_write.c
index c622b22d2..090f73fd4 100644
--- a/libc/sysdeps/linux/common/pread_write.c
+++ b/libc/sysdeps/linux/common/pread_write.c
@@ -40,6 +40,9 @@
#include <unistd.h>
#include <stdint.h>
+libc_hidden_proto(read)
+libc_hidden_proto(write)
+
#ifdef __UCLIBC_HAS_LFS__
libc_hidden_proto(lseek64)
#else
@@ -115,10 +118,10 @@ static ssize_t __fake_pread_write(int fd, void *buf,
if (do_pwrite==1) {
/* Write the data. */
- result = __write(fd, buf, count);
+ result = write(fd, buf, count);
} else {
/* Read the data. */
- result = __read(fd, buf, count);
+ result = read(fd, buf, count);
}
/* Now we have to restore the position. If this fails we
@@ -153,10 +156,10 @@ static ssize_t __fake_pread_write64(int fd, void *buf,
if (do_pwrite==1) {
/* Write the data. */
- result = __write(fd, buf, count);
+ result = write(fd, buf, count);
} else {
/* Read the data. */
- result = __read(fd, buf, count);
+ result = read(fd, buf, count);
}
/* Now we have to restore the position. */