From b228cd5b66b4a8a75b5af14049d2b8fe3220b707 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Sun, 23 Mar 2014 17:46:34 -0400 Subject: [PATCH] merge readlink variants --- syscalls/{readlinkat.c => readlink.c} | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) rename syscalls/{readlinkat.c => readlink.c} (56%) diff --git a/syscalls/readlinkat.c b/syscalls/readlink.c similarity index 56% rename from syscalls/readlinkat.c rename to syscalls/readlink.c index 086fc37..91ebc2c 100644 --- a/syscalls/readlinkat.c +++ b/syscalls/readlink.c @@ -1,8 +1,25 @@ /* + * SYSCALL_DEFINE3(readlink, const char __user *, path, char __user *, buf, int, bufsiz) + */ +#include "sanitise.h" + +struct syscallentry syscall_readlink = { + .name = "readlink", + .num_args = 3, + .arg1name = "path", + .arg1type = ARG_PATHNAME, + .arg2name = "buf", + .arg2type = ARG_ADDRESS, + .arg3name = "bufsiz", + .arg3type = ARG_LEN, + .group = GROUP_VFS, +}; + + +/* * SYSCALL_DEFINE4(readlinkat, int, dfd, const char __user *, pathname, char __user *, buf, int, bufsiz) */ -#include "sanitise.h" struct syscallentry syscall_readlinkat = { .name = "readlinkat", -- 2.11.4.GIT