mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
generic sys_compat_rt_sigaction()
Again, protected by a temporary config symbol (GENERIC_COMPAT_RT_SIGACTION); will be gone by the end of series. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -142,6 +142,22 @@ typedef struct {
|
||||
compat_sigset_word sig[_COMPAT_NSIG_WORDS];
|
||||
} compat_sigset_t;
|
||||
|
||||
#ifdef CONFIG_GENERIC_COMPAT_RT_SIGACTION
|
||||
struct compat_sigaction {
|
||||
#ifndef __ARCH_HAS_ODD_SIGACTION
|
||||
compat_uptr_t sa_handler;
|
||||
compat_ulong_t sa_flags;
|
||||
#else
|
||||
compat_ulong_t sa_flags;
|
||||
compat_uptr_t sa_handler;
|
||||
#endif
|
||||
#ifdef __ARCH_HAS_SA_RESTORER
|
||||
compat_uptr_t sa_restorer;
|
||||
#endif
|
||||
compat_sigset_t sa_mask __packed;
|
||||
};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* These functions operate strictly on struct compat_time*
|
||||
*/
|
||||
@@ -602,6 +618,14 @@ asmlinkage long compat_sys_rt_sigprocmask(int how, compat_sigset_t __user *set,
|
||||
asmlinkage long compat_sys_rt_sigpending(compat_sigset_t __user *uset,
|
||||
compat_size_t sigsetsize);
|
||||
#endif
|
||||
#ifndef CONFIG_ODD_RT_SIGACTION
|
||||
#ifdef CONFIG_GENERIC_COMPAT_RT_SIGACTION
|
||||
asmlinkage long compat_sys_rt_sigaction(int,
|
||||
const struct compat_sigaction __user *,
|
||||
struct compat_sigaction __user *,
|
||||
compat_size_t);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_GENERIC_COMPAT_RT_SIGQUEUEINFO
|
||||
asmlinkage long compat_sys_rt_sigqueueinfo(compat_pid_t pid, int sig,
|
||||
struct compat_siginfo __user *uinfo);
|
||||
|
||||
Reference in New Issue
Block a user