Yang Tse [Tue, 19 Feb 2013 13:11:26 +0000 (14:11 +0100)]
configure: use XC_LIBTOOL for portability across libtool versions
Yang Tse [Fri, 8 Mar 2013 12:19:42 +0000 (13:19 +0100)]
xc-lt-iface.m4: provide XC_LIBTOOL macro
Yang Tse [Mon, 18 Feb 2013 10:38:22 +0000 (11:38 +0100)]
Makefile.am: use AM_CPPFLAGS instead of INCLUDES
Yang Tse [Tue, 19 Feb 2013 12:54:28 +0000 (13:54 +0100)]
inet_ntop.c: s/socklen_t/ares_socklen_t
Yang Tse [Tue, 19 Feb 2013 12:27:33 +0000 (13:27 +0100)]
inet_ntop.c: s/socklen_t/ares_socklen_t for portability
Daniel Stenberg [Tue, 19 Feb 2013 12:00:36 +0000 (13:00 +0100)]
ares.h: s/socklen_t/ares_socklen_t for portability
Daniel Stenberg [Sun, 17 Feb 2013 18:18:54 +0000 (19:18 +0100)]
ares_inet_ntop.3: 4th argument is socklen_t!
Daniel Stenberg [Sun, 17 Feb 2013 16:51:37 +0000 (17:51 +0100)]
spell inet correctly!
Daniel Stenberg [Sun, 17 Feb 2013 16:13:39 +0000 (17:13 +0100)]
ares_inet_pton/ntop: cleanup
Make sure that the symbols are always exported and present in c-ares.
Make the headers prefixed with 'ares'.
Removed the inet_ntop.h version as it no longer features any content.
Daniel Stenberg [Sun, 17 Feb 2013 15:56:21 +0000 (16:56 +0100)]
ares_inet_ntop/ares_inet_pton: added man pages
Gisle Vanem [Fri, 15 Feb 2013 01:27:10 +0000 (02:27 +0100)]
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
Gisle Vanem [Fri, 15 Feb 2013 01:23:18 +0000 (02:23 +0100)]
config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
Gisle Vanem [Fri, 15 Feb 2013 01:20:49 +0000 (02:20 +0100)]
config-dos.h: define strerror() to strerror_s_() for High-C
Daniel Stenberg [Wed, 13 Feb 2013 13:40:00 +0000 (14:40 +0100)]
ares_get_datatype: removed unused function
it was also wrongly named as internal functions require two underscores
Daniel Stenberg [Wed, 13 Feb 2013 13:37:16 +0000 (14:37 +0100)]
ares__bitncmp: use two underscores for private functions
It used a single one previously making it look like a public one
Daniel Stenberg [Wed, 13 Feb 2013 13:21:08 +0000 (14:21 +0100)]
ares__generate_new_id: moved to ares_query.c
... and ares__rc4 is turned into a local static function.
Daniel Stenberg [Wed, 13 Feb 2013 13:01:14 +0000 (14:01 +0100)]
ares__swap_lists: make private and static
... since there's only one user, make it static within ares_process.c
Yang Tse [Wed, 13 Feb 2013 12:00:36 +0000 (13:00 +0100)]
Makefile.msvc: add four VS version strings
Daniel Stenberg [Wed, 13 Feb 2013 10:01:29 +0000 (11:01 +0100)]
ares_expand_name.3: clarify how to free the data
Yang Tse [Wed, 30 Jan 2013 15:58:46 +0000 (16:58 +0100)]
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
Yang Tse [Wed, 30 Jan 2013 14:46:50 +0000 (15:46 +0100)]
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.
Yang Tse [Wed, 30 Jan 2013 11:19:59 +0000 (12:19 +0100)]
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
Yang Tse [Tue, 29 Jan 2013 19:49:16 +0000 (20:49 +0100)]
zz40-xc-ovr.m4: check another three basic utilities
Yang Tse [Mon, 28 Jan 2013 20:28:42 +0000 (21:28 +0100)]
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
Yang Tse [Sat, 26 Jan 2013 02:49:30 +0000 (03:49 +0100)]
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.
Yang Tse [Fri, 25 Jan 2013 18:20:28 +0000 (19:20 +0100)]
zz40-xc-ovr.m4: truly do version conditional overriding
- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments
Yang Tse [Fri, 25 Jan 2013 13:22:43 +0000 (14:22 +0100)]
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
Yang Tse [Fri, 25 Jan 2013 11:21:47 +0000 (12:21 +0100)]
zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
Yang Tse [Fri, 25 Jan 2013 04:16:18 +0000 (05:16 +0100)]
zz40-xc-ovr.m4: avoid double single-quote usage
Yang Tse [Thu, 24 Jan 2013 23:46:58 +0000 (00:46 +0100)]
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.
Yang Tse [Thu, 24 Jan 2013 19:25:43 +0000 (20:25 +0100)]
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
Yang Tse [Wed, 23 Jan 2013 20:54:06 +0000 (21:54 +0100)]
zz40-xc-ovr.m4: redirect errors and warnings to stderr
Yang Tse [Wed, 23 Jan 2013 15:54:33 +0000 (16:54 +0100)]
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.
Yang Tse [Wed, 23 Jan 2013 15:46:58 +0000 (16:46 +0100)]
zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
Yang Tse [Wed, 23 Jan 2013 15:44:25 +0000 (16:44 +0100)]
configure: autotools compatibility fixes - step I
Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.
Yang Tse [Wed, 23 Jan 2013 15:16:13 +0000 (16:16 +0100)]
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
Yang Tse [Fri, 4 Jan 2013 11:30:52 +0000 (12:30 +0100)]
ares_private.h: use again memdebug.h instead of curl_memdebug.h
Yang Tse [Tue, 1 Jan 2013 18:27:30 +0000 (19:27 +0100)]
configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
Yang Tse [Tue, 1 Jan 2013 17:21:34 +0000 (18:21 +0100)]
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.
Yang Tse [Fri, 28 Dec 2012 18:57:04 +0000 (19:57 +0100)]
ares_private.h: use curl_memdebug.h instead of memdebug.h
Yang Tse [Tue, 18 Dec 2012 12:54:27 +0000 (13:54 +0100)]
vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c
Yang Tse [Mon, 17 Dec 2012 15:32:24 +0000 (16:32 +0100)]
cares-functions.m4: improve gethostname arg 2 data type check
Yang Tse [Mon, 17 Dec 2012 01:09:22 +0000 (02:09 +0100)]
setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
Also reverts commit
bceb40095a
Yang Tse [Sun, 16 Dec 2012 17:50:58 +0000 (18:50 +0100)]
configure: check if compiler halts on function prototype mismatch
Yang Tse [Sat, 15 Dec 2012 16:46:49 +0000 (17:46 +0100)]
cares-functions.m4: add gethostname arg 2 data type check and definition
Yang Tse [Sat, 15 Dec 2012 16:36:09 +0000 (17:36 +0100)]
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.
Yang Tse [Fri, 14 Dec 2012 18:39:21 +0000 (19:39 +0100)]
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.
Yang Tse [Fri, 14 Dec 2012 17:36:59 +0000 (18:36 +0100)]
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
Inclusion of these two header files now done in setup_once.h
Yang Tse [Fri, 14 Dec 2012 17:25:56 +0000 (18:25 +0100)]
Header inclusion clean-up
Remove header inclusions already done in setup_once.h
Yang Tse [Wed, 12 Dec 2012 15:39:07 +0000 (16:39 +0100)]
setup_once.h: HP-UX specific TRUE and FALSE definitions
Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
Yang Tse [Mon, 10 Dec 2012 15:12:49 +0000 (16:12 +0100)]
ares_timeout.c: fix compiler warning
Yang Tse [Fri, 23 Nov 2012 13:28:37 +0000 (14:28 +0100)]
ares_create_query.c: IRIX compilation fix
Yang Tse [Fri, 23 Nov 2012 13:23:34 +0000 (14:23 +0100)]
c-ares/nameser.h: add some T_* defines for ns_t_* values
Daniel Stenberg [Wed, 7 Nov 2012 21:54:50 +0000 (22:54 +0100)]
Revert "ares_parse_aaaa_reply: fix memory leak"
This reverts commit
50f25d8a4b2d16f4c5e0ef620238688b7a315c7a.
Daniel Stenberg [Tue, 2 Oct 2012 20:36:05 +0000 (22:36 +0200)]
ares_parse_aaaa_reply: fix memory leak
an allocated buffer was not freed in the successful case.
Gisle Vanem [Fri, 24 Aug 2012 21:17:26 +0000 (23:17 +0200)]
adig: perror() doesn't work for socket errors on windows
... so print the SOCKERRNO instead
Daniel Stenberg [Wed, 22 Aug 2012 22:11:30 +0000 (00:11 +0200)]
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é
Daniel Stenberg [Tue, 21 Aug 2012 21:00:25 +0000 (23:00 +0200)]
version: bumped to 1.10.0
Due to the newly added function: ares_create_query()
Daniel Stenberg [Tue, 21 Aug 2012 20:59:05 +0000 (22:59 +0200)]
AUTHORS: synced with
83093ac450
Added 21 authors since this document was last updated
Daniel Stenberg [Fri, 17 Aug 2012 21:14:24 +0000 (23:14 +0200)]
ares_create_query.3: mention when this is added
hpopescu@ixiacom.com [Fri, 10 Aug 2012 09:06:09 +0000 (12:06 +0300)]
Added new feature (rfc2671)
Daniel Stenberg [Thu, 26 Jul 2012 18:02:42 +0000 (20:02 +0200)]
code police: fix indents, < 80 columns, reflowed comments
Guenter Knauf [Wed, 11 Jul 2012 21:40:20 +0000 (23:40 +0200)]
Cleaned up version awk script.
Gisle Vanem [Sat, 30 Jun 2012 21:44:00 +0000 (23:44 +0200)]
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.
Yang Tse [Fri, 29 Jun 2012 14:40:29 +0000 (16:40 +0200)]
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.
Yang Tse [Tue, 26 Jun 2012 19:22:35 +0000 (21:22 +0200)]
cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds
Daniel Stenberg [Mon, 18 Jun 2012 21:43:21 +0000 (23:43 +0200)]
version: work towards 1.9.2 (at least)
Daniel Stenberg [Mon, 18 Jun 2012 20:23:58 +0000 (22:23 +0200)]
RELEASE-NOTES: 1.9.1 coming up
Daniel Stenberg [Sat, 16 Jun 2012 21:17:57 +0000 (23:17 +0200)]
ares_version.h: next version is 1.9.0
Marko Kreen [Sat, 16 Jun 2012 21:12:04 +0000 (23:12 +0200)]
ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0
Daniel Stenberg [Fri, 15 Jun 2012 11:40:37 +0000 (13:40 +0200)]
RELEASE-NOTES: synced with
979bf951d
Next release deemed to become 1.9.0 due to the new function
Marko Kreen [Fri, 15 Jun 2012 11:29:03 +0000 (13:29 +0200)]
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
Yang Tse [Thu, 14 Jun 2012 19:19:48 +0000 (21:19 +0200)]
Kill compiler warning
Yang Tse [Fri, 25 May 2012 21:59:28 +0000 (23:59 +0200)]
Fix libcares.pc generation for static MingW* cross builds
Nick Alcock [Mon, 21 May 2012 14:25:07 +0000 (16:25 +0200)]
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.
Yang Tse [Sat, 28 Apr 2012 09:45:01 +0000 (11:45 +0200)]
version: start working on 1.8.1-DEV
Daniel Stenberg [Fri, 27 Apr 2012 20:04:41 +0000 (22:04 +0200)]
RELEASE-NOTES: call next 1.8 instead
Since we added a function, let's use a stricter bumping scheme
Yang Tse [Wed, 25 Apr 2012 15:55:09 +0000 (17:55 +0200)]
INSTALL: some adjustments
Daniel Stenberg [Wed, 25 Apr 2012 15:00:09 +0000 (17:00 +0200)]
GIT-INFO: mention buildconf
Yang Tse [Wed, 25 Apr 2012 14:38:18 +0000 (16:38 +0200)]
INSTALL: remove more sections that don't apply to c-ares
Yang Tse [Wed, 25 Apr 2012 13:49:26 +0000 (15:49 +0200)]
ares_timeout.c: fix compiler warning
Ben Noordhuis [Wed, 25 Apr 2012 12:07:57 +0000 (05:07 -0700)]
Makefile.m32: fix mingw32 build
* add . to include path so ares_build.h is picked up
* make ar configurable to ease cross-compiling
Daniel Stenberg [Sun, 22 Apr 2012 15:29:34 +0000 (17:29 +0200)]
RELEASE-NOTES: added what's happened since 1.7.5
Guenter Knauf [Sun, 22 Apr 2012 11:09:39 +0000 (13:09 +0200)]
Updated copyright year.
Yang Tse [Sat, 21 Apr 2012 12:12:47 +0000 (14:12 +0200)]
ares_init.c: Further refactoring of Windows system's DNS fetching code
Guenter Knauf [Fri, 20 Apr 2012 18:42:41 +0000 (20:42 +0200)]
Android: small changes to dns property part.
Prefix prop vars; kill var; use DNS_PROP_NAME_PREFIX macro.
Guenter Knauf [Thu, 19 Apr 2012 17:27:02 +0000 (19:27 +0200)]
Handle CNAME-only in ares_parse_aaaa_reply().
posted to the c-ares list by Peter Griess <pg@std.in>.
Guenter Knauf [Thu, 19 Apr 2012 17:16:27 +0000 (19:16 +0200)]
Add support for multiple DNS servers on Android.
Before, c-ares always used the first DNS server on Android, causing
network problems if this DNS server was not available.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Guenter Knauf [Thu, 19 Apr 2012 08:05:03 +0000 (10:05 +0200)]
Added INSTALL so it gets into tarballs.
Guenter Knauf [Tue, 17 Apr 2012 14:57:40 +0000 (16:57 +0200)]
Added some more ifdefs to silent compiler warnings.
Yang Tse [Tue, 17 Apr 2012 11:53:08 +0000 (13:53 +0200)]
INSTALL: remove a non c-ares section
Yang Tse [Tue, 17 Apr 2012 11:27:17 +0000 (13:27 +0200)]
cares-compilers.m4: -Wno-pedantic-ms-format for Windows gcc 4.5 builds
When building a Windows target with gcc 4.5 or newer and strict compiler
warnings enabled use -Wno-pedantic-ms-format in addition to other flags.
Yang Tse [Tue, 17 Apr 2012 11:18:33 +0000 (13:18 +0200)]
setup_once.h: tighten requirements for stdbool.h header inclusion
Include stdbool.h only when it is available and configure is capable of
detecting a proper 'bool' data type when the header is included.
Yang Tse [Tue, 17 Apr 2012 11:13:28 +0000 (13:13 +0200)]
configure: NATIVE_WINDOWS no longer defined in config file
Yang Tse [Tue, 17 Apr 2012 10:57:09 +0000 (12:57 +0200)]
cares-compilers.m4: double underscore decoration for visibility attribute
Yang Tse [Tue, 17 Apr 2012 10:46:22 +0000 (12:46 +0200)]
build adjustments: CARES_SYMBOL_HIDING no longer defined in config files
configure script now provides conditional definitions for Makefile.am
that result in CARES_SYMBOL_HIDING being defined by resulting makefiles
when appropriate.
Yang Tse [Tue, 17 Apr 2012 03:46:30 +0000 (05:46 +0200)]
configure: Windows cross-compilation fixes
CARES_BUILDING_LIBRARY and CARES_STATICLIB no longer defined in ares_config.h,
configure will generate appropriate conditionals so that mentioned symbols
get defined and used in Makefile derived from Makefile.am at compilation time.
Guenter Knauf [Tue, 17 Apr 2012 07:35:41 +0000 (09:35 +0200)]
Added INSTALL file adapted from libcurl.
Not yet ready, and needs further edits.
Yang Tse [Mon, 16 Apr 2012 20:10:23 +0000 (22:10 +0200)]
ares_init.c: get_iphlpapi_dns_info() refactoring
Guenter Knauf [Mon, 16 Apr 2012 13:33:14 +0000 (15:33 +0200)]
Kill some more compiler warnings.