Fix a serious bug in the NTPD loopfilter. Basically what happens is that
[dragonfly.git] / contrib / ntp / include / iosignal.h
1 #if !defined _ntp_iosignaled_h
2 #define _ntp_iosignaled_h
3
4 #include "ntp_refclock.h"
5
6 #if defined(HAVE_SIGNALED_IO)
7 extern void                     block_sigio     P((void));
8 extern void                     unblock_sigio   P((void));
9 extern int                      init_clock_sig  P((struct refclockio *));
10 extern void                     init_socket_sig P((int));
11 extern void                     set_signal              P((void));
12 RETSIGTYPE      sigio_handler   P((int));
13
14 # define BLOCKIO()       ((void) block_sigio())
15 # define UNBLOCKIO() ((void) unblock_sigio())
16
17 #else
18
19 # define BLOCKIO()
20 # define UNBLOCKIO()
21 #endif /* HAVE_SIGNALED_IO */
22
23 #endif