From 4dcc5dd8a7cdb20a5f5ca7fb20beb30297b93de5 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 14 Jan 2006 01:20:31 +0000 Subject: s/__read/read/ and write in fake part --- libc/sysdeps/linux/common/pread_write.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/common/pread_write.c') 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 #include +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. */ -- cgit v1.2.3