~ubuntu-branches/ubuntu/maverick/bind9/maverick

« back to all changes in this revision

Viewing changes to lib/isc/include/isc/platform.h.in

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, LaMont Jones, Internet Software Consortium, Inc, localization folks
  • Date: 2008-08-02 14:20:20 UTC
  • mfrom: (1.2.1 upstream) (6.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080802142020-l1hon9jy8lbbjxmg
[LaMont Jones]

* default to using resolvconf if it is installed
* fix sonames and dependencies.  Closes: #149259, #492418
* Do not build-depend libcap2-dev on non-linux.  Closes: #493392
* drop unused query-loc manpage.  Closes: #492564
* lwresd: Deliver /etc/bind directory.  Closes: #490027
* fix query-source comment in default install

[Internet Software Consortium, Inc]

* 9.5.0-P2.  Closes: #492949

[localization folks]

* l10n: Spanish debconf translation.  Closes: #492425 (Ignacio Mondino)
* l10n: Swedish debconf templates.  Closes: #491369 (Martin Ågren)
* l10n: Japanese debconf translations.  Closes: #492048 (Hideki Yamane
  (Debian-JP))
* l10n: Finnish translation.  Closes: #490630 (Esko Arajärvi)
* l10n: Italian debconf translations.  Closes: #492587 (Alessandro Vietta)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004-2008  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2003  Internet Software Consortium.
4
4
 *
5
 
 * Permission to use, copy, modify, and distribute this software for any
 
5
 * Permission to use, copy, modify, and/or distribute this software for any
6
6
 * purpose with or without fee is hereby granted, provided that the above
7
7
 * copyright notice and this permission notice appear in all copies.
8
8
 *
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: platform.h.in,v 1.24.2.1.10.11 2004/03/08 09:04:52 marka Exp $ */
 
18
/* $Id: platform.h.in,v 1.45.60.2 2008/01/24 23:46:26 tbox Exp $ */
19
19
 
20
20
#ifndef ISC_PLATFORM_H
21
21
#define ISC_PLATFORM_H 1
22
22
 
 
23
/*! \file */
 
24
 
23
25
/*****
24
26
 ***** Platform-dependent defines.
25
27
 *****/
28
30
 *** Network.
29
31
 ***/
30
32
 
31
 
/*
 
33
/*! \brief
32
34
 * Define if this system needs the <netinet/in6.h> header file included
33
35
 * for full IPv6 support (pretty much only UnixWare).
34
36
 */
35
37
@ISC_PLATFORM_NEEDNETINETIN6H@
36
38
 
37
 
/*
 
39
/*! \brief
38
40
 * Define if this system needs the <netinet6/in6.h> header file included
39
41
 * to support in6_pkinfo (pretty much only BSD/OS).
40
42
 */
41
43
@ISC_PLATFORM_NEEDNETINET6IN6H@
42
44
 
43
 
/*
 
45
/*! \brief
44
46
 * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
45
47
 * will be defined.
46
48
 */
47
49
@ISC_PLATFORM_HAVESALEN@
48
50
 
49
 
/*
 
51
/*! \brief
50
52
 * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
51
53
 * will be defined.
52
54
 */
53
55
@ISC_PLATFORM_HAVEIPV6@
54
56
 
55
 
/*
 
57
/*! \brief
56
58
 * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
57
59
 * be defined.
58
60
 */
59
61
@ISC_PLATFORM_NEEDIN6ADDRANY@
60
62
 
61
 
/*
 
63
/*! \brief
62
64
 * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
63
65
 * will be defined.
64
66
 */
65
67
@ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@
66
68
 
67
 
/*
 
69
/*! \brief
68
70
 * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
69
71
 * defined.
70
72
 */
71
73
@ISC_PLATFORM_HAVEIN6PKTINFO@
72
74
 
73
 
/*
 
75
/*! \brief
74
76
 * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
75
77
 * will be defined.
76
78
 */
77
79
@ISC_PLATFORM_HAVEINADDR6@
78
80
 
79
 
/*
 
81
/*! \brief
80
82
 * If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
81
83
 */
82
84
@ISC_PLATFORM_HAVESCOPEID@
83
85
 
84
 
/*
 
86
/*! \brief
85
87
 * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
86
88
 */
87
89
@ISC_PLATFORM_NEEDNTOP@
88
90
 
89
 
/*
 
91
/*! \brief
90
92
 * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
91
93
 */
92
94
@ISC_PLATFORM_NEEDPTON@
93
95
 
94
 
/*
 
96
/*! \brief
95
97
 * If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
96
98
 */
97
99
@ISC_PLATFORM_NEEDATON@
98
100
 
99
 
/*
 
101
/*! \brief
100
102
 * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
101
103
 */
102
104
@ISC_PLATFORM_NEEDPORTT@
103
105
 
104
 
/*
105
 
 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
106
 
 */
107
 
@ISC_PLATFORM_NEEDSTRSEP@
108
 
 
109
 
/*
110
 
 * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
111
 
 */
112
 
@ISC_PLATFORM_NEEDSTRLCPY@
113
 
 
114
 
/*
115
 
 * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
116
 
 */
117
 
@ISC_PLATFORM_NEEDSTRLCAT@
118
 
 
119
 
/*
 
106
/*! \brief
 
107
 * Define if the system has struct lifconf which is a extended struct ifconf
 
108
 * for IPv6.
 
109
 */
 
110
@ISC_PLATFORM_HAVELIFCONF@
 
111
 
 
112
/*! \brief
 
113
 * Define if the system has struct if_laddrconf which is a extended struct
 
114
 * ifconf for IPv6.
 
115
 */
 
116
@ISC_PLATFORM_HAVEIF_LADDRCONF@
 
117
 
 
118
/*! \brief
 
119
 * Define if the system has struct if_laddrreq.
 
120
 */
 
121
@ISC_PLATFORM_HAVEIF_LADDRREQ@
 
122
 
 
123
/*! \brief
120
124
 * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
121
125
 */
122
126
@ISC_PLATFORM_MSGHDRFLAVOR@
123
127
 
124
 
/*
125
 
 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
126
 
 * prevent compiler warnings (such as with gcc on Solaris 2.8).
 
128
/*! \brief
 
129
 * Define if the system supports if_nametoindex.
127
130
 */
128
 
@ISC_PLATFORM_BRACEPTHREADONCEINIT@
 
131
@ISC_PLATFORM_HAVEIFNAMETOINDEX@
129
132
 
130
 
/*
 
133
/*! \brief
131
134
 * Define on some UnixWare systems to fix erroneous definitions of various
132
135
 * IN6_IS_ADDR_* macros.
133
136
 */
134
137
@ISC_PLATFORM_FIXIN6ISADDR@
135
138
 
136
 
/***
 
139
/*
137
140
 *** Printing.
138
141
 ***/
139
142
 
140
 
/*
 
143
/*! \brief
141
144
 * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
142
145
 * will be defined.
143
146
 */
144
147
@ISC_PLATFORM_NEEDVSNPRINTF@
145
148
 
146
 
/*
 
149
/*! \brief
147
150
 * If this system need a modern sprintf() that returns (int) not (char*).
148
151
 */
149
152
@ISC_PLATFORM_NEEDSPRINTF@
150
153
 
151
 
/*
 
154
/*! \brief
152
155
 * The printf format string modifier to use with isc_uint64_t values.
153
156
 */
154
157
@ISC_PLATFORM_QUADFORMAT@
155
158
 
 
159
/***
 
160
 *** String functions.
 
161
 ***/
 
162
/*
 
163
 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
 
164
 */
 
165
@ISC_PLATFORM_NEEDSTRSEP@
 
166
 
 
167
/*
 
168
 * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
 
169
 */
 
170
@ISC_PLATFORM_NEEDSTRLCPY@
 
171
 
 
172
/*
 
173
 * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
 
174
 */
 
175
@ISC_PLATFORM_NEEDSTRLCAT@
 
176
 
 
177
/*
 
178
 * Define if this system needs strtoul.
 
179
 */
 
180
@ISC_PLATFORM_NEEDSTRTOUL@
 
181
 
 
182
/*
 
183
 * Define if this system needs memmove.
 
184
 */
 
185
@ISC_PLATFORM_NEEDMEMMOVE@
 
186
 
 
187
/***
 
188
 *** Miscellaneous.
 
189
 ***/
 
190
 
156
191
/*
157
192
 * Defined if we are using threads.
158
193
 */
164
199
@ISC_PLATFORM_NEEDSYSSELECTH@
165
200
 
166
201
/*
 
202
 * Defined to <gssapi.h> or <gssapi/gssapi.h> for how to include
 
203
 * the GSSAPI header.
 
204
 */
 
205
@ISC_PLATFORM_GSSAPIHEADER@
 
206
 
 
207
/*
167
208
 * Type used for resource limits.
168
209
 */
169
210
@ISC_PLATFORM_RLIMITTYPE@
174
215
@ISC_PLATFORM_HAVELONGLONG@
175
216
 
176
217
/*
177
 
 * Define if the system has struct lifconf which is a extended struct ifconf
178
 
 * for IPv6.
179
 
 */
180
 
@ISC_PLATFORM_HAVELIFCONF@
181
 
 
182
 
/*
183
 
 * Define if the system has struct if_laddrconf which is a extended struct
184
 
 * ifconf for IPv6.
185
 
 */
186
 
@ISC_PLATFORM_HAVEIF_LADDRCONF@
187
 
 
188
 
/*
189
 
 * Define if the system has struct if_laddrreq.
190
 
 */
191
 
@ISC_PLATFORM_HAVEIF_LADDRREQ@
 
218
 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
 
219
 * prevent compiler warnings (such as with gcc on Solaris 2.8).
 
220
 */
 
221
@ISC_PLATFORM_BRACEPTHREADONCEINIT@
192
222
 
193
223
/*
194
224
 * Used to control how extern data is linked; needed for Win32 platforms.
196
226
@ISC_PLATFORM_USEDECLSPEC@
197
227
 
198
228
/*
199
 
 * Define if the system supports if_nametoindex.
200
 
 */
201
 
@ISC_PLATFORM_HAVEIFNAMETOINDEX@
202
 
 
203
 
/*
204
 
 * Define if this system needs strtoul.
205
 
 */
206
 
@ISC_PLATFORM_NEEDSTRTOUL@
207
 
 
208
 
/*
209
 
 * Define if this system needs memmove.
210
 
 */
211
 
@ISC_PLATFORM_NEEDMEMMOVE@
 
229
 * Define if the platform has <sys/un.h>.
 
230
 */
 
231
@ISC_PLATFORM_HAVESYSUNH@
 
232
 
 
233
/*
 
234
 * If the "xadd" operation is available on this architecture,
 
235
 * ISC_PLATFORM_HAVEXADD will be defined.
 
236
 */
 
237
@ISC_PLATFORM_HAVEXADD@
 
238
 
 
239
/*
 
240
 * If the "xaddq" operation (64bit xadd) is available on this architecture,
 
241
 * ISC_PLATFORM_HAVEXADDQ will be defined.
 
242
 */
 
243
@ISC_PLATFORM_HAVEXADDQ@
 
244
 
 
245
/*
 
246
 * If the "atomic swap" operation is available on this architecture,
 
247
 * ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
 
248
 */
 
249
@ISC_PLATFORM_HAVEATOMICSTORE@
 
250
 
 
251
/*
 
252
 * If the "compare-and-exchange" operation is available on this architecture,
 
253
 * ISC_PLATFORM_HAVECMPXCHG will be defined.
 
254
 */
 
255
@ISC_PLATFORM_HAVECMPXCHG@
 
256
 
 
257
/*
 
258
 * Define if gcc ASM extension is available
 
259
 */
 
260
@ISC_PLATFORM_USEGCCASM@
 
261
 
 
262
/*
 
263
 * Define if Tru64 style ASM syntax must be used.
 
264
 */
 
265
@ISC_PLATFORM_USEOSFASM@
 
266
 
 
267
/*
 
268
 * Define if the standard __asm function must be used.
 
269
 */
 
270
@ISC_PLATFORM_USESTDASM@
 
271
 
 
272
/*
 
273
 * Define if the platform has <strings.h>.
 
274
 */
 
275
@ISC_PLATFORM_HAVESTRINGSH@
 
276
 
 
277
/***
 
278
 ***    Windows dll support.
 
279
 ***/
 
280
 
 
281
/*
 
282
 * Define if MacOS style of PPC assembly must be used.
 
283
 * e.g. "r6", not "6", for register six.
 
284
 */
 
285
@ISC_PLATFORM_USEMACASM@
212
286
 
213
287
#ifndef ISC_PLATFORM_USEDECLSPEC
214
288
#define LIBISC_EXTERNAL_DATA
216
290
#define LIBISCCC_EXTERNAL_DATA
217
291
#define LIBISCCFG_EXTERNAL_DATA
218
292
#define LIBBIND9_EXTERNAL_DATA
219
 
#else /* ISC_PLATFORM_USEDECLSPEC */
 
293
#else /*! \brief ISC_PLATFORM_USEDECLSPEC */
220
294
#ifdef LIBISC_EXPORTS
221
295
#define LIBISC_EXTERNAL_DATA __declspec(dllexport)
222
296
#else
242
316
#else
243
317
#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
244
318
#endif
245
 
#endif /* ISC_PLATFORM_USEDECLSPEC */
 
319
#endif /*! \brief ISC_PLATFORM_USEDECLSPEC */
246
320
 
247
321
/*
248
322
 * Tell emacs to use C mode for this file.