2005-03-09 01:42:37 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2003-01-27 02:54:21 +00:00
|
|
|
#ifndef _KERNEL_SIGNAL_H
|
|
|
|
#define _KERNEL_SIGNAL_H
|
|
|
|
|
2004-09-01 12:02:26 +00:00
|
|
|
|
2005-02-10 02:49:41 +00:00
|
|
|
#include <KernelExport.h>
|
2003-01-27 02:54:21 +00:00
|
|
|
#include <signal.h>
|
|
|
|
|
2005-03-09 01:42:37 +00:00
|
|
|
|
2005-02-25 14:16:07 +00:00
|
|
|
#define KILL_SIGNALS ((1L << (SIGKILL - 1)) | (1L << (SIGKILLTHR - 1)))
|
2003-01-27 02:54:21 +00:00
|
|
|
|
|
|
|
|
2005-02-25 14:16:07 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-10-20 16:56:04 +00:00
|
|
|
extern bool handle_signals(struct thread *thread);
|
2005-03-09 01:42:37 +00:00
|
|
|
extern bool is_kill_signal_pending(void);
|
2005-04-29 11:41:12 +00:00
|
|
|
extern int has_signals_pending(void *_thread);
|
2003-01-27 02:54:21 +00:00
|
|
|
|
2005-03-12 21:45:49 +00:00
|
|
|
extern int sigaction_etc(thread_id threadID, int signal,
|
2005-10-20 16:56:04 +00:00
|
|
|
const struct sigaction *act, struct sigaction *oldAction);
|
2005-03-12 21:45:49 +00:00
|
|
|
|
2004-08-28 20:45:00 +00:00
|
|
|
extern int _user_send_signal(pid_t tid, uint sig);
|
2004-09-01 12:02:26 +00:00
|
|
|
extern int _user_sigprocmask(int how, const sigset_t *set, sigset_t *oldSet);
|
2005-10-20 16:56:04 +00:00
|
|
|
extern int _user_sigaction(int sig, const struct sigaction *action,
|
|
|
|
struct sigaction *oldAction);
|
2004-08-28 20:45:00 +00:00
|
|
|
extern bigtime_t _user_set_alarm(bigtime_t time, uint32 mode);
|
2005-09-08 12:26:16 +00:00
|
|
|
extern int _user_sigsuspend(const sigset_t *mask);
|
2005-09-13 16:12:20 +00:00
|
|
|
extern int _user_sigpending(sigset_t *set);
|
2003-01-27 02:54:21 +00:00
|
|
|
|
2005-02-25 14:16:07 +00:00
|
|
|
#ifdef __cplusplus
|
2005-10-20 16:56:04 +00:00
|
|
|
}
|
2005-02-25 14:16:07 +00:00
|
|
|
#endif
|
|
|
|
|
2003-01-27 02:54:21 +00:00
|
|
|
#endif /* _KERNEL_SIGNAL_H */
|