]> granicus.if.org Git - strace/blob - umount.c
Print the first argument of umount2 syscall as a path
[strace] / umount.c
1 #include "defs.h"
2
3 #define MNT_FORCE       0x00000001      /* Attempt to forcibily umount */
4 #define MNT_DETACH      0x00000002      /* Just detach from the tree */
5 #define MNT_EXPIRE      0x00000004      /* Mark for expiry */
6
7 #include "xlat/umount_flags.h"
8
9 SYS_FUNC(umount2)
10 {
11         printpath(tcp, tcp->u_arg[0]);
12         tprints(", ");
13         printflags(umount_flags, tcp->u_arg[1], "MNT_???");
14
15         return RVAL_DECODED;
16 }