2 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the OpenBeOS License.
5 #ifndef _KERNEL_SIGNAL_H
6 #define _KERNEL_SIGNAL_H
8 #include <kernel/timer.h>
11 #define BLOCKABLE_SIGS (~((1L << (SIGKILL - 1)) | (1L << (SIGSTOP - 1))))
13 extern int handle_signals(struct thread
*t
);
15 #define SIG_FLAG_NO_RESCHED 0x1
17 int send_signal_etc(thread_id tid
, uint signal
, uint32 flags
);
18 int send_proc_signal_etc(proc_id pid
, uint signal
, uint32 flags
);
20 // defined in thread.c
21 int send_pgrp_signal_etc(pgrp_id pgrp
, uint signal
, uint32 flags
);
22 int send_session_signal_etc(sess_id sid
, uint signal
, uint32 flags
);
24 int user_send_signal(thread_id tid
, uint sig
);
25 int user_send_proc_signal(thread_id tid
, uint sig
);
26 int user_sigaction(int sig
, const struct sigaction
*act
, struct sigaction
*oact
);
27 bigtime_t
user_set_alarm(bigtime_t time
, timer_mode mode
);
29 #endif /* _KERNEL_SIGNAL_H */