]> granicus.if.org Git - strace/blob - fallocate.c
tests/uid*: use fchown* instead of chown*
[strace] / fallocate.c
1 #include "defs.h"
2
3 #ifdef HAVE_LINUX_FALLOC_H
4 # include <linux/falloc.h>
5 #endif
6
7 #include "xlat/falloc_flags.h"
8
9 int
10 sys_fallocate(struct tcb *tcp)
11 {
12         if (entering(tcp)) {
13                 int argn;
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);
28         }
29         return 0;
30 }