blob: 990106d2288649a0979fda44b65e7a613d9eb028 [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. Levin2795a5f2014-12-06 03:53:16 +00009int
10sys_fallocate(struct tcb *tcp)
11{
12 if (entering(tcp)) {
13 int argn;
Dmitry V. Levin52572b62014-12-11 19:21:54 +000014
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. Levin2795a5f2014-12-06 03:53:16 +000028 }
29 return 0;
30}