4 #include "ntp_workimpl.h"
7 * POSIX says use <fnct.h> to get O_* symbols and
8 * SEEK_SET symbol form <unistd.h>.
10 #include <sys/types.h>
15 #ifdef HAVE_SYS_FILE_H
16 # include <sys/file.h>
21 #if !defined(SEEK_SET) && defined(L_SET)
22 # define SEEK_SET L_SET
27 # include "win32_io.h"
30 #include <isc/boolean.h>
31 #include <isc/netaddr.h>
33 #if defined(HAVE_NETINET_IN_H) && defined(HAVE_NETINET_IP_H)
34 # include <netinet/in.h>
35 # ifdef HAVE_NETINET_IN_SYSTM_H
36 # include <netinet/in_systm.h>
38 # include <netinet/ip.h>
41 #include "libntp.h" /* This needs Something above for GETDTABLESIZE */
43 #include "ntp_keyacc.h"
46 * Define FNDELAY and FASYNC using O_NONBLOCK and O_ASYNC if we need
47 * to (and can). This is here initially for QNX, but may help for
52 # define FNDELAY O_NONBLOCK
58 # define FASYNC O_ASYNC
64 * NIC rule match types
86 SOCKET move_fd(SOCKET fd);
87 isc_boolean_t get_broadcastclient_flag(void);
88 extern void sau_from_netaddr(sockaddr_u *, const isc_netaddr_t *);
89 extern void add_nic_rule(nic_rule_match match_type,
90 const char *if_name, int prefixlen,
91 nic_rule_action action);
92 #ifndef HAVE_IO_COMPLETION_PORT
93 extern void maintain_activefds(int fd, int closing);
95 #define maintain_activefds(f, c) do {} while (0)