blob: 1428094a908a47394cbff7f77d4fce3bfbb37197 [file] [log] [blame]
Dmitry V. Levin69341822014-12-06 03:53:16 +00001#include "defs.h"
2
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00003SYS_FUNC(truncate)
Dmitry V. Levin69341822014-12-06 03:53:16 +00004{
Dmitry V. Levin927f0262015-07-16 21:29:28 +00005 printpath(tcp, tcp->u_arg[0]);
6 tprintf(", %lu", tcp->u_arg[1]);
7
8 return RVAL_DECODED;
Dmitry V. Levin69341822014-12-06 03:53:16 +00009}
10
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000011SYS_FUNC(truncate64)
Dmitry V. Levin69341822014-12-06 03:53:16 +000012{
Dmitry V. Levin927f0262015-07-16 21:29:28 +000013 printpath(tcp, tcp->u_arg[0]);
14 printllval(tcp, ", %llu", 1);
15
16 return RVAL_DECODED;
Dmitry V. Levin69341822014-12-06 03:53:16 +000017}
18
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000019SYS_FUNC(ftruncate)
Dmitry V. Levin69341822014-12-06 03:53:16 +000020{
Dmitry V. Levin927f0262015-07-16 21:29:28 +000021 printfd(tcp, tcp->u_arg[0]);
22 tprintf(", %lu", tcp->u_arg[1]);
23
24 return RVAL_DECODED;
Dmitry V. Levin69341822014-12-06 03:53:16 +000025}
26
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000027SYS_FUNC(ftruncate64)
Dmitry V. Levin69341822014-12-06 03:53:16 +000028{
Dmitry V. Levin927f0262015-07-16 21:29:28 +000029 printfd(tcp, tcp->u_arg[0]);
30 printllval(tcp, ", %llu", 1);
31
32 return RVAL_DECODED;
Dmitry V. Levin69341822014-12-06 03:53:16 +000033}