1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-11-22 06:19:45 +00:00
Commit Graph

1684 Commits

Author SHA1 Message Date
e916c68de7 zz40-xc-ovr.m4: truly do version conditional overriding
- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments
2013-01-25 19:20:28 +01:00
0110c7f6ee zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
Tor Arntsen analyzed and reported the issue.

URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
2013-01-25 14:22:43 +01:00
44635a5ec0 zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies 2013-01-25 12:21:47 +01:00
186c57182e zz40-xc-ovr.m4: avoid double single-quote usage 2013-01-25 05:16:18 +01:00
b157f4a0be zz40-xc-ovr.m4: parentheses balancing of 'case' statements
m4 quadrigraph shell comment technique allows proper autoconf
parentheses balancing in shell 'case' statements. The presence
of unbalanced parentheses may otherwise trigger expansion bugs.
2013-01-25 00:46:58 +01:00
15177a631e zz40-xc-ovr.m4: internals overhauling
- Update comments
- Execute commands in subshells
- Faster path separator check
- Fix missing 'test' command
- Rename private macros
- Minimize AC_REQUIRE usage
2013-01-24 20:39:08 +01:00
971bdfedb2 zz40-xc-ovr.m4: redirect errors and warnings to stderr 2013-01-23 21:54:06 +01:00
14e78ad68b configure: use XC_CONFIGURE_PREAMBLE early checks
Some basic checks we make were placed early enough in generated
configure script when using autoconf 2.5X versions. Newer autoconf
versions expand these checks much further into the configure script,
rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
of early intended checks across all our autoconf supported versions.
2013-01-23 18:20:33 +01:00
b74bcad714 zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro 2013-01-23 18:20:22 +01:00
037656b2d8 configure: autotools compatibility fixes - step I
Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.
2013-01-23 16:44:25 +01:00
dc6c864108 configure: fix automake 1.13 compatibility
Tested with:

buildconf: autoconf version 2.69
buildconf: autom4te version 2.69
buildconf: autoheader version 2.69
buildconf: automake version 1.13.1
buildconf: aclocal version 1.13.1
buildconf: libtool version 2.4
buildconf: GNU m4 version 1.4.16
2013-01-23 16:16:13 +01:00
4718066ea4 ares_private.h: use again memdebug.h instead of curl_memdebug.h 2013-01-04 12:30:52 +01:00
a664066899 configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
2013-01-01 19:27:30 +01:00
70ac469a0c cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally
Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using
an autoconf version that does not provide it, instead of what we were
doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for
all autoconf versions.
2013-01-01 18:21:34 +01:00
5b5066d6bc ares_private.h: use curl_memdebug.h instead of memdebug.h 2012-12-28 20:18:14 +01:00
a056480169 vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c 2012-12-18 13:54:27 +01:00
b214c21cf6 cares-functions.m4: improve gethostname arg 2 data type check 2012-12-17 16:32:24 +01:00
c220b29b3c setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
Also reverts commit bceb40095a
2012-12-17 02:09:22 +01:00
84eb2dc220 configure: check if compiler halts on function prototype mismatch 2012-12-16 18:50:58 +01:00
9da14a847f cares-functions.m4: add gethostname arg 2 data type check and definition 2012-12-15 17:46:49 +01:00
a28e44c344 cares-functions.m4: update thread-safeness detection of getaddrinfo()
Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
(_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.

Take in account that h_errno might be a modifiable lvalue not defined as
a C preprocessor macro.
2012-12-15 17:36:09 +01:00
4ed0fc2d44 setup_once.h: HP-UX <sys/socket.h> issue workaround
Issue: When building a 32bit target with large file support HP-UX
<sys/socket.h> header file may simultaneously provide two different
sets of declarations for sendfile and sendpath functions, one with
static and another with external linkage. Given that we do not use
mentioned functions we really don't care which linkage is the
appropriate one, but on the other hand, the double declaration emmits
warnings when using the HP-UX compiler and errors when using modern
gcc versions resulting in fatal compilation errors.

Mentioned issue is now fixed as long as we don't use sendfile nor
sendpath functions.
2012-12-14 19:39:21 +01:00
0c677f578e setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
Inclusion of these two header files now done in setup_once.h
2012-12-14 18:36:59 +01:00
a1035276c1 Header inclusion clean-up
Remove header inclusions already done in setup_once.h
2012-12-14 18:25:56 +01:00
bceb40095a setup_once.h: HP-UX specific TRUE and FALSE definitions
Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
2012-12-12 16:39:07 +01:00
98b52964cf ares_timeout.c: fix compiler warning 2012-12-10 16:12:49 +01:00
93a09eabeb ares_create_query.c: IRIX compilation fix 2012-11-23 14:28:37 +01:00
a5ce39391c c-ares/nameser.h: add some T_* defines for ns_t_* values 2012-11-23 14:23:34 +01:00
1e4f2d28fc Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit 50f25d8a4b.
2012-11-07 22:54:50 +01:00
50f25d8a4b ares_parse_aaaa_reply: fix memory leak
an allocated buffer was not freed in the successful case.
2012-10-02 22:36:05 +02:00
805c736e36 adig: perror() doesn't work for socket errors on windows
... so print the SOCKERRNO instead
2012-08-24 23:17:26 +02:00
65ac7e706d get_DNS_AdaptersAddresses: fix IPv6 parsing
Use of the wrong define made the function not parse IPv6 addresses
properly.

Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml
Reported by: Saúl Ibarra Corretgé
2012-08-23 00:11:30 +02:00
2b897074cb version: bumped to 1.10.0
Due to the newly added function: ares_create_query()
2012-08-21 23:00:25 +02:00
a1314e492d AUTHORS: synced with 83093ac450
Added 21 authors since this document was last updated
2012-08-21 22:59:05 +02:00
83093ac450 ares_create_query.3: mention when this is added 2012-08-17 23:14:24 +02:00
90364defb0 Added new feature (rfc2671) 2012-08-17 00:54:47 +02:00
e447bc5c60 code police: fix indents, < 80 columns, reflowed comments 2012-07-26 20:03:20 +02:00
8283fb15e6 Cleaned up version awk script. 2012-07-11 23:40:20 +02:00
4d91235900 read_udp_packets: bail out loop on bad sockets
I can see that recvfrom() in ares_process.c many times is called with
'udp_socket' == ARES_SOCKET_BAD. The code takes care not to call
recv/recvfrom with ARES_SOCKET_BAD in the outer-loop. So should the
inner-loop.
2012-06-30 23:44:00 +02:00
54751f4d33 cares-compilers.m4: remove -Wstrict-aliasing=3 from clang
Currently it is unknown if there is any version of clang that
actually supports -Wstrict-aliasing. What is known is that there
are several that don't support it.
2012-06-29 16:40:29 +02:00
bc0c3c62cc cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds 2012-06-26 21:24:08 +02:00
a85ba35816 version: work towards 1.9.2 (at least) 2012-06-18 23:43:21 +02:00
b743f875d3 RELEASE-NOTES: 1.9.1 coming up cares-1_9_1 2012-06-18 22:23:58 +02:00
3b649328be ares_version.h: next version is 1.9.0 cares-1_9_0 2012-06-16 23:17:57 +02:00
6e44d64429 ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0 2012-06-16 23:12:04 +02:00
cc067c21fe RELEASE-NOTES: synced with 979bf951d
Next release deemed to become 1.9.0 due to the new function
2012-06-15 13:40:37 +02:00
979bf951d3 SOA parser added
I need to do SOA queries, so here is a parser for them.

- ares_soa_reply: new struct
- ares_malloc_data/ares_free_soa: ARES_DATATYPE_SOA_REPLY
- ares_parse_soa_reply: actual function
2012-06-15 13:32:48 +02:00
38b69b7269 Kill compiler warning 2012-06-14 21:19:48 +02:00
1972aad19e Fix libcares.pc generation for static MingW* cross builds 2012-05-25 23:59:28 +02:00
9bd38a4a6e Fix UDP and TCP port byte order in saved options.
The UDP and TCP port are stored in network byte order in the
ares_channeldata, but are passed in to ares_init_options() in host byte
order.  Thus we must return them from ares_save_options() in host byte
order too, or a duplicated channel will convert them again, leading to a
nonfunctional channel and a mysterious connection refused error from
ares_gethostbyname().  This breaks ares_dup(), thus the curl easy API
when c-ares is used by curl, and thus all the curl easy API's users.
2012-05-21 22:40:45 +02:00