1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/BBA1.5_platform/apps/public/strace-4.16/truncate.c
2024-07-22 01:58:46 -03:00

34 lines
478 B
C

#include "defs.h"
SYS_FUNC(truncate)
{
printpath(tcp, tcp->u_arg[0]);
tprintf(", %" PRI_klu, 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(", %" PRI_klu, tcp->u_arg[1]);
return RVAL_DECODED;
}
SYS_FUNC(ftruncate64)
{
printfd(tcp, tcp->u_arg[0]);
printllval(tcp, ", %llu", 1);
return RVAL_DECODED;
}