platform/upstream/c-ares.git
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

14 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.

14 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

14 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.

14 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.

14 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.

14 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.

14 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.

14 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

14 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

14 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

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

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

14 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

14 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

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

14 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

14 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

14 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

14 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.

14 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

14 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

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

14 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

14 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

14 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

14 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

14 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

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

14 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

14 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.

14 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.

14 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.

14 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.

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

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

14 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.

14 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

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

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

14 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.

14 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!

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

14 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

14 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

14 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

14 years agoAdd reference for ares_parse_srv_reply.pdf
Yang Tse [Thu, 29 Oct 2009 02:40:16 +0000 (02:40 +0000)]
Add reference for ares_parse_srv_reply.pdf

14 years agoAdd reference for ares_parse_srv_reply docs
Yang Tse [Thu, 29 Oct 2009 01:59:57 +0000 (01:59 +0000)]
Add reference for ares_parse_srv_reply docs

14 years agoExternal API function linkage decoration adjustment
Yang Tse [Thu, 29 Oct 2009 01:34:19 +0000 (01:34 +0000)]
External API function linkage decoration adjustment

14 years agoExternal API function linkage decoration adjustment
Yang Tse [Thu, 29 Oct 2009 01:02:54 +0000 (01:02 +0000)]
External API function linkage decoration adjustment

14 years agoInitial step towards the ability to reduce c-ares exported symbols
Yang Tse [Wed, 28 Oct 2009 19:45:26 +0000 (19:45 +0000)]
Initial step towards the ability to reduce c-ares exported symbols
based on the 'visibility' attribute for GNUC and __global for Sun
compilers, taking also in account __declspec function decoration
for Win32 and Symbian DLL's.

Introducing configure options --enable-hidden-symbols and
--disable-hidden-symbols following libcurl's naming.

14 years agoFix comment
Yang Tse [Tue, 27 Oct 2009 17:03:11 +0000 (17:03 +0000)]
Fix comment

14 years agoFix spelling
Yang Tse [Tue, 27 Oct 2009 16:56:20 +0000 (16:56 +0000)]
Fix spelling

14 years agoFix Pelles C Win32 target compilation issues
Yang Tse [Tue, 27 Oct 2009 16:38:42 +0000 (16:38 +0000)]
Fix Pelles C Win32 target compilation issues

14 years agoJohn Engelhart noticed an unreleased problem relative to a duplicate
Yang Tse [Fri, 23 Oct 2009 15:49:05 +0000 (15:49 +0000)]
John Engelhart noticed an unreleased problem relative to a duplicate
ARES_ECANCELLED error code value and missing error code description.

14 years agoFix compiler warning: local variable may be used without having been initialized
Yang Tse [Mon, 19 Oct 2009 15:56:26 +0000 (15:56 +0000)]
Fix compiler warning: local variable may be used without having been initialized

14 years agoUse *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
Yang Tse [Mon, 19 Oct 2009 04:13:12 +0000 (04:13 +0000)]
Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
is only expanded and included once in the configure script.

14 years agoOur _AS_PATH_SEPARATOR_PREPARE override is now m4_defun'd instead of m4_define'd
Yang Tse [Mon, 19 Oct 2009 04:11:54 +0000 (04:11 +0000)]
Our _AS_PATH_SEPARATOR_PREPARE override is now m4_defun'd instead of m4_define'd
due to autoconf 2.64 m4_require'ing it in _AS_SHELL_SANITIZE indirectly through
_AS_PATH_WALK.

14 years agoFix compiler warning: argument is incompatible with corresponding format string conve...
Yang Tse [Tue, 13 Oct 2009 13:53:57 +0000 (13:53 +0000)]
Fix compiler warning: argument is incompatible with corresponding format string conversion

14 years agoFix potential out-of-bounds read
Yang Tse [Sat, 10 Oct 2009 12:31:27 +0000 (12:31 +0000)]
Fix potential out-of-bounds read

14 years agoFix compiler warning: loop without body
Yang Tse [Sat, 10 Oct 2009 12:29:32 +0000 (12:29 +0000)]
Fix compiler warning: loop without body

