linux-user: add rmdir() strace

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
This commit is contained in:
Laurent Vivier 2011-02-15 21:10:43 +01:00 committed by Riku Voipio
parent 79f2b6fcdb
commit 4de596cb50
2 changed files with 15 additions and 0 deletions

View File

@ -876,6 +876,18 @@ print_mkdirat(const struct syscallname *name,
} }
#endif #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 #ifdef TARGET_NR_mknod
static void static void
print_mknod(const struct syscallname *name, print_mknod(const struct syscallname *name,

View File

@ -495,6 +495,9 @@
#ifdef TARGET_NR_mkdirat #ifdef TARGET_NR_mkdirat
{ TARGET_NR_mkdirat, "mkdirat" , NULL, print_mkdirat, NULL }, { TARGET_NR_mkdirat, "mkdirat" , NULL, print_mkdirat, NULL },
#endif #endif
#ifdef TARGET_NR_rmdir
{ TARGET_NR_rmdir, "rmdir" , NULL, print_rmdir, NULL },
#endif
#ifdef TARGET_NR_mknod #ifdef TARGET_NR_mknod
{ TARGET_NR_mknod, "mknod" , NULL, print_mknod, NULL }, { TARGET_NR_mknod, "mknod" , NULL, print_mknod, NULL },
#endif #endif