mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
signal: add signal_returnmask and other fixes
This commit is contained in:
@@ -61,8 +61,8 @@ typedef struct thread_t {
|
||||
sigset_t pending;
|
||||
sigset_t urgent; // always handled before returning to userspace
|
||||
sigset_t waiting; // for signal_wait
|
||||
sigset_t oldmask; // for signal_suspend
|
||||
bool suspending;
|
||||
sigset_t returnmask; // for signal_returnmask
|
||||
bool hasreturnmask;
|
||||
bool stopped;
|
||||
} signals;
|
||||
} thread_t;
|
||||
|
||||
@@ -155,6 +155,7 @@ struct thread_t;
|
||||
void signal_action(struct proc_t *proc, int signal, sigaction_t *new, sigaction_t *old);
|
||||
void signal_altstack(struct thread_t *thread, stack_t *new, stack_t *old);
|
||||
void signal_changemask(struct thread_t *thread, int how, sigset_t *new, sigset_t *old);
|
||||
void signal_returnmask(struct thread_t *thread, sigset_t *sigset);
|
||||
void signal_signalproc(struct proc_t *proc, int signal);
|
||||
void signal_signalthread(struct thread_t *thread, int signal, bool urgent);
|
||||
void signal_pending(struct thread_t *, sigset_t *sigset);
|
||||
|
||||
Reference in New Issue
Block a user