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