blob: 746e9c4a23e0c06f1a5af7eb002582ec5808ec16 [file] [log] [blame]
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +00001#include "defs.h"
2
3static void
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
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000013SYS_FUNC(renameat)
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000014{
Dmitry V. Levinfe62e332015-07-17 17:22:24 +000015 decode_renameat(tcp);
16
17 return RVAL_DECODED;
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000018}
19
Dmitry V. Levin19b50da2014-12-11 18:55:43 +000020#include <linux/fs.h>
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000021#include "xlat/rename_flags.h"
22
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000023SYS_FUNC(renameat2)
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000024{
Dmitry V. Levinfe62e332015-07-17 17:22:24 +000025 decode_renameat(tcp);
26 tprints(", ");
27 printflags(rename_flags, tcp->u_arg[4], "RENAME_??");
28
29 return RVAL_DECODED;
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000030}