1 #include "defs.h" 2 3 static void decode_renameat(struct tcb * tcp)4decode_renameat(struct tcb *tcp) 5 { 6 print_dirfd(tcp, tcp->u_arg[0]); 7 printpath(tcp, tcp->u_arg[1]); 8 tprints(", "); 9 print_dirfd(tcp, tcp->u_arg[2]); 10 printpath(tcp, tcp->u_arg[3]); 11 } 12 SYS_FUNC(renameat)13SYS_FUNC(renameat) 14 { 15 decode_renameat(tcp); 16 17 return RVAL_DECODED; 18 } 19 20 #include <linux/fs.h> 21 #include "xlat/rename_flags.h" 22 SYS_FUNC(renameat2)23SYS_FUNC(renameat2) 24 { 25 decode_renameat(tcp); 26 tprints(", "); 27 printflags(rename_flags, tcp->u_arg[4], "RENAME_??"); 28 29 return RVAL_DECODED; 30 } 31