PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/ntp/include/iosignal.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 28d598f856202c50b46533ed9210fc0b MD5 | raw file
 1#if !defined _ntp_iosignaled_h
 2#define _ntp_iosignaled_h
 3
 4#include "ntp_refclock.h"
 5
 6#if defined(HAVE_SIGNALED_IO)
 7extern void			block_sigio     P((void));
 8extern void			unblock_sigio   P((void));
 9extern int			init_clock_sig	P((struct refclockio *));
10extern void			init_socket_sig P((int));
11extern void			set_signal		P((void));
12RETSIGTYPE	sigio_handler	P((int));
13
14# define BLOCKIO()	 ((void) block_sigio())
15# define UNBLOCKIO() ((void) unblock_sigio())
16
17#else
18
19# define BLOCKIO()
20# define UNBLOCKIO()
21#endif /* HAVE_SIGNALED_IO */
22
23#endif