]> mj.ucw.cz Git - libucw.git/blob - ucw/sighandler.h
tableprinter: update of documentation
[libucw.git] / ucw / sighandler.h
1 /*
2  *      UCW Library -- Signal Handling
3  *
4  *      (c) 2012 Martin Mares <mj@ucw.cz>
5  *
6  *      This software may be freely distributed and used according to the terms
7  *      of the GNU Lesser General Public License.
8  */
9
10 #ifndef _UCW_SIGHANDLER_H
11 #define _UCW_SIGHANDLER_H
12
13 #ifdef CONFIG_UCW_CLEAN_ABI
14 #define handle_signal ucw_handle_signal
15 #define set_signal_handler ucw_set_signal_handler
16 #define unhandle_signal ucw_unhandle_signal
17 #endif
18
19 typedef int (*ucw_sighandler_t)(int);   // gets signum, returns nonzero if abort() should be called
20
21 void handle_signal(int signum);
22 void unhandle_signal(int signum);
23 ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t newh);
24
25 #endif  /* !_UCW_SIGHANDLER_H */