blob: b2bb222062f2d0b787353aa172bcd182c5a3b524 [file] [log] [blame]
Dmitry V. Levin231b19f2014-12-06 03:53:16 +00001#include "defs.h"
2
3#include <fcntl.h>
4
Dmitry V. Levin231b19f2014-12-06 03:53:16 +00005#include "xlat/at_flags.h"
6
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00007SYS_FUNC(link)
Dmitry V. Levin231b19f2014-12-06 03:53:16 +00008{
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. Levina0bd3742015-04-07 01:36:50 +000017SYS_FUNC(linkat)
Dmitry V. Levin231b19f2014-12-06 03:53:16 +000018{
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. Levina0bd3742015-04-07 01:36:50 +000031SYS_FUNC(unlinkat)
Dmitry V. Levin231b19f2014-12-06 03:53:16 +000032{
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. Levina0bd3742015-04-07 01:36:50 +000042SYS_FUNC(symlinkat)
Dmitry V. Levin231b19f2014-12-06 03:53:16 +000043{
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}