]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] The o32 fstatat syscall behaves differently on 32 and 64 bit kernels
authorRichard Sandiford <richard@codesourcery.com>
Sun, 17 Sep 2006 19:30:46 +0000 (20:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Sep 2006 12:37:55 +0000 (13:37 +0100)
While working on a glibc patch to support the fstatat() functions[1],
I noticed that the o32 implementation behaves differently on 32-bit and
64-bit kernels; the former provides a stat64 while the latter provides
a plain (o32) stat.  I think the former is what's intended, as there is
no separate fstatat64.  It's also what x86 does.

I think this is just a case of a compat too far.

[1] I've seen Khem's patch, but I don't think it's right.

Signed-off-by: Richard Sandiford <richard@codesourcery.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/scall64-o32.S

index 2ac01412f7474a43f826673086416b096e0dc438..288ee4ac4dbb8cce221c6b530b3da04bdae4eea1 100644 (file)
@@ -498,7 +498,7 @@ sys_call_table:
        PTR     sys_mknodat                     /* 4290 */
        PTR     sys_fchownat
        PTR     compat_sys_futimesat
-       PTR     compat_sys_newfstatat
+       PTR     sys_newfstatat
        PTR     sys_unlinkat
        PTR     sys_renameat                    /* 4295 */
        PTR     sys_linkat