diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-27 15:37:19 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-27 15:37:19 +0000 |
commit | ddbbc1dfe53a6d7de69d648a5073c8f812832b11 (patch) | |
tree | c3d14245f101720851b43be1d13b41836510b213 /libc/sysdeps/linux/mips/pread_write.c | |
parent | 6167a20f664e6bf46ca4fce4b2b608dd1249000f (diff) |
Add some prototypes to arch specific pread_write.c, mips has __mips64 questionable ifdefs
Diffstat (limited to 'libc/sysdeps/linux/mips/pread_write.c')
-rw-r--r-- | libc/sysdeps/linux/mips/pread_write.c | 4 |
1 files changed, 4 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; |