]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind9/lib/bind/port_before.h.in
add -n option to suppress clearing the build tree and add -DNO_CLEAN
[FreeBSD/FreeBSD.git] / contrib / bind9 / lib / bind / port_before.h.in
1 #ifndef port_before_h
2 #define port_before_h
3 #include <config.h>
4
5 struct group;           /* silence warning */
6 struct passwd;          /* silence warning */
7 struct timeval;         /* silence warning */
8 struct timezone;        /* silence warning */
9
10 #ifdef HAVE_SYS_TIMERS_H
11 #include <sys/timers.h>
12 #endif
13 #include <limits.h>
14
15 #ifdef ISC_PLATFORM_NEEDTIMESPEC
16 #include <time.h>               /* For time_t */
17 struct timespec {
18         time_t  tv_sec;         /* seconds */
19         long    tv_nsec;        /* nanoseconds */
20 };
21 #endif
22 #ifndef HAVE_MEMMOVE
23 #define memmove(a,b,c) bcopy(b,a,c)
24 #endif
25
26 @WANT_IRS_GR@
27 @WANT_IRS_NIS@
28 @WANT_IRS_PW@
29
30 @BSD_COMP@
31 @USE_POLL@
32 @HAVE_MD5@
33 @SOLARIS2@
34
35 @DO_PTHREADS@
36 @GETGROUPLIST_ARGS@
37 @GETNETBYADDR_ADDR_T@
38 @SETPWENT_VOID@
39 @SETGRENT_VOID@
40
41 @NET_R_ARGS@
42 @NET_R_BAD@
43 @NET_R_COPY@
44 @NET_R_COPY_ARGS@
45 @NET_R_END_RESULT@
46 @NET_R_END_RETURN@
47 @NET_R_ENT_ARGS@
48 @NET_R_OK@
49 @NET_R_RETURN@
50 @NET_R_SET_RESULT@
51 @NET_R_SETANSWER@
52 @NET_R_SET_RETURN@
53 @NETENT_DATA@
54
55 @GROUP_R_RETURN@
56 @GROUP_R_SET_RETURN@
57 @GROUP_R_SET_RESULT@
58 @GROUP_R_END_RETURN@
59 @GROUP_R_END_RESULT@
60 @GROUP_R_ARGS@
61 @GROUP_R_ENT_ARGS@
62 @GROUP_R_OK@
63 @GROUP_R_BAD@
64
65 @HOST_R_ARGS@
66 @HOST_R_BAD@
67 @HOST_R_COPY@
68 @HOST_R_COPY_ARGS@
69 @HOST_R_END_RESULT@
70 @HOST_R_END_RETURN@
71 @HOST_R_ENT_ARGS@
72 @HOST_R_ERRNO@
73 @HOST_R_OK@
74 @HOST_R_RETURN@
75 @HOST_R_SETANSWER@
76 @HOST_R_SET_RESULT@
77 @HOST_R_SET_RETURN@
78 @HOSTENT_DATA@
79
80 @NGR_R_ARGS@
81 @NGR_R_BAD@
82 @NGR_R_COPY@
83 @NGR_R_COPY_ARGS@
84 @NGR_R_END_RESULT@
85 @NGR_R_END_RETURN@
86 @NGR_R_ENT_ARGS@
87 @NGR_R_OK@
88 @NGR_R_RETURN@
89 @NGR_R_SET_RESULT@
90 @NGR_R_SET_RETURN@
91 @NGR_R_PRIVATE@
92
93 @PROTO_R_ARGS@
94 @PROTO_R_BAD@
95 @PROTO_R_COPY@
96 @PROTO_R_COPY_ARGS@
97 @PROTO_R_END_RESULT@
98 @PROTO_R_END_RETURN@
99 @PROTO_R_ENT_ARGS@
100 @PROTO_R_ENT_UNUSED@
101 @PROTO_R_OK@
102 @PROTO_R_SETANSWER@
103 @PROTO_R_RETURN@
104 @PROTO_R_SET_RESULT@
105 @PROTO_R_SET_RETURN@
106 @PROTOENT_DATA@
107
108 @PASS_R_ARGS@
109 @PASS_R_BAD@
110 @PASS_R_COPY@
111 @PASS_R_COPY_ARGS@
112 @PASS_R_END_RESULT@
113 @PASS_R_END_RETURN@
114 @PASS_R_ENT_ARGS@
115 @PASS_R_OK@
116 @PASS_R_RETURN@
117 @PASS_R_SET_RESULT@
118 @PASS_R_SET_RETURN@
119
120 @SERV_R_ARGS@
121 @SERV_R_BAD@
122 @SERV_R_COPY@
123 @SERV_R_COPY_ARGS@
124 @SERV_R_END_RESULT@
125 @SERV_R_END_RETURN@
126 @SERV_R_ENT_ARGS@
127 @SERV_R_ENT_UNUSED@
128 @SERV_R_OK@
129 @SERV_R_SETANSWER@
130 @SERV_R_RETURN@
131 @SERV_R_SET_RESULT@
132 @SERV_R_SET_RETURN@
133 @SERVENT_DATA@
134
135
136 #define DE_CONST(konst, var) \
137         do { \
138                 union { const void *k; void *v; } _u; \
139                 _u.k = konst; \
140                 var = _u.v; \
141         } while (0)
142
143 #define UNUSED(x) (x) = (x)
144
145 @SOLARIS_BITTYPES@
146 @ISC_SOCKLEN_T@
147
148 #ifdef __GNUC__
149 #define ISC_FORMAT_PRINTF(fmt, args) \
150         __attribute__((__format__(__printf__, fmt, args)))
151 #else
152 #define ISC_FORMAT_PRINTF(fmt, args)
153 #endif
154
155 /* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
156 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
157 #include <sys/byteorder.h>
158 #endif
159
160 #endif
161
162 /*! \file */