platform/upstream/c-ares.git
14 years agowatt32 compilation fix
Yang Tse [Tue, 9 Mar 2010 17:59:35 +0000 (17:59 +0000)]
watt32 compilation fix

14 years agoAdded another VS10 version string
Yang Tse [Sat, 6 Mar 2010 10:52:56 +0000 (10:52 +0000)]
Added another VS10 version string

14 years agofix line break
Yang Tse [Sat, 6 Mar 2010 02:33:25 +0000 (02:33 +0000)]
fix line break

14 years agoremoved usage of 's6_addr', fixing compilation issue triggered with no
Yang Tse [Sat, 6 Mar 2010 01:23:09 +0000 (01:23 +0000)]
removed usage of 's6_addr', fixing compilation issue triggered with no
longer using 'in6_addr' but only our 'ares_in6_addr' struct

14 years agoDaniel Johnson provided fixes for building with the clang compiler
Daniel Stenberg [Fri, 5 Mar 2010 22:53:31 +0000 (22:53 +0000)]
Daniel Johnson provided fixes for building with the clang compiler

14 years agoAdded IPv6 name servers support
Yang Tse [Fri, 5 Mar 2010 20:01:47 +0000 (20:01 +0000)]
Added IPv6 name servers support

14 years agoOps!. Readded ares_nowarn.h.
Gisle Vanem [Fri, 5 Mar 2010 18:45:17 +0000 (18:45 +0000)]
Ops!. Readded ares_nowarn.h.

14 years agoAdded ares_nowarn.c.
Gisle Vanem [Fri, 5 Mar 2010 18:21:56 +0000 (18:21 +0000)]
Added ares_nowarn.c.

14 years agoAdded SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
Yang Tse [Sun, 28 Feb 2010 02:51:35 +0000 (02:51 +0000)]
Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems

14 years agoAdded ares_nowarn.* to VC6 project file
Yang Tse [Sun, 28 Feb 2010 02:50:51 +0000 (02:50 +0000)]
Added ares_nowarn.* to VC6 project file

14 years agoAdded SIZEOF_INT definition
Yang Tse [Fri, 26 Feb 2010 17:48:18 +0000 (17:48 +0000)]
Added SIZEOF_INT definition

14 years agofix compiler warning
Yang Tse [Fri, 26 Feb 2010 16:42:33 +0000 (16:42 +0000)]
fix compiler warning

14 years agofix compiler warning
Yang Tse [Tue, 23 Feb 2010 18:46:27 +0000 (18:46 +0000)]
fix compiler warning

14 years agofix compiler warning
Yang Tse [Sun, 21 Feb 2010 19:59:09 +0000 (19:59 +0000)]
fix compiler warning

14 years agoares_reinit()
Daniel Stenberg [Wed, 17 Feb 2010 22:15:23 +0000 (22:15 +0000)]
ares_reinit()

- To allow an app to force a re-read of /etc/resolv.conf etc, pretty much
  like the res_init() resolver function offers

14 years ago- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
Daniel Stenberg [Thu, 28 Jan 2010 22:03:48 +0000 (22:03 +0000)]
- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
  check for broken connections like ares_process() did. Based on that, I
  merged the two functions into a single generic one with two front-ends.

14 years agoVMS specific preprocessor symbol checking adjustments
Yang Tse [Wed, 30 Dec 2009 17:59:56 +0000 (17:59 +0000)]
VMS specific preprocessor symbol checking adjustments

14 years agoMention last changes
Yang Tse [Tue, 29 Dec 2009 02:32:12 +0000 (02:32 +0000)]
Mention last changes

14 years ago- Fix configure_socket() to use ares_socket_t instead of int data type.
Yang Tse [Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)]
- Fix configure_socket() to use ares_socket_t instead of int data type.

14 years ago- Where run-time error checks enabling compiler option /GZ was used it is now
Yang Tse [Tue, 29 Dec 2009 01:51:57 +0000 (01:51 +0000)]
- Where run-time error checks enabling compiler option /GZ was used it is now
  replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions.

