From e1734030919e8ac723abd2dc24c7f962bc8f3faf Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Sun, 23 Mar 2014 17:45:10 -0400 Subject: [PATCH] merge newfstat variants --- syscalls/{newfstatat.c => newfstat.c} | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) rename syscalls/{newfstatat.c => newfstat.c} (62%) diff --git a/syscalls/newfstatat.c b/syscalls/newfstat.c similarity index 62% rename from syscalls/newfstatat.c rename to syscalls/newfstat.c index b76cb71..ed487d8 100644 --- a/syscalls/newfstatat.c +++ b/syscalls/newfstat.c @@ -1,4 +1,21 @@ /* + * SYSCALL_DEFINE2(newfstat, unsigned int, fd, struct stat __user *, statbuf) + */ +#include "sanitise.h" + +struct syscallentry syscall_newfstat = { + .name = "newfstat", + .num_args = 2, + .arg1name = "fd", + .arg1type = ARG_FD, + .arg2name = "statbuf", + .arg2type = ARG_ADDRESS, + .flags = NEED_ALARM, + .group = GROUP_VFS, +}; + + +/* * SYSCALL_DEFINE4(newfstatat, int, dfd, const char __user *, filename, struct stat __user *, statbuf, int, flag) */ -- 2.11.4.GIT