summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/include/iosignal.h
blob: bd74e096d00b5c26206702d61825731b23c0818d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#if !defined _ntp_iosignaled_h
#define _ntp_iosignaled_h

#include "ntp_refclock.h"

#if defined(HAVE_SIGNALED_IO)
extern void			block_sigio     P((void));
extern void			unblock_sigio   P((void));
extern int			init_clock_sig	P((struct refclockio *));
extern void			init_socket_sig P((int));
extern void			set_signal		P((void));
RETSIGTYPE	sigio_handler	P((int));

# define BLOCKIO()	 ((void) block_sigio())
# define UNBLOCKIO() ((void) unblock_sigio())

#else

# define BLOCKIO()
# define UNBLOCKIO()
#endif /* HAVE_SIGNALED_IO */

#endif
OpenPOWER on IntegriCloud