summaryrefslogtreecommitdiff
path: root/fallocate.c
blob: 0b1cfec995e973f453906bf676b7fe82e26f50b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "defs.h"

#ifdef HAVE_LINUX_FALLOC_H
# include <linux/falloc.h>
#endif

#include "xlat/falloc_flags.h"

SYS_FUNC(fallocate)
{
	int argn;

	/* fd */
	printfd(tcp, tcp->u_arg[0]);
	tprints(", ");

	/* mode */
	printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
	tprints(", ");

	/* offset */
	argn = printllval(tcp, "%llu, ", 2);

	/* len */
	printllval(tcp, "%llu", argn);

	return RVAL_DECODED;
}