14 years agoFix compiler warning
Yang Tse [Fri, 9 Oct 2009 14:06:38 +0000 (14:06 +0000)]
Fix compiler warning

14 years agoFix compiler warning
Yang Tse [Thu, 8 Oct 2009 18:38:29 +0000 (18:38 +0000)]
Fix compiler warning

14 years agoFix compiler warning
Yang Tse [Thu, 8 Oct 2009 17:06:08 +0000 (17:06 +0000)]
Fix compiler warning

14 years agoFix compiler warning: addition result could be truncated before cast to bigger sized...
Yang Tse [Thu, 8 Oct 2009 00:02:32 +0000 (00:02 +0000)]
Fix compiler warning: addition result could be truncated before cast to bigger sized type

14 years agoOverhauled ares__get_hostent()
Yang Tse [Wed, 7 Oct 2009 18:47:04 +0000 (18:47 +0000)]
Overhauled ares__get_hostent()

- Fixing out of bounds memory overwrite triggered with malformed /etc/hosts file.
- Improving parsing of /etc/hosts file.
- Validating requested address family.
- Ensuring that failures always return a NULL pointer.
- Adjusting header inclusions.

14 years agoFix ssize_t redefinition errors on WIN64 reported by Alexey Simak
Yang Tse [Tue, 6 Oct 2009 13:59:37 +0000 (13:59 +0000)]
Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak

14 years agomore files to ignore
Yang Tse [Mon, 5 Oct 2009 02:47:34 +0000 (02:47 +0000)]
more files to ignore

14 years agoCheck if _REENTRANT definition is required to
Yang Tse [Tue, 29 Sep 2009 16:34:03 +0000 (16:34 +0000)]
Check if _REENTRANT definition is required to
make errno available as a preprocessor macro.

14 years agoAttempt to silence bogus compiler warning: "Potential null pointer dereference"
Yang Tse [Thu, 17 Sep 2009 11:45:27 +0000 (11:45 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference"

14 years agoignore more files
Yang Tse [Mon, 14 Sep 2009 15:12:59 +0000 (15:12 +0000)]
ignore more files

14 years agoSuppress warnings about unused prototypes in Watt32 and Win32 programs.
Gisle Vanem [Mon, 7 Sep 2009 11:02:20 +0000 (11:02 +0000)]
Suppress warnings about unused prototypes in Watt32 and Win32 programs.

14 years agoUpdate email address.
Gisle Vanem [Mon, 7 Sep 2009 10:59:54 +0000 (10:59 +0000)]
Update email address.

14 years agoUpdate my email address. Add ares_config.h as dependency for 'make depend'.
Gisle Vanem [Mon, 7 Sep 2009 10:01:17 +0000 (10:01 +0000)]
Update my email address. Add ares_config.h as dependency for 'make depend'.

14 years agoT_SRV portability check
Yang Tse [Sun, 6 Sep 2009 23:46:07 +0000 (23:46 +0000)]
T_SRV portability check

14 years agochanged includes to match style how we do with all other *.c files.
Gunter Knauf [Sat, 5 Sep 2009 20:11:32 +0000 (20:11 +0000)]
changed includes to match style how we do with all other *.c files.

14 years agochanged u_int16_t to unsigned short because it is the only place within ares and...
Gunter Knauf [Sat, 5 Sep 2009 15:12:30 +0000 (15:12 +0000)]
changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used;
also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.

14 years agoReplace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.
Gisle Vanem [Sat, 5 Sep 2009 12:33:08 +0000 (12:33 +0000)]
Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.

14 years agoAdded 'ares_parse_srv_reply.obj'. Added definition of 'u_int16_t'. This is I don...
Gisle Vanem [Sat, 5 Sep 2009 12:29:35 +0000 (12:29 +0000)]
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.

14 years ago- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
Daniel Stenberg [Fri, 4 Sep 2009 21:56:14 +0000 (21:56 +0000)]
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing

14 years agoSupport lookup of IPv4 literals in ares_gethostbyname(), even when the address family...
Steinar H. Gunderson [Thu, 27 Aug 2009 09:53:55 +0000 (09:53 +0000)]
Support lookup of IPv4 literals in ares_gethostbyname(), even when the address family is set to AF_INET6.