Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / iosignal.h
blobc6d60bdb4c7650c638d631ca0d06f138cb574e3c
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 P((void));
10 extern void unblock_sigio P((void));
11 extern int init_clock_sig P((struct refclockio *));
12 extern void init_socket_sig P((int));
13 extern void set_signal P((void));
14 RETSIGTYPE sigio_handler P((int));
16 # define BLOCKIO() ((void) block_sigio())
17 # define UNBLOCKIO() ((void) unblock_sigio())
19 #else
21 # define BLOCKIO()
22 # define UNBLOCKIO()
23 #endif /* HAVE_SIGNALED_IO */
25 #endif