Rizin
unix-like reverse engineering framework and cli tools
signals.h
Go to the documentation of this file.
1 //
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
12 
16 extern volatile sig_atomic_t user_abort;
17 
18 
21 extern void signals_init(void);
22 
23 
24 #if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__VMS)
25 # define signals_block() do { } while (0)
26 # define signals_unblock() do { } while (0)
27 #else
31 extern void signals_block(void);
32 
34 extern void signals_unblock(void);
35 #endif
36 
37 #if defined(_WIN32) && !defined(__CYGWIN__)
38 # define signals_exit() do { } while (0)
39 #else
42 extern void signals_exit(void);
43 #endif
volatile sig_atomic_t user_abort
Definition: signals.c:16
void signals_init(void)
Definition: signals.c:54
void signals_unblock(void)
Unblock the signals blocked by signals_block().
Definition: signals.c:135
void signals_block(void)
Definition: signals.c:120
void signals_exit(void)
Definition: signals.c:153