blob: 1c0255144d3dc002ce4a9e2a43d742686ee09fcf [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
13int
14sys_renameat(struct tcb *tcp)
15{
16 if (entering(tcp)) {
17 decode_renameat(tcp);
18 }
19 return 0;
20}
21
Dmitry V. Levin19b50da2014-12-11 18:55:43 +000022#include <linux/fs.h>
Dmitry V. Levin6d20a0b2014-12-06 03:53:16 +000023#include "xlat/rename_flags.h"
24
25int
26sys_renameat2(struct tcb *tcp)
27{
28 if (entering(tcp)) {
29 decode_renameat(tcp);
30 tprints(", ");
31 printflags(rename_flags, tcp->u_arg[4], "RENAME_??");
32 }
33 return 0;
34}