From 782c98afd9b856369fe39dae8b1abf8c7a1ea4f3 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 25 Feb 2005 14:16:07 +0000 Subject: [PATCH] * Added KILL_SIGNALS, a signal mask for SIGKILL + SIGKILLTHR. * Removed SIGKILLTHR from BLOCKABLE_SIGS. * Made header C++ safe. * Added function is_kill_signal_pending(), returning true, if a SIGKILL[THR] is pending for the current thread. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11487 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/ksignal.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/headers/private/kernel/ksignal.h b/headers/private/kernel/ksignal.h index e103f71d73..b695c2ecf9 100644 --- a/headers/private/kernel/ksignal.h +++ b/headers/private/kernel/ksignal.h @@ -9,14 +9,25 @@ #include #include -#define BLOCKABLE_SIGS (~((1L << (SIGKILL - 1)) | (1L << (SIGSTOP - 1)))) +#define KILL_SIGNALS ((1L << (SIGKILL - 1)) | (1L << (SIGKILLTHR - 1))) +#define BLOCKABLE_SIGS (~(KILL_SIGNALS | (1L << (SIGSTOP - 1)))) +#ifdef __cplusplus +extern "C" { +#endif + extern int handle_signals(struct thread *t, cpu_status *state); +extern bool is_kill_signal_pending(); extern int _user_send_signal(pid_t tid, uint sig); extern int _user_sigprocmask(int how, const sigset_t *set, sigset_t *oldSet); extern int _user_sigaction(int sig, const struct sigaction *action, struct sigaction *oldAction); extern bigtime_t _user_set_alarm(bigtime_t time, uint32 mode); +#ifdef __cplusplus +} // extern "C" +#endif + + #endif /* _KERNEL_SIGNAL_H */