* Implemented sigaltstack() and set_signal_stack(), thus closing bug #1401.
* On exec() the new function thread_reset_for_exec() is called which clears the signals and cancels an eventually set alarm. Both things weren't done before... * Some minor cleanups. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21989 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Copyright 2003-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _KERNEL_SIGNAL_H
|
||||
@@ -22,15 +22,18 @@ 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 *oldAction);
|
||||
const struct sigaction *newAction, struct sigaction *oldAction);
|
||||
|
||||
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 status_t _user_send_signal(pid_t tid, uint sig);
|
||||
extern status_t _user_sigprocmask(int how, const sigset_t *set,
|
||||
sigset_t *oldSet);
|
||||
extern status_t _user_sigaction(int sig, const struct sigaction *newAction,
|
||||
struct sigaction *oldAction);
|
||||
extern bigtime_t _user_set_alarm(bigtime_t time, uint32 mode);
|
||||
extern int _user_sigsuspend(const sigset_t *mask);
|
||||
extern int _user_sigpending(sigset_t *set);
|
||||
extern status_t _user_sigsuspend(const sigset_t *mask);
|
||||
extern status_t _user_sigpending(sigset_t *set);
|
||||
extern status_t _user_set_signal_stack(const stack_t *newUserStack,
|
||||
stack_t *oldUserStack);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user