Commit Graph
1493 Commits
Author SHA1 Message Date
Daniel Stenberg 3217c7eef2 ares__swap_lists: make private and static
... since there's only one user, make it static within ares_process.c
2013-02-13 14:58:04 +01:00
Yang Tse be6e6984b5 Makefile.msvc: add four VS version strings 2013-02-13 13:03:44 +01:00
Daniel Stenberg df72bed2e3 ares_expand_name.3: clarify how to free the data 2013-02-13 11:01:50 +01:00
Yang Tse 75a8407985 zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
- Fix a pair of single quotes to double quotes.

URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
Reported by: Tor Arntsen
2013-01-30 16:58:46 +01:00
Yang Tse b6dd41b6ef zz40-xc-ovr.m4: fix 'wc' detection - follow-up
- Take into account that 'wc' may return leading spaces and/or tabs.

- Set initial IFS to space, tab and newline.
2013-01-30 15:46:50 +01:00
Yang Tse 422717ba6f zz40-xc-ovr.m4: fix 'wc' detection
- Take into account that 'wc' may return leading spaces.

- Set internationalization behavior variables.

Tor Arntsen analyzed and reported the issue.

URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
2013-01-30 12:25:53 +01:00
Yang Tse e03b5288ec zz40-xc-ovr.m4: check another three basic utilities 2013-01-29 20:49:16 +01:00
Yang Tse ddc7ab6713 zz40-xc-ovr.m4: 1.0 interface stabilization
- Stabilization results in 4 public interface m4 macros:
  XC_CONFIGURE_PREAMBLE
  XC_CONFIGURE_PREAMBLE_VER_MAJOR
  XC_CONFIGURE_PREAMBLE_VER_MINOR
  XC_CHECK_PATH_SEPARATOR
- Avoid one level of internal indirection
- Update comments
- Drop XC_OVR_ZZ40 macro
2013-01-28 21:28:42 +01:00
Yang Tse 18b7d9a9f4 zz40-xc-ovr.m4: emit witness message in configure BODY
This avoids witness message in output when running configure --help,
while sending the message to config.log for other configure runs.
2013-01-26 03:49:30 +01:00
Yang Tse 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
Yang Tse 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
Yang Tse 44635a5ec0 zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies 2013-01-25 12:21:47 +01:00
Yang Tse 186c57182e zz40-xc-ovr.m4: avoid double single-quote usage 2013-01-25 05:16:18 +01:00
Yang Tse 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
Yang Tse 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
Yang Tse 971bdfedb2 zz40-xc-ovr.m4: redirect errors and warnings to stderr 2013-01-23 21:54:06 +01:00
Yang Tse 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
Yang Tse b74bcad714 zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro 2013-01-23 18:20:22 +01:00
Yang Tse 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
Yang Tse 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
Yang Tse 4718066ea4 ares_private.h: use again memdebug.h instead of curl_memdebug.h 2013-01-04 12:30:52 +01:00
Yang Tse 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
Yang Tse 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
Yang Tse 5b5066d6bc ares_private.h: use curl_memdebug.h instead of memdebug.h 2012-12-28 20:18:14 +01:00
Yang Tse a056480169 vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c 2012-12-18 13:54:27 +01:00
Yang Tse b214c21cf6 cares-functions.m4: improve gethostname arg 2 data type check 2012-12-17 16:32:24 +01:00
Yang Tse c220b29b3c setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
Also reverts commit bceb40095a
2012-12-17 02:09:22 +01:00
Yang Tse 84eb2dc220 configure: check if compiler halts on function prototype mismatch 2012-12-16 18:50:58 +01:00
Yang Tse 9da14a847f cares-functions.m4: add gethostname arg 2 data type check and definition 2012-12-15 17:46:49 +01:00
Yang Tse 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
Yang Tse 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
Yang Tse 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
Yang Tse a1035276c1 Header inclusion clean-up
Remove header inclusions already done in setup_once.h
2012-12-14 18:25:56 +01:00
Yang Tse 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
Yang Tse 98b52964cf ares_timeout.c: fix compiler warning 2012-12-10 16:12:49 +01:00
Yang Tse 93a09eabeb ares_create_query.c: IRIX compilation fix 2012-11-23 14:28:37 +01:00
Yang Tse a5ce39391c c-ares/nameser.h: add some T_* defines for ns_t_* values 2012-11-23 14:23:34 +01:00
Daniel Stenberg 1e4f2d28fc Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit 50f25d8a4b.
2012-11-07 22:54:50 +01:00
Daniel Stenberg 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
Gisle Vanem 805c736e36 adig: perror() doesn't work for socket errors on windows
... so print the SOCKERRNO instead
2012-08-24 23:17:26 +02:00
Daniel Stenberg 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
Daniel Stenberg 2b897074cb version: bumped to 1.10.0
Due to the newly added function: ares_create_query()
2012-08-21 23:00:25 +02:00
Daniel Stenberg a1314e492d AUTHORS: synced with 83093ac450
Added 21 authors since this document was last updated
2012-08-21 22:59:05 +02:00
Daniel Stenberg 83093ac450 ares_create_query.3: mention when this is added 2012-08-17 23:14:24 +02:00
hpopescu@ixiacom.com 90364defb0 Added new feature (rfc2671) 2012-08-17 00:54:47 +02:00
Daniel Stenberg e447bc5c60 code police: fix indents, < 80 columns, reflowed comments 2012-07-26 20:03:20 +02:00
Guenter Knauf 8283fb15e6 Cleaned up version awk script. 2012-07-11 23:40:20 +02:00
Gisle Vanem 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
Yang Tse 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
Yang Tse bc0c3c62cc cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds 2012-06-26 21:24:08 +02:00