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 typedef int (*ucw_sighandler_t)(int); // gets signum, returns nonzero if abort() should be called
15 void handle_signal(int signum);
16 void unhandle_signal(int signum);
17 ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t newh);
19 #endif /* !_UCW_SIGHANDLER_H */