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/file.c b/file.c
index 8dd2857..e4780b5 100644
--- a/file.c
+++ b/file.c
@@ -611,7 +611,7 @@
realprintstat(tcp, &statbuf);
}
-#ifdef STAT64
+#ifdef HAVE_STAT64
static void
printstat64(tcp, addr)
struct tcb *tcp;
@@ -683,7 +683,7 @@
else
tprintf("...}");
}
-#endif /* STAT64 */
+#endif /* HAVE_STAT64 */
#if defined(linux) && !defined(IA64)
static void
@@ -1230,6 +1230,19 @@
#endif /* SUNOS4 */
+int
+sys_pivotroot(tcp)
+struct tcb *tcp;
+{
+ if (entering(tcp)) {
+ printpath(tcp, tcp->u_arg[0]);
+ tprintf(", ");
+ printpath(tcp, tcp->u_arg[1]);
+ }
+ return 0;
+}
+
+
/* directory */
int
sys_chdir(tcp)