mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-08 21:49:06 -04:00
26 lines
561 B
C
26 lines
561 B
C
/* $NetBSD: iosignal.h,v 1.1.1.1 2009/12/13 16:54:49 kardel Exp $ */
|
|
|
|
#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
|