Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 3 | SYS_FUNC(truncate) |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 4 | { |
Dmitry V. Levin | 927f026 | 2015-07-16 21:29:28 +0000 | [diff] [blame] | 5 | printpath(tcp, tcp->u_arg[0]); |
| 6 | tprintf(", %lu", tcp->u_arg[1]); |
| 7 | |
| 8 | return RVAL_DECODED; |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 9 | } |
| 10 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 11 | SYS_FUNC(truncate64) |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 12 | { |
Dmitry V. Levin | 927f026 | 2015-07-16 21:29:28 +0000 | [diff] [blame] | 13 | printpath(tcp, tcp->u_arg[0]); |
| 14 | printllval(tcp, ", %llu", 1); |
| 15 | |
| 16 | return RVAL_DECODED; |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 17 | } |
| 18 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 19 | SYS_FUNC(ftruncate) |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 20 | { |
Dmitry V. Levin | 927f026 | 2015-07-16 21:29:28 +0000 | [diff] [blame] | 21 | printfd(tcp, tcp->u_arg[0]); |
| 22 | tprintf(", %lu", tcp->u_arg[1]); |
| 23 | |
| 24 | return RVAL_DECODED; |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 25 | } |
| 26 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 27 | SYS_FUNC(ftruncate64) |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 28 | { |
Dmitry V. Levin | 927f026 | 2015-07-16 21:29:28 +0000 | [diff] [blame] | 29 | printfd(tcp, tcp->u_arg[0]); |
| 30 | printllval(tcp, ", %llu", 1); |
| 31 | |
| 32 | return RVAL_DECODED; |
Dmitry V. Levin | 6934182 | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 33 | } |