* fallocate.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* file.c (sys_fallocate): Move to fallocate.c.
count.c \
desc.c \
dirent.c \
+ fallocate.c \
fanotify.c \
file.c \
inotify.c \
--- /dev/null
+#include "defs.h"
+
+int
+sys_fallocate(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ int argn;
+ printfd(tcp, tcp->u_arg[0]); /* fd */
+ tprintf(", %#lo, ", tcp->u_arg[1]); /* mode */
+ argn = printllval(tcp, "%llu, ", 2); /* offset */
+ printllval(tcp, "%llu", argn); /* len */
+ }
+ return 0;
+}
}
return 0;
}
-
-int
-sys_fallocate(struct tcb *tcp)
-{
- if (entering(tcp)) {
- int argn;
- printfd(tcp, tcp->u_arg[0]); /* fd */
- tprintf(", %#lo, ", tcp->u_arg[1]); /* mode */
- argn = printllval(tcp, "%llu, ", 2); /* offset */
- printllval(tcp, "%llu", argn); /* len */
- }
- return 0;
-}