blob: c096c9823d07b75e955323d1d1742c2cde29a58e [file] [log] [blame]
Dmitry V. Levin2795a5f2014-12-06 03:53:16 +00001#include "defs.h"
2
Dmitry V. Levin52572b62014-12-11 19:21:54 +00003#ifdef HAVE_LINUX_FALLOC_H
4# include <linux/falloc.h>
5#endif
6
7#include "xlat/falloc_flags.h"
8
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00009SYS_FUNC(fallocate)
Dmitry V. Levin2795a5f2014-12-06 03:53:16 +000010{
11 if (entering(tcp)) {
12 int argn;
Dmitry V. Levin52572b62014-12-11 19:21:54 +000013
14 /* fd */
15 printfd(tcp, tcp->u_arg[0]);
16 tprints(", ");
17
18 /* mode */
19 printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
20 tprints(", ");
21
22 /* offset */
23 argn = printllval(tcp, "%llu, ", 2);
24
25 /* len */
26 printllval(tcp, "%llu", argn);
Dmitry V. Levin2795a5f2014-12-06 03:53:16 +000027 }
28 return 0;
29}