2 * UCW Library -- Signal Handling
4 * (c) 2012 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
10 #ifndef _UCW_SIGHANDLER_H
11 #define _UCW_SIGHANDLER_H
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
19 typedef int (*ucw_sighandler_t)(int); // gets signum, returns nonzero if abort() should be called
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);
25 #endif /* !_UCW_SIGHANDLER_H */