1 #include "defs.h"
2
SYS_FUNC(truncate)3 SYS_FUNC(truncate)
4 {
5 printpath(tcp, tcp->u_arg[0]);
6 tprintf(", %lu", tcp->u_arg[1]);
7
8 return RVAL_DECODED;
9 }
10
SYS_FUNC(truncate64)11 SYS_FUNC(truncate64)
12 {
13 printpath(tcp, tcp->u_arg[0]);
14 printllval(tcp, ", %llu", 1);
15
16 return RVAL_DECODED;
17 }
18
SYS_FUNC(ftruncate)19 SYS_FUNC(ftruncate)
20 {
21 printfd(tcp, tcp->u_arg[0]);
22 tprintf(", %lu", tcp->u_arg[1]);
23
24 return RVAL_DECODED;
25 }
26
SYS_FUNC(ftruncate64)27 SYS_FUNC(ftruncate64)
28 {
29 printfd(tcp, tcp->u_arg[0]);
30 printllval(tcp, ", %llu", 1);
31
32 return RVAL_DECODED;
33 }
34