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 */
44 * Define FNDELAY and FASYNC using O_NONBLOCK and O_ASYNC if we need
45 * to (and can). This is here initially for QNX, but may help for
50 # define FNDELAY O_NONBLOCK
56 # define FASYNC O_ASYNC
62 * NIC rule match types
84 SOCKET move_fd(SOCKET fd);
85 isc_boolean_t get_broadcastclient_flag(void);
86 extern int is_ip_address(const char *, u_short, sockaddr_u *);
87 extern void sau_from_netaddr(sockaddr_u *, const isc_netaddr_t *);
88 extern void add_nic_rule(nic_rule_match match_type,
89 const char *if_name, int prefixlen,
90 nic_rule_action action);
91 #ifndef HAVE_IO_COMPLETION_PORT
92 extern void maintain_activefds(int fd, int closing);
94 #define maintain_activefds(f, c) do {} while (0)