aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/signal.h
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2011-04-27 15:44:14 -0400
committerOleg Nesterov <oleg@redhat.com>2011-04-28 07:01:38 -0400
commit943df1485a8ff0e600729e082e568ece04d4de9e (patch)
treed2d4b7b41f163e011cb7a373376c9ae87e5941be /include/linux/signal.h
parentfe0faa005d43bc44c357631d51c273806086caa4 (diff)
signal: introduce do_sigtimedwait() to factor out compat/native code
Factor out the common code in sys_rt_sigtimedwait/compat_sys_rt_sigtimedwait to the new helper, do_sigtimedwait(). Add the comment to document the extra tick we add to timespec_to_jiffies(ts), thanks to Linus who explained this to me. Perhaps it would be better to move compat_sys_rt_sigtimedwait() into signal.c under CONFIG_COMPAT, then we can make do_sigtimedwait() static. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Reviewed-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'include/linux/signal.h')
-rw-r--r--include/linux/signal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/signal.h b/include/linux/signal.h
index ba009c167275..782546d661ba 100644
--- a/include/linux/signal.h
+++ b/include/linux/signal.h
@@ -242,6 +242,8 @@ extern int __group_send_sig_info(int, struct siginfo *, struct task_struct *);
242extern long do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, 242extern long do_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig,
243 siginfo_t *info); 243 siginfo_t *info);
244extern long do_sigpending(void __user *, unsigned long); 244extern long do_sigpending(void __user *, unsigned long);
245extern int do_sigtimedwait(const sigset_t *, siginfo_t *,
246 const struct timespec *);
245extern int sigprocmask(int, sigset_t *, sigset_t *); 247extern int sigprocmask(int, sigset_t *, sigset_t *);
246extern void set_current_blocked(const sigset_t *); 248extern void set_current_blocked(const sigset_t *);
247extern int show_unhandled_signals; 249extern int show_unhandled_signals;