11 struct group; /* silence warning */
12 struct passwd; /* silence warning */
13 struct timeval; /* silence warning */
14 struct timezone; /* silence warning */
16 #ifdef HAVE_SYS_TIMERS_H
17 #include <sys/timers.h>
21 #ifdef ISC_PLATFORM_NEEDTIMESPEC
22 #include <time.h> /* For time_t */
24 time_t tv_sec; /* seconds */
25 long tv_nsec; /* nanoseconds */
29 #define memmove(a,b,c) bcopy(b,a,c)
42 #define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, int *ngroups
43 #define GETNETBYADDR_ADDR_T unsigned long int
44 #define SETPWENT_VOID 1
47 #define NET_R_ARGS char *buf, size_t buflen, struct netent **answerp, int *h_errnop
48 #define NET_R_BAD ERANGE
49 #define NET_R_COPY buf, buflen
50 #define NET_R_COPY_ARGS char *buf, size_t buflen
51 #define NET_R_END_RESULT(x) /*empty*/
52 #define NET_R_END_RETURN void
53 #undef NET_R_ENT_ARGS /*empty*/
55 #define NET_R_RETURN int
56 #undef NET_R_SET_RESULT /*empty*/
57 #define NET_R_SETANSWER 1
58 #define NET_R_SET_RETURN void
62 #define GROUP_R_SET_RETURN void
63 #undef GROUP_R_SET_RESULT /*empty*/
64 #define GROUP_R_END_RETURN void
65 #define GROUP_R_END_RESULT(x) /*empty*/
67 #define GROUP_R_ENT_ARGS void
71 #define HOST_R_ARGS char *buf, size_t buflen, struct hostent **answerp, int *h_errnop
72 #define HOST_R_BAD ERANGE
73 #define HOST_R_COPY buf, buflen
74 #define HOST_R_COPY_ARGS char *buf, int buflen
75 #define HOST_R_END_RESULT(x) /*empty*/
76 #define HOST_R_END_RETURN void
77 #undef HOST_R_ENT_ARGS /*empty*/
78 #define HOST_R_ERRNO *h_errnop = h_errno
80 #define HOST_R_RETURN int
81 #define HOST_R_SETANSWER 1
82 #undef HOST_R_SET_RESULT
83 #define HOST_R_SET_RETURN void
86 #define NGR_R_ARGS char *buf, int buflen
88 #define NGR_R_COPY buf, buflen
89 #define NGR_R_COPY_ARGS NGR_R_ARGS
91 #define NGR_R_END_RESULT(x) /*empty*/
92 #define NGR_R_END_RETURN void
93 #undef NGR_R_END_ARGS /*empty*/
95 #define NGR_R_RETURN int
96 #define NGR_R_SET_CONST const
97 #undef NGR_R_SET_RESULT /*empty*/
98 #define NGR_R_SET_RETURN void
102 #if !defined(NGR_R_SET_ARGS) && defined(NGR_R_END_ARGS)
103 #define NGR_R_SET_ARGS NGR_R_END_ARGS
106 #define PROTO_R_ARGS char *buf, size_t buflen, struct protoent **answerp
107 #define PROTO_R_BAD ERANGE
108 #define PROTO_R_COPY buf, buflen
109 #define PROTO_R_COPY_ARGS char *buf, size_t buflen
110 #define PROTO_R_END_RESULT(x) /*empty*/
111 #define PROTO_R_END_RETURN void
112 #undef PROTO_R_ENT_ARGS /*empty*/
113 #undef PROTO_R_ENT_UNUSED
115 #define PROTO_R_SETANSWER 1
116 #define PROTO_R_RETURN int
117 #undef PROTO_R_SET_RESULT
118 #define PROTO_R_SET_RETURN void
125 #define PASS_R_END_RESULT(x) /*empty*/
126 #define PASS_R_END_RETURN void
127 #undef PASS_R_ENT_ARGS
130 #undef PASS_R_SET_RESULT /*empty*/
131 #define PASS_R_SET_RETURN void
133 #define SERV_R_ARGS char *buf, size_t buflen, struct servent **answerp
134 #define SERV_R_BAD ERANGE
135 #define SERV_R_COPY buf, buflen
136 #define SERV_R_COPY_ARGS char *buf, size_t buflen
137 #define SERV_R_END_RESULT(x) /*empty*/
138 #define SERV_R_END_RETURN void
139 #undef SERV_R_ENT_ARGS /*empty*/
140 #undef SERV_R_ENT_UNUSED /*empty*/
141 #define SERV_R_OK (0)
142 #define SERV_R_SETANSWER 1
143 #define SERV_R_RETURN int
144 #undef SERV_R_SET_RESULT
145 #define SERV_R_SET_RETURN void
149 #define DE_CONST(konst, var) \
151 union { const void *k; void *v; } _u; \
156 #define UNUSED(x) (x) = (x)
158 #undef NEED_SOLARIS_BITTYPES
159 #define ISC_SOCKLEN_T socklen_t
162 #define ISC_FORMAT_PRINTF(fmt, args) \
163 __attribute__((__format__(__printf__, fmt, args)))
165 #define ISC_FORMAT_PRINTF(fmt, args)
168 /* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
169 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
170 #include <sys/byteorder.h>