diff options
author | roberto <roberto@FreeBSD.org> | 1999-12-09 13:01:21 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 1999-12-09 13:01:21 +0000 |
commit | ef64b99e8412f2273dd2e8b3291c2f78ffc4667f (patch) | |
tree | fc0cfa1aab0ff6b228f511b410733ef4f35d1ead /contrib/ntp/include/iosignal.h | |
download | FreeBSD-src-ef64b99e8412f2273dd2e8b3291c2f78ffc4667f.zip FreeBSD-src-ef64b99e8412f2273dd2e8b3291c2f78ffc4667f.tar.gz |
Virgin import of ntpd 4.0.98f
Diffstat (limited to 'contrib/ntp/include/iosignal.h')
-rw-r--r-- | contrib/ntp/include/iosignal.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/ntp/include/iosignal.h b/contrib/ntp/include/iosignal.h new file mode 100644 index 0000000..bd74e09 --- /dev/null +++ b/contrib/ntp/include/iosignal.h @@ -0,0 +1,23 @@ +#if !defined _ntp_iosignaled_h +#define _ntp_iosignaled_h + +#include "ntp_refclock.h" + +#if defined(HAVE_SIGNALED_IO) +extern void block_sigio P((void)); +extern void unblock_sigio P((void)); +extern int init_clock_sig P((struct refclockio *)); +extern void init_socket_sig P((int)); +extern void set_signal P((void)); +RETSIGTYPE sigio_handler P((int)); + +# define BLOCKIO() ((void) block_sigio()) +# define UNBLOCKIO() ((void) unblock_sigio()) + +#else + +# define BLOCKIO() +# define UNBLOCKIO() +#endif /* HAVE_SIGNALED_IO */ + +#endif |