2003-01-27 05:54:21 +03:00
|
|
|
/*
|
2004-09-01 16:02:26 +04:00
|
|
|
** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
** Distributed under the terms of the Haiku License.
|
2003-01-27 05:54:21 +03:00
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_SIGNAL_H
|
|
|
|
#define _KERNEL_SIGNAL_H
|
|
|
|
|
2004-09-01 16:02:26 +04:00
|
|
|
|
2005-02-10 05:49:41 +03:00
|
|
|
#include <KernelExport.h>
|
2003-01-27 05:54:21 +03:00
|
|
|
#include <signal.h>
|
|
|
|
|
2005-02-25 17:16:07 +03:00
|
|
|
#define KILL_SIGNALS ((1L << (SIGKILL - 1)) | (1L << (SIGKILLTHR - 1)))
|
|
|
|
#define BLOCKABLE_SIGS (~(KILL_SIGNALS | (1L << (SIGSTOP - 1))))
|
2003-01-27 05:54:21 +03:00
|
|
|
|
|
|
|
|
2005-02-25 17:16:07 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-02-10 05:49:41 +03:00
|
|
|
extern int handle_signals(struct thread *t, cpu_status *state);
|
2005-02-25 17:16:07 +03:00
|
|
|
extern bool is_kill_signal_pending();
|
2003-01-27 05:54:21 +03:00
|
|
|
|
2004-08-29 00:45:00 +04:00
|
|
|
extern int _user_send_signal(pid_t tid, uint sig);
|
2004-09-01 16:02:26 +04:00
|
|
|
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);
|
2004-08-29 00:45:00 +04:00
|
|
|
extern bigtime_t _user_set_alarm(bigtime_t time, uint32 mode);
|
2003-01-27 05:54:21 +03:00
|
|
|
|
2005-02-25 17:16:07 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2003-01-27 05:54:21 +03:00
|
|
|
#endif /* _KERNEL_SIGNAL_H */
|