Commit 37784074 authored by Al Viro's avatar Al Viro

switch compat_sys_[gs]etitimer(2) to COMPAT_SYSCALL_DEFINE

again, strictly speaking we are in nasal daemon territory on ppc
and mips - we need to sign-extend int arguments.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3a142ed9
...@@ -290,8 +290,8 @@ static inline long put_compat_itimerval(struct compat_itimerval __user *o, ...@@ -290,8 +290,8 @@ static inline long put_compat_itimerval(struct compat_itimerval __user *o,
__put_user(i->it_value.tv_usec, &o->it_value.tv_usec))); __put_user(i->it_value.tv_usec, &o->it_value.tv_usec)));
} }
asmlinkage long compat_sys_getitimer(int which, COMPAT_SYSCALL_DEFINE2(getitimer, int, which,
struct compat_itimerval __user *it) struct compat_itimerval __user *, it)
{ {
struct itimerval kit; struct itimerval kit;
int error; int error;
...@@ -302,9 +302,9 @@ asmlinkage long compat_sys_getitimer(int which, ...@@ -302,9 +302,9 @@ asmlinkage long compat_sys_getitimer(int which,
return error; return error;
} }
asmlinkage long compat_sys_setitimer(int which, COMPAT_SYSCALL_DEFINE3(setitimer, int, which,
struct compat_itimerval __user *in, struct compat_itimerval __user *, in,
struct compat_itimerval __user *out) struct compat_itimerval __user *, out)
{ {
struct itimerval kin, kout; struct itimerval kin, kout;
int error; int error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment