linux-mips
[Top] [All Lists]

[PATCH] open() forces O_LARGEFILE for o32 on 64bit kernels

To: linux-mips@linux-mips.org
Subject: [PATCH] open() forces O_LARGEFILE for o32 on 64bit kernels
From: Thiemo Seufer <ths@networkno.de>
Date: Sun, 28 May 2006 15:02:53 +0100
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060403
Hello All,

open() always sets the O_LARGEFILE flag for the o32 ABI implementation
of a 64bit kernel. The appended patch fixes it.


Thiemo


--- a/arch/mips/kernel/scall64-o32.S    2006-04-24 12:02:26.000000000 +0100
+++ b/arch/mips/kernel/scall64-o32.S    2006-05-28 14:56:23.000000000 +0100
@@ -209,7 +209,7 @@ sys_call_table:
        PTR     sys_fork
        PTR     sys_read
        PTR     sys_write
-       PTR     sys_open                        /* 4005 */
+       PTR     compat_sys_open                 /* 4005 */
        PTR     sys_close
        PTR     sys_waitpid
        PTR     sys_creat

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] open() forces O_LARGEFILE for o32 on 64bit kernels, Thiemo Seufer <=