Dmitry V. Levin | 2795a5f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | |
Dmitry V. Levin | 52572b6 | 2014-12-11 19:21:54 +0000 | [diff] [blame] | 3 | #ifdef HAVE_LINUX_FALLOC_H |
| 4 | # include <linux/falloc.h> |
| 5 | #endif |
| 6 | |
| 7 | #include "xlat/falloc_flags.h" |
| 8 | |
Dmitry V. Levin | 2795a5f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 9 | int |
| 10 | sys_fallocate(struct tcb *tcp) |
| 11 | { |
| 12 | if (entering(tcp)) { |
| 13 | int argn; |
Dmitry V. Levin | 52572b6 | 2014-12-11 19:21:54 +0000 | [diff] [blame] | 14 | |
| 15 | /* fd */ |
| 16 | printfd(tcp, tcp->u_arg[0]); |
| 17 | tprints(", "); |
| 18 | |
| 19 | /* mode */ |
| 20 | printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???"); |
| 21 | tprints(", "); |
| 22 | |
| 23 | /* offset */ |
| 24 | argn = printllval(tcp, "%llu, ", 2); |
| 25 | |
| 26 | /* len */ |
| 27 | printllval(tcp, "%llu", argn); |
Dmitry V. Levin | 2795a5f | 2014-12-06 03:53:16 +0000 | [diff] [blame] | 28 | } |
| 29 | return 0; |
| 30 | } |