Change prctl() syscall wrapper to take prctl()'s full set of arguments
The Linux man page documents prctl() as taking upto 5 arguments:
int prctl(int option, unsigned long arg2, unsigned long arg3,
unsigned long arg4, unsigned long arg5);
For example, PR_SET_SECCOMP with SECCOMP_MODE_FILTER takes a third
argument, and so isn't usable without this change.
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/23137020
git-svn-id: http://linux-syscall-support.googlecode.com/svn/trunk@24 829466d3-f3f5-3ae4-62ad-de35cf9bba21
diff --git a/lss/linux_syscall_support.h b/lss/linux_syscall_support.h
index 26bfe2c..d04901d 100644
--- a/lss/linux_syscall_support.h
+++ b/lss/linux_syscall_support.h
@@ -2822,8 +2822,11 @@
int, f, int, m)
LSS_INLINE _syscall3(int, poll, struct kernel_pollfd*, u,
unsigned int, n, int, t)
- LSS_INLINE _syscall2(int, prctl, int, o,
- long, a)
+ LSS_INLINE _syscall5(int, prctl, int, option,
+ unsigned long, arg2,
+ unsigned long, arg3,
+ unsigned long, arg4,
+ unsigned long, arg5)
LSS_INLINE _syscall4(long, ptrace, int, r,
pid_t, p, void *, a, void *, d)
#if defined(__NR_quotactl)