README-linux: updated to note that strace might not compile
with development kernels
bjm.c: sys_query_module: check if malloc succeeds
system.c: sys_cap[gs]et(): check if malloc succeeds, only malloc once
linux/syscallent.h: updated for 2.3.99pre3
linux/alpha/syscallent.h: updated for 2.3.99pre3, add all osf syscalls
even though Linux doesn't implement them
syscall.c: add global variables for MIPS registers as well
syscall.c: move global variables to before get_scno since that uses them
util.c: oops, misspelled defined
process.c: fix ptrace calls in change_syscall
mem.c: decode sys_madvise
Merge patch from Topi Miettinen <Topi.Miettinen@nic.fi>
+ add support for quotactl, fdatasync, mlock, mlockall, munlockall & acct
+ small fix for RLIMIT_* and RUSAGE_BOTH
+ enhace support for capget and capset
diff --git a/syscall.c b/syscall.c
index 9984988..47bf16d 100644
--- a/syscall.c
+++ b/syscall.c
@@ -569,6 +569,34 @@
return 0;
}
+
+#ifdef LINUX
+#if defined (I386)
+ static long eax;
+#elif defined (IA64)
+ long r8, r10, psr;
+ long ia32 = 0;
+#elif defined (POWERPC)
+ static long result,flags;
+#elif defined (M68K)
+ static int d0;
+#elif defined (ARM)
+ static int r0;
+#elif defined (ALPHA)
+ static long r0;
+ static long a3;
+#elif defined (SPARC)
+ static struct pt_regs regs;
+ static unsigned long trap;
+#elif defined(MIPS)
+ static long a3;
+ static long r2;
+#elif defined(S390)
+ static long gpr2;
+ static long pc;
+#endif
+#endif /* LINUX */
+
int
get_scno(tcp)
struct tcb *tcp;
@@ -751,29 +779,6 @@
return 1;
}
-#ifdef LINUX
-#if defined (I386)
- static long eax;
-#elif defined (IA64)
- long r8, r10, psr;
- long ia32 = 0;
-#elif defined (POWERPC)
- static long result,flags;
-#elif defined (M68K)
- static int d0;
-#elif defined (ARM)
- static int r0;
-#elif defined (ALPHA)
- static long r0;
- static long a3;
-#elif defined (SPARC)
- static struct pt_regs regs;
- static unsigned long trap;
-#elif defined(S390)
- static long gpr2;
- static long pc;
-#endif
-#endif /* LINUX */
int
syscall_fixup(tcp)