- Compiler option /GX is now replaced with equivalent /EHsc for all versions.

14 years ago- Ingmar Runge noticed that Windows config-win32.h configuration file
Yang Tse [Mon, 21 Dec 2009 16:55:39 +0000 (16:55 +0000)]
- Ingmar Runge noticed that Windows config-win32.h configuration file
  did not include a definition for HAVE_CLOSESOCKET which resulted in
  function close() being inappropriately used to close sockets.

14 years agostart working on 1.7.1
Daniel Stenberg [Mon, 30 Nov 2009 22:39:04 +0000 (22:39 +0000)]
start working on 1.7.1

14 years agoPreserve empty line following last target
Yang Tse [Fri, 27 Nov 2009 05:24:44 +0000 (05:24 +0000)]
Preserve empty line following last target

14 years ago- Larry Lansing fixed ares_parse_srv_reply to properly parse replies
Yang Tse [Thu, 26 Nov 2009 01:21:21 +0000 (01:21 +0000)]
- Larry Lansing fixed ares_parse_srv_reply to properly parse replies
  which might contain non-SRV answers, skipping over potential non-SRV
  ones such as CNAMEs.

14 years agoWhen using icc, compile with -fpic and link with intel dynamic libraries.
Yang Tse [Tue, 24 Nov 2009 16:12:23 +0000 (16:12 +0000)]
When using icc, compile with -fpic and link with intel dynamic libraries.

14 years agoAdded 'currently' in italics to insist on transient situation.
Yang Tse [Tue, 24 Nov 2009 10:08:45 +0000 (10:08 +0000)]
Added 'currently' in italics to insist on transient situation.

14 years agoFix language
Yang Tse [Tue, 24 Nov 2009 09:48:32 +0000 (09:48 +0000)]
Fix language

14 years agoDaniel wants upcoming release to be 1.7.0
Yang Tse [Mon, 23 Nov 2009 12:03:32 +0000 (12:03 +0000)]
Daniel wants upcoming release to be 1.7.0

14 years agoMention last changes
Yang Tse [Mon, 23 Nov 2009 11:35:53 +0000 (11:35 +0000)]
Mention last changes

14 years ago- Removed from external interface preprocessor symbol definition for
Yang Tse [Mon, 23 Nov 2009 11:26:29 +0000 (11:26 +0000)]
- Removed from external interface preprocessor symbol definition for
  CARES_HAVE_ARES_FREE_DATA. Current functionality of ares_free_data()
  makes it unnecessary.

14 years agoAdded README.msvc
Yang Tse [Mon, 23 Nov 2009 11:07:16 +0000 (11:07 +0000)]
Added README.msvc

14 years agoChanged c-ares naming conventions when using MSVC as described in README.msvc
Yang Tse [Mon, 23 Nov 2009 11:05:47 +0000 (11:05 +0000)]
Changed c-ares naming conventions when using MSVC as described in README.msvc

14 years ago- Mention other recent changes
Yang Tse [Mon, 23 Nov 2009 01:54:55 +0000 (01:54 +0000)]
- Mention other recent changes

14 years ago- Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
Yang Tse [Mon, 23 Nov 2009 01:24:17 +0000 (01:24 +0000)]
- Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
  ares_addr6ttl in order to prevent name space pollution, along with
  necessary changes to code base and man pages.This change does not break
  ABI, there is no need to recompile existing applications. But existing
  applications using these structs with the old name will need source code
  adjustments when recompiled using c-ares 1.6.1.

14 years ago- Jakub Hrozek fixed more function prototypes in man pages to sync them
Yang Tse [Mon, 23 Nov 2009 00:57:50 +0000 (00:57 +0000)]
- Jakub Hrozek fixed more function prototypes in man pages to sync them
  with the ones declared in ares.h

14 years agoMake configure remove the ares_build.h file included in distribution tarballs.
Yang Tse [Sun, 22 Nov 2009 05:31:31 +0000 (05:31 +0000)]
Make configure remove the ares_build.h file included in distribution tarballs.

14 years agoFix macro redefinition.
Yang Tse [Sun, 22 Nov 2009 03:51:07 +0000 (03:51 +0000)]
Fix macro redefinition.

14 years agoFix name space pollution.
Yang Tse [Sun, 22 Nov 2009 03:41:26 +0000 (03:41 +0000)]
Fix name space pollution.

14 years agoAllow using different extra import libraries for debug and release builds.
Yang Tse [Sun, 22 Nov 2009 03:40:42 +0000 (03:40 +0000)]
Allow using different extra import libraries for debug and release builds.

14 years agoAdd manifest stuff to msvc makefile
Yang Tse [Sat, 21 Nov 2009 13:28:07 +0000 (13:28 +0000)]
Add manifest stuff to msvc makefile

14 years agoSync man page with reality
Yang Tse [Fri, 20 Nov 2009 14:15:05 +0000 (14:15 +0000)]
Sync man page with reality

14 years agoAdd missing external API decoration for ares_set_socket_callback()
Yang Tse [Fri, 20 Nov 2009 14:11:06 +0000 (14:11 +0000)]
Add missing external API decoration for ares_set_socket_callback()

14 years agoAdd ares_free_data() man page.
Yang Tse [Fri, 20 Nov 2009 13:02:41 +0000 (13:02 +0000)]
Add ares_free_data() man page.

14 years ago- Provide in external interface preprocessor symbol definitions for
Yang Tse [Fri, 20 Nov 2009 13:01:35 +0000 (13:01 +0000)]
- Provide in external interface preprocessor symbol definitions for
  CARES_HAVE_ARES_FREE_DATA as an indication of function availability.

14 years agoRemove typecast
Yang Tse [Fri, 20 Nov 2009 09:57:25 +0000 (09:57 +0000)]
Remove typecast

14 years agoFix comment
Yang Tse [Fri, 20 Nov 2009 09:54:15 +0000 (09:54 +0000)]
Fix comment

14 years agoAdd ares_data.c and ares_data.h
Yang Tse [Fri, 20 Nov 2009 09:14:37 +0000 (09:14 +0000)]
Add ares_data.c and ares_data.h

14 years agoJakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
Yang Tse [Fri, 20 Nov 2009 09:06:33 +0000 (09:06 +0000)]
Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
to return a linked lists of results. These were also modified to internally
use the ares_data memory struct and as such its result must be free'ed with
ares_free_data().

14 years agoInitial support for the generic ares_free_data() function that will allow
Yang Tse [Fri, 20 Nov 2009 08:50:03 +0000 (08:50 +0000)]
Initial support for the generic ares_free_data() function that will allow
applications to free memory allocated and returned by some c-ares funtions.

14 years agoMake usage of calloc()'s arguments consistent with rest of code base
Yang Tse [Wed, 18 Nov 2009 10:33:54 +0000 (10:33 +0000)]
Make usage of calloc()'s arguments consistent with rest of code base

14 years agoworkaround icc 9.1 optimizer issue
Yang Tse [Wed, 18 Nov 2009 02:57:34 +0000 (02:57 +0000)]
workaround icc 9.1 optimizer issue

14 years agoAdd icc fvisibility bug test
Yang Tse [Mon, 16 Nov 2009 23:01:37 +0000 (23:01 +0000)]
Add icc fvisibility bug test

14 years agoFix icc 9.0 compiler warning: external definition with no prior declaration
Yang Tse [Mon, 16 Nov 2009 20:02:12 +0000 (20:02 +0000)]
Fix icc 9.0 compiler warning: external definition with no prior declaration

14 years agoFix three var names
Yang Tse [Mon, 16 Nov 2009 01:56:16 +0000 (01:56 +0000)]
Fix three var names

14 years agoAdd check for assert.h header file
Yang Tse [Mon, 16 Nov 2009 01:55:48 +0000 (01:55 +0000)]
Add check for assert.h header file

15 years agogetaddrinfo is fully thread safe on solaris versions which
Yang Tse [Sun, 15 Nov 2009 13:43:15 +0000 (13:43 +0000)]
getaddrinfo is fully thread safe on solaris versions which
implement the function even when h_errno is not a macro.

The h_errno macro test now only done on systems for which there
is no hard coded knowledge about getaddrinfo's thread safeness.

15 years agoRemove files generated on previous buildconf/configure run
Yang Tse [Sun, 15 Nov 2009 03:47:13 +0000 (03:47 +0000)]
Remove files generated on previous buildconf/configure run

15 years agoRemove enable-thread / disable-thread configure option. These were only placebo
Yang Tse [Sun, 15 Nov 2009 02:45:24 +0000 (02:45 +0000)]
Remove enable-thread / disable-thread configure option. These were only placebo
options. The library is always built as thread safe as possible on every system.

15 years agoRefactor how preprocessor symbol _THREAD_SAFE definition is done.
Yang Tse [Sat, 14 Nov 2009 18:51:37 +0000 (18:51 +0000)]
Refactor how preprocessor symbol _THREAD_SAFE definition is done.

15 years agoAssume that getaddrinfo is thread safe, unless hard coded
Yang Tse [Fri, 13 Nov 2009 20:03:45 +0000 (20:03 +0000)]
Assume that getaddrinfo is thread safe, unless hard coded
knowledge says the contrary or h_errno is not defined.

15 years agoRelated with the threadsafe capability of getaddrinfo:
Yang Tse [Fri, 13 Nov 2009 05:01:51 +0000 (05:01 +0000)]
Related with the threadsafe capability of getaddrinfo:

- Constantine Sapuntzakis reported that Darwin 6.0 a.k.a. MAC OS X 10.2
  and newer have a threadsafe getaddrinfo.

- Fix Dragonfly BSD triplet detection.

- In case the hard-coded knowledge says that getaddrinfo is threadsafe,
  an additional check is done to verify that h_errno is also defined.
  If h_errno isn't defined, we finally assume that it isn't threadsafe.
  Jamie Lokier provided the inspiration for this extra check.

15 years agoAIX 5.2 and newer have threadsafe getaddrinfo.
Yang Tse [Thu, 12 Nov 2009 22:48:40 +0000 (22:48 +0000)]
AIX 5.2 and newer have threadsafe getaddrinfo.

Add some comments to better understand what the regex's pretend to achieve.

15 years agoHP-UX 11.11 and later have threadsafe getaddrinfo
Yang Tse [Thu, 12 Nov 2009 20:29:28 +0000 (20:29 +0000)]
HP-UX 11.11 and later have threadsafe getaddrinfo

15 years agoCheck if getaddrinfo is threadsafe when function check allows it to be used
Yang Tse [Thu, 12 Nov 2009 18:31:33 +0000 (18:31 +0000)]
Check if getaddrinfo is threadsafe when function check allows it to be used

15 years agoRenamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with...
Yang Tse [Wed, 11 Nov 2009 08:56:46 +0000 (08:56 +0000)]
Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library

15 years agoAdd kernel32.lib
Yang Tse [Wed, 11 Nov 2009 08:51:31 +0000 (08:51 +0000)]
Add kernel32.lib

15 years agoMention last changes
Yang Tse [Tue, 10 Nov 2009 22:07:32 +0000 (22:07 +0000)]
Mention last changes

15 years agoReinstate copyright symbol lost in previous commit
Yang Tse [Tue, 10 Nov 2009 22:04:51 +0000 (22:04 +0000)]
Reinstate copyright symbol lost in previous commit

15 years agoMake some strings different in resource file for debug or release builds
Yang Tse [Tue, 10 Nov 2009 20:20:13 +0000 (20:20 +0000)]
Make some strings different in resource file for debug or release builds

15 years agoIgnore more subdirs
Yang Tse [Tue, 10 Nov 2009 20:05:10 +0000 (20:05 +0000)]
Ignore more subdirs

15 years agoFix compiler warning: conditional expression is constant
Yang Tse [Tue, 10 Nov 2009 18:41:03 +0000 (18:41 +0000)]
Fix compiler warning: conditional expression is constant

15 years agoSync linker and resource compiler options with Makefile.msvc
Yang Tse [Tue, 10 Nov 2009 18:26:09 +0000 (18:26 +0000)]
Sync linker and resource compiler options with Makefile.msvc

15 years agoFollow Makefile.msvc subdirectory naming scheme, and sync compiler options
Yang Tse [Mon, 9 Nov 2009 19:34:30 +0000 (19:34 +0000)]
Follow Makefile.msvc subdirectory naming scheme, and sync compiler options

15 years agoUpdated MSVC makefile that allows building dynamic and static
Yang Tse [Mon, 9 Nov 2009 13:24:11 +0000 (13:24 +0000)]
Updated MSVC makefile that allows building dynamic and static
c-ares libraries in debug and release flavours.

Additionally each of the three sample programs is built against
each of the four possible c-ares libraries, generating all this
a total number of 12 executables and 4 libraries.

15 years agoTest for USE_WINSOCK since it is more restrictive than WIN32
Yang Tse [Mon, 9 Nov 2009 12:57:26 +0000 (12:57 +0000)]
Test for USE_WINSOCK since it is more restrictive than WIN32

15 years agoMake header inclusion depend on HAVE_*_H definition
Yang Tse [Mon, 9 Nov 2009 12:56:50 +0000 (12:56 +0000)]
Make header inclusion depend on HAVE_*_H definition

15 years agoRemove unneeded preprocessor directives
Yang Tse [Mon, 9 Nov 2009 12:56:11 +0000 (12:56 +0000)]
Remove unneeded preprocessor directives

15 years agoAdjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds
Yang Tse [Thu, 5 Nov 2009 17:44:29 +0000 (17:44 +0000)]
Adjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds

15 years agosource files used by sample programs
Yang Tse [Wed, 4 Nov 2009 14:24:47 +0000 (14:24 +0000)]
source files used by sample programs

15 years agoRenamed c-ares setup.h to ares_setup.h
Yang Tse [Mon, 2 Nov 2009 11:55:53 +0000 (11:55 +0000)]
Renamed c-ares setup.h to ares_setup.h

15 years agoAdjust include paths to take in account that currently:
Yang Tse [Mon, 2 Nov 2009 01:58:25 +0000 (01:58 +0000)]
Adjust include paths to take in account that currently:

c-ares with --enable-curldebug uses memdebug.h from libcurl's lib subdirectory.

memdebug.h needs access to libcurl's setup.h from libcurl's lib subdirectory
and also needs access to libcurl's generated curl_config.h

15 years agoUndo old temporary change once used for testing purposes
Yang Tse [Sun, 1 Nov 2009 20:26:02 +0000 (20:26 +0000)]
Undo old temporary change once used for testing purposes

15 years agoMention many changes
Yang Tse [Sat, 31 Oct 2009 12:52:44 +0000 (12:52 +0000)]
Mention many changes

15 years agoMention --enable-symbol-hiding configure option
Yang Tse [Sat, 31 Oct 2009 12:51:49 +0000 (12:51 +0000)]
Mention --enable-symbol-hiding configure option

15 years agoSymbol hiding configure options renamed to the hopefully less ambiguous
Yang Tse [Sat, 31 Oct 2009 04:16:40 +0000 (04:16 +0000)]
Symbol hiding configure options renamed to the hopefully less ambiguous
--enable-symbol-hiding and --disable-symbol-hiding as well as related
macro names and some internal variables used for them.

Related configuration file preprocessor symbols named to
CARES_SYMBOL_HIDING and CARES_SYMBOL_SCOPE_EXTERN.

15 years agoHeader inclusion depending on HAVE_* symbol.
Yang Tse [Fri, 30 Oct 2009 18:20:17 +0000 (18:20 +0000)]
Header inclusion depending on HAVE_* symbol.
Fix two typos.

15 years agoComparison of the Initial revision of this file with ares_parse_a_reply.c
Yang Tse [Fri, 30 Oct 2009 18:07:17 +0000 (18:07 +0000)]
Comparison of the Initial revision of this file with ares_parse_a_reply.c
shows that this one is actually a modified copy of ares_parse_a_reply.c.

In order to comply with ares_parse_a_reply.c's M.I.T. license, the old
1998 M.I.T. copyright notice is now also preserved in this file the same
as it is done in other ares_parse_*.c files.

15 years agoAdd CVS Id tag.
Yang Tse [Fri, 30 Oct 2009 18:03:57 +0000 (18:03 +0000)]
Add CVS Id tag.
Fix identation of some license lines.

15 years agoAdd CVS Id tag.
Yang Tse [Fri, 30 Oct 2009 18:03:04 +0000 (18:03 +0000)]
Add CVS Id tag.

15 years agoFix comment
Yang Tse [Fri, 30 Oct 2009 16:27:30 +0000 (16:27 +0000)]
Fix comment

15 years agoIn no particular order, changed/fixed all of the following in
Yang Tse [Fri, 30 Oct 2009 16:21:56 +0000 (16:21 +0000)]
In no particular order, changed/fixed all of the following in
ares_parse_txt_reply() current version:

- Fixed a couple of potential double free's.

- Fixed memory leaks upon out of memory condition.

- Fixed pointer arithmetic.

- Setting ntxtreply to zero upon entry for all failure cases.

- Changed data type to size_t for variables substr_len, str_len and
  the length member of ares_txt_reply struct.

- Avoided a couple of memcpy() calls.

- Changed i data type to unsigned int to prevent compiler warnings.

- Adjusted a comment.

- Use ARES_SUCCESS literal for successfull completion.

- Added CVS Id tag.

15 years agoAdd c-ares DLL resource file to distribution archive
Yang Tse [Thu, 29 Oct 2009 19:13:20 +0000 (19:13 +0000)]
Add c-ares DLL resource file to distribution archive

15 years agoignore files
Yang Tse [Thu, 29 Oct 2009 18:30:38 +0000 (18:30 +0000)]
ignore files

15 years agoEmpty subdir
Yang Tse [Thu, 29 Oct 2009 18:00:24 +0000 (18:00 +0000)]
Empty subdir

15 years agoUpdated MSVC 6.0 workspace and project files that allows building
Yang Tse [Thu, 29 Oct 2009 17:52:56 +0000 (17:52 +0000)]
Updated MSVC 6.0 workspace and project files that allows building
dynamic and static c-ares libraries in debug and release flavours.

Additionally each of the three sample programs is built against
each of the four possible c-ares libraries, generating all this
a total number of 12 executables and 4 libraries.

15 years agono need to check for NULL pointers before dereferencing, as the pointers
Daniel Stenberg [Thu, 29 Oct 2009 09:12:40 +0000 (09:12 +0000)]
no need to check for NULL pointers before dereferencing, as the pointers
MUST be valid and they are dereferenced further down in the function
unconditionally!

15 years agoshorten the descriptions somewhat
Daniel Stenberg [Thu, 29 Oct 2009 09:06:42 +0000 (09:06 +0000)]
shorten the descriptions somewhat

15 years agoupdate to the new struct name
Daniel Stenberg [Thu, 29 Oct 2009 09:06:22 +0000 (09:06 +0000)]
update to the new struct name

15 years agoJakub Hrozek added ares_parse_txt_reply() for TXT parsing
Daniel Stenberg [Thu, 29 Oct 2009 08:59:40 +0000 (08:59 +0000)]
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing

15 years agouse 'ares_srv_reply' for proper name-spacing
Daniel Stenberg [Thu, 29 Oct 2009 08:50:34 +0000 (08:50 +0000)]
use 'ares_srv_reply' for proper name-spacing