strace/link.c
Dmitry V. Levin 4e33965809 link.c: make use of RVAL_DECODED
* link.c (sys_link, sys_linkat, sys_unlinkat, sys_symlinkat): Update
for RVAL_DECODED.
2015-07-20 01:42:01 +00:00

48 lines
785 B
C

#include "defs.h"
#include <fcntl.h>
#include "xlat/at_flags.h"
SYS_FUNC(link)
{
printpath(tcp, tcp->u_arg[0]);
tprints(", ");
printpath(tcp, tcp->u_arg[1]);
return RVAL_DECODED;
}
SYS_FUNC(linkat)
{
print_dirfd(tcp, tcp->u_arg[0]);
printpath(tcp, tcp->u_arg[1]);
tprints(", ");
print_dirfd(tcp, tcp->u_arg[2]);
printpath(tcp, tcp->u_arg[3]);
tprints(", ");
printflags(at_flags, tcp->u_arg[4], "AT_???");
return RVAL_DECODED;
}
SYS_FUNC(unlinkat)
{
print_dirfd(tcp, tcp->u_arg[0]);
printpath(tcp, tcp->u_arg[1]);
tprints(", ");
printflags(at_flags, tcp->u_arg[2], "AT_???");
return RVAL_DECODED;
}
SYS_FUNC(symlinkat)
{
printpath(tcp, tcp->u_arg[0]);
tprints(", ");
print_dirfd(tcp, tcp->u_arg[1]);
printpath(tcp, tcp->u_arg[2]);
return RVAL_DECODED;
}