Merge branch 'vendor/GCC44'
[games.git] / contrib / bind-9.3 / 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
16 @WANT_IRS_GR@
17 @WANT_IRS_NIS@
18 @WANT_IRS_PW@
19
20 @BSD_COMP@
21 @USE_POLL@
22 @HAVE_MD5@
23 @SOLARIS2@
24
25 @DO_PTHREADS@
26 @GETGROUPLIST_ARGS@
27 @GETNETBYADDR_ADDR_T@
28 @SETPWENT_VOID@
29 @SETGRENT_VOID@
30
31 @NET_R_ARGS@
32 @NET_R_BAD@
33 @NET_R_COPY@
34 @NET_R_COPY_ARGS@
35 @NET_R_END_RESULT@
36 @NET_R_END_RETURN@
37 @NET_R_ENT_ARGS@
38 @NET_R_OK@
39 @NET_R_RETURN@
40 @NET_R_SET_RESULT@
41 @NET_R_SETANSWER@
42 @NET_R_SET_RETURN@
43 @NETENT_DATA@
44
45 @GROUP_R_RETURN@
46 @GROUP_R_SET_RETURN@
47 @GROUP_R_SET_RESULT@
48 @GROUP_R_END_RETURN@
49 @GROUP_R_END_RESULT@
50 @GROUP_R_ARGS@
51 @GROUP_R_ENT_ARGS@
52 @GROUP_R_OK@
53 @GROUP_R_BAD@
54
55 @HOST_R_ARGS@
56 @HOST_R_BAD@
57 @HOST_R_COPY@
58 @HOST_R_COPY_ARGS@
59 @HOST_R_END_RESULT@
60 @HOST_R_END_RETURN@
61 @HOST_R_ENT_ARGS@
62 @HOST_R_ERRNO@
63 @HOST_R_OK@
64 @HOST_R_RETURN@
65 @HOST_R_SETANSWER@
66 @HOST_R_SET_RESULT@
67 @HOST_R_SET_RETURN@
68 @HOSTENT_DATA@
69
70 @NGR_R_ARGS@
71 @NGR_R_BAD@
72 @NGR_R_COPY@
73 @NGR_R_COPY_ARGS@
74 @NGR_R_END_RESULT@
75 @NGR_R_END_RETURN@
76 @NGR_R_ENT_ARGS@
77 @NGR_R_OK@
78 @NGR_R_RETURN@
79 @NGR_R_SET_RESULT@
80 @NGR_R_SET_RETURN@
81 @NGR_R_PRIVATE@
82
83 @PROTO_R_ARGS@
84 @PROTO_R_BAD@
85 @PROTO_R_COPY@
86 @PROTO_R_COPY_ARGS@
87 @PROTO_R_END_RESULT@
88 @PROTO_R_END_RETURN@
89 @PROTO_R_ENT_ARGS@
90 @PROTO_R_ENT_UNUSED@
91 @PROTO_R_OK@
92 @PROTO_R_SETANSWER@
93 @PROTO_R_RETURN@
94 @PROTO_R_SET_RESULT@
95 @PROTO_R_SET_RETURN@
96 @PROTOENT_DATA@
97
98 @PASS_R_ARGS@
99 @PASS_R_BAD@
100 @PASS_R_COPY@
101 @PASS_R_COPY_ARGS@
102 @PASS_R_END_RESULT@
103 @PASS_R_END_RETURN@
104 @PASS_R_ENT_ARGS@
105 @PASS_R_OK@
106 @PASS_R_RETURN@
107 @PASS_R_SET_RESULT@
108 @PASS_R_SET_RETURN@
109
110 @SERV_R_ARGS@
111 @SERV_R_BAD@
112 @SERV_R_COPY@
113 @SERV_R_COPY_ARGS@
114 @SERV_R_END_RESULT@
115 @SERV_R_END_RETURN@
116 @SERV_R_ENT_ARGS@
117 @SERV_R_ENT_UNUSED@
118 @SERV_R_OK@
119 @SERV_R_SETANSWER@
120 @SERV_R_RETURN@
121 @SERV_R_SET_RESULT@
122 @SERV_R_SET_RETURN@
123 @SERVENT_DATA@
124
125
126 #define DE_CONST(konst, var) \
127         do { \
128                 union { const void *k; void *v; } _u; \
129                 _u.k = konst; \
130                 var = _u.v; \
131         } while (0)
132
133 #define UNUSED(x) (x) = (x)
134
135 @SOLARIS_BITTYPES@
136 @ISC_SOCKLEN_T@
137
138 #ifdef __GNUC__
139 #define ISC_FORMAT_PRINTF(fmt, args) \
140         __attribute__((__format__(__printf__, fmt, args)))
141 #else
142 #define ISC_FORMAT_PRINTF(fmt, args)
143 #endif
144
145 /* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
146 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
147 #include <sys/byteorder.h>
148 #endif
149
150 #endif