]> granicus.if.org Git - strace/commitdiff
2008-05-19 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 20 May 2008 04:56:18 +0000 (04:56 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 20 May 2008 04:56:18 +0000 (04:56 +0000)
* file.c (sys_fallocate): New function.
* linux/syscall.h: Declare it.
* linux/syscallent.h: Update entry.
From Kyle McMartin <kyle@mcmartin.ca>.

file.c

diff --git a/file.c b/file.c
index ec327b08b97b14eeb44071c87117c9f3b8e994bf..55358625e6fb0014345f1ad36e4b49b5dccb31ff 100644 (file)
--- a/file.c
+++ b/file.c
@@ -2953,4 +2953,18 @@ sys_inotify_rm_watch(struct tcb *tcp)
        }
        return 0;
 }
+
+int
+sys_fallocate(struct tcb *tcp)
+{
+       if (entering(tcp)) {
+               tprintf("%ld, ", tcp->u_arg[0]);        /* fd */
+               tprintf("%#lo, ", tcp->u_arg[1]);       /* mode */
+               tprintf("%llu, ", LONG_LONG(tcp->u_arg[2],
+                       tcp->u_arg[3]));                /* offset */
+               tprintf("%llu", LONG_LONG(tcp->u_arg[4],
+                       tcp->u_arg[5]));                /* len */
+       }
+       return 0;
+}
 #endif