From a41b0ed7579acdd2fcf8911121b29e014b6fd8a4 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Sun, 23 Mar 2014 17:20:23 -0400 Subject: [PATCH] merge fstat variants --- syscalls/{fstatat64.c => fstat64.c} | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) rename syscalls/{fstatat64.c => fstat64.c} (58%) diff --git a/syscalls/fstatat64.c b/syscalls/fstat64.c similarity index 58% rename from syscalls/fstatat64.c rename to syscalls/fstat64.c index 51d5e5e..db4808f 100644 --- a/syscalls/fstatat64.c +++ b/syscalls/fstat64.c @@ -1,11 +1,29 @@ /* + * SYSCALL_DEFINE2(fstat64, unsigned long, fd, struct stat64 __user *, statbuf) + * + * On success, zero is returned. + * On error, -1 is returned, and errno is set appropriately. + */ +#include "sanitise.h" + +struct syscallentry syscall_fstat64 = { + .name = "fstat64", + .num_args = 2, + .arg1name = "fd", + .arg1type = ARG_FD, + .arg2name = "statbuf", + .arg2type = ARG_ADDRESS, + .rettype = RET_ZERO_SUCCESS, + .group = GROUP_VFS, +}; + +/* * SYSCALL_DEFINE4(fstatat64, int, dfd, const char __user *, filename, struct stat64 __user *, statbuf, int, flag) * * On success, fstatat() returns 0. * On error, -1 is returned and errno is set to indicate the error. */ -#include "sanitise.h" struct syscallentry syscall_fstatat64 = { .name = "fstatat64", -- 2.11.4.GIT