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