strace/truncate.c
Dmitry V. Levin 927f026d4c truncate.c: make use of RVAL_DECODED
* truncate.c (sys_truncate, sys_truncate64, sys_ftruncate,
sys_ftruncate64): Update for RVAL_DECODED.
2015-07-16 22:58:12 +00:00

34 lines
466 B
C

#include "defs.h"
SYS_FUNC(truncate)
{
printpath(tcp, tcp->u_arg[0]);
tprintf(", %lu", tcp->u_arg[1]);
return RVAL_DECODED;
}
SYS_FUNC(truncate64)
{
printpath(tcp, tcp->u_arg[0]);
printllval(tcp, ", %llu", 1);
return RVAL_DECODED;
}
SYS_FUNC(ftruncate)
{
printfd(tcp, tcp->u_arg[0]);
tprintf(", %lu", tcp->u_arg[1]);
return RVAL_DECODED;
}
SYS_FUNC(ftruncate64)
{
printfd(tcp, tcp->u_arg[0]);
printllval(tcp, ", %llu", 1);
return RVAL_DECODED;
}