d4112f6bc5
- has_signals_pending() is not declared in Be headers, and it isn't declared in our KernelExport.h anymore, too - removed snooze_etc() from KernelExport.h, as it's already defined in OS.h (and really exported by libroot.so). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12506 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
1.0 KiB
C
38 lines
1.0 KiB
C
/*
|
|
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_SIGNAL_H
|
|
#define _KERNEL_SIGNAL_H
|
|
|
|
|
|
#include <KernelExport.h>
|
|
#include <signal.h>
|
|
|
|
|
|
#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(void);
|
|
extern int has_signals_pending(void *_thread);
|
|
|
|
extern int sigaction_etc(thread_id threadID, int signal,
|
|
const struct sigaction *act, struct sigaction *oact);
|
|
|
|
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 */
|