about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips/pread64.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-09-10 23:39:29 +0000
committerRoland McGrath <roland@gnu.org>2003-09-10 23:39:29 +0000
commit1fe4d5652dc109d04c3ef14985d37123a7dd6d9f (patch)
treea5ece31c5ba4e73d534b0eb0150f82e70d98e327 /sysdeps/unix/sysv/linux/mips/pread64.c
parent38791048930dfcf0a4dda23d04f4f188d28eb213 (diff)
downloadglibc-1fe4d5652dc109d04c3ef14985d37123a7dd6d9f.tar.gz
glibc-1fe4d5652dc109d04c3ef14985d37123a7dd6d9f.tar.xz
glibc-1fe4d5652dc109d04c3ef14985d37123a7dd6d9f.zip
* sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Fix
	syscall invocation.
	* sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
	* sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
	Also, only assert off_t size is 4 for N32 and O32, and clean up
	white space.
	* sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/pread64.c')
-rw-r--r--sysdeps/unix/sysv/linux/mips/pread64.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/pread64.c b/sysdeps/unix/sysv/linux/mips/pread64.c
index 9a20987b92..25f80df8ed 100644
--- a/sysdeps/unix/sysv/linux/mips/pread64.c
+++ b/sysdeps/unix/sysv/linux/mips/pread64.c
@@ -54,8 +54,8 @@ __libc_pread64 (fd, buf, count, offset)
   if (SINGLE_THREAD_P)
     {
      /* First try the syscall.  */
-#if defined _ABI64 && _MIPS_SIM == _ABI64
-      result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count, 0,
+#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
+      result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count,
 			       offset);
 #else
      result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
@@ -73,9 +73,8 @@ __libc_pread64 (fd, buf, count, offset)
   int oldtype = LIBC_CANCEL_ASYNC ();
 
   /* First try the syscall.  */
-#if defined _ABI64 && _MIPS_SIM == _ABI64
-  result = INLINE_SYSCALL (pread, 5, fd, CHECK_N (buf, count), count, 0,
-			   offset);
+#if (defined _ABIN32 && _MIPS_SIM == _ABIN32) || (defined _ABI64 && _MIPS_SIM == _ABI64)
+  result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
 #else
   result = INLINE_SYSCALL (pread, 6, fd, CHECK_N (buf, count), count, 0,
 			   __LONG_LONG_PAIR ((off_t) (offset >> 32),