patch-2.4.25 linux-2.4.25/arch/x86_64/ia32/sys_ia32.c
Next file: linux-2.4.25/arch/x86_64/kernel/acpi.c
Previous file: linux-2.4.25/arch/x86_64/ia32/ptrace32.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/arch/x86_64/ia32/sys_ia32.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.24/arch/x86_64/ia32/sys_ia32.c linux-2.4.25/arch/x86_64/ia32/sys_ia32.c
@@ -16,7 +16,7 @@
*
* This file assumes that there is a hole at the end of user address space.
*
- * $Id: sys_ia32.c,v 1.66 2003/11/10 13:09:54 ak Exp $
+ * $Id: sys_ia32.c,v 1.69 2004/01/29 02:52:13 ak Exp $
*/
#include <linux/config.h>
@@ -174,12 +174,15 @@
return putstat(statbuf, &s);
}
+extern long sys_truncate(char *, loff_t);
+
asmlinkage long
sys32_truncate64(char * filename, unsigned long offset_low, unsigned long offset_high)
{
return sys_truncate(filename, ((loff_t) offset_high << 32) | offset_low);
}
+extern long sys_ftruncate(int, loff_t);
asmlinkage long
sys32_ftruncate64(unsigned int fd, unsigned long offset_low, unsigned long offset_high)
@@ -1453,8 +1456,12 @@
asmlinkage long sys32_ni_syscall(int call)
{
+ /* Disable for now because the emulation should be pretty complete
+ and we miss some syscalls from 2.6. */
+#if 0
printk(KERN_INFO "IA32 syscall %d from %s not implemented\n", call,
current->comm);
+#endif
return -ENOSYS;
}
@@ -3035,7 +3042,7 @@
static int __init ia32_init (void)
{
- printk("IA32 emulation $Id: sys_ia32.c,v 1.66 2003/11/10 13:09:54 ak Exp $\n");
+ printk("IA32 emulation $Id: sys_ia32.c,v 1.69 2004/01/29 02:52:13 ak Exp $\n");
ia32_exec_domain.signal_map = default_exec_domain.signal_map;
ia32_exec_domain.signal_invmap = default_exec_domain.signal_invmap;
register_exec_domain(&ia32_exec_domain);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)