Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
| 3 | #include <fcntl.h> |
| 4 | |
Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 5 | #include "xlat/at_flags.h" |
| 6 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 7 | SYS_FUNC(link) |
Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 8 | { |
| 9 | if (entering(tcp)) { |
| 10 | printpath(tcp, tcp->u_arg[0]); |
| 11 | tprints(", "); |
| 12 | printpath(tcp, tcp->u_arg[1]); |
| 13 | } |
| 14 | return 0; |
| 15 | } |
| 16 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 17 | SYS_FUNC(linkat) |
Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 18 | { |
| 19 | if (entering(tcp)) { |
| 20 | print_dirfd(tcp, tcp->u_arg[0]); |
| 21 | printpath(tcp, tcp->u_arg[1]); |
| 22 | tprints(", "); |
| 23 | print_dirfd(tcp, tcp->u_arg[2]); |
| 24 | printpath(tcp, tcp->u_arg[3]); |
| 25 | tprints(", "); |
| 26 | printflags(at_flags, tcp->u_arg[4], "AT_???"); |
| 27 | } |
| 28 | return 0; |
| 29 | } |
| 30 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 31 | SYS_FUNC(unlinkat) |
Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 32 | { |
| 33 | if (entering(tcp)) { |
| 34 | print_dirfd(tcp, tcp->u_arg[0]); |
| 35 | printpath(tcp, tcp->u_arg[1]); |
| 36 | tprints(", "); |
| 37 | printflags(at_flags, tcp->u_arg[2], "AT_???"); |
| 38 | } |
| 39 | return 0; |
| 40 | } |
| 41 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 42 | SYS_FUNC(symlinkat) |
Dmitry V. Levin | 231b19f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 43 | { |
| 44 | if (entering(tcp)) { |
| 45 | printpath(tcp, tcp->u_arg[0]); |
| 46 | tprints(", "); |
| 47 | print_dirfd(tcp, tcp->u_arg[1]); |
| 48 | printpath(tcp, tcp->u_arg[2]); |
| 49 | } |
| 50 | return 0; |
| 51 | } |