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
83 SOCKET move_fd(SOCKET fd);
84 isc_boolean_t get_broadcastclient_flag(void);
85 extern int is_ip_address(const char *, u_short, sockaddr_u *);
86 extern void sau_from_netaddr(sockaddr_u *, const isc_netaddr_t *);
87 extern void add_nic_rule(nic_rule_match match_type,
88 const char *if_name, int prefixlen,
89 nic_rule_action action);
90 #ifndef HAVE_IO_COMPLETION_PORT
91 extern void maintain_activefds(int fd, int closing);
93 #define maintain_activefds(f, c) do {} while (0)