summaryrefslogtreecommitdiff
path: root/truncate.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-07-16 21:29:28 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-07-16 22:58:12 +0000
commit927f026d4c0d6379bc1d407ced34e9ffded112bf (patch)
tree2b916bcf9001cb5bf1d39598f54ddda650c21b56 /truncate.c
parentff235c89eaac78c56772ee05849067da21000c43 (diff)
downloadstrace-927f026d4c0d6379bc1d407ced34e9ffded112bf.tar.gz
truncate.c: make use of RVAL_DECODED
* truncate.c (sys_truncate, sys_truncate64, sys_ftruncate, sys_ftruncate64): Update for RVAL_DECODED.
Diffstat (limited to 'truncate.c')
-rw-r--r--truncate.c36
1 files changed, 16 insertions, 20 deletions
diff --git a/truncate.c b/truncate.c
index e7e9968de..1428094a9 100644
--- a/truncate.c
+++ b/truncate.c
@@ -2,36 +2,32 @@
SYS_FUNC(truncate)
{
- if (entering(tcp)) {
- printpath(tcp, tcp->u_arg[0]);
- tprintf(", %lu", tcp->u_arg[1]);
- }
- return 0;
+ printpath(tcp, tcp->u_arg[0]);
+ tprintf(", %lu", tcp->u_arg[1]);
+
+ return RVAL_DECODED;
}
SYS_FUNC(truncate64)
{
- if (entering(tcp)) {
- printpath(tcp, tcp->u_arg[0]);
- printllval(tcp, ", %llu", 1);
- }
- return 0;
+ printpath(tcp, tcp->u_arg[0]);
+ printllval(tcp, ", %llu", 1);
+
+ return RVAL_DECODED;
}
SYS_FUNC(ftruncate)
{
- if (entering(tcp)) {
- printfd(tcp, tcp->u_arg[0]);
- tprintf(", %lu", tcp->u_arg[1]);
- }
- return 0;
+ printfd(tcp, tcp->u_arg[0]);
+ tprintf(", %lu", tcp->u_arg[1]);
+
+ return RVAL_DECODED;
}
SYS_FUNC(ftruncate64)
{
- if (entering(tcp)) {
- printfd(tcp, tcp->u_arg[0]);
- printllval(tcp, ", %llu", 1);
- }
- return 0;
+ printfd(tcp, tcp->u_arg[0]);
+ printllval(tcp, ", %llu", 1);
+
+ return RVAL_DECODED;
}