Dmitry V. Levin
89636759d7
Remove temporary macros created for transition from long to kernel_ulong_t. Automatically replace PRI_kr[dux] with PRI_kl[dux] using $ git grep -l 'PRI_kr[dux]' | xargs sed -ri 's/PRI_kr([dux])/PRI_kl\1/g' * defs.h (PRI_krd, PRI_kru, PRI_krx): Remove. All users updated.
34 lines
478 B
C
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;
|
|
}
|