You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
478 B

#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;
}