summaryrefslogtreecommitdiffstats
path: root/include/iosignal.h
blob: 6c4052b7f049ede1b29b5a860781531367969081 (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	(void);
extern void		unblock_sigio	(void);
extern int		init_clock_sig	(struct refclockio *);
extern void		init_socket_sig	(int);
extern void		set_signal	(void);
RETSIGTYPE		sigio_handler	(int);

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

#else

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

#endif
OpenPOWER on IntegriCloud