Yang Tse [Mon, 9 Nov 2009 12:56:50 +0000 (12:56 +0000)]
Make header inclusion depend on HAVE_*_H definition
Yang Tse [Mon, 9 Nov 2009 12:56:11 +0000 (12:56 +0000)]
Remove unneeded preprocessor directives
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
Yang Tse [Wed, 4 Nov 2009 14:24:47 +0000 (14:24 +0000)]
source files used by sample programs
Yang Tse [Mon, 2 Nov 2009 11:55:53 +0000 (11:55 +0000)]
Renamed c-ares setup.h to ares_setup.h
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
Yang Tse [Sun, 1 Nov 2009 20:26:02 +0000 (20:26 +0000)]
Undo old temporary change once used for testing purposes
Yang Tse [Sat, 31 Oct 2009 12:52:44 +0000 (12:52 +0000)]
Mention many changes
Yang Tse [Sat, 31 Oct 2009 12:51:49 +0000 (12:51 +0000)]
Mention --enable-symbol-hiding configure option
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.
Yang Tse [Fri, 30 Oct 2009 18:20:17 +0000 (18:20 +0000)]
Header inclusion depending on HAVE_* symbol.
Fix two typos.
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.
Yang Tse [Fri, 30 Oct 2009 18:03:57 +0000 (18:03 +0000)]
Add CVS Id tag.
Fix identation of some license lines.
Yang Tse [Fri, 30 Oct 2009 18:03:04 +0000 (18:03 +0000)]
Add CVS Id tag.
Yang Tse [Fri, 30 Oct 2009 16:27:30 +0000 (16:27 +0000)]
Fix comment
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.
Yang Tse [Thu, 29 Oct 2009 19:13:20 +0000 (19:13 +0000)]
Add c-ares DLL resource file to distribution archive
Yang Tse [Thu, 29 Oct 2009 18:30:38 +0000 (18:30 +0000)]
ignore files
Yang Tse [Thu, 29 Oct 2009 18:00:24 +0000 (18:00 +0000)]
Empty subdir
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.
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!
Daniel Stenberg [Thu, 29 Oct 2009 09:06:42 +0000 (09:06 +0000)]
shorten the descriptions somewhat
Daniel Stenberg [Thu, 29 Oct 2009 09:06:22 +0000 (09:06 +0000)]
update to the new struct name
Daniel Stenberg [Thu, 29 Oct 2009 08:59:40 +0000 (08:59 +0000)]
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
Daniel Stenberg [Thu, 29 Oct 2009 08:50:34 +0000 (08:50 +0000)]
use 'ares_srv_reply' for proper name-spacing
Yang Tse [Thu, 29 Oct 2009 02:40:16 +0000 (02:40 +0000)]
Add reference for ares_parse_srv_reply.pdf
Yang Tse [Thu, 29 Oct 2009 01:59:57 +0000 (01:59 +0000)]
Add reference for ares_parse_srv_reply docs
Yang Tse [Thu, 29 Oct 2009 01:34:19 +0000 (01:34 +0000)]
External API function linkage decoration adjustment
Yang Tse [Thu, 29 Oct 2009 01:02:54 +0000 (01:02 +0000)]
External API function linkage decoration adjustment
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.
Yang Tse [Tue, 27 Oct 2009 17:03:11 +0000 (17:03 +0000)]
Fix comment
Yang Tse [Tue, 27 Oct 2009 16:56:20 +0000 (16:56 +0000)]
Fix spelling
Yang Tse [Tue, 27 Oct 2009 16:38:42 +0000 (16:38 +0000)]
Fix Pelles C Win32 target compilation issues
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.
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
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.
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.
Yang Tse [Tue, 13 Oct 2009 13:53:57 +0000 (13:53 +0000)]
Fix compiler warning: argument is incompatible with corresponding format string conversion
Yang Tse [Sat, 10 Oct 2009 12:31:27 +0000 (12:31 +0000)]
Fix potential out-of-bounds read
Yang Tse [Sat, 10 Oct 2009 12:29:32 +0000 (12:29 +0000)]
Fix compiler warning: loop without body
Yang Tse [Fri, 9 Oct 2009 14:06:38 +0000 (14:06 +0000)]
Fix compiler warning
Yang Tse [Thu, 8 Oct 2009 18:38:29 +0000 (18:38 +0000)]
Fix compiler warning
Yang Tse [Thu, 8 Oct 2009 17:06:08 +0000 (17:06 +0000)]
Fix compiler warning
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
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.
Yang Tse [Tue, 6 Oct 2009 13:59:37 +0000 (13:59 +0000)]
Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak
Yang Tse [Mon, 5 Oct 2009 02:47:34 +0000 (02:47 +0000)]
more files to ignore
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.
Yang Tse [Thu, 17 Sep 2009 11:45:27 +0000 (11:45 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Yang Tse [Mon, 14 Sep 2009 15:12:59 +0000 (15:12 +0000)]
ignore more files
Gisle Vanem [Mon, 7 Sep 2009 11:02:20 +0000 (11:02 +0000)]
Suppress warnings about unused prototypes in Watt32 and Win32 programs.
Gisle Vanem [Mon, 7 Sep 2009 10:59:54 +0000 (10:59 +0000)]
Update email address.
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'.
Yang Tse [Sun, 6 Sep 2009 23:46:07 +0000 (23:46 +0000)]
T_SRV portability check
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.
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.
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.
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.
Daniel Stenberg [Fri, 4 Sep 2009 21:56:14 +0000 (21:56 +0000)]
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
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.
Gisle Vanem [Mon, 3 Aug 2009 12:20:03 +0000 (12:20 +0000)]
Remove call to LoadLibrary(). (leftover from debugging).
Gisle Vanem [Mon, 3 Aug 2009 12:16:00 +0000 (12:16 +0000)]
Fix bad sentence.
Daniel Stenberg [Mon, 3 Aug 2009 11:51:06 +0000 (11:51 +0000)]
- Timo Teras changed the reason code used in the resolve callback done when
ares_cancel() is used, to be ARES_ECANCELLED instead of ARES_ETIMEOUT to
better allow the callback to know what's happening.
Daniel Stenberg [Mon, 3 Aug 2009 11:29:17 +0000 (11:29 +0000)]
- Joshua Kwan fixed the init routine to fill in the defaults for stuff that
fails to get inited by other means. This fixes a case of when the c-ares
init fails when internet access is fone.
Gunter Knauf [Thu, 16 Jul 2009 12:20:16 +0000 (12:20 +0000)]
test if adding ../lib to includes can fix the current break ...
Gunter Knauf [Tue, 14 Jul 2009 13:38:50 +0000 (13:38 +0000)]
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.
Yang Tse [Sun, 21 Jun 2009 02:42:35 +0000 (02:42 +0000)]
Refactor how libraries are checked for connect() function, follow-up.
Yang Tse [Sat, 20 Jun 2009 17:24:43 +0000 (17:24 +0000)]
Refactor how libraries are checked for connect() function,
and check for connect() as it is done for other functions.
Gisle Vanem [Sat, 20 Jun 2009 13:08:53 +0000 (13:08 +0000)]
Remove unneeded defines.
Gisle Vanem [Sat, 20 Jun 2009 13:07:59 +0000 (13:07 +0000)]
Use select_s() and not select().
Yang Tse [Fri, 19 Jun 2009 00:41:03 +0000 (00:41 +0000)]
sclose() function-like macro definition used to close a socket,
now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
config file preprocessor definitions.
Yang Tse [Thu, 18 Jun 2009 12:36:10 +0000 (12:36 +0000)]
add CloseSocket camel case function check
Yang Tse [Wed, 17 Jun 2009 12:52:46 +0000 (12:52 +0000)]
check for socket() and closesocket() as it is done for other functions
Yang Tse [Sat, 13 Jun 2009 20:52:30 +0000 (20:52 +0000)]
Remove HAVE_CONFIG_H definition from here,
CFLAGS from common.dj already defines it.
Yang Tse [Sat, 13 Jun 2009 18:13:00 +0000 (18:13 +0000)]
initial step towards decoupling c-ares from libcurl for DOS
Yang Tse [Sat, 13 Jun 2009 01:44:45 +0000 (01:44 +0000)]
don't ignore these subdirs, they must be removed first
Yang Tse [Sat, 13 Jun 2009 01:02:04 +0000 (01:02 +0000)]
Remove DEBUGBUILD symbol definition, is not required for programs using the library.
Yang Tse [Sat, 13 Jun 2009 00:52:48 +0000 (00:52 +0000)]
DEBUGBUILD symbol definition for debug builds
Yang Tse [Sat, 13 Jun 2009 00:30:08 +0000 (00:30 +0000)]
ignore some subdirs
Yang Tse [Sat, 13 Jun 2009 00:20:41 +0000 (00:20 +0000)]
fix comment
Yang Tse [Fri, 12 Jun 2009 23:51:28 +0000 (23:51 +0000)]
Try to make more clear that --enable-curldebug has nothing to do with --enable-debug for this library.
Yang Tse [Fri, 12 Jun 2009 23:50:33 +0000 (23:50 +0000)]
Revert last change, it is inappropriate.
Gisle Vanem [Fri, 12 Jun 2009 14:15:13 +0000 (14:15 +0000)]
Replace CURLDEBUG with DEBUGBUILD.
Yang Tse [Thu, 11 Jun 2009 17:46:12 +0000 (17:46 +0000)]
when running automake copy missing files instead of symlinking them
Yang Tse [Wed, 10 Jun 2009 02:49:42 +0000 (02:49 +0000)]
Adjusted to take in account that...
With the curl memory tracking feature decoupled from the debug build feature,
CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows:
CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug)
DEBUGBUILD used for debug enabled specific code (--enable-debug)
Yang Tse [Tue, 9 Jun 2009 17:58:34 +0000 (17:58 +0000)]
c-ares' --enable-debug --enable-curldebug decoupling follow-up
Yang Tse [Mon, 8 Jun 2009 16:18:04 +0000 (16:18 +0000)]
mention last changes
Yang Tse [Mon, 8 Jun 2009 14:31:35 +0000 (14:31 +0000)]
Remove buildconf.bat from release and daily snapshot archives.
buildconf.bat is only for CVS tree builds.
Yang Tse [Mon, 8 Jun 2009 14:27:36 +0000 (14:27 +0000)]
Ensure that buildconf.bat does nothing unless it is used with a CVS checkout.
Yang Tse [Mon, 8 Jun 2009 14:26:58 +0000 (14:26 +0000)]
CVS-INFO file only present in CVS tree, never in release nor daily snapshot
archives. Used as a sentinel file in buildconf.bat to differentiate CVS builds.
Gisle Vanem [Mon, 8 Jun 2009 12:09:15 +0000 (12:09 +0000)]
Update comment about "ML". Removed "-D_USE_32BIT_TIME_T" (not a requirement).
Yang Tse [Mon, 8 Jun 2009 02:41:15 +0000 (02:41 +0000)]
just comment it out
Yang Tse [Mon, 8 Jun 2009 02:03:13 +0000 (02:03 +0000)]
For debugging purposes...
Disable the '-export-symbols-regex' to discard this as the origin
of link failures related with shared libraries and non-GNU linkers.
Yang Tse [Sat, 6 Jun 2009 13:20:10 +0000 (13:20 +0000)]
c-ares Makefile.am back to using $(top_builddir) for *_LDADD
Yang Tse [Fri, 5 Jun 2009 13:17:55 +0000 (13:17 +0000)]
c-ares' -no-undefined and --enable-curldebug adjustments
Yang Tse [Tue, 2 Jun 2009 18:29:09 +0000 (18:29 +0000)]
Use relative path to built c-ares tree libtool library
Yang Tse [Mon, 1 Jun 2009 09:19:16 +0000 (09:19 +0000)]
John E. Malmberg noticed that the configure script was failing to detect the
timeval struct on VMS when building with _XOPEN_SOURCE_EXTENDED undefined due
to definition taking place in socket.h instead of time.h
Yang Tse [Fri, 29 May 2009 13:19:51 +0000 (13:19 +0000)]
Fix compiler warning: out of bound access
Yang Tse [Thu, 28 May 2009 16:43:17 +0000 (16:43 +0000)]
fix compilation on AIX
Yang Tse [Thu, 28 May 2009 14:38:04 +0000 (14:38 +0000)]
c-ares' --enable-curldebug adjustments