1999-12-09 14:01:21 +01:00
|
|
|
#if !defined _ntp_iosignaled_h
|
|
|
|
#define _ntp_iosignaled_h
|
|
|
|
|
|
|
|
#include "ntp_refclock.h"
|
|
|
|
|
|
|
|
#if defined(HAVE_SIGNALED_IO)
|
2013-12-04 22:33:17 +01:00
|
|
|
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);
|
1999-12-09 14:01:21 +01:00
|
|
|
|
2013-12-04 22:33:17 +01:00
|
|
|
# define BLOCKIO() block_sigio()
|
|
|
|
# define UNBLOCKIO() unblock_sigio()
|
1999-12-09 14:01:21 +01:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
# define BLOCKIO()
|
|
|
|
# define UNBLOCKIO()
|
|
|
|
#endif /* HAVE_SIGNALED_IO */
|
|
|
|
|
|
|
|
#endif
|