7 struct group; /* silence warning */
8 struct passwd; /* silence warning */
9 struct timeval; /* silence warning */
10 struct timezone; /* silence warning */
12 #ifdef HAVE_SYS_TIMERS_H
13 #include <sys/timers.h>
17 #ifdef ISC_PLATFORM_NEEDTIMESPEC
18 #include <time.h> /* For time_t */
20 time_t tv_sec; /* seconds */
21 long tv_nsec; /* nanoseconds */
25 #define memmove(a,b,c) bcopy(b,a,c)
38 #define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups
39 #define GETNETBYADDR_ADDR_T unsigned long int
40 #define SETPWENT_VOID 1
43 #define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop
44 #define NET_R_BAD ERANGE
45 #define NET_R_COPY buf, buflen
46 #define NET_R_COPY_ARGS char *buf, size_t buflen
47 #define NET_R_END_RESULT(x) /*empty*/
48 #define NET_R_END_RETURN void
49 #undef NET_R_ENT_ARGS /*empty*/
51 #define NET_R_RETURN int
52 #undef NET_R_SET_RESULT /*empty*/
53 #define NET_R_SETANSWER 1
54 #define NET_R_SET_RETURN void
58 #define GROUP_R_SET_RETURN void
59 #undef GROUP_R_SET_RESULT /*empty*/
60 #define GROUP_R_END_RETURN void
61 #define GROUP_R_END_RESULT(x) /*empty*/
63 #define GROUP_R_ENT_ARGS void
67 #define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop
68 #define HOST_R_BAD ERANGE
69 #define HOST_R_COPY buf, buflen
70 #define HOST_R_COPY_ARGS char *buf, int buflen
71 #define HOST_R_END_RESULT(x) /*empty*/
72 #define HOST_R_END_RETURN void
73 #undef HOST_R_ENT_ARGS /*empty*/
74 #define HOST_R_ERRNO *h_errnop = h_errno
76 #define HOST_R_RETURN int
77 #define HOST_R_SETANSWER 1
78 #undef HOST_R_SET_RESULT
79 #define HOST_R_SET_RETURN void
82 #define NGR_R_ARGS char *buf, int buflen
84 #define NGR_R_COPY buf, buflen
85 #define NGR_R_COPY_ARGS NGR_R_ARGS
86 #define NGR_R_END_RESULT(x) /*empty*/
87 #define NGR_R_END_RETURN void
88 #undef NGR_R_ENT_ARGS /*empty*/
90 #define NGR_R_RETURN int
91 #undef NGR_R_SET_RESULT /*empty*/
92 #define NGR_R_SET_RETURN void
95 #define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp
96 #define PROTO_R_BAD ERANGE
97 #define PROTO_R_COPY buf, buflen
98 #define PROTO_R_COPY_ARGS char *buf, size_t buflen
99 #define PROTO_R_END_RESULT(x) /*empty*/
100 #define PROTO_R_END_RETURN void
101 #undef PROTO_R_ENT_ARGS /*empty*/
102 #undef PROTO_R_ENT_UNUSED
104 #define PROTO_R_SETANSWER 1
105 #define PROTO_R_RETURN int
106 #undef PROTO_R_SET_RESULT
107 #define PROTO_R_SET_RETURN void
114 #define PASS_R_END_RESULT(x) /*empty*/
115 #define PASS_R_END_RETURN void
116 #undef PASS_R_ENT_ARGS
119 #undef PASS_R_SET_RESULT /*empty*/
120 #define PASS_R_SET_RETURN void
122 #define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp
123 #define SERV_R_BAD ERANGE
124 #define SERV_R_COPY buf, buflen
125 #define SERV_R_COPY_ARGS char *buf, size_t buflen
126 #define SERV_R_END_RESULT(x) /*empty*/
127 #define SERV_R_END_RETURN void
128 #undef SERV_R_ENT_ARGS /*empty*/
129 #undef SERV_R_ENT_UNUSED /*empty*/
130 #define SERV_R_OK (0)
131 #define SERV_R_SETANSWER 1
132 #define SERV_R_RETURN int
133 #undef SERV_R_SET_RESULT
134 #define SERV_R_SET_RETURN void
138 #define DE_CONST(konst, var) \
140 union { const void *k; void *v; } _u; \
145 #define UNUSED(x) (x) = (x)
147 #undef NEED_SOLARIS_BITTYPES
148 #define ISC_SOCKLEN_T socklen_t
151 #define ISC_FORMAT_PRINTF(fmt, args) \
152 __attribute__((__format__(__printf__, fmt, args)))
154 #define ISC_FORMAT_PRINTF(fmt, args)
157 /* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
158 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
159 #include <sys/byteorder.h>