summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/mips/pread_write.c4
-rw-r--r--libc/sysdeps/linux/powerpc/pread_write.c4
-rw-r--r--libc/sysdeps/linux/sh/pread_write.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/pread_write.c b/libc/sysdeps/linux/mips/pread_write.c
index edac1a283..ed8ce37fd 100644
--- a/libc/sysdeps/linux/mips/pread_write.c
+++ b/libc/sysdeps/linux/mips/pread_write.c
@@ -24,6 +24,7 @@
#endif
#ifdef __NR_pread
+extern __typeof(pread) __libc_pread;
# ifdef __mips64
_syscall4(ssize_t, pread, int, fd, void *, buf, size_t, count, off_t, offset);
@@ -39,6 +40,7 @@ ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset)
weak_alias(__libc_pread,pread)
# ifdef __UCLIBC_HAS_LFS__
+extern __typeof(pread64) __libc_pread64;
ssize_t __libc_pread64(int fd, void *buf, size_t count, off64_t offset)
{
uint32_t low = offset & 0xffffffff;
@@ -61,6 +63,7 @@ weak_alias(__libc_pread64,pread64)
#endif
#ifdef __NR_pwrite
+extern __typeof(pwrite) __libc_pwrite;
# ifdef __mips64
_syscall4(ssize_t, pwrite, int, fd, const void *, buf, size_t, count, off_t, offset);
@@ -76,6 +79,7 @@ ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset)
weak_alias(__libc_pwrite,pwrite)
# ifdef __UCLIBC_HAS_LFS__
+extern __typeof(pwrite64) __libc_pwrite64;
ssize_t __libc_pwrite64(int fd, const void *buf, size_t count, off64_t offset)
{
uint32_t low = offset & 0xffffffff;
diff --git a/libc/sysdeps/linux/powerpc/pread_write.c b/libc/sysdeps/linux/powerpc/pread_write.c
index e3fb6a312..0adccf572 100644
--- a/libc/sysdeps/linux/powerpc/pread_write.c
+++ b/libc/sysdeps/linux/powerpc/pread_write.c
@@ -20,6 +20,7 @@
#endif
#ifdef __NR_pread
+extern __typeof(pread) __libc_pread;
# define __NR___syscall_pread __NR_pread
static inline _syscall4(ssize_t, __syscall_pread, int, fd,
void *, buf, size_t, count, off64_t, offset);
@@ -31,6 +32,7 @@ ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset)
weak_alias(__libc_pread,pread)
# ifdef __UCLIBC_HAS_LFS__
+extern __typeof(pread64) __libc_pread64;
ssize_t __libc_pread64(int fd, void *buf, size_t count, off64_t offset)
{
return(__syscall_pread(fd, buf, count, offset));
@@ -41,6 +43,7 @@ weak_alias(__libc_pread64,pread64)
#ifdef __NR_pwrite
+extern __typeof(pwrite) __libc_pwrite;
# define __NR___syscall_pwrite __NR_pwrite
static inline _syscall4(ssize_t, __syscall_pwrite, int, fd,
const void *, buf, size_t, count, off64_t, offset);
@@ -52,6 +55,7 @@ ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset)
weak_alias(__libc_pwrite,pwrite)
# ifdef __UCLIBC_HAS_LFS__
+extern __typeof(pwrite64) __libc_pwrite64;
ssize_t __libc_pwrite64(int fd, const void *buf, size_t count, off64_t offset)
{
return(__syscall_pwrite(fd, buf, count, offset));
diff --git a/libc/sysdeps/linux/sh/pread_write.c b/libc/sysdeps/linux/sh/pread_write.c
index 0cfac24f3..dc756d647 100644
--- a/libc/sysdeps/linux/sh/pread_write.c
+++ b/libc/sysdeps/linux/sh/pread_write.c
@@ -24,6 +24,7 @@
#endif
#ifdef __NR_pread
+extern __typeof(pread) __libc_pread;
# define __NR___syscall_pread __NR_pread
static inline _syscall6(ssize_t, __syscall_pread, int, fd, void *, buf,
size_t, count, int, dummy, off_t, offset_hi, off_t, offset_lo);
@@ -35,6 +36,7 @@ ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset)
weak_alias(__libc_pread,pread)
# ifdef __UCLIBC_HAS_LFS__
+extern __typeof(pread64) __libc_pread64;
ssize_t __libc_pread64(int fd, void *buf, size_t count, off64_t offset)
{
uint32_t low = offset & 0xffffffff;
@@ -55,6 +57,7 @@ weak_alias(__libc_pread64,pread64)
#endif
#ifdef __NR_pwrite
+extern __typeof(pwrite) __libc_pwrite;
# define __NR___syscall_pwrite __NR_pwrite
static inline _syscall6(ssize_t, __syscall_pwrite, int, fd, const void *, buf,
size_t, count, int, dummy, off_t, offset_hi, off_t, offset_lo);
@@ -66,6 +69,7 @@ ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset)
weak_alias(__libc_pwrite,pwrite)
# ifdef __UCLIBC_HAS_LFS__
+extern __typeof(pwrite64) __libc_pwrite64;
ssize_t __libc_pwrite64(int fd, const void *buf, size_t count, off64_t offset)
{
uint32_t low = offset & 0xffffffff;