]> git.proxmox.com Git - qemu.git/commitdiff
linux-user: add rmdir() strace
authorLaurent Vivier <laurent@vivier.eu>
Tue, 15 Feb 2011 20:10:43 +0000 (21:10 +0100)
committerRiku Voipio <riku.voipio@nokia.com>
Thu, 17 Feb 2011 09:46:34 +0000 (11:46 +0200)
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
linux-user/strace.c
linux-user/strace.list

index 18366661cd442ef77636a0c5b03c28c39541f0e9..05277c018358d9374c4135f7fab091b49ca36bab 100644 (file)
@@ -876,6 +876,18 @@ print_mkdirat(const struct syscallname *name,
 }
 #endif
 
+#ifdef TARGET_NR_rmdir
+static void
+print_rmdir(const struct syscallname *name,
+    abi_long arg0, abi_long arg1, abi_long arg2,
+    abi_long arg3, abi_long arg4, abi_long arg5)
+{
+    print_syscall_prologue(name);
+    print_string(arg0, 0);
+    print_syscall_epilogue(name);
+}
+#endif
+
 #ifdef TARGET_NR_mknod
 static void
 print_mknod(const struct syscallname *name,
index d7be0e7a68101f4de6cc7f02a9e93ec50f0dfb12..563a67f0a2e5b6f6b3f78b44264664b0532a8a2d 100644 (file)
 #ifdef TARGET_NR_mkdirat
 { TARGET_NR_mkdirat, "mkdirat" , NULL, print_mkdirat, NULL },
 #endif
+#ifdef TARGET_NR_rmdir
+{ TARGET_NR_rmdir, "rmdir" , NULL, print_rmdir, NULL },
+#endif
 #ifdef TARGET_NR_mknod
 { TARGET_NR_mknod, "mknod" , NULL, print_mknod, NULL },
 #endif