/* * UCW Library -- Signal Handling * * (c) 2012 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. */ #ifndef _UCW_SIGHANDLER_H #define _UCW_SIGHANDLER_H #ifdef CONFIG_UCW_CLEAN_ABI #define handle_signal ucw_handle_signal #define set_signal_handler ucw_set_signal_handler #define unhandle_signal ucw_unhandle_signal #endif typedef int (*ucw_sighandler_t)(int); // gets signum, returns nonzero if abort() should be called void handle_signal(int signum); void unhandle_signal(int signum); ucw_sighandler_t set_signal_handler(int signum, ucw_sighandler_t newh); #endif /* !_UCW_SIGHANDLER_H */