]> mj.ucw.cz Git - libucw.git/blob - ucw/sighandler.h
Time: Timing functions separated out to <ucw/time.h>
[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 typedef int (*ucw_sighandler_t)(int);   // gets signum, returns nonzero if abort() should be called
14
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);
18
19 #endif  /* !_UCW_SIGHANDLER_H */