1 Changelog for the c-ares project. Generated with git2changes.pl
3 Version 1.12.0 (29 Sep 2016)
5 Daniel Stenberg (29 Sep 2016)
6 - RELEASE-NOTES: 1.12.0
8 - [David Drysdale brought this change]
10 ares-test-misc: test ares_create_query with escaped trailing dot
12 - ares_create_query: avoid single-byte buffer overwrite
14 ... when the name ends with an escaped dot.
18 Bug: https://c-ares.haxx.se/adv_20160929.html
20 - ares_library_initialized.3: added
22 - make: bump CARES_VERSION_INFO for release
24 David Drysdale (29 Sep 2016)
25 - man: update ares_init_options.3
27 Daniel Stenberg (29 Sep 2016)
28 - ares_library_init.3: corrected the ares_library_init_mem proto
30 - README.md: remove space from link
32 - README: link to the correct c-ares badge!
34 Reported-by: David Hotham
38 - docs: minor formatting edits
40 - ares_destroy.3: formatting polish
42 - ares_init.3: split the init docs into two separate man pages
44 - SECURITY: point to the vulnerabilities page now
46 - RELEASE-NOTES: synced with daa7235b1a5
48 - ares_create_query.3: edit language
50 Tried to make the man page more readable.
52 David Drysdale (26 Sep 2016)
53 - test: fix gMock to work with gcc >= 6.x
56 https://github.com/google/googletest/issues/705#issuecomment-235067917
58 Daniel Stenberg (26 Sep 2016)
59 - [Brad House brought this change]
61 headers: remove checks for and defines of variable sizes
63 ... they're not really used and by avoiding them in the ares_build.h
64 output we make the public header less dependent on data sizes.
66 David Drysdale (24 Sep 2016)
67 - api: add ARES_OPT_NOROTATE optmask value
69 Fix up a couple of problems with configuring whether c-ares rotates
70 between different name servers between requests.
72 Firstly, ares_save_options() returns (in *optmask) the value of
73 (channel->optmask & ARES_OPT_ROTATE), which doesn't necessarily
74 indicate whether the channel is or is not actually doing rotation.
75 This can be confusing/incorrect if:
76 - the channel was originally configured without ARES_OPT_ROTATE
77 (so it appears that the channel is not rotating)
78 - the /etc/resolv.conf file includes the 'rotate' option
79 (so the channel is actually performing rotation).
81 Secondly, it is not possible to reliably configure a channel
82 to not-rotate; leaving off ARES_OPT_ROTATE is not enough, since
83 a 'rotate' option in /etc/resolv.conf will turn it on again.
86 - add an ARES_OPT_NOROTATE optmask value to allow explicit
87 configuration of no-rotate behaviour
88 - in ares_save_options(), report the value of channel->rotate
89 as exactly one of (optmask & ARES_OPT_ROTATE) or
90 (optmask & ARES_OPT_NOROTATE).
92 In terms of back-compatibility:
93 - existing apps that set ARES_OPT_ROTATE will continue to rotate,
94 and to have ARES_OPT_ROTATE reported back from ares_save_options()
95 - existing apps that don't set ARES_OPT_ROTATE will continue to
96 use local config/defaults to decide whether to rotate, and will
97 now get ARES_OPT_ROTATE or ARES_OPT_NOROTATE reported back from
98 ares_save_options() rather than 0.
100 - ares_init_options: only propagate init failures from options
102 Commit 46bb820be3a8 ("ares_init_options: don't lose init failure")
103 changed init behaviour so that earlier errors in initialization
104 weren't lost. In particular, if the user passes in specific
105 options but they are not applied (e.g. because of an allocation
106 failure), that failure needs to be reported back to the user; this
107 also applies when duplicating a channel with ares_dup().
109 However, other initialization failures can be ignored and
110 overridden -- in particular, if init_by_resolv_conf() or
111 init_by_environment() fail, then falling back to default values
114 So only preserve failures from the init_by_options() stage, not
115 from all initialization stages.
119 - test: Force reinstall of libtool on OSX
121 Travis build environment appears to have changed.
123 - test: Add valgrind build variant
125 - test: Add null pointer to gtest args
127 GoogleTest assumes that there is a null pointer in argv[argc],
128 so make it look like that. Without this change, tests run with
129 command-line arguments get memory errors under valgrind/ASAN.
131 Daniel Stenberg (21 Aug 2016)
132 - AUTHOR: maybe gitgub isn't really an author =)
134 - AUTHORS: added contributors from the git log
136 - LICENSE.md: add a stand-alone license file
138 Just the MIT license used in the top the source files moved out to a
139 stand-alone file for easier reference and discovery.
141 - README: added "CII best practices" badge
143 - SECURITY.md: suggested "security process" for the project
145 David Drysdale (17 Aug 2016)
146 - test: Add Clang static analysis build to Travis
148 Run scan-build over the library source code, but skip the
149 tests. Needs a later Clang install in Travis
151 - test: more info on how to run fuzz testing
153 - test: make fuzzer driver code C not C++
155 - test: fuzzer mode for AFL's persistent mode
157 When fuzzing with AFL, if the LLVM-based instrumentation is
158 used (via the afl-clang-fast wrapper), then it is possible to
159 have a single execution of the fuzzer program iterate multiple
160 times over the fuzzing entrypoint (similar to libFuzzer's normal
161 mode of execution) with different data. This is much (e.g. 10x)
164 Add code to support this, by checking whether __AFL_LOOP is
165 defined at compile-time.
167 Also, shift the code to effectively be C rather than C++.
169 - test: simplify deps for fuzzer entrypoint
171 No need to depend on the rest of the test code (ares-test.h) for
172 the fuzzer entrypoint; this makes the entrypoint slightly simpler
173 to build with LLVM's libFuzzer.
175 Also shift the code to effectively be C rather than C++
177 - test: disable MinGW tests
179 The test binary built in the MinGW build is failing for some
180 reason. It works for me when I build locally, so I'm guessing
181 it's down to some sort of AppVeyor environment issue.
185 Daniel Stenberg (16 Aug 2016)
186 - read_tcp_data: remove superfluous NULL check
188 CID 56884 by Coverity. The pointer is already derefenced before this
189 point so it can't be NULL here anyway.
194 - [David Drysdale brought this change]
196 Merge pull request #59 from fuze/master
198 Update msvc_ver.inc for VS2015 Update 3
200 - [Chris Araman brought this change]
204 support Visual Studio 2015 Update 3
206 David Drysdale (2 May 2016)
207 - Fix trailing comment for #endif
209 Daniel Stenberg (30 Apr 2016)
210 - email: use Gisle's "new" address
212 David Drysdale (18 Apr 2016)
213 - test: drop superfluous fuzz inputs
215 Where there are multiple fuzz input files that only differ in
216 the first two bytes (the query ID), just keep the first such
219 svante karlsson (15 Apr 2016)
220 - Update msvc_ver.inc
222 support Visual Studio 2015 Update 2
224 David Drysdale (31 Mar 2016)
225 - test: Run fuzzcheck.sh in Travis build
227 - test: add fuzzing check script to tests
229 Add a test script that runs the fuzzing command over the
230 corpus of DNS packets. This doesn't actually do any fuzzing
231 (it just runs them as inputs without generating any variations)
232 but it does ensure that the fuzzing entrypoint is still working.
234 - test: allow multiple files in aresfuzz command line
236 If no arguments are specified, use stdin as input.
237 Otherwise treat each argument as a filename and feed
238 its contents to the fuzz entrypoint.
240 - test: Add corpus of DNS packets
242 For fuzz testing it is useful to start from a corpus of valid
243 packets, so fill out the test/fuzzinput/ directory with a bunch
246 These packets were generated by temporarily modifying the c-ares
247 process_answer() function to save off any incoming response messages.
249 - test: Add utility to show DNS packet from file
251 - [nordsturm brought this change]
253 Fix nsort initialization
255 Author: Alexander Drachevskiy
256 http://c-ares.haxx.se/mail/c-ares-archive-2014-07/0004.shtml
257 http://c-ares.haxx.se/mail/c-ares-archive-2014-07/0014.shtml
259 - test: Check setting nsort=0 option is respected
261 - test: Update fuzzing function prototype
263 libFuzzer changed expected return type from void to int
266 - Explicitly clear struct servent before use
268 On a build where MSAN has been manually set up (which involves
269 using an MSAN-instrumented version of the standard C++ library, see
270 https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo)
271 there's a warning about use of uninitialized memory here. It
272 might be a false positive, but the fix is trivial so include it.
274 - test: for AF_UNSPEC, return CNAME only for AAAA, but valid A record
276 Also shuffle expected responses rsp6/rsp4 into the order they will occur.
278 - [Chris Araman brought this change]
280 msvc_ver.inc: support Visual Studio 2015 Update 1
282 - build: commonize MSVC version detection
284 Remove the need to copy/paste version number mapping between
285 Makefile.msvc and test/Makefile.msvc.
287 - test: Use different name in live test
289 - test: Only pass unused args to GoogleTest
291 - ahost.c: add cast to fix C++ compile
293 If ahost.c is force-compiled as C++ the missing cast from
294 (void *) to (char **) is problematic.
296 - ares_library_cleanup: reset ares_realloc too
298 Otherwise a subsequent use of the library might use a previous
299 incarnation's realloc() implementation.
301 Daniel Stenberg (9 Mar 2016)
302 - [Brad House brought this change]
304 configure: check if tests can get built before enabled
306 The current approach for disabling tests is not a good solution because
307 it forces you to pass --disable-tests, rather than auto-detect if your
308 system can support the tests in the first place. Many (most?) systems
309 do not have C++11. This also causes issues when chain-building c-ares,
310 the hosting system needs to be updated to support passing this
311 additional flag if necessary, it doesn't seem reasonable to add this
312 requirement which breaks compatibility.
314 This change auto-detects if the system can build the tests and
315 automatically disable them if it cannot. If you pass --enable-tests to
316 configure and the system cannot build them either due to lack of system
317 support, or because cross-compilation is being used, it will throw an
318 appropriate error since the user indicated they really did want the
321 David Drysdale (3 Mar 2016)
322 - [Viktor Szakats brought this change]
324 Makefile.m32: add support for CROSSPREFIX
326 - [Viktor Szakats brought this change]
328 Makefile.m32: add support for extra flags
330 Allow specification of CARES_{LD,C}FLAG_EXTRAS envvars
333 - test: Build with MinGW on AppVeyor
335 - test: avoid in6addr_* constants
337 These aren't available on MinGW, so use explicit addresses instead.
339 - test: add missing #includes for dns-proto.cc
341 - [Gregor Jasny brought this change]
343 Fix man page typos detected by Lintian
345 Daniel Stenberg (19 Feb 2016)
346 - configure: acknowledge --disable-tests
350 - AUTHORS: added contributors from the 1.11.0 release
352 - bump: start working on the next version
354 Version 1.11.0 (19 Feb 2016)
356 Daniel Stenberg (19 Feb 2016)
357 - RELEASE-NOTES: final edits for 1.11.0
359 David Drysdale (15 Feb 2016)
360 - ares_dup.3: remove mention of nonexistent function
362 ares_dup_options() doesn't exist, so don't document it.
364 - test: skip repeated build steps
366 Top-level buildconf/configure now triggers for the
367 test/ subdir too, so don't need to do explicitly.
369 - test: namespaces unavailable when cross-compiling
371 Daniel Stenberg (13 Feb 2016)
372 - configure: only run configure in test when NOT cross-compiling
374 ... as the tests won't run cross-compiled anyway
376 David Drysdale (13 Feb 2016)
377 - test: prefer ON_CALL to EXPECT_CALL to reduce flakes
379 For UDP tests, there's a chance of a retry. EXPECT_CALL only
380 expects a single request to arrive at the server; ON_CALL allows
381 for a UDP retry and repeats the same answer.
383 Note that ON_CALL and EXPECT_CALL can't be mixed in the same
384 test, and that tests that have a varied sequence of responses
385 for the same repeated request still have to use EXPECT_CALL.
387 Daniel Stenberg (13 Feb 2016)
388 - configure: run configure in 'test' too
390 Having the test dir completely stand-alone causes too many issues for
391 users and devs. It still needs to be built specifically.
393 - configure: build silently by default
395 - buildconf: run test/buildconf too if present
397 - test/configure: build silently by default
399 - [Gregor Jasny brought this change]
401 dist: Distribute README.md
405 Version 1.11.0 (11 Feb 2016)
407 Daniel Stenberg (11 Feb 2016)
408 - Makefile.am: distribute the test dir too
410 - RELEASE-NOTES: synced with 385582bd14b68a
412 - [Nicolas \"Pixel\" Noble brought this change]
414 ares_win32_init: make LoadLibrary work when using UNICODE too
418 David Drysdale (11 Feb 2016)
419 - Use "resolve" as synonym of "dns" in nsswitch.conf
421 Modern Linux systems may have libnss_resolve from systemd as the
422 resolver, which is then configured in /etc/nsswitch.conf with
423 the "resolve" keyword rather than "dns".
427 - ares_set_socket_callback: make manpage match code
429 The code in ares_process.c that invokes the socket creation/connection
430 callback only checks for rc < 0, not for standard ares error codes.
432 - Merge pull request #36 from AGWA-forks/master
434 Add ares_set_socket_configure_callback()
436 - test: Update init tests to match behaviour
438 Unreadable config files are now treated the same way
439 as absent config files.
441 - [Fedor Indutny brought this change]
443 Ignore `fopen` errors to use default values
445 After 46bb820be3a83520e70e6c5f0c5133253fcd69cd `init_by_resolv_conf`
446 errors are no longer swallowed in `ares_init_options`. This has exposed
447 a previously unknown bug in `lookups` initialization code.
449 If there is no lookup configuration in `resolv.conf`,
450 `init_by_resolv_conf` will attempt to read it from other files available
451 on the system. However, some of these files may have restricted
452 permissions (like `600`), which will lead to `EACCESS` errno, which in
453 turn is handled like a fatal error by `init_by_resolv_conf`.
455 However, it sounds illogical that this error should be handled as a
456 fatal. There is a `init_by_defaults` call that overrides `lookups` with
457 default value, and certainly possible absence of lookup information is
458 the reason why this function exists in a first place!
460 I suggest handling any `fopen` errors as non-fatal ones, allowing to
461 pick up the `lookups` value from different config files, or to pick up
464 Andrew Ayer (9 Feb 2016)
465 - Document callback type in man page for ares_set_socket_callback
467 - Add ares_set_socket_configure_callback()
469 This function sets a callback that is invoked after the socket is
470 created, but before the connection is established. This is an ideal
471 time to customize various socket options.
473 David Drysdale (9 Feb 2016)
474 - test: ares_set_socket_callback failure behaviour
476 - test: Check ares_parse_txt_reply_ext() entrypoint
478 - [Fedor Indutny brought this change]
480 txt: introduce `ares_parse_txt_reply_ext`
482 Introduce `ares_txt_ext` structure with an extra `record_start`
483 field, which indicates a start of a new TXT record, thus allowing to
484 differentiate the chunks in the same record, from a chunks in a
487 Introduce a new API method: `ares_parse_txt_reply_ext` that works with
490 - doc: Update missed repo references
492 - doc: Update docs on contributing
494 - test: Run command line tools in Travis
496 Do a quick execution of each of the command line tools
497 in the continuous integration build, so that any (say)
498 sanitizer failures show up.
500 - acountry: drop inert test
502 If ver_1 is true, then z0 and z1 must both be 'z', and so
503 (z0 != 'z' && z1 != 'z') can never be true.
505 CID 56879, pointed out by Coverity.
507 - doc: update badge locations to master repo
509 - test: Enable maintainer mode + debug in Travis
511 - test: Add an iOS build target
513 - test: Ignore SIGPIPE in tests
515 - test: More initialization tests
517 - test: Improve containerized test mechanism
519 Aim is to ensure that code coverage information can escape the
520 container. To do this:
521 - Enter a new mount namespace too, so that we can...
522 - Bind mount the expected source directory into the container
523 - Share memory with the sub-process so coverage information is
526 - test: Make contained tests easier to write
528 - test: Add framework for containerized testing
530 On Linux we can potentially use user and UTS namespaces to run a test
531 in a pseudo-container with:
532 - arbitrary filesystem (e.g. /etc/resolv.conf, /etc/nsswitch.conf, /etc/hosts)
533 - arbitrary hostname/domainname.
535 Include a first pass at the framework code to allow this, along with a
536 first test case that uses the container.
538 - test: Use a longer timeout for less flakiness
540 Having occasional test failures from timeout before multiple
541 queries can complete, so up the default timeout for the test
542 from 100ms to 1500ms.
544 - test: Make failure tests more robust
546 Different platforms will do different numbers of allocations
547 in the processing of a given API call; just check that the
548 return code is either success or ENOMEM, and free off any
549 returned state in the former case.
551 Also cope with ECONNREFUSED as well as ENOTFOUND.
553 - test: Get test code building under Windows
555 - Initial nmake file based off library nmake file
556 - Cast socket call arguments to (char *)
557 - Use wrapper sclose() that maps to closesocket() or close()
558 - Build a config.h indicating presence of headers
559 - Conditionally include netdb.h
560 - Remove unnecessary include of sys/socket.h
561 - Force longer bitmask for allocation failure tracking
562 - Call WSAStartup() / WSACleanup() in main()
563 - Set TCP_NODELAY for mock server
564 - Turn on tests in AppVeyor build
566 - test: Disable tests that manipulate env on Windows
568 - test: Move file lists into Makefile.inc
570 In preparation for a Win32 build of the test suite.
572 - test: Add a simple multi-server test
574 Check rotate option does something
576 - test: Allow for multiple mock servers
578 - Update the MockServer to allow separate specification of
580 - Have an array of mock servers listening on consecutive
582 - Rename Process(fd) to ProcessFD(fd) to avoid confusion.
583 - Initialize channel by using the new ares_set_servers_ports()
584 entrypoint, so multiple ports on the same loopback address
587 - test: Update test for set/get_servers variants
589 Ports are significant in the _ports_ variant functions, so update test to cope.
591 - test: Make GetNameServers() utility function port-aware
593 Also make it generally available.
595 - test: more testing, including of internal static functions
597 - test: more tests, especially fallback processing
599 - Make mock server listen on UDP + TCP in parallel.
600 - Test UDP->TCP fallback on truncation
601 - Test EDNS->no-EDNS fallback
602 - Test some environment init options
603 - Test nonsense reply
607 - test: more tests, particularly of initialization
609 - test: Run mock tests over both TCP and UDP
611 With the exception of a few tests that make use of the timed
614 - test: Run mock tests over both IPv4 and IPv6
616 - test: Add more tests for edge cases
618 - test: more nooks and crannies of pton functions
620 - test: More tests for PTR parsing
622 - test: Use of HOSTALIAS environment variable
624 - test: Add RAII utility classes for testing
626 - TempFile holds specific contents
627 - EnvValue sets an environment variable
629 - test: More search domain scenarios
631 - test: Remove duplicate flags from Makefile.am
633 - test: Make test code leak-free
637 - test use of sortlist
638 - test gethostbyname(AF_UNSPEC)
640 - test: Test ares_gethostbyname_file()
642 - test: Add more tests of ares_getnameinfo()
644 - test: Tweak tests, add alloc failure test
646 - test: Test init with options
650 - ares_inet_net_pton() variants
651 - ares_getsock() variants
653 - test: Expose ProcessWork() function
655 - test: More parsing tests
658 - Split each parse function test set out into separate files.
659 - Add an allocation failure test for each parsing function.
660 - Add error check test for each parsing function.
662 - test: Add various additional tests
666 Include tests of internal functions, based on the value of the
667 CARES_SYMBOL_HIDING macro; need to configure the library with
668 --disable-symbol-hiding to enable these tests.
670 - test: Allow command line override of mock server port
672 - test: Add README.md documentation
674 - test: Temporarily avoid latest Python requests package
676 Currently get error from Travis on this install step, and downgrading one
677 version appears to fix the problem.
679 "Could not find any downloads that satisfy the requirement pyOpenSSL>=0.13
680 (from requests[security])"
682 - test: Add AppVeyor config file for Windows build
684 - test: Add configuration for a Travis build
686 Cover Linux & OSX on the container infrastructure, but install
687 a later G++ to satisfy the tests' need for C++11.
689 Use a build matrix to include a variety of build variants:
693 - Coverage via coveralls.io
695 test: invoke ASAN and coverage in Travis build
697 Also shift to use explicit build matrix
699 test: Use coveralls.io for coverage tracking
701 test: Add a build with UBSAN
703 Also expand and re-order the setting of environment variables
704 for easier modification.
706 test: Add LSAN build to Travis config
708 - test: Add initial unit tests for c-ares library
710 The tests are written in C++11, using the GoogleTest and GoogleMock
711 frameworks. They have their own independent autoconf setup, so that
712 users of the library need not have a C++ compiler just to get c-ares
713 working (however, the test/configure.ac file does assume the use of
714 a shared top-level m4/ directory). However, this autoconf setup has
715 only been tested on Linux and OSX so far.
717 Run with "./arestest", or "./arestest -v" to see extra debug info.
718 The GoogleTest options for running specific tests are also
719 available (e.g. "./arestest --gtest_filter=*Live*").
721 The tests are nowhere near complete yet (currently hitting around
722 60% coverage as reported by gcov), but they do include examples
723 of a few different styles of testing:
725 - There are live tests (ares-test-live.cc), which assume that the
726 current machine has a valid DNS setup and connection to the
727 internet; these tests issue queries for real domains but don't
728 particularly check what gets returned. The tests will fail on
731 - There a few mock tests (ares-test-mock.cc) that set up a fake DNS
732 server and inject its port into the c-ares library configuration.
733 These tests allow specific response messages to be crafted and
734 injected, and so are likely to be used for many more tests in
737 - To make this generation/injection easier, the dns-proto.h file
738 includes C++ helper classes for building DNS packets.
740 - Other library entrypoints that don't require network activity
741 (e.g. ares_parse_*_reply) are tested directly.
743 - There are few tests of library-internal functions that are not
744 normally visible to API users (in ares-test-internal.cc).
746 - A couple of the tests use a helper method of the test fixture to
747 inject memory allocation failures, using the earlier change to the
748 library to allow override of malloc/realloc/free.
750 - There is also an entrypoint to allow Clang's libfuzzer to drive
751 the packet parsing code in ares_parse_*_reply, together with a
752 standalone wrapper for it (./aresfuzz) to allow use of afl-fuzz
753 for further fuzz testing.
755 - test: Add local copy of GoogleMock/GoogleTest 1.7.0
757 Don't check in gtest/m4 files, as they are unused and interfere
758 with the top-level configure process.
760 - doc: Show build badges in README.md
762 Note that these URLs will need to be updated if/when the test branch
763 gets pulled into the master repo/branch.
765 - doc: Convert README to README.md
767 Gives better display on GitHub
769 - doc: Update in preparation for next release
771 Assume 1.11.0 is next (as there are various API additions).
772 Also add myself to AUTHORS.
774 - build: Allow header compilation by Windows C++ compiler
776 - build: Expose whether symbol hiding is on
778 Adding the CARES_SYMBOL_HIDING definition allows the test suite to
779 detect whether internal symbols are available or not.
781 - build: Add autoconf macros for C++11 code using pthreads
783 Pull in testing macros from the GNU autoconf archive to allow
784 configure scripts to test for and setup use of a C++11 compiler
785 (AX_CXX_COMPILE_STDCXX_11) and the pthreads library (AX_PTHREAD).
787 Note that these macros are not used by the main library autoconf,
788 just by the tests (which share the same m4/ directory).
790 - build: Add a code coverage option
793 ./configure --enable-code-coverage
794 Show coverage output with:
795 make code-coverage-capture
797 Built on m4/ax_code_coverage.m4 from the GNU autoconf archive
798 to provide the macros to check for presence of gcov + lcov;
799 upstream macro modified to:
800 - Remove use of $(AM_DEFAULT_VERBOSITY) , as earlier versions of
801 autoconf (such as the one used by default on Travis) do not have this.
802 - Rather than automatically defining CODE_COVERAGE_RULES to be a set
803 of makefile rules that use ifeq/endif (which is GNU make-specific),
804 instead only define CODE_COVERAGE_RULES if coverages is turned on,
805 and in that case don't use conditionals in the makefile.
807 - api: Add entrypoints to allow use of per-server ports
809 Add user-visible entrypoints ares_{get,set}_servers_ports(3), which
810 take struct ares_addr_port_node rather than struct ares_addr_node.
811 This structure includes a UDP and TCP port number; if this is set
812 to zero, the channel-wide port values are used as before.
814 Similarly, add a new ares_set_servers_ports_csv(3) entrypoint, which
815 is analogous to ares_set_servers(3) except it doesn't ignore any
816 specified port information; instead, any per-server specified port
817 is used as both the UDP and TCP port for that server.
819 The internal struct ares_addr is extended to hold the UDP/TCP ports,
820 stored in network order, with the convention that a value of zero
821 indicates that the channel-wide UDP/TCP port should be used.
823 For the internal implementation of ares_dup(3), shift to use the
824 _ports() version of the get/set functions, so port information is
825 transferred correctly to the new channel.
827 Update manpages, and add missing ares_set_servers_csv to the lists
830 - api: Add ares_set_sortlist(3) entrypoint
832 Allow explicit configuration of the channel's sortlist, by
833 specifying a string in the same format as the equivalent
834 /etc/resolv.conf option.
836 This allows library users to perform the same configuration
837 that is available via /etc/resolv.conf, but without needing
840 - api: Allow injection of user-specified malloc/free functions
842 Add a new ares_library_init_mem() initialization function for the
843 library which allows the library user to specify their own malloc,
844 realloc & free equivalents for use library-wide.
846 Store these function pointers in library-wide global variables,
847 defaulting to libc's malloc(), realloc() and free().
849 Change all calls to malloc, realloc and free to use the function pointer
850 instead. Also ensure that ares_strdup() is always available
851 (even if the local environment includes strdup(3)), and change the
852 library code to always use it.
854 Convert calls to calloc() to use ares_malloc() + memset
856 - api: Add option to expose some internal functions
858 Purely for testing, add --enable-expose-statics option to configure
859 which converts some static internal functions to be externally visible.
861 - api: Expose the ares_library_initialized() function
863 - ahost: Allow repeated -s <domain> options
865 This also removes a potential leak where later -s options would
866 replace earlier ones without freeing the relevant string.
868 - Mark unhittable lines
870 Add comments for the benefit of the lcov tool, marking
871 lines that cannot be hit. Typically these are fall-back
872 protection arms that are already covered by earlier checks,
873 and so it's not worth taking out the unhittable code (in case
874 someone changes the code between the two places in future).
876 - ares_set_servers_csv.3: make return type match code
878 - bitncmp: update comment to match code behaviour
880 - ares_striendstr: fix so non-NULL return can happen
882 This looks to have been broken since it was first introduced in 2005 in
883 commit aba0b775ea30 ("Added ares_getnameinfo which mimics the
886 - config_sortlist: free any existing sortlist on (re)alloc failure
888 If we get an allocation failure on 2nd or later entry in the sortlist, the
889 code would return ENOMEM but still leave the initial entries allocated.
890 Ensure that *sortlist is set to NULL whenever ENOMEM is returned.
892 - ares_dup: clear new channel on failure
894 If the attempt to transfer IPv6 servers from the old to the new channel
895 fails, the previous code would still return a channel to the user even though
896 an error return code was generated. This makes it likely that users would
897 leak the channel, so explicitly clear the channel in this case.
899 - ares_init_options: don't lose init failure
901 If (say) init_by_options() fails, the subsequent call to
902 init_by_defaults() was overwriting the return code with
903 success. Still call init_by_defaults() regardless, but track
904 its return value separately
906 - ares_gethostbyname: don't leak valid-but-empty hostent
908 If an AF_UNSPEC query gets a valid response to its AAAA query,
909 but which has no IPv6 addresses in it, then the code chains on to
910 a A record query. However, the hostent from the AAAA response
911 was being leaked along the way (because it gets replaced before
912 the follow-on end_hquery() invocation).
914 - ares_parse_txt_reply: propagate errors from per-substring loop
916 If we get an allocation failure when processing a particular substring in a
917 TXT record, that failure is silently lost; fix that by propagating errors from
918 the inner loop to the outer loop.
920 - process_answer: fix things up correctly when removing EDNS option
922 When a server rejects an EDNS-equipped request, we retry without
923 the EDNS option. However, in TCP mode, the 2-byte length prefix was
924 being calculated wrong -- it was built from the answer length rather than
925 the length of the original request.
927 Also, it is theoretically possible that the call to realloc() might change
928 the data pointed to; to allow for this, qbuf also needs updating.
930 (Both these fixes were actually included in a patchset sent on the mailing
931 list in Oct 2012, but were included with other functional changes that
933 http://c-ares.haxx.se/mail/c-ares-archive-2012-10/0004.shtml)
935 - ares__read_line: clear buf pointer on realloc failure
937 - ares_expand_name: check for valid bits in label length
939 The top two bits of the label length indicate whether this is a
940 label length (00) or an index to a name elsewhere in the message
941 (11). RFC1035 4.1.4 says that the other possible values for the
942 top two bits (01, 10) are reserved for future use.
944 Daniel Stenberg (23 Jan 2016)
945 - [Gregor Jasny brought this change]
947 Fix typos detected by lintian
951 - [Gregor Jasny brought this change]
953 Distribute all man pages
955 - README.cares: s/I/Daniel
957 ... and add a pointer to an existing version of the original area 1.1.1
960 - read_tcp_data: don't try to use NULL pointer after malloc failure
962 CID 56884, pointed out by Coverity. We really should make this function
963 return an error code so that a malloc() failure can return back a major
966 - configure_socket: explicitly ignore return code
968 CID 56889 in Coverity pointed out the return code from setsocknonblock()
969 is ignored, and this added typecast to (void) makes it explicit.
971 - ahost: check the select() return code
973 Fixes CID 137189, pointed out by Coverity
975 David Drysdale (18 Jan 2016)
976 - Fix buildconf on platforms using glibtoolize
978 Commit c49a87eea538 changed buildconf to only check for
979 libtoolize, but missed a line
981 - Don't exit loop early leaving uninitialized entries
983 Update for commit affc63cba875d.
985 The original patch from Gregor Jasny did not have the break
986 statement; I incorrectly added it to prevent continuing the loop.
987 However, the later entries in the array would then be left
988 uninitialized, causing problems for later cleanup.
990 So fix to match Gregor's original patch, with apologies.
992 Daniel Stenberg (18 Jan 2016)
993 - buildconf: remove check for libtool, it only requires libtoolize
995 David Drysdale (17 Jan 2016)
996 - [Gregor Jasny brought this change]
998 Use libresolv to initialize cares on iPhone targets
1000 On iPhone targets like iOS, watchOS or tvOS the file
1001 /etc/resolv.conf cannot be used to configure cares.
1003 Instead the resolver library is queried for configuration
1006 CC: Yury Kirpichev <ykirpichev@yandex-team.ru>
1008 Daniel Stenberg (17 Jan 2016)
1009 - README: updated to new repo URL
1011 David Drysdale (14 Jan 2016)
1012 - [Lei Shi brought this change]
1014 Fixing slow DNS lookup issue
1016 This patch is fixing the dns lookup issue due to dummy dns information
1017 of a disconnected adapter(in my case is a bluetooth adapter). I changed
1018 the dns lookup policy to try GetNetworkParams first because the
1019 GetNetworkParams provides the most reliable dns information (lots of
1020 checks were done by system). I also filter out inoperable adapter in
1021 DNS_AdaptersAddresses in case GetNetworkParams fail.
1023 - Merge pull request #30 from p-push/vs-2015
1025 Support Visual Studio 2015
1027 Oleg Pudeyev (3 Jan 2016)
1028 - [Gisle Vanem brought this change]
1030 Support Visual Studio 2015
1032 David Drysdale (11 Nov 2015)
1033 - [Andrew Andkjar brought this change]
1035 added another version case to Makefile.msvc
1037 nmake version 11.00.61030.0 resolves to CC_VERS_NUM = 110
1039 - Merge pull request #26 from bitbouncer/vs-2013
1041 added define for visual studio 2013
1043 svante karlsson (25 Jun 2015)
1044 - added define for visual studio 2013
1046 Jakub Hrozek (6 Nov 2014)
1047 - ares__read_line: free buf on realloc failure
1049 - Destroy options if ares_save_options fails
1051 It's possible that, if ares_save_options failed, the opts structure
1052 would contain some allocated memory. Calling ares_destroy_options in
1053 this case is safe, because ares_save_options zeroes out the memory
1056 - [David Drysdale brought this change]
1058 Continue loop if space for hostname not large enough
1060 When attempting to build a search domain from the local hostname
1061 (used as a fallback when no other methods have given a search
1062 domain), the code doubles the buffer size on each loop iteration.
1064 However, the loop previously had a WHILE_FALSE terminator so the continue
1065 statement exited the loop rather than going round again.
1067 Daniel Stenberg (30 Oct 2014)
1068 - ares_getnameinfo.3: there is no ares_getaddrinfo
1070 David Drysdale (30 Sep 2014)
1071 - [Gregor Jasny brought this change]
1073 Prevent tmpbuf from overrunning
1075 Fix Coverity error CID 56886.
1077 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
1079 - [Gregor Jasny brought this change]
1081 Re-start loop if select fails
1083 Fix Coverity error CID 56882
1085 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
1087 - [Gregor Jasny brought this change]
1089 Free temporary variable in error path
1091 Fix Coverity CID 56890
1093 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
1095 - [Gregor Jasny brought this change]
1097 Fix integer shift overflow if both tcp_socket and udp_socket are set
1099 The problem occurs if at the start of the loop the sockindex is at the
1100 last valid ARES_GETSOCK_MAXNUM position. If then both udp_socket and
1101 tcp_socket are valid, sockindex gets incremented for UDP first and
1102 points one entry behind the array for the tcp block.
1103 So the fix is to check after every increment of sockindex if it is still
1106 Fix Coverity error CID 56878
1108 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
1110 - [Gregor Jasny brought this change]
1112 Null check before dereference
1114 Fix Coverity error CID 56880
1116 Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
1118 Jakub Hrozek (28 Jul 2014)
1119 - [Gisle Vanem brought this change]
1121 Comment in ares_ipv6.h
1123 David Drysdale (25 Jul 2014)
1124 - CONTRIBUTING: add file to indicate mailing list is preferred
1126 - Add -t u option to ahost
1128 Add an option to allow specification of the AF_UNSPEC
1131 Jakub Hrozek (24 Jul 2014)
1132 - host_callback: Fall back to AF_INET on searching with AF_UNSPEC
1134 Previously, when an ares_gethostbyname() searched with AF_UNSPEC and the
1135 first AF_INET6 call only returned CNAMEs, the host_callback never
1138 This patch makes sure than on ARES_SUCCESS, the result of AF_INET6 is
1139 taken as authoritative only if the result contains some addresses.
1141 - [David Drysdale brought this change]
1143 Move memset call below platform-specific declarations
1145 A GitHub commenter [1] says that my recent change to ahost.c has
1146 problems compiling on Windows + C89 platforms.
1148 [1] https://github.com/bagder/c-ares/commit/ee22246507c9#commitcomment-6587616
1150 - [David Drysdale brought this change]
1152 Update ahost man page to describe -s option.
1154 Commit ee22246507c9 added the -s <domain> option to the
1155 ahost command, but neglected to update the man page to
1158 Also fix typo in description of -t option.
1160 - ares_parse_soa_reply: Do not leak rr_name on allocation failure
1162 If ares_malloc_data failed, already allocated rr_name would go out of
1165 - [David Drysdale brought this change]
1167 Don't override explicitly specified search domains
1169 Only set search domains from /etc/resolv.conf if there isn't a value
1170 already present in the channel.
1172 - [David Drysdale brought this change]
1174 Allow specification of search domain in ahost
1176 Add the "-s domain" command line option to override the search
1179 Daniel Stenberg (12 May 2014)
1180 - Revert "ares_parse_aaaa_reply: fix leak when reply contains 1 alias and no address"
1182 This reverts commit 440110b303fdbfadb3ad53d30eeb98cc45d70451.
1184 - [Frederic Germain brought this change]
1186 ares_parse_aaaa_reply: fix leak when reply contains 1 alias and no address
1188 - [Doug Kwan brought this change]
1190 ares_build.h: fix building on 64-bit powerpc
1192 There are two issues.
1194 1. gcc actually does not use __ppc__ and __ppc64__ but __PPC__ and
1195 __PPC64__. The tests of __ILP32__ and __LP64__ are sufficient for gcc.
1197 2. clang defines __GNU__ and defines both __ppc64__ and __ppc__ when
1198 targeting ppc64. This makes CARES_SIZEOF_LONG to be 4 on a ppc64 system
1199 when building with clang.
1201 My patch is two change the order of the checks so that we check the
1204 - refresh: updated now with automake 1.14
1206 - [David Drysdale brought this change]
1208 single_domain: Invalid memory access for empty string input
1210 We noticed a small buglet in ares_search() when it gets an empty string
1211 as input -- the single_domain() utility function in ares_search.c
1212 accesses invalid memory (before the start of the string).
1214 Guenter Knauf (31 Aug 2013)
1215 - Fixed warning 'type specifier missing'.
1217 Daniel Stenberg (30 Aug 2013)
1218 - [Tor Arntsen brought this change]
1220 ares_rules.h: CARES_SIZEOF_LONG doesn't exist anymore, don't test for it
1222 It was removed in f19387dd72432
1224 - nowarn: use <limits.h> instead of configure for size of long
1226 This makes the header file much more multi-arch friendly and can be used
1227 as-is with both 32 bit and 64 bit builds.
1229 - timeoffset: made static and private
1231 ares__timeoffset() was only used once within this single source file
1233 - timeadd: make static
1235 ares__timeadd() was only ever used from within the same source
1237 Yang Tse (18 Jul 2013)
1238 - xc-am-iface.m4: comments refinement
1240 - configure: fix 'subdir-objects' distclean related issue
1242 See XC_AMEND_DISTCLEAN comments for details.
1244 - configure: automake 1.14 compatibility tweak (use XC_AUTOMAKE)
1246 - xc-am-iface.m4: provide XC_AUTOMAKE macro
1248 Daniel Stenberg (12 May 2013)
1249 - gitignore: ignore all ares_*pdf but also CHANGES.dist
1251 - bump: start working towards 1.10.1
1253 Version 1.10.0 (12 May 2013)
1255 Daniel Stenberg (12 May 2013)
1256 - RELEASE-NOTES: two more bug fixes
1258 - [Keith Shaw brought this change]
1260 ares_set_servers_csv: fixed IPv6 address parsing
1262 Fixed bug that caused the last part of an IPv6 address to be parsed as
1263 the port number when the last part is all numeric.
1265 - nroff: fix two syntax mistakes
1267 ares_parse_a_reply and ares_parse_aaaa_reply both had two \fB instead of
1270 Reported-by: Alexander Klauer
1271 Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-03/0010.shtml
1273 - [Alex Loukissas brought this change]
1275 build: fix build on msvc11
1277 - Makefile.am: increment -version-info for 1.10.0 release
1279 - README: remove unnecessary comment
1281 - ares_version.h: copyright end range year is now 2013
1283 - RELEASE-NOTES: synced with fb0737f3a0a1c37
1285 - [Paul Saab brought this change]
1287 ares_parse_aaaa_reply: Plug memory leak
1289 This change is similar to ares_parse_a_reply.c in commit
1290 bffd67f16a8f42fe6dbf79ab2e39d92eea05c8a6
1292 - [Patrick Valsecchi brought this change]
1294 ares_parse_txt_reply: return a ares_txt_reply node for each sub-string
1296 Previously, the function would wrongly return all substrings merged into
1299 - [Alexander Klauer brought this change]
1301 library init: documentation update
1303 This commit updates the documentation of ares_library_init() and
1304 ares_library_cleanup() with regard to the newly introduced reference
1305 counting of initializations and deinitializations.
1307 - [Alexander Klauer brought this change]
1309 library init: be recursive
1311 Previously, a single call to ares_library_cleanup() would deinitialise
1312 the c-ares library, regardless of how many times ares_library_init() was
1313 called. This behaviour may cause problems in programs linking two or
1314 more libraries which, in turn, use c-ares. The present commit fixes this
1315 problem, deinitializing the library only after a number of calls to
1316 ares_library_cleanup() matching the number of calls to
1317 ares_library_init().
1319 - [Patrick Valsecchi brought this change]
1321 protocol parsing: check input data stricter
1323 ... so that bad length fields aren't blindly accepted
1325 Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-04/0016.shtml
1327 Guenter Knauf (11 Apr 2013)
1328 - Create ares_build.h when buidling from Git.
1330 - Added -DCARES_STATICLIB to CFLAGS.
1332 Currently this static makefile does only support building the
1333 static library libcares.a.
1335 Daniel Stenberg (8 Apr 2013)
1336 - [Alexander Klauer brought this change]
1338 .gitignore: ignore patch files
1340 This commit adds a line to .gitignore to the effect that patch files
1341 generated by 'git format-patch' are excluded from the repository.
1343 - [Alexander Klauer brought this change]
1345 ares_destroy() documentation: no new requests
1347 Clarify that no new requests may be added to a resolver channel that is
1348 currently being destroyed.
1350 - [Alexander Klauer brought this change]
1352 Documentation: properly document ARES_ECANCELLED
1354 This commit clarifies the behaviour of ares_cancel() with respect to
1355 callbacks and adds missing documentation of ARES_ECANCELLED to the man
1356 pages of the affected functions.
1358 - [Alexander Klauer brought this change]
1360 ares_cancel(): cancel requests safely
1362 An invocation of ares_cancel() walks through the request list, calling
1363 the callbacks of all pending requests on a channel. Previously, if such
1364 a callback added a new request to the channel, the request list might
1365 not end up empty, causing an abort by assertion failure. The present
1366 commit ensures that precisely all requests present upon entry of
1367 ares_cancel() are cancelled, and that adding new requests through
1370 Yang Tse (10 Mar 2013)
1371 - ares.h: stricter CARES_EXTERN linkage decorations logic
1373 No API change involved.
1375 - ares_build.h.dist: enhance non-configure GCC ABI detection logic
1377 GCC specific adjustments:
1379 - check __ILP32__ before 32 and 64bit processor architectures in
1380 order to detect ILP32 programming model on 64 bit processors
1381 which, of course, also support LP64 programming model, when using
1384 - keep 32bit processor architecture checks in order to support gcc
1385 versions older than 4.7 which don't define __ILP32__
1387 - check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
1388 architecture checks for older versions which don't define __LP64__
1390 Daniel Stenberg (9 Mar 2013)
1391 - ares.h: there is no ares_free_soa function
1393 Yang Tse (9 Mar 2013)
1394 - Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
1396 - ares_inet_ntop.3: s/socklen_t/ares_socklen_t
1398 - configure: use XC_LIBTOOL for portability across libtool versions
1400 - xc-lt-iface.m4: provide XC_LIBTOOL macro
1402 - Makefile.am: use AM_CPPFLAGS instead of INCLUDES
1404 - inet_ntop.c: s/socklen_t/ares_socklen_t
1406 - inet_ntop.c: s/socklen_t/ares_socklen_t for portability
1408 Daniel Stenberg (19 Feb 2013)
1409 - ares.h: s/socklen_t/ares_socklen_t for portability
1411 - ares_inet_ntop.3: 4th argument is socklen_t!
1413 - spell inet correctly!
1415 - ares_inet_pton/ntop: cleanup
1417 Make sure that the symbols are always exported and present in c-ares.
1419 Make the headers prefixed with 'ares'.
1421 Removed the inet_ntop.h version as it no longer features any content.
1423 - ares_inet_ntop/ares_inet_pton: added man pages
1425 Yang Tse (15 Feb 2013)
1426 - [Gisle Vanem brought this change]
1428 curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
1430 - [Gisle Vanem brought this change]
1432 config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
1434 - [Gisle Vanem brought this change]
1436 config-dos.h: define strerror() to strerror_s_() for High-C
1438 Daniel Stenberg (13 Feb 2013)
1439 - ares_get_datatype: removed unused function
1441 it was also wrongly named as internal functions require two underscores
1443 - ares__bitncmp: use two underscores for private functions
1445 It used a single one previously making it look like a public one
1447 - ares__generate_new_id: moved to ares_query.c
1449 ... and ares__rc4 is turned into a local static function.
1451 - ares__swap_lists: make private and static
1453 ... since there's only one user, make it static within ares_process.c
1455 Yang Tse (13 Feb 2013)
1456 - Makefile.msvc: add four VS version strings
1458 Daniel Stenberg (13 Feb 2013)
1459 - ares_expand_name.3: clarify how to free the data
1461 Yang Tse (30 Jan 2013)
1462 - zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
1464 - Fix a pair of single quotes to double quotes.
1466 URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
1467 Reported by: Tor Arntsen
1469 - zz40-xc-ovr.m4: fix 'wc' detection - follow-up
1471 - Take into account that 'wc' may return leading spaces and/or tabs.
1473 - Set initial IFS to space, tab and newline.
1475 - zz40-xc-ovr.m4: fix 'wc' detection
1477 - Take into account that 'wc' may return leading spaces.
1479 - Set internationalization behavior variables.
1481 Tor Arntsen analyzed and reported the issue.
1483 URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
1485 - zz40-xc-ovr.m4: check another three basic utilities
1487 - zz40-xc-ovr.m4: 1.0 interface stabilization
1489 - Stabilization results in 4 public interface m4 macros:
1490 XC_CONFIGURE_PREAMBLE
1491 XC_CONFIGURE_PREAMBLE_VER_MAJOR
1492 XC_CONFIGURE_PREAMBLE_VER_MINOR
1493 XC_CHECK_PATH_SEPARATOR
1494 - Avoid one level of internal indirection
1496 - Drop XC_OVR_ZZ40 macro
1498 - zz40-xc-ovr.m4: emit witness message in configure BODY
1500 This avoids witness message in output when running configure --help,
1501 while sending the message to config.log for other configure runs.
1503 - zz40-xc-ovr.m4: truly do version conditional overriding
1505 - version conditional overriding
1506 - catch unexpanded XC macros
1507 - fix double words in comments
1509 - zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
1511 Tor Arntsen analyzed and reported the issue.
1513 URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
1515 - zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
1517 - zz40-xc-ovr.m4: avoid double single-quote usage
1519 - zz40-xc-ovr.m4: parentheses balancing of 'case' statements
1521 m4 quadrigraph shell comment technique allows proper autoconf
1522 parentheses balancing in shell 'case' statements. The presence
1523 of unbalanced parentheses may otherwise trigger expansion bugs.
1525 - zz40-xc-ovr.m4: internals overhauling
1528 - Execute commands in subshells
1529 - Faster path separator check
1530 - Fix missing 'test' command
1531 - Rename private macros
1532 - Minimize AC_REQUIRE usage
1534 - zz40-xc-ovr.m4: redirect errors and warnings to stderr
1536 - configure: use XC_CONFIGURE_PREAMBLE early checks
1538 Some basic checks we make were placed early enough in generated
1539 configure script when using autoconf 2.5X versions. Newer autoconf
1540 versions expand these checks much further into the configure script,
1541 rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
1542 of early intended checks across all our autoconf supported versions.
1544 - zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
1546 - configure: autotools compatibility fixes - step I
1548 Fix proper macro expansion order across autotools versions for
1549 C compiler and preprocessor program checks.
1551 - configure: fix automake 1.13 compatibility
1555 buildconf: autoconf version 2.69
1556 buildconf: autom4te version 2.69
1557 buildconf: autoheader version 2.69
1558 buildconf: automake version 1.13.1
1559 buildconf: aclocal version 1.13.1
1560 buildconf: libtool version 2.4
1561 buildconf: GNU m4 version 1.4.16
1563 - ares_private.h: use again memdebug.h instead of curl_memdebug.h
1565 - configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
1567 automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.
1569 - cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally
1571 Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using
1572 an autoconf version that does not provide it, instead of what we were
1573 doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for
1574 all autoconf versions.
1576 - ares_private.h: use curl_memdebug.h instead of memdebug.h
1578 - vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c
1580 - cares-functions.m4: improve gethostname arg 2 data type check
1582 - setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
1584 Also reverts commit bceb40095a
1586 - configure: check if compiler halts on function prototype mismatch
1588 - cares-functions.m4: add gethostname arg 2 data type check and definition
1590 - cares-functions.m4: update thread-safeness detection of getaddrinfo()
1592 Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
1593 consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
1594 (_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.
1596 Take in account that h_errno might be a modifiable lvalue not defined as
1597 a C preprocessor macro.
1599 - setup_once.h: HP-UX <sys/socket.h> issue workaround
1601 Issue: When building a 32bit target with large file support HP-UX
1602 <sys/socket.h> header file may simultaneously provide two different
1603 sets of declarations for sendfile and sendpath functions, one with
1604 static and another with external linkage. Given that we do not use
1605 mentioned functions we really don't care which linkage is the
1606 appropriate one, but on the other hand, the double declaration emmits
1607 warnings when using the HP-UX compiler and errors when using modern
1608 gcc versions resulting in fatal compilation errors.
1610 Mentioned issue is now fixed as long as we don't use sendfile nor
1613 - setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
1615 Inclusion of these two header files now done in setup_once.h
1617 - Header inclusion clean-up
1619 Remove header inclusions already done in setup_once.h
1621 - setup_once.h: HP-UX specific TRUE and FALSE definitions
1623 Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.
1625 - ares_timeout.c: fix compiler warning
1627 - ares_create_query.c: IRIX compilation fix
1629 - c-ares/nameser.h: add some T_* defines for ns_t_* values
1631 Daniel Stenberg (7 Nov 2012)
1632 - Revert "ares_parse_aaaa_reply: fix memory leak"
1634 This reverts commit 50f25d8a4b2d16f4c5e0ef620238688b7a315c7a.
1636 - ares_parse_aaaa_reply: fix memory leak
1638 an allocated buffer was not freed in the successful case.
1640 - [Gisle Vanem brought this change]
1642 adig: perror() doesn't work for socket errors on windows
1644 ... so print the SOCKERRNO instead
1646 - get_DNS_AdaptersAddresses: fix IPv6 parsing
1648 Use of the wrong define made the function not parse IPv6 addresses
1651 Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-06/0028.shtml
1652 Reported by: Saúl Ibarra Corretgé
1654 - version: bumped to 1.10.0
1656 Due to the newly added function: ares_create_query()
1658 - AUTHORS: synced with 83093ac450
1660 Added 21 authors since this document was last updated
1662 - ares_create_query.3: mention when this is added
1664 - [hpopescu@ixiacom.com brought this change]
1666 Added new feature (rfc2671)
1668 - code police: fix indents, < 80 columns, reflowed comments
1670 Guenter Knauf (11 Jul 2012)
1671 - Cleaned up version awk script.
1673 Daniel Stenberg (30 Jun 2012)
1674 - [Gisle Vanem brought this change]
1676 read_udp_packets: bail out loop on bad sockets
1678 I can see that recvfrom() in ares_process.c many times is called with
1679 'udp_socket' == ARES_SOCKET_BAD. The code takes care not to call
1680 recv/recvfrom with ARES_SOCKET_BAD in the outer-loop. So should the
1683 Yang Tse (29 Jun 2012)
1684 - cares-compilers.m4: remove -Wstrict-aliasing=3 from clang
1686 Currently it is unknown if there is any version of clang that
1687 actually supports -Wstrict-aliasing. What is known is that there
1688 are several that don't support it.
1690 - cares-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds
1692 Daniel Stenberg (18 Jun 2012)
1693 - version: work towards 1.9.2 (at least)
1695 Version 1.9.1 (18 Jun 2012)
1697 Daniel Stenberg (18 Jun 2012)
1698 - RELEASE-NOTES: 1.9.1 coming up
1700 Version 1.9.0 (16 Jun 2012)
1702 Daniel Stenberg (16 Jun 2012)
1703 - ares_version.h: next version is 1.9.0
1705 - [Marko Kreen brought this change]
1707 ares_data.h: ARES_DATATYPE_SOA_REPLY is added in 1.9.0
1709 - RELEASE-NOTES: synced with 979bf951d
1711 Next release deemed to become 1.9.0 due to the new function
1713 - [Marko Kreen brought this change]
1717 I need to do SOA queries, so here is a parser for them.
1719 - ares_soa_reply: new struct
1720 - ares_malloc_data/ares_free_soa: ARES_DATATYPE_SOA_REPLY
1721 - ares_parse_soa_reply: actual function
1723 Yang Tse (14 Jun 2012)
1724 - Kill compiler warning
1726 - Fix libcares.pc generation for static MingW* cross builds
1728 Daniel Stenberg (21 May 2012)
1729 - [Nick Alcock brought this change]
1731 Fix UDP and TCP port byte order in saved options.
1733 The UDP and TCP port are stored in network byte order in the
1734 ares_channeldata, but are passed in to ares_init_options() in host byte
1735 order. Thus we must return them from ares_save_options() in host byte
1736 order too, or a duplicated channel will convert them again, leading to a
1737 nonfunctional channel and a mysterious connection refused error from
1738 ares_gethostbyname(). This breaks ares_dup(), thus the curl easy API
1739 when c-ares is used by curl, and thus all the curl easy API's users.
1741 Yang Tse (28 Apr 2012)
1742 - version: start working on 1.8.1-DEV
1744 Version 1.8.0 (27 Apr 2012)
1746 Daniel Stenberg (27 Apr 2012)
1747 - RELEASE-NOTES: call next 1.8 instead
1749 Since we added a function, let's use a stricter bumping scheme
1751 Yang Tse (25 Apr 2012)
1752 - INSTALL: some adjustments
1754 Daniel Stenberg (25 Apr 2012)
1755 - GIT-INFO: mention buildconf
1757 Yang Tse (25 Apr 2012)
1758 - INSTALL: remove more sections that don't apply to c-ares
1760 - ares_timeout.c: fix compiler warning
1762 Daniel Stenberg (25 Apr 2012)
1763 - [Ben Noordhuis brought this change]
1765 Makefile.m32: fix mingw32 build
1767 * add . to include path so ares_build.h is picked up
1768 * make ar configurable to ease cross-compiling
1770 - RELEASE-NOTES: added what's happened since 1.7.5
1772 Guenter Knauf (22 Apr 2012)
1773 - Updated copyright year.
1775 Yang Tse (21 Apr 2012)
1776 - ares_init.c: Further refactoring of Windows system's DNS fetching code
1778 Guenter Knauf (20 Apr 2012)
1779 - Android: small changes to dns property part.
1781 Prefix prop vars; kill var; use DNS_PROP_NAME_PREFIX macro.
1783 - Handle CNAME-only in ares_parse_aaaa_reply().
1785 posted to the c-ares list by Peter Griess <pg@std.in>.
1787 - Add support for multiple DNS servers on Android.
1789 Before, c-ares always used the first DNS server on Android, causing
1790 network problems if this DNS server was not available.
1792 Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
1794 - Added INSTALL so it gets into tarballs.
1796 - Added some more ifdefs to silent compiler warnings.
1798 Yang Tse (17 Apr 2012)
1799 - INSTALL: remove a non c-ares section
1801 - cares-compilers.m4: -Wno-pedantic-ms-format for Windows gcc 4.5 builds
1803 When building a Windows target with gcc 4.5 or newer and strict compiler
1804 warnings enabled use -Wno-pedantic-ms-format in addition to other flags.
1806 - setup_once.h: tighten requirements for stdbool.h header inclusion
1808 Include stdbool.h only when it is available and configure is capable of
1809 detecting a proper 'bool' data type when the header is included.
1811 - configure: NATIVE_WINDOWS no longer defined in config file
1813 - cares-compilers.m4: double underscore decoration for visibility attribute
1815 - build adjustments: CARES_SYMBOL_HIDING no longer defined in config files
1817 configure script now provides conditional definitions for Makefile.am
1818 that result in CARES_SYMBOL_HIDING being defined by resulting makefiles
1821 - configure: Windows cross-compilation fixes
1823 CARES_BUILDING_LIBRARY and CARES_STATICLIB no longer defined in ares_config.h,
1824 configure will generate appropriate conditionals so that mentioned symbols
1825 get defined and used in Makefile derived from Makefile.am at compilation time.
1827 Guenter Knauf (17 Apr 2012)
1828 - Added INSTALL file adapted from libcurl.
1830 Not yet ready, and needs further edits.
1832 Yang Tse (16 Apr 2012)
1833 - ares_init.c: get_iphlpapi_dns_info() refactoring
1835 Guenter Knauf (16 Apr 2012)
1836 - Kill some more compiler warnings.
1838 - Kill compiler warning about unused var.
1840 - Fixed my last commit: wrong preprocessor directive.
1842 - Check for __ANDROID__ in addition to ANDROID macro.
1844 - Check for __ANDROID__ in addition to ANDROID macro.
1846 Posted to c-ares list by Wayne.
1848 - Fix for Android to disable useless arpa/nameser.h.
1850 - Fix for Android to include sys/select.h for fd_set.
1852 Yang Tse (17 Mar 2012)
1853 - ares_data.c: some NAPTR related fixes
1855 Daniel Stenberg (16 Mar 2012)
1856 - port numbers: convert them to network order!
1858 When the config options ARES_OPT_UDP_PORT or ARES_OPT_TCP_PORT are used,
1859 make sure to convert them to network byte order!
1861 Bug: http://c-ares.haxx.se/mail/c-ares-archive-2012-02/0004.shtml
1863 - white space cleanup
1865 - Keep code within 80 columns
1867 - Removed funny spaces after open paren and before closing paren
1869 - [Poul Thomas Lomholt brought this change]
1871 get_iphlpapi_dns_info: fix buffer overrun
1873 I experienced a buffer overrun exception in c-ares on Windows and
1874 tracked it down to be an error in the calculation of the 'left' variable
1875 in get_iphlpapi_dns_info().
1877 I changed the variable type of 'left' to a _signed_ type because of the
1878 subtraction arithmetic; not sure if a long is the best choice
1880 - Merge pull request #7 from saghul/naptr
1882 Added support for parsing NAPTR records
1884 saghul (23 Feb 2012)
1885 - Added support for parsing NAPTR records
1887 Yang Tse (19 Jan 2012)
1888 - ares_init.c: fix compiler warning on winsock builds
1890 - configure: libtool 1.5 tweaks
1892 Daniel Stenberg (19 Dec 2011)
1893 - ares_timeout.3: fix the NAME section
1895 It was clearly a copy n' paste error
1897 Yang Tse (27 Sep 2011)
1898 - [Albert Chin brought this change]
1900 configure - m4: make CURL_CHECK_DEF ignore leading whitespace on symbol def
1902 When using Sun C compiler the preprocessor somehow inserts an extra space
1903 in front of replaced symbol, breaking CURL_CHECK_DEF macro. To workaround
1904 this, macro CURL_CHECK_DEF now ignores all leading whitespace in front of
1905 symbol substitution result.
1907 - ares_init.c: fix segfault triggered in ares_init_options() upon previous
1908 failure of init_by_defaults() and incomplete cleanup there.
1910 - ares_process.c: fix compiler warning
1912 - fix MSVC compiler warning 'conditional expression is constant'
1914 - setup_once.h cleanup and sync
1916 - [Denis Bilenko brought this change]
1918 ares_getnameinfo: fix random results with c-ares 1.7.5
1920 In ares_getnameinfo memcpy did not copy enough bytes, causing
1921 it to return arbitrary memory contents as a result.
1923 - warnings: fix another 'conversion may lose significant bits' compiler warning
1925 - ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
1927 Fixing compiler warnings existing definitions triggered on these.
1929 - ares_destroy.c: fix segfault in ares_destroy_options()
1931 Daniel Stenberg (21 Aug 2011)
1932 - ares_parse_srv_reply: silence compiler warnings
1934 ... by adding ugly typecasts.
1936 - CHANGES: generate from script
1938 The CHANGES file is now generated automatically with 'git2changes.pl',
1939 invoked by the maketgz script which is used to build release archives.
1941 The former human edited CHANGES file was renamed to CHANGES.0 in git.
1943 Yang Tse (21 Aug 2011)
1944 - Makefile.netware: SIZEOF_SHORT definition
1946 - warnings: fix some 'conversion may lose significant bits' compiler warnings
1948 - configure: fix symbol hiding usability check
1950 A more thorough test is done now in order to determine visibility attribute
1951 usability, given that some compilers don't support visibility attribute on
1954 Daniel Stenberg (16 Aug 2011)
1955 - 1.7.6: start working...
1957 Version 1.7.5 (16 Aug 2011)
1959 Daniel Stenberg (16 Aug 2011)
1960 - CHANGES: synced for 1.7.5 release
1962 - RELEASE-NOTES: synced with bb4096effef7f000
1964 Jakub Hrozek (15 Aug 2011)
1965 - Only fall back to AF_INET searches when looking for AF_UNSPEC addresses
1967 Yang Tse (10 Aug 2011)
1968 - [Gisle Vanem brought this change]
1970 ares_iphlpapi.h: Watcom C fix
1972 Added "!defined(_WS2DEF_)" since Watcom doesn't have
1973 a per type guard for the typedefs 'CSADDR_INFO' (that MingW has) or
1974 'SOCKET_ADDRESS' (that MSVC has). But we can use the header-guard for
1977 - [Gisle Vanem brought this change]
1980 * The 'NTDDI_VERSION' needs to be raised to 0x05010000
1981 in order for SOCKADDR_STORAGE etc. to be typedefed.
1982 * Replaced '-dUSE_WATT32' with '-dWATT32'.
1983 * Added $(DEMOS) to the 'all' target and removed the 'demos'
1984 target to be consistent with e.g. Makefile.msvc etc.
1985 * 'ENABLE_IPV6' is no longer used. Hence removed the '%use_ipv6' construct.
1986 * object-file order seems to be important (Watcom v.19). Hence
1987 'ares_getopt.obj' must be put after the .obj that references getopt().
1989 - cares-compilers.m4: CARES_CONVERT_INCLUDE_TO_ISYSTEM adjustments
1991 Add CARES_CHECK_COMPILER as a requirement.
1993 Ensure macro does nothing unless GNU_C or CLANG compiler is used.
1995 This should allow usage of this macro in unforeseen placements.
1997 - config-win32.h: comments adjustments - followup
1999 - config-win32.h: comments adjustments
2001 Daniel Stenberg (5 Aug 2011)
2002 - [Tom Hughes brought this change]
2004 ares_parse_a_reply: fix memleak
2006 Yang Tse (29 Jul 2011)
2007 - cares-functions.m4 serial # bump
2009 - Revert "configure: additional flag checks for fcntl() and socket()"
2011 This reverts commit 5f2a3b0e48f26d24cb1fefea0dccb92d417dcbf7.
2013 - configure: additional flag checks for fcntl() and socket()
2015 - xc-translit.m4 fix quoting
2017 - configure: avoid direct usage of AS_TR_* macros
2019 - xc-translit.m4 provides transliteration macros with well defined behavior.
2021 Jakub Hrozek (15 Jun 2011)
2022 - Revert "Only fall back to AF_INET searches when looking for AF_UNSPEC addresses"
2024 This reverts commit b5823d65706af687c0e5110af8f0cfdcd068997d.
2026 This patch was not reviewed properly before pushing
2028 - Revert "Do not use sized constants in public headers"
2030 This reverts commit 22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d.
2032 This is a Red Hat specific patch that does not belong into upstream
2034 - Use correct sizeof in ares_getnameinfo()
2036 - Do not leak rr_name on failures inside ares_parse_ptr_reply
2038 - Do not leak rr_name on failures inside ares_parse_a_reply
2040 - Do not leak rr_name on failures inside ares_parse_aaaa_reply
2042 - Do not leak rr_name on failures inside ares_parse_ns_reply
2044 - Fix incorrect sizeof() in ares_save_options
2046 - Fix incorrect allocation in ares_parse_ptr_reply()
2048 - Only fall back to AF_INET searches when looking for AF_UNSPEC addresses
2050 - Do not use sized constants in public headers
2052 Daniel Stenberg (13 Jun 2011)
2053 - [Jakub Hrozek brought this change]
2055 ares_free_hostent(NULL) should be a noop
2057 Yang Tse (8 Jun 2011)
2058 - configure: fix recvfrom 5th arg type qualifier detection (followup)
2060 - configure: fix recvfrom 5th arg type qualifier detection
2062 Additionally remove whitespace from EOL
2064 Daniel Stenberg (4 Jun 2011)
2065 - strlen: use size_t to receive the return
2067 Yang Tse (4 Jun 2011)
2068 - xlc: avoid preprocessor definition usage when linking
2070 - ares_nowarn: icc 9.1 workaround
2072 - ares_nowarn: header inclusion fix
2074 - ares_init: make ares_private.h last included header again
2076 - compiler warning: fix
2078 Fix compiler warning: conversion may lose significant bits
2080 - compiler warning: fix
2082 Fix compiler warning: variable was set but never used
2084 Fix compiler warning: clobber ignored
2086 - ares_iphlpapi: fix compiler warnings
2088 - winsock: compilation fixes
2090 Provide winsock iphlpapi alternative definitions to prevent compilation
2091 failures when using a variety of winsock header implementations.
2093 Daniel Stenberg (17 May 2011)
2094 - [David Stuart brought this change]
2096 IPv6-on-windows: find DNS servers correctly
2098 - man pages: docs for the c-ares utility programs
2100 - ares_parse_ns_reply.c: remove CVSism
2102 Yang Tse (27 Mar 2011)
2103 - build: fix header inclusion
2105 - getservbyport replacement for Win CE
2107 - renamed getplatform() to ares__getplatform() to avoid namespace pollution
2109 - configure: fix libtool warning
2111 Recent versions of libtool are now tracing usage of AC_CONFIG_MACRO_DIR
2112 macro and warn heavily when not used in configure script along with
2113 ACLOCAL_AMFLAGS in Makefile.am. So in order to make libtool happy
2114 while keeping backwards compatibility this is added.
2116 - adig: RFC4034 resource record type detection
2118 Can be tested with: adig -s 8.8.8.8 -t ANY example.com
2120 - nameser.h: RFC4034 resource record type definitions
2122 - build: move platform stuff to ares_platform.c and ares_platform.h
2124 - build: find out windows platform using GetVersionEx()
2126 - build: use getenv() replacement function for systems which lack it
2128 - setup_once: system error codes for Windows CE
2130 - ares_search: use ERRNO macro for portability sake
2132 - System's errno.h inclusion cleanup follow-up.
2134 System's errno.h is conditionally included from setup_once.h
2136 - Windows CE specific adjustment
2138 All versions of Windows CE support Winsock 1.1
2140 - System's errno.h inclusion cleanup.
2142 System's errno.h is conditionally included from setup_once.h
2144 - ares_init: fix gethostname error detection on winsock platforms
2146 - configure: r-enable temporarily disabled detection of system's inet_ntop()
2148 Detection was temporarily disabled in commit 674e044ccb21f2f63537da53565fce868f
2150 Daniel Stenberg (15 Mar 2011)
2151 - configure: stop using the deprecated AM_INIT_AUTOMAKE syntax
2153 - [Gisle Vanem brought this change]
2157 Make sure Watt-32 programs use 'errno' even on Win32 targets
2159 Guenter Knauf (18 Feb 2011)
2160 - Removed commented CLFAGS no longer needed.
2162 - Fixed CFLAGS for NetWare.
2164 Added -m32 to enable compilation with x86_64 compilers;
2165 added conditional to set -fpcc-struct-return only for gcc compiler.
2167 Daniel Stenberg (18 Feb 2011)
2168 - [Gisle Vanem brought this change]
2170 Watt32: fix server init
2172 Somewhere in the process, programs using the Watt-32 tcp/ip stack
2175 - [Dima Tisnek brought this change]
2177 config_sortlist: (win32) missing else
2179 Without an else there, contents of "pat" that could have been
2180 successfully set just above, may be clobbered by successive unsuccessful
2181 calls to "xxx_pton" or "ip_addr".
2183 Yang Tse (17 Jan 2011)
2184 - Makefile.msvc: add a couple of VS version strings
2186 - Makefile.msvc: add a couple of VS version strings
2188 - build: add install target to Makefile.msvc
2190 Daniel Stenberg (27 Dec 2010)
2191 - ares_set_servers_csv: remove unused variables
2193 - init_by_resolv_conf: fix compiler warnings
2195 The code received the return codes in the 'status' variable without
2196 using it. Instead we just ignore those particular errors.
2198 - getv4: Value stored to 'dst' is never read
2200 - advance_tcp_send_queue: avoid NULL ptr dereference
2202 If given a too large 'num_bytes' value, it would cause a NULL ptr
2203 dereference. Instead the code will now break out of the loop at the end
2206 - [Peter Pentchev brought this change]
2208 configure: fix a bashism
2210 - cleanup: avoid unsafe typecasts
2212 Avoid the risk of reading 16bit data from an unaligned address by using
2213 a macro that is adapted for this.
2215 - [Stefan Bühler brought this change]
2217 ares_expand_name: Fix encoded length for indirect root
2219 Yang Tse (18 Dec 2010)
2220 - build: add some explicit file references to VS project files
2222 - config-win32: provide HAVE_ASSERT_H definition
2224 - build: include ares_nowarn in sample program VS project files
2226 - build: include ares_nowarn among SAMPLESOURCES and SAMPLEHEADERS
2228 - configure: temporarily disable detection of system's inet_ntop()
2230 This is done to allow compilation of ares_inet_ntop() by some daily
2231 builds picky compilers that otherwise do not need this function.
2233 - changes: mention last fix
2235 - ares_inet_ntop: remove definition and usage of macro SPRINTF
2237 Existing definition of SPRINTF always resulted in sprintf() being used,
2238 and sprintf() returning 'int' is already used throughout the library.
2240 - ares_inet_ntop: reapply changes from previous c-ares version (III)
2242 - Replace 'u_char' with 'unsigned char'.
2243 - Replace 'u_int' with 'unsigned int'.
2244 - use macros ERRNO and SET_ERRNO() for errno handling.
2246 - ares_inet_ntop: reapply changes from previous c-ares version (II)
2249 - Adjust header file inclusions.
2250 - ares_inet_ntop used only on systems without a proper inet_ntop function.
2252 - ares_inet_ntop: reapply changes from previous c-ares version (I)
2254 - Replace tabs with spaces.
2255 - Use ANSI C style for function declarations and definitions.
2256 - Use sizeof with parentheses.
2258 - ares_inet_ntop: fix off by one error triggering out of bounds write
2260 ares_inet_ntop would trigger an out of bounds write when the representation
2261 of the address required 15 characters, due to not taking in account null
2262 termination character.
2264 Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
2266 - ares_nowarn: add conditional inclusion of assert.h header
2268 - fix compiler warning: conversion may lose significant bits
2270 - ares_inet_net_pton: fix non-rejection of some malformed literals
2272 ares_inet_net_pton would return wrong values when excessively large,
2273 and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
2274 issue also described in the WLB-2008080064 advisory.
2276 - setup_once: provide ISASCII macro
2278 - configure: inet_net_pton function check adjustments
2280 Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
2281 capable and is not affected by the WLB-2008080064 advisory.
2283 HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
2285 - ares_init: fix detection of semicolon comments in resolv.conf
2287 File resolv.conf may either use a hash '#' or a semicolon ';' character as an
2288 indication that the rest of the line is a comment. This fixes not recognizing
2289 the semicolon as a valid comment indicator in resolv.conf.
2291 - version: start working on 1.7.5
2293 Version 1.7.4 (8 Dec 2010)
2295 Daniel Stenberg (8 Dec 2010)
2296 - release-preps: CHANGES and RELEASE-NOTES synced
2298 - ares_set_local_*: added in 1.7.4, not before
2300 Yang Tse (3 Dec 2010)
2301 - build: provide SIZEOF_SIZE_T definition for non-configure builds
2303 - build: config.dos renamed to config-dos.h
2305 - build: provide SIZEOF_SIZE_T netware definition
2307 - ares_gethostbyaddr: fix compiler warning: conversion may lose significant bits
2309 - configure: undo using autobuilds to temporarily verify strict aliasing warnings.
2311 - fix compiler warning: rounding, sign extension, or loss of accuracy may result
2313 Daniel Stenberg (2 Dec 2010)
2314 - [Ben Noordhuis brought this change]
2316 ares_parse_a_reply: fix CNAME response parsing
2318 Reply to a CNAME query doesn't contain addresses, causing
2319 ares_parse_a_reply() to bail out with ARES_ENODATA
2321 Bug: http://groups.google.com/group/nodejs/browse_thread/thread/a1268c9ea5e9ad9b
2323 Yang Tse (1 Dec 2010)
2324 - fix compiler warning: conversion may lose significant bits
2326 - atoi: remove atoi usage
2328 - ares_init: fix compiler warning: conversion may lose significant bits
2330 - configure: fix autoconf warning
2332 - inet_pton: fix compiler warning
2334 - configure: use autobuilds to temporarily verify strict aliasing warnings.
2336 Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
2337 rules and warnings. Given that cross-compiled targets autobuilds do not run the
2338 test-suite, there is no risk of running code that violates strict aliasing rules
2340 - ares_getnameinfo: Partially revert commit 85520d66e0ac7ac73411bc25e98769a88b2f
2342 Upon socket address family and length validation failure return ARES_ENOTIMP
2343 in callback again, this is the error code documented in man page and used
2344 mostly all over the library.
2346 - ares_getnameinfo: Validate socket address family and length.
2348 Validate socket address family and that the socket address length is appropriate
2349 for the specified family. Failure is reported with ARES_EBADFAMILY in callback.
2351 - ares_getnameinfo: fix two compiler warnings
2353 - Added another VS10 version string
2355 - Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
2357 - Revert commit 494274e653936335c255a47599970de3df21e7c4
2359 - configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body
2361 - Fix compiler warning: array subscript has type 'char'
2363 - Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'.
2365 - Revert following commits:
2366 07bc7ea79509bcc9ef6e09151e81766ed00d3392
2367 3392a50ea3f8573ea4b7a9d82b9833dab60cb0e9
2368 9912637d32c9987719a1ea12db591aee2941891c
2370 The purpose of the whole patch was to silence a compiler warning triggered
2371 with GCC 4 on file ares_process.c The specific compiler warning was
2372 'dereferencing type-punned pointer might break strict-aliasing rules'.
2374 A simpler patch will follow to equally silence the warning.
2376 - ares_options: reorder header inclusions to make inclusion of
2377 ares_private.h the last included one again.
2379 Daniel Stenberg (12 Nov 2010)
2380 - [Patrik Thunstrom brought this change]
2382 adig: fix NAPTR parsing
2384 I ran across a small "issue" in your adig example.
2386 It is simply the last part of the NAPTR record, the replacement element,
2387 which is not a string, as currently handled in adig, but a domain name.
2389 - ares_save_options: assignments instead of memcpy
2391 - init_by_options: don't copy an empty sortlist
2393 If there aren't any sort items to copy, don't bother. Without this
2394 little precaution it would do a malloc(0) which causes undefined
2395 behaviors and is frowned upon by curl's memdebug-system.
2397 Guenter Knauf (3 Oct 2010)
2398 - Minor Watcom makefile tweaks.
2400 Daniel Stenberg (30 Sep 2010)
2401 - [Mike Crowe brought this change]
2403 Fix lookup with HOSTALIASES set.
2405 ares__read_line returns ARES_EOF when it reaches the end of the
2406 file. This will happen every time when reading to the end of the
2407 HOSTALIASES file. Unfortunately single_domain treats this error as
2410 Signed-off-by: Mike Crowe <mac@mcrowe.com>
2412 Ben Greear (24 Aug 2010)
2413 - Add missing break that caused get_ares_servers to fail.
2415 Reported-by: Ning Dong <flintning@163.com>
2416 Signed-off-by: Ben Greear <greearb@candelatech.com>
2418 Yang Tse (11 Aug 2010)
2419 - configure: werror related adjustments
2421 Guenter Knauf (8 Aug 2010)
2422 - Added copyright string to ares_version.h and make use of it in other files.
2424 - Block created ares_build.h for NetWare to avoid usage from other platforms.
2426 - Fix to overwrite default libname.
2428 - Some more Watcom makefile massage ...
2430 - Some more Watcom makefile massage ...
2432 Ben Greear (4 Aug 2010)
2433 - sock-addr-storage: Detect and deal with lack of .ss_family member.
2435 AIX, at least, does not have sockaddr_storage.ss_family member.
2436 Detect this in the configure logic and use proper #ifdefs in the
2439 Signed-off-by: Ben Greear <greearb@candelatech.com>
2440 Tested-by: Tor Arntsen <tor@spacetec.no>
2442 Guenter Knauf (3 Aug 2010)
2443 - Added Watcom makefile based on libcurl's Makefile.Watcom.
2445 Ben Greear (31 Jul 2010)
2446 - typo: Fix compile bug for platforms that don't have sockaddr_storage.
2448 Bug was introduced by me in previous commit.
2450 Signed-off-by: Ben Greear <greearb@candelatech.com>
2452 - Fix aliasing warning in gcc 4.4.4 (at least).
2454 Should be no functional change, though the code gets a bit
2457 Signed-off-by: Ben Greear <greearb@candelatech.com>
2459 Daniel Stenberg (31 Jul 2010)
2460 - ares_set_servers_csv: use ISDIGIT
2462 The IS*() set of macros are preferred to the regular is*() functions as
2463 they help us avoid the most common pitfalls.
2465 Ben Greear (30 Jul 2010)
2466 - cast arg to isdigit to int
2468 Looks like it might silence a warning on Netware build.
2470 Signed-off-by: Ben Greear <greearb@candelatech.com>
2472 - remove all uses of uint32_t
2474 Previous fix forgot a few.
2476 Signed-off-by: Ben Greear <greearb@candelatech.com>
2478 - fix signed v/s unsigned casts warning in ares_gethostbyaddr.c
2480 Signed-off-by: Ben Greear <greearb@candelatech.com>
2482 - local-bind-fixup: Fix inet_pton warning.
2484 Conditionally include <arpa/inet.h> for inet_pton
2487 Signed-off-by: Ben Greear <greearb@candelatech.com>
2489 - build: Enable compiling with -Werror.
2491 This helps find compile warnings because they simply break
2495 ./configure --enable-warnings --enable-werror
2497 Signed-off-by: Ben Greear <greearb@candelatech.com>
2499 - ipv6: Fix some build issues related to the local-bind feature.
2501 Signed-off-by: Ben Greear <greearb@candelatech.com>
2503 Guenter Knauf (29 Jul 2010)
2504 - Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.
2506 Daniel Stenberg (18 Jul 2010)
2507 - [Ben Greear brought this change]
2509 local-bind: Support binding to local interface/IPs
2511 Add 3 new functions to set the local binding for the out-going
2512 socket connection, and add ares_set_servers_csv() to set a
2513 list of servers at once as a comma-separated string.
2515 Signed-off-by: Ben Greear <greearb@candelatech.com>
2517 - version: now start on 1.7.4
2519 - [Andrew C. Morrow brought this change]
2521 fix memory leak in ares_getnameinfo
2523 Version 1.7.3 (11 Jun 2010)
2525 Daniel Stenberg (11 Jun 2010)
2526 - changelogs: updated for 1.7.3
2528 - [BogDan Vatra brought this change]
2530 init: allow c-ares to work on Android OS
2532 - changelog: fill in the 1.7.2 changes
2534 - added another pdf to ignore
2536 Yang Tse (11 Jun 2010)
2537 - add ares_parse_mx_reply.c to VS dsp file
2539 Daniel Stenberg (10 Jun 2010)
2540 - tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST
2542 It's not clear to me why we need this, but we apparently may
2543 otherwise not get all files bundled in the dist tarball.
2545 - version: start working on 1.7.3
2547 Version 1.7.2 (10 Jun 2010)
2549 Daniel Stenberg (10 Jun 2010)
2550 - RELEASE-NOTES: 1.7.2 details added
2552 - [Jakub Hrozek brought this change]
2554 ares_init: Last, not first instance of domain or search should win
2556 - style: make code less than 80 columns wide
2558 Yang Tse (31 May 2010)
2559 - [Tor Arntsen brought this change]
2561 improve alternative definition of bool to use enum instead of unsigned char
2563 - fix VS2010 compiler warnings
2565 Daniel Stenberg (18 Apr 2010)
2566 - [Jérémy Lal brought this change]
2568 added ares_parse_mx_reply
2570 - repair the file mode
2572 - remove all $Id$ lines
2574 - remove all .cvsignore files
2578 reported by Gregor Jasny on the mailing list
2580 - [Peter Pentchev brought this change]
2582 Fix a couple of typos and grammar nits.
2584 - ignore the GPG signature files too
2586 - start the journey towards 1.7.2
2588 - no longer CVS tagging
2590 - ignore generated PDFs
2592 Version 1.7.1 (23 Mar 2010)
2594 Daniel Stenberg (23 Mar 2010)
2597 - made README the primary readme file
2599 ... and did README.cares to contain a historic reason etc.
2605 - ignore lots of generated files
2607 - [Daniel Johnson brought this change]
2609 Fix warnings for clang
2611 Yang Tse (17 Mar 2010)
2612 - replaced intel compiler option -no-ansi-alias with -fno-strict-aliasing
2614 - update outdated serial number
2616 - fix compiler warning
2618 - watt32 compilation fix
2620 - Added another VS10 version string
2624 - removed usage of 's6_addr', fixing compilation issue triggered with no
2625 longer using 'in6_addr' but only our 'ares_in6_addr' struct
2627 Daniel Stenberg (5 Mar 2010)
2628 - Daniel Johnson provided fixes for building with the clang compiler
2630 Yang Tse (5 Mar 2010)
2631 - Added IPv6 name servers support
2633 Gisle Vanem (5 Mar 2010)
2634 - Ops!. Readded ares_nowarn.h.
2636 - Added ares_nowarn.c.
2638 Yang Tse (28 Feb 2010)
2639 - Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
2641 - Added ares_nowarn.* to VC6 project file
2643 - Added SIZEOF_INT definition
2645 - fix compiler warning
2647 - fix compiler warning
2649 - fix compiler warning
2651 Daniel Stenberg (17 Feb 2010)
2654 - To allow an app to force a re-read of /etc/resolv.conf etc, pretty much
2655 like the res_init() resolver function offers
2657 - - Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
2658 check for broken connections like ares_process() did. Based on that, I
2659 merged the two functions into a single generic one with two front-ends.
2661 Yang Tse (30 Dec 2009)
2662 - VMS specific preprocessor symbol checking adjustments
2664 - Mention last changes
2666 - - Fix configure_socket() to use ares_socket_t instead of int data type.
2668 - - Where run-time error checks enabling compiler option /GZ was used it is now
2669 replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions.
2671 - Compiler option /GX is now replaced with equivalent /EHsc for all versions.
2673 - - Ingmar Runge noticed that Windows config-win32.h configuration file
2674 did not include a definition for HAVE_CLOSESOCKET which resulted in
2675 function close() being inappropriately used to close sockets.
2677 Daniel Stenberg (30 Nov 2009)
2678 - start working on 1.7.1
2680 Version 1.7.0 (27 Nov 2009)
2682 Yang Tse (27 Nov 2009)
2683 - Preserve empty line following last target
2685 - - Larry Lansing fixed ares_parse_srv_reply to properly parse replies
2686 which might contain non-SRV answers, skipping over potential non-SRV
2687 ones such as CNAMEs.
2689 - When using icc, compile with -fpic and link with intel dynamic libraries.
2691 - Added 'currently' in italics to insist on transient situation.
2695 - Daniel wants upcoming release to be 1.7.0
2697 - Mention last changes
2699 - - Removed from external interface preprocessor symbol definition for
2700 CARES_HAVE_ARES_FREE_DATA. Current functionality of ares_free_data()
2701 makes it unnecessary.
2705 - Changed c-ares naming conventions when using MSVC as described in README.msvc
2707 - - Mention other recent changes
2709 - - Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
2710 ares_addr6ttl in order to prevent name space pollution, along with
2711 necessary changes to code base and man pages.This change does not break
2712 ABI, there is no need to recompile existing applications. But existing
2713 applications using these structs with the old name will need source code
2714 adjustments when recompiled using c-ares 1.6.1.
2716 - - Jakub Hrozek fixed more function prototypes in man pages to sync them
2717 with the ones declared in ares.h
2719 - Make configure remove the ares_build.h file included in distribution tarballs.
2721 - Fix macro redefinition.
2723 - Fix name space pollution.
2725 - Allow using different extra import libraries for debug and release builds.
2727 - Add manifest stuff to msvc makefile
2729 - Sync man page with reality
2731 - Add missing external API decoration for ares_set_socket_callback()
2733 - Add ares_free_data() man page.
2735 - - Provide in external interface preprocessor symbol definitions for
2736 CARES_HAVE_ARES_FREE_DATA as an indication of function availability.
2742 - Add ares_data.c and ares_data.h
2744 - Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
2745 to return a linked lists of results. These were also modified to internally
2746 use the ares_data memory struct and as such its result must be free'ed with
2749 - Initial support for the generic ares_free_data() function that will allow
2750 applications to free memory allocated and returned by some c-ares funtions.
2752 - Make usage of calloc()'s arguments consistent with rest of code base
2754 - workaround icc 9.1 optimizer issue
2756 - Add icc fvisibility bug test
2758 - Fix icc 9.0 compiler warning: external definition with no prior declaration
2760 - Fix three var names
2762 - Add check for assert.h header file
2764 - getaddrinfo is fully thread safe on solaris versions which
2765 implement the function even when h_errno is not a macro.
2767 The h_errno macro test now only done on systems for which there
2768 is no hard coded knowledge about getaddrinfo's thread safeness.
2770 - Remove files generated on previous buildconf/configure run
2772 - Remove enable-thread / disable-thread configure option. These were only placebo
2773 options. The library is always built as thread safe as possible on every system.
2775 - Refactor how preprocessor symbol _THREAD_SAFE definition is done.
2777 - Assume that getaddrinfo is thread safe, unless hard coded
2778 knowledge says the contrary or h_errno is not defined.
2780 - Related with the threadsafe capability of getaddrinfo:
2782 - Constantine Sapuntzakis reported that Darwin 6.0 a.k.a. MAC OS X 10.2
2783 and newer have a threadsafe getaddrinfo.
2785 - Fix Dragonfly BSD triplet detection.
2787 - In case the hard-coded knowledge says that getaddrinfo is threadsafe,
2788 an additional check is done to verify that h_errno is also defined.
2789 If h_errno isn't defined, we finally assume that it isn't threadsafe.
2790 Jamie Lokier provided the inspiration for this extra check.
2792 - AIX 5.2 and newer have threadsafe getaddrinfo.
2794 Add some comments to better understand what the regex's pretend to achieve.
2796 - HP-UX 11.11 and later have threadsafe getaddrinfo
2798 - Check if getaddrinfo is threadsafe when function check allows it to be used
2800 - Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library
2804 - Mention last changes
2806 - Reinstate copyright symbol lost in previous commit
2808 - Make some strings different in resource file for debug or release builds
2810 - Ignore more subdirs
2812 - Fix compiler warning: conditional expression is constant
2814 - Sync linker and resource compiler options with Makefile.msvc
2816 - Follow Makefile.msvc subdirectory naming scheme, and sync compiler options
2818 - Updated MSVC makefile that allows building dynamic and static
2819 c-ares libraries in debug and release flavours.
2821 Additionally each of the three sample programs is built against
2822 each of the four possible c-ares libraries, generating all this
2823 a total number of 12 executables and 4 libraries.
2825 - Test for USE_WINSOCK since it is more restrictive than WIN32
2827 - Make header inclusion depend on HAVE_*_H definition
2829 - Remove unneeded preprocessor directives
2831 - Adjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds
2833 - source files used by sample programs
2835 - Renamed c-ares setup.h to ares_setup.h
2837 - Adjust include paths to take in account that currently:
2839 c-ares with --enable-curldebug uses memdebug.h from libcurl's lib subdirectory.
2841 memdebug.h needs access to libcurl's setup.h from libcurl's lib subdirectory
2842 and also needs access to libcurl's generated curl_config.h
2844 - Undo old temporary change once used for testing purposes
2846 - Mention many changes
2848 - Mention --enable-symbol-hiding configure option
2850 - Symbol hiding configure options renamed to the hopefully less ambiguous
2851 --enable-symbol-hiding and --disable-symbol-hiding as well as related
2852 macro names and some internal variables used for them.
2854 Related configuration file preprocessor symbols named to
2855 CARES_SYMBOL_HIDING and CARES_SYMBOL_SCOPE_EXTERN.
2857 - Header inclusion depending on HAVE_* symbol.
2860 - Comparison of the Initial revision of this file with ares_parse_a_reply.c
2861 shows that this one is actually a modified copy of ares_parse_a_reply.c.
2863 In order to comply with ares_parse_a_reply.c's M.I.T. license, the old
2864 1998 M.I.T. copyright notice is now also preserved in this file the same
2865 as it is done in other ares_parse_*.c files.
2868 Fix identation of some license lines.
2874 - In no particular order, changed/fixed all of the following in
2875 ares_parse_txt_reply() current version:
2877 - Fixed a couple of potential double free's.
2879 - Fixed memory leaks upon out of memory condition.
2881 - Fixed pointer arithmetic.
2883 - Setting ntxtreply to zero upon entry for all failure cases.
2885 - Changed data type to size_t for variables substr_len, str_len and
2886 the length member of ares_txt_reply struct.
2888 - Avoided a couple of memcpy() calls.
2890 - Changed i data type to unsigned int to prevent compiler warnings.
2892 - Adjusted a comment.
2894 - Use ARES_SUCCESS literal for successfull completion.
2898 - Add c-ares DLL resource file to distribution archive
2904 - Updated MSVC 6.0 workspace and project files that allows building
2905 dynamic and static c-ares libraries in debug and release flavours.
2907 Additionally each of the three sample programs is built against
2908 each of the four possible c-ares libraries, generating all this
2909 a total number of 12 executables and 4 libraries.
2911 Daniel Stenberg (29 Oct 2009)
2912 - no need to check for NULL pointers before dereferencing, as the pointers
2913 MUST be valid and they are dereferenced further down in the function
2916 - shorten the descriptions somewhat
2918 - update to the new struct name
2920 - Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
2922 - use 'ares_srv_reply' for proper name-spacing
2924 Yang Tse (29 Oct 2009)
2925 - Add reference for ares_parse_srv_reply.pdf
2927 - Add reference for ares_parse_srv_reply docs
2929 - External API function linkage decoration adjustment
2931 - External API function linkage decoration adjustment
2933 - Initial step towards the ability to reduce c-ares exported symbols
2934 based on the 'visibility' attribute for GNUC and __global for Sun
2935 compilers, taking also in account __declspec function decoration
2936 for Win32 and Symbian DLL's.
2938 Introducing configure options --enable-hidden-symbols and
2939 --disable-hidden-symbols following libcurl's naming.
2945 - Fix Pelles C Win32 target compilation issues
2947 - John Engelhart noticed an unreleased problem relative to a duplicate
2948 ARES_ECANCELLED error code value and missing error code description.
2950 - Fix compiler warning: local variable may be used without having been initialized
2952 - Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
2953 is only expanded and included once in the configure script.
2955 - Our _AS_PATH_SEPARATOR_PREPARE override is now m4_defun'd instead of m4_define'd
2956 due to autoconf 2.64 m4_require'ing it in _AS_SHELL_SANITIZE indirectly through
2959 - Fix compiler warning: argument is incompatible with corresponding format string conversion
2961 - Fix potential out-of-bounds read
2963 - Fix compiler warning: loop without body
2965 - Fix compiler warning
2967 - Fix compiler warning
2969 - Fix compiler warning
2971 - Fix compiler warning: addition result could be truncated before cast to bigger sized type
2973 - Overhauled ares__get_hostent()
2975 - Fixing out of bounds memory overwrite triggered with malformed /etc/hosts file.
2976 - Improving parsing of /etc/hosts file.
2977 - Validating requested address family.
2978 - Ensuring that failures always return a NULL pointer.
2979 - Adjusting header inclusions.
2981 - Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak
2983 - more files to ignore
2985 - Check if _REENTRANT definition is required to
2986 make errno available as a preprocessor macro.
2988 - Attempt to silence bogus compiler warning: "Potential null pointer dereference"
2992 Gisle Vanem (7 Sep 2009)
2993 - Suppress warnings about unused prototypes in Watt32 and Win32 programs.
2995 - Update email address.
2997 - Update my email address. Add ares_config.h as dependency for 'make depend'.
2999 Yang Tse (6 Sep 2009)
3000 - T_SRV portability check
3002 Gunter Knauf (5 Sep 2009)
3003 - changed includes to match style how we do with all other *.c files.
3005 - changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used;
3006 also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.
3008 Gisle Vanem (5 Sep 2009)
3009 - Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.
3011 - Added 'ares_parse_srv_reply.obj'. Added definition of 'u_int16_t'. This is I don't like; we should not depend on such non-universal types in a public header. But this is just a quick fix.
3013 Daniel Stenberg (4 Sep 2009)
3014 - - Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
3016 Steinar H. Gunderson (27 Aug 2009)
3017 - Support lookup of IPv4 literals in ares_gethostbyname(), even when the address family is set to AF_INET6.
3019 Gisle Vanem (3 Aug 2009)
3020 - Remove call to LoadLibrary(). (leftover from debugging).
3024 Daniel Stenberg (3 Aug 2009)
3025 - - Timo Teras changed the reason code used in the resolve callback done when
3026 ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to
3027 better allow the callback to know what's happening.
3029 - - Joshua Kwan fixed the init routine to fill in the defaults for stuff that
3030 fails to get inited by other means. This fixes a case of when the c-ares
3031 init fails when internet access is fone.
3033 Gunter Knauf (16 Jul 2009)
3034 - test if adding ../lib to includes can fix the current break ...
3036 - renamed generated config.h to ares_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h.
3038 Yang Tse (21 Jun 2009)
3039 - Refactor how libraries are checked for connect() function, follow-up.
3041 - Refactor how libraries are checked for connect() function,
3042 and check for connect() as it is done for other functions.
3044 Gisle Vanem (20 Jun 2009)
3045 - Remove unneeded defines.
3047 - Use select_s() and not select().
3049 Yang Tse (19 Jun 2009)
3050 - sclose() function-like macro definition used to close a socket,
3051 now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
3052 config file preprocessor definitions.
3054 - add CloseSocket camel case function check
3056 - check for socket() and closesocket() as it is done for other functions
3058 - Remove HAVE_CONFIG_H definition from here,
3059 CFLAGS from common.dj already defines it.
3061 - initial step towards decoupling c-ares from libcurl for DOS
3063 - don't ignore these subdirs, they must be removed first
3065 - Remove DEBUGBUILD symbol definition, is not required for programs using the library.
3067 - DEBUGBUILD symbol definition for debug builds
3069 - ignore some subdirs
3073 - Try to make more clear that --enable-curldebug has nothing to do with --enable-debug for this library.
3075 - Revert last change, it is inappropriate.
3077 Gisle Vanem (12 Jun 2009)
3078 - Replace CURLDEBUG with DEBUGBUILD.
3080 Yang Tse (11 Jun 2009)
3081 - when running automake copy missing files instead of symlinking them
3083 - Adjusted to take in account that...
3085 With the curl memory tracking feature decoupled from the debug build feature,
3086 CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows:
3088 CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug)
3090 DEBUGBUILD used for debug enabled specific code (--enable-debug)
3092 - c-ares' --enable-debug --enable-curldebug decoupling follow-up
3094 - mention last changes
3096 - Remove buildconf.bat from release and daily snapshot archives.
3098 buildconf.bat is only for CVS tree builds.
3100 - Ensure that buildconf.bat does nothing unless it is used with a CVS checkout.
3102 - CVS-INFO file only present in CVS tree, never in release nor daily snapshot
3103 archives. Used as a sentinel file in buildconf.bat to differentiate CVS builds.
3105 Gisle Vanem (8 Jun 2009)
3106 - Update comment about "ML". Removed "-D_USE_32BIT_TIME_T" (not a requirement).
3108 Yang Tse (8 Jun 2009)
3109 - just comment it out
3111 - For debugging purposes...
3113 Disable the '-export-symbols-regex' to discard this as the origin
3114 of link failures related with shared libraries and non-GNU linkers.
3116 - c-ares Makefile.am back to using $(top_builddir) for *_LDADD
3118 - c-ares' -no-undefined and --enable-curldebug adjustments
3120 - Use relative path to built c-ares tree libtool library
3122 - John E. Malmberg noticed that the configure script was failing to detect the
3123 timeval struct on VMS when building with _XOPEN_SOURCE_EXTENDED undefined due
3124 to definition taking place in socket.h instead of time.h
3126 - Fix compiler warning: out of bound access
3128 - fix compilation on AIX
3130 - c-ares' --enable-curldebug adjustments
3132 - Remove temporarily introduced memory leak.
3134 - Temporarily introduce a memory leak to verify curl debug memory tracking works.
3136 - Allow curl debug memory tracking when building a shared library on
3137 systems which support external, undefined, symbols in shared libraries.
3139 Daniel Stenberg (26 May 2009)
3142 Yang Tse (26 May 2009)
3143 - Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
3144 if library initialization has not been performed calling ares_library_init().
3146 - c-ares's --enable-curldebug configure option decoupled from c-ares's --enable-debug
3148 - Prevent copying 'sourced' manpages for build targets that don't use them.
3150 Daniel Stenberg (23 May 2009)
3153 Yang Tse (21 May 2009)
3154 - Include .pdf versions of c-ares man pages in distribution tarball.
3156 - Allow generation of .html and .pdf versions of c-ares man pages.
3158 Gisle Vanem (21 May 2009)
3159 - $(OBJ_DIR)/ares_getopt.o must be cleaned explicitly.
3161 Yang Tse (20 May 2009)
3162 - Mention last changes
3164 - Initial ares_library_cleanup(3) man page
3170 - Initial ares_library_init(3) man page attempt
3172 - Force revision update, to force CVS to update the $Id date string format
3174 - Add same copyright notice as other c-ares files
3178 - Remove run-time requirement for advapi32.dll since
3179 c-ares can work even with no advapi32.dll at all.
3181 - Intentionally avoid checking if the address of SystemFunction036, a.k.a.
3182 RtlGenRandom, has been located or not. This function is only available on
3183 WinXP and later. When unavailable c-ares uses portable rand() function.
3185 - - Provide in external interface preprocessor symbol definitions for
3186 CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP
3187 to ease the use of new capabilities.
3189 - Move ares_version() prototype to ares.h
3191 - Introduction of ares_library_init() and ares_library_cleanup()
3193 - Introduction of ares_library_init() and ares_library_cleanup()
3195 - remove outdated comment
3197 - Fix preprocessor conditional expression
3199 - fiX *__SOCKLEN_T definitions for remaining targets
3201 - *__SOCKLEN_T definitions for OS400 already fixed
3203 - fIX *__SOCKLEN_T definitions for SYMBIAN32 and VMS targets
3205 Daniel Stenberg (11 May 2009)
3206 - - Gregor Jasny made c-ares link with libtool 's -export-symbols-regex option to
3207 only expose functions starting with ares_.
3209 Yang Tse (11 May 2009)
3210 - Remove experimental check. Currently there's no need for it.
3212 - Fix an m4 overquoting triggering a spurious 'AS_TR_CPP' symbol definition
3213 attempt in generated config.h
3215 - Proper naming for the experimental compiler test and moved to *-compilers.m4
3217 - Moved *_CHECK_COMPILER_HALT_ON_ERROR and *_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE to *-compilers.m4 along with other *_CHECK_COMPILER_*
3219 - fIX *__SOCKLEN_T definitions for OS400 and generic GCC targets
3221 - fIX *__SOCKLEN_T definitions for MVS and 370 targets
3223 - fIX *__SOCKLEN_T definitions for several Windows target tool-chains
3225 - HP-UX's X/Open network library requirement check follow-up
3227 - HP-UX's X/Open network library requirement check follow-up
3229 - Use build-time configured ares_socklen_t instead of socklen_t
3231 - David McCreedy's "TPF-platform specific changes to various files" patch follow-up
3233 Daniel Stenberg (1 May 2009)
3236 - version number typo fix
3238 Yang Tse (1 May 2009)
3239 - David McCreedy's "TPF-platform specific changes to various files" patch
3241 - Check definition of _XOPEN_SOURCE_EXTENDED with the compiler
3243 - Check if X/Open network library is required
3245 - cope with ares_build.h and ares_rules.h follow-up
3247 - Added some notes regarding ares_build.h
3253 - cope with ares_build.h and ares_rules.h
3255 - buildconf.bat for CVS-tree c-ares
3257 - Use 'unsigned int' instead of size_t attempting to avoid header inclusion
3259 - NetWare LibC's getpeername() third argument data type is size_t
3261 - Remove temporary debug tracing for ares_socklen_t Windows targets
3263 - ares_socklen_t follow-up
3265 - ares_build.h Windows follow-up
3267 - Add temporary debug tracing for ares_socklen_t Windows targets
3269 - ares_build.h NetWare follow-up
3271 - ares_build.h NetWare attempt
3273 - Initial step towards a configure time ares_socklen_t definition
3277 - Added CARES_INCLUDES_SYS_TYPES
3279 - Initial step towards a configure time curl_socklen_t definition
3281 - avoid use of alloca()
3283 - Moved potential inclusion of system's malloc.h and memory.h header files to
3284 setup_once.h. Inclusion of each header file is based on the definition of
3285 NEED_MALLOC_H and NEED_MEMORY_H respectively.
3289 Gisle Vanem (18 Apr 2009)
3290 - Added '-DHAVE_LIMITS_H'.
3292 Yang Tse (17 Apr 2009)
3293 - remove compiler options used while debugging the icc 9.1 optimizer issue
3295 - moved HAVE_LIMITS_H to common defines
3297 - Set HP-UX compiler warning level back to the one that exposes
3298 the socklen_t issue on this platform.
3300 - HAVE_LIMITS_H definition for NetWare CLIB
3302 - use HAVE_LIMITS_H symbol to protect limits.h inclusion
3304 - fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
3306 - s/u_long/unsigned long/
3308 - Do not halt compilation when using VS2008 to build a Windows 2000 target
3312 Phil Blundell (3 Feb 2009)
3313 - * February 3 2009 (Phil Blundell)
3314 - If the server returns garbage or nothing at all in response to an AAAA query,
3315 go on and ask for A records anyway.
3317 Daniel Stenberg (31 Jan 2009)
3318 - - ares_gethostbyname() now accepts 'AF_UNSPEC' as a family for resolving
3319 either AF_INET6 or AF_INET. It works by accepting any of the looksups in the
3320 hosts file, and it resolves the AAAA field with a fallback to A.
3322 Gisle Vanem (18 Jan 2009)
3323 - fopen() returns error in 'errno' even on Windows.
3324 So don't use ERRNO (GetLastError()). Trimmed trailing
3327 - Constified some arguments in local functions.
3329 Daniel Stenberg (14 Jan 2009)
3330 - - ares.h no longer uses the HAVE_STRUCT_IN6_ADDR define check, but instead it
3331 now declares the private struct ares_in6_addr for all systems instead of
3332 relying on one possibly not present in the system.
3334 Phil Blundell (13 Jan 2009)
3335 - - ares__send_query() now varies the retry timeout pseudo-randomly to avoid
3336 packet storms when several queries were started at the same time.
3338 Daniel Stenberg (11 Jan 2009)
3339 - - Phil Blundell added the internal function ares__expand_name_for_response()
3340 that is now used by the ares_parse_*_reply() functions instead of the
3341 ares_expand_name() simply to easier return ARES_EBADRESP for the cases where
3342 the name expansion fails as in responses that really isn't expected.
3344 Gunter Knauf (30 Dec 2008)
3345 - added HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID to ares Makefile.netware and sync'd with other Makefile.netware.
3347 Daniel Stenberg (9 Dec 2008)
3350 - start over on the 1.6.1 release...
3352 Version 1.6.0 (9 Dec 2008)
3354 Daniel Stenberg (9 Dec 2008)
3357 Gisle Vanem (9 Dec 2008)
3358 - Fix for Win32 targets using Watt-32.
3360 Dan Fandrich (9 Dec 2008)
3361 - C89 compilers (like Minix' ACK) only need to handle 31 functions arguments
3362 so split a long sprintf into two calls to get below that number.
3364 Gisle Vanem (8 Dec 2008)
3365 - Added needed defines for Watt-32 on Windows.
3367 - Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
3368 (to get correct linkage on Windows).
3370 - ares_writev() shall not be exported when using Watt-32 (has writev).
3371 Added _USE_32BIT_TIME_T to avoid runtime warning. Applies to
3374 - Removed unneeded defines HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T,
3375 RETSIGTYPE and HAVE_PROCESS_H.
3377 Daniel Stenberg (4 Dec 2008)
3378 - the initial version of the ares_set_socket_callback man page
3380 - Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
3381 and I edited it to also get duped by ares_dup().
3383 Dan Fandrich (4 Dec 2008)
3384 - Bring the sys/include.h include test in line with curl's.
3386 Daniel Stenberg (3 Dec 2008)
3387 - Let's not call ares_save_options() deprecated just yet
3389 - Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
3390 Also discussed on the ml.
3392 Dan Fandrich (2 Dec 2008)
3393 - Make sure sys/socket.h is included before netinet/in.h (required by
3394 OpenWatcom C, and condoned by SUS)
3396 Daniel Stenberg (1 Dec 2008)
3399 - Convert the public config struct to the same binary size/construct as in the
3400 latest releases to remain ABI compatible.
3402 Gisle Vanem (29 Nov 2008)
3403 - Added '-DHAVE_GETHOSTNAME'.
3405 Dan Fandrich (29 Nov 2008)
3406 - Make sure sys/socket.h is included before netinet/in.h (required by
3409 - Netware has gethostname()
3411 - Fixed a couple of typos
3413 - Don't tweak the HAVE_* macros when using autoconf
3415 - Make use of gethostname() conditional on it being available
3417 - Only set TCP_NODELAY when it exists
3419 Daniel Stenberg (28 Nov 2008)
3420 - updated with changes, preparing for a release soon
3422 Yang Tse (26 Nov 2008)
3423 - Gerald Combs fixed a bug in ares_parse_ptr_reply() which would cause a
3424 buffer to shrink instead of expand if a reply contained 8 or more records.
3426 - Brad Spencer provided changes to allow buildconf to work on OS X.
3428 - In preparation for the upcomming IPv6 nameservers patch, the internal
3429 ares_addr union is now changed into an internal struct which also holds
3432 Dan Fandrich (20 Nov 2008)
3433 - Make checking for struct ifreq a prerequisite for setting
3434 HAVE_IOCTL_SIOCGIFADDR since it's needed to use SIOCGIFADDR and Watcom C
3435 doesn't currently define it.
3437 Daniel Stenberg (20 Nov 2008)
3438 - use unsigned short better intead of mixing with ints to prevent compiler
3441 - please the picky compilers by staying with short as the data we get is short
3444 - - Brad Spencer brought the new function ares_gethostbyname_file() which simply
3445 resolves a host name from the given file, using the regular hosts syntax.
3447 Yang Tse (19 Nov 2008)
3448 - user provided PATH_SEPARATOR always overrides auto-detected one
3450 - attempting to keep lines below 80 chars
3452 - provide a common PATH_SEPARATOR check method which is required by
3453 upcomming work to support the broadest range of Autoconf versions
3455 - check for gethostbyaddr and gethostbyname as it is done for other functions
3457 - Make configure script check if ioctl with the SIOCGIFADDR command can be
3458 used, and define HAVE_IOCTL_SIOCGIFADDR if appropriate.
3460 - fix leftover from previous commit
3462 - fix inet_pton() runtime configure check
3464 - trim down configure script size
3466 Daniel Stenberg (15 Nov 2008)
3467 - Fixed an OOM condition reported by Jim Meyering
3469 Yang Tse (14 Nov 2008)
3470 - fix typo affecting inclusion of <arpa/inet.h> in configure
3471 checks for inet_ntoa_r() inet_ntop() and inet_pton()
3473 - #include <string.h> in the getaddrinfo() runtime check for the memset() prototype
3475 - fix symbol definition check for fcntl.h inclusion
3477 - Refactor configure script detection of functions used to set sockets into
3478 non-blocking mode, and decouple function detection from function capability.
3480 Daniel Stenberg (1 Nov 2008)
3481 - Added a TODO file to list things we want changed, added or fixed.
3483 - - Carlo Contavalli added support for the glibc "rotate" option, as documented
3486 causes round robin selection of nameservers from among those listed. This
3487 has the effect of spreading the query load among all listed servers, rather
3488 than having all clients try the first listed server first every time.
3490 You can enable it with ARES_OPT_ROTATE
3492 Yang Tse (1 Nov 2008)
3493 - Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability
3495 - WIN32 availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite
3496 convoluted, compiler dependant and in some cases even build target dependat.
3498 - check for freeaddrinfo() at configuration phase
3500 - update aclocal file serial number
3502 - remove verification of the freeability of the addrinfo struct pointer members
3506 - make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
3507 and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME
3508 internal to CHECK_FUNC_GETADDRINFO
3512 - Initial attempt to detect at configuration time if the getaddrinfo()
3513 function returns an addrinfo with an unfreeable ai_canonname member ptr.
3515 - Initial attempt to detect at configuration time if the getaddrinfo()
3516 function returns an addrinfo with an unfreeable ai_addr member ptr.
3520 Select ANSI C89 dialect plus GNU extensions, again.
3522 - some more temporary magic for the icc seg-fault issue
3524 - icc permanent adjustment:
3526 Select precise floating-point model, otherwise doubles are less than 64-bit wide
3528 icc test adjustment:
3534 Enable more icc warnings.
3536 Optimization disabling options used only for icc 9.1
3538 - #include <stdlib.h> for exit() prototype
3540 - some more temporary magic for the icc seg-fault issue
3542 - remove from configure.ac temporary magic for the icc seg-fault issue
3544 - some more temporary magic for the icc seg-fault issue
3546 - Charles Hardin patch:
3548 - handles the EINPROGRESS for UDP connects
3549 - uses closesocket instead of close on some paths that were noticed
3551 - some more temporary magic for the icc seg-fault issue
3553 - messages initially intended only for debug purposes, now become permanent
3554 since these are extremely useful when compiler rejects a set of options.
3556 - fix compiler warning
3558 - fix missing double-quotes
3560 Daniel Stenberg (17 Oct 2008)
3561 - Charles Hardin made adig support a regular numerical dotted IP address for the
3564 Yang Tse (16 Oct 2008)
3565 - some more temporary magic for the icc seg-fault issue
3567 - Ensure that shell variable contents which have active meaning
3568 to the shell echo command are not interpreted when trying to
3569 remove extra whitespace from shell variable content.
3571 - Adjust Watcom C warnings:
3573 Disable warnings on structure members padding.
3575 - With this change Solaris target builds will now be done with _REENTRANT defined.
3577 - Adjust Tiny C basic options:
3579 Remove -b from debug-enabled configuration, as Tiny C might have
3580 been built without the memory and bounds checker support.
3582 - Adjust GCC warnings:
3584 Better disable following warnings when cross-compiling with a gcc older
3585 than 3.0, to avoid warnings from third party system headers:
3587 -Wmissing-declarations
3588 -Wmissing-prototypes
3594 - Initial attempt to detect Watcom C compiler
3596 - make naming scheme more consistent across whole file
3598 - Adjust GCC warnings:
3600 Disable following warnings when cross-compiling with a gcc older
3601 than 3.0, to avoid warnings from third party system headers:
3603 -Wmissing-prototypes
3607 - Adjust GCC --enable-warnings:
3609 Do not enable -pedantic when cross-compiling with a gcc older
3610 than 3.0, to avoid warnings from third party system headers.
3612 - adjust SGI MIPSpro C detection
3614 - LCC compiler adjustments:
3616 Highest warning level is double -A, next is single -A.
3617 Due to the big number of warnings these trigger on third
3618 party header files it is impratical for us to use any of
3619 them here. If you want them simply define it in CPPFLAGS.
3621 - remove extra space
3623 - split SGI compiler check. One for MIPS C and another for MIPSpro C
3625 - LCC compiler adjustments:
3627 Warning level reduced from double -A to single -A
3629 - Initial attempt to detect Tiny C compiler
3631 - Initial attempt to detect LCC compiler
3633 - 1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
3635 2) Disable SGI remark: controlling expression is constant
3637 - simplify SGI C compiler check
3641 Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level.
3642 It generates more than 1100 warnings on socklen_t related statements.
3644 Until the issue is somehow fixed we will just use the +w2 warning level.
3646 - Add debug tracing for COMPILER_WORKS_IFELSE
3648 - configure will also warn on 'strict compiler warning' rejected options
3650 - convert rejected compiler options messages into a warnings
3652 - remove extra whitespace from string in SGI C check
3656 - Initial attempt to detect SGI C compiler
3660 Disallow run-time dereferencing of null pointers.
3662 Disable some remarks:
3664 #4227: padding struct with n bytes to align member.
3666 #4255: padding size of struct with n bytes to alignment boundary.
3668 - improve presentation of accepted/rejected debug/optimizer options
3670 - refactoring of COMPILER_BASIC_OPTS
3672 - Initial attempt to detect SUN C compiler
3674 - Initial attempt to detect HP C compiler
3676 - fix compiler warning: 'dot_4' may be used uninitialized in this function
3678 - adjust ICC_windows settings
3682 - Sync up with reality
3684 - Initial attempt to support configure's --(dis|en)able-optimize
3685 option to specify dis(activation) of compiler optimizations.
3687 If option is specified, it will be honored independant of the
3688 --(dis|en)able-debug option.
3692 - Initial attempt to support configure's --(dis|en)able-warnings
3693 option to specify dis(activation) of picky compiler warnings.
3695 If option is specified, it will be honored independant of the
3696 --(dis|en)able-debug option.
3698 If option is not specified, it will follow --(dis|en)able-debug
3699 setting, whose default is disabled if not specified.
3701 - fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
3703 - now compiler warnings are activated for all gcc builds, not only debug ones.
3705 - Use CFLAGS for icc linker options instead of LDFLAGS,
3706 otherwise gethostbyname() is not detected.
3708 - use ac_cv_compiler and ac_cv_compiler_num to keep compiler ID and version number
3710 - Temporary icc adjustment:
3712 Disable floating point optimizations
3714 - HAVE_INET_PTON will only be defined when an IPv6 capable working
3715 inet_pton function is available.
3717 - HAVE_INET_NTOP will only be defined when an IPv6 capable working
3718 inet_ntop function is available.
3720 - ntoa() and inet_ntoa_r() no longer used
3722 - icc adjustments for icc 9.0 and prior versions:
3724 Disable remark #279: controlling expression is constant
3726 Remark triggered mostly on va_arg() and FD_ZERO() macros.
3728 - attempt to make work the gethostname function
3729 check for winsock build target configurations
3731 Gisle Vanem (21 Sep 2008)
3732 - Added HAVE_NETDB_H, HAVE_ARPA_INET_H, HAVE_STRCASECMP
3733 and HAVE_STRNCASECMP.
3735 Yang Tse (19 Sep 2008)
3738 Disable remark #981: operands are evaluated in unspecified order
3740 Function calls which are triggering this remark, today, do not depend
3741 on the order of evaluation of its arguments.
3743 Disable remark #1469: "cc" clobber ignored
3745 Remark triggered on htons() and ntohs() due to glibc header files.
3749 - fix netdb.h prerequisite inclusion
3751 - improve detection of getservbyport_r()
3753 - On Linux Intel's icc uses gcc's header files, so
3754 we select ANSI C89 dialect plus GNU extensions.
3756 - improve detection of gethostname()
3758 - NetWare builds include "nameser.h" from the c-ares subdir
3760 - include <strings.h>
3762 - Sync up with reality
3764 - adjust inclusion of "nameser.h"
3766 - reorder some lines in file
3770 - NetWare seems to have writev()
3772 - rearrange to allow internal/private use of ares_writev to any system
3773 that lacks the writev function.
3775 - NetWare CLIB target has stricmp() and strnicmp()
3777 - include header file only when available
3779 - rearrange to allow internal/private use of ares_strcasecmp to any system that
3780 lacks the strcasecmp function.
3782 - improve detection of:
3790 - *** empty log message ***
3792 Gisle Vanem (12 Sep 2008)
3793 - djgpp does have strdup().
3795 Yang Tse (12 Sep 2008)
3796 - change CRLF into LF line endings
3798 - strdup() clone for systems/configurations which lack it
3800 - move inclusion of ares_private.h last
3806 - Select strict ANSI C89 conformance for icc
3808 - remove unnecessary typecasting of malloc()
3810 - remove unnecessary typecasting of realloc()
3812 Daniel Stenberg (29 Aug 2008)
3813 - we start over working towards 1.5.4
3815 Version 1.5.3 (29 Aug 2008)
3817 Daniel Stenberg (29 Aug 2008)
3820 - added the three people from RELEASE-NOTES and sorted the list alphabetically
3822 Yang Tse (27 Aug 2008)
3823 - Don't abort configuration if recvfrom() is not available.
3825 - Functionality only possible if recvfrom() is available.
3827 - George Neill's fix acountry sample application compilation failure.
3829 - Brad House's validation that DNS response address matches the request address
3831 - fix the output name
3833 - Get rid of ENABLE_64BIT symbol definition and usage.
3835 Improve HAVE_LONGLONG symbol description.
3837 - Export 'ares_process_fd' too.
3839 Gisle Vanem (16 Aug 2008)
3840 - Ops, remove 'use_vc'.
3842 - Support Watt-32 under Win32.
3844 Yang Tse (10 Aug 2008)
3845 - Fix: Remove now this SIZEOF_CURL_OFF_T symbol definition.
3847 This should have been done with the initial 64-bit curl_off_t patch.
3849 - Improve CURL_CHECK_DEF
3851 - Fix IBM C and DEC/Compaq C compiler detection
3853 - Initial support of curlbuild.h and curlrules.h which allows
3854 to have a curl_off_t data type no longer gated to off_t.
3856 - The minimum autoconf version required for this file is 2.50
3858 Avoid dot notation in aclocal serial file number, use a single number now.
3860 Daniel Stenberg (4 Aug 2008)
3861 - - Fix by Tofu Linden:
3864 * Users (usually, but not always) on 2-Wire routers and the Comcast service
3865 and a wired connection to their router would find that the second and
3866 subsequent DNS lookups from fresh processes using c-ares to resolve the same
3867 address would cause the process to never see a reply (it keeps polling for
3868 around 1m15s before giving up).
3871 * On such a machine (and yeah, it took us a lot of QA to find the systems
3872 that reproduce such a specific problem!), do 'ahost www.secondlife.com',
3873 then do it again. The first process's lookup will work, subsequent lookups
3874 will time-out and fail.
3877 * init_id_key() was calling randomize_key() *before* it initialized
3878 key->state, meaning that the randomness generated by randomize_key() is
3879 immediately overwritten with deterministic values. (/dev/urandom was also
3880 being read incorrectly in the c-ares version we were using, but this was
3881 fixed in a later version.)
3882 * This makes the stream of generated query-IDs from any new c-ares process
3883 be an identical and predictable sequence of IDs.
3884 * This makes the 2-Wire's default built-in DNS server detect these queries
3885 as probable-duplicates and (erroneously) not respond at all.
3887 Yang Tse (4 Aug 2008)
3888 - Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
3889 Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. But,
3890 autoconf 2.62 version of AC_AIX defines _ALL_SOURCE along with other four
3891 preprocessor symbols no matter if the system is AIX or not. To keep the
3892 traditional behaviour, as well as an uniform one, across autoconf versions
3893 AC_AIX is replaced with our own internal macro.
3895 - Adjust DEC/Compaq C compiler settings.
3897 - Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
3898 Proper definition of HAVE_function if function is found deeper.
3900 - Sync up with reality
3902 - Rename reentrant.m4 to avoid filename clash.
3904 - Add file version serial number that might be used by 'aclocal' and others.
3906 Keep the '#' character as the first one on the line.
3908 - Update copyright year.
3910 - Sync comment with reality.
3912 - Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of
3913 including our local m4/reentrant.m4 file. This even takes care of including the
3914 file in the distribution tarball.
3916 - Add quoting for the AC_DEFINE arguments.
3918 - Also remove the whitespace.
3920 - Also remove the extra quoting.
3922 - Replace some '@%:@' quadigraphs by its actual representation '#'.
3924 This quadigraph used before a C preprocessor 'define' directive could
3925 be fooling M4, when processing this file, and make it think that the
3926 line contains a pure M4 'define' macro.
3928 - Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4
3929 in top Makefile.am triggered a problem that prevented aclocal from running
3930 successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61
3932 A tarball which reproduces mentioned problem is the one dated July-28-2008
3933 http://cool.haxx.se/curl-daily/curl-7.19.0-20080728.tar.gz
3935 We actually don't need all the bells and whistles that the above mechanism
3936 provides. We only need to include our m4/reentrant.m4 file in acinclude.m4
3937 so here we go with this simpler mechanism.
3939 - for debugging purposes show ACLOCAL_FLAGS
3941 - These lines were unintentionally removed in previous commit
3943 - Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf.
3945 - Assert that SED and GREP are set
3947 - Require autoconf 2.57 or newer
3949 - When calling aclocal, user defined ACLOCAL_FLAGS will now precede ours.
3951 - move ACLOCAL_AMFLAGS after AUTOMAKE_OPTIONS
3953 - setup.h handles definition of _REENTRANT based on NEED_REENTRANT
3954 definition which might be defined in config.h or config-*.h files
3956 - Remove explicit inclusion of our m4 files first. It was interesting as a test,
3957 but it breaks aclocal execution on some systems, with the following error:
3959 Can't locate object method "rel2abs" via package "File::Spec" at /usr/local/bin/aclocal line 256.
3961 - Another step towards detecting if _REENTRANT is already defined or actually
3962 needed, and being able to define it if appropriate for further configure tests
3963 as well as for the generated config file.
3965 - Explicitly include our m4 files first. This might minimize the impact
3966 that other package's underquoted m4 function definitions have on ours.
3968 - Add a 3 argument check for getprotobyname_r