Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / ntp / dist / include / iosignal.h
blob81251f5921666114e131f294bf2a815576641a58
1 /* $NetBSD$ */
3 #if !defined _ntp_iosignaled_h
4 #define _ntp_iosignaled_h
6 #include "ntp_refclock.h"
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);
16 # define BLOCKIO() block_sigio()
17 # define UNBLOCKIO() unblock_sigio()
19 #else
21 # define BLOCKIO()
22 # define UNBLOCKIO()
23 #endif /* HAVE_SIGNALED_IO */
25 #endif