File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / ntp / include / iosignal.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:08:38 2012 UTC (12 years, 1 month ago) by misho
Branches: ntp, MAIN
CVS tags: v4_2_6p5p0, v4_2_6p5, HEAD
ntp 4.2.6p5

#if !defined _ntp_iosignaled_h
#define _ntp_iosignaled_h

#include "ntp_refclock.h"

#if defined(HAVE_SIGNALED_IO)
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);

# define BLOCKIO()	block_sigio()
# define UNBLOCKIO()	unblock_sigio()

#else

# define BLOCKIO()
# define UNBLOCKIO()
#endif /* HAVE_SIGNALED_IO */

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>