Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
| 3 | static void |
| 4 | decode_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 | |
| 13 | int |
| 14 | sys_renameat(struct tcb *tcp) |
| 15 | { |
| 16 | if (entering(tcp)) { |
| 17 | decode_renameat(tcp); |
| 18 | } |
| 19 | return 0; |
| 20 | } |
| 21 | |
Dmitry V. Levin | 19b50da | 2014-12-11 18:55:43 +0000 | [diff] [blame^] | 22 | #include <linux/fs.h> |
Dmitry V. Levin | 6d20a0b | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 23 | #include "xlat/rename_flags.h" |
| 24 | |
| 25 | int |
| 26 | sys_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 | } |