xref: /netbsd-src/external/bsd/ntp/dist/include/iosignal.h (revision ba65fde2d7fefa7d39838fa5fa855e62bd606b5e)
1 /*	$NetBSD: iosignal.h,v 1.1.1.1 2009/12/13 16:54:49 kardel Exp $	*/
2 
3 #if !defined _ntp_iosignaled_h
4 #define _ntp_iosignaled_h
5 
6 #include "ntp_refclock.h"
7 
8 #if defined(HAVE_SIGNALED_IO)
9 extern void		block_sigio	(void);
10 extern void		unblock_sigio	(void);
11 extern int		init_clock_sig	(struct refclockio *);
12 extern void		init_socket_sig	(int);
13 extern void		set_signal	(void);
14 RETSIGTYPE		sigio_handler	(int);
15 
16 # define BLOCKIO()	block_sigio()
17 # define UNBLOCKIO()	unblock_sigio()
18 
19 #else
20 
21 # define BLOCKIO()
22 # define UNBLOCKIO()
23 #endif /* HAVE_SIGNALED_IO */
24 
25 #endif
26