From 96a9661df6d2aae66e2a735a04abba8ddf78fe7f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 20 May 2008 04:56:18 +0000 Subject: [PATCH] 2008-05-19 Roland McGrath * file.c (sys_fallocate): New function. * linux/syscall.h: Declare it. * linux/syscallent.h: Update entry. From Kyle McMartin . --- file.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/file.c b/file.c index ec327b08..55358625 100644 --- 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 -- 2.40.0