summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/mips/pread_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/mips/pread_write.c b/libc/sysdeps/linux/mips/pread_write.c
index 3dc97c993..1220fec54 100644
--- a/libc/sysdeps/linux/mips/pread_write.c
+++ b/libc/sysdeps/linux/mips/pread_write.c
@@ -13,14 +13,14 @@
/* We should generalize this for 32bit userlands w/64bit regs. This applies
* to the x86_64 x32 and the mips n32 ABIs. */
#if _MIPS_SIM == _MIPS_SIM_NABI32
-# define __NR___syscall_pread __NR_pread
+# define __NR___syscall_pread __NR_pread64
static _syscall4(ssize_t, __syscall_pread, int, fd, void *, buf, size_t, count, off_t, offset)
# define MY_PREAD(fd, buf, count, offset) \
__syscall_pread(fd, buf, count, offset)
# define MY_PREAD64(fd, buf, count, offset) \
__syscall_pread(fd, buf, count, offset)
-# define __NR___syscall_pwrite __NR_pwrite
+# define __NR___syscall_pwrite __NR_pwrite64
static _syscall4(ssize_t, __syscall_pwrite, int, fd, const void *, buf, size_t, count, off_t, offset)
# define MY_PWRITE(fd, buf, count, offset) \
__syscall_pwrite(fd, buf, count, offset)