Notcurses 3.0.13
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
unixsig.h
Go to the documentation of this file.
1#ifndef NOTCURSES_UNIXSIG
2#define NOTCURSES_UNIXSIG
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <signal.h>
9
10int setup_signals(void* nc, bool no_quit_sigs, bool no_winch_sig,
11 int(*handler)(void*, void**));
12
13// call at the beginning of shutdown (we don't want to run fatal signal
14// handlers during shutdown!). altstack is written to be freed late.
15int drop_signals(void* nc, void** altstack);
16
17// block a few signals for the duration of a write to the terminal.
18int block_signals(sigset_t* old_blocked_signals);
19int unblock_signals(const sigset_t* old_blocked_signals);
20
21// the alternate signal stack is a thread property; any other threads we
22// create ought go ahead and install the same alternate signal stack.
23void setup_alt_sig_stack(void);
24
25#ifdef __cplusplus
26}
27#endif
28
29#endif
int block_signals(sigset_t *old_blocked_signals)
Definition unixsig.c:78
int unblock_signals(const sigset_t *old_blocked_signals)
Definition unixsig.c:85
int setup_signals(void *nc, bool no_quit_sigs, bool no_winch_sig, int(*handler)(void *, void **))
Definition unixsig.c:188
int drop_signals(void *nc, void **altstack)
Definition unixsig.c:100
void setup_alt_sig_stack(void)
Definition unixsig.c:175