Yang Tse
497afa9acb
- Jakub Hrozek fixed more function prototypes in man pages to sync them
...
with the ones declared in ares.h
2009-11-23 00:57:50 +00:00
Yang Tse
17e6785e05
Make configure remove the ares_build.h file included in distribution tarballs.
2009-11-22 05:31:31 +00:00
Yang Tse
912857c6f3
Fix macro redefinition.
2009-11-22 03:51:07 +00:00
Yang Tse
c1f141596e
Fix name space pollution.
2009-11-22 03:41:26 +00:00
Yang Tse
ff90f9dc28
Allow using different extra import libraries for debug and release builds.
2009-11-22 03:40:42 +00:00
Yang Tse
29e173dcff
Add manifest stuff to msvc makefile
2009-11-21 13:28:07 +00:00
Yang Tse
f854ecb90b
Sync man page with reality
2009-11-20 14:15:05 +00:00
Yang Tse
7a7befd37b
Add missing external API decoration for ares_set_socket_callback()
2009-11-20 14:11:06 +00:00
Yang Tse
d1151affce
Add ares_free_data() man page.
2009-11-20 13:02:41 +00:00
Yang Tse
dbd45c1539
- Provide in external interface preprocessor symbol definitions for
...
CARES_HAVE_ARES_FREE_DATA as an indication of function availability.
2009-11-20 13:01:35 +00:00
Yang Tse
f2cdd32a4f
Remove typecast
2009-11-20 09:57:25 +00:00
Yang Tse
09aadd57e6
Fix comment
2009-11-20 09:54:15 +00:00
Yang Tse
3e66eb8702
Add ares_data.c and ares_data.h
2009-11-20 09:14:37 +00:00
Yang Tse
5d62fe703f
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().
2009-11-20 09:06:33 +00:00
Yang Tse
2a916ce6e5
Initial support for the generic ares_free_data() function that will allow
...
applications to free memory allocated and returned by some c-ares funtions.
2009-11-20 08:50:03 +00:00
Yang Tse
10461d1414
Make usage of calloc()'s arguments consistent with rest of code base
2009-11-18 10:33:54 +00:00
Yang Tse
f157b574a9
workaround icc 9.1 optimizer issue
2009-11-18 02:57:34 +00:00
Yang Tse
cf38264e2a
Add icc fvisibility bug test
2009-11-16 23:01:37 +00:00
Yang Tse
b47af62e75
Fix icc 9.0 compiler warning: external definition with no prior declaration
2009-11-16 20:02:12 +00:00
Yang Tse
c4ee4a5d21
Fix three var names
2009-11-16 01:56:16 +00:00
Yang Tse
61e686b65f
Add check for assert.h header file
2009-11-16 01:55:48 +00:00
Yang Tse
afa62136a5
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.
2009-11-15 13:43:15 +00:00
Yang Tse
e6c2fe9f75
Remove files generated on previous buildconf/configure run
2009-11-15 03:47:13 +00:00
Yang Tse
3bf689197b
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.
2009-11-15 02:45:24 +00:00
Yang Tse
e43ac04a1f
Refactor how preprocessor symbol _THREAD_SAFE definition is done.
2009-11-14 18:51:37 +00:00
Yang Tse
ccabe949dd
Assume that getaddrinfo is thread safe, unless hard coded
...
knowledge says the contrary or h_errno is not defined.
2009-11-13 20:03:45 +00:00
Yang Tse
3d2e078f2b
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.
2009-11-13 05:01:51 +00:00
Yang Tse
f5b37120f3
AIX 5.2 and newer have threadsafe getaddrinfo.
...
Add some comments to better understand what the regex's pretend to achieve.
2009-11-12 22:48:40 +00:00
Yang Tse
f084328b48
HP-UX 11.11 and later have threadsafe getaddrinfo
2009-11-12 20:29:28 +00:00
Yang Tse
109c17b680
Check if getaddrinfo is threadsafe when function check allows it to be used
2009-11-12 18:31:33 +00:00
Yang Tse
ea29eeb4eb
Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library
2009-11-11 08:56:46 +00:00
Yang Tse
c91a177d71
Add kernel32.lib
2009-11-11 08:51:31 +00:00
Yang Tse
0096b5a584
Mention last changes
2009-11-10 22:07:32 +00:00
Yang Tse
2d5eaabc4a
Reinstate copyright symbol lost in previous commit
2009-11-10 22:04:51 +00:00
Yang Tse
1f0d6926d0
Make some strings different in resource file for debug or release builds
2009-11-10 20:20:13 +00:00
Yang Tse
55ad5935ac
Ignore more subdirs
2009-11-10 20:05:10 +00:00
Yang Tse
1c5f8be38d
Fix compiler warning: conditional expression is constant
2009-11-10 18:41:03 +00:00
Yang Tse
253ad4a726
Sync linker and resource compiler options with Makefile.msvc
2009-11-10 18:26:09 +00:00
Yang Tse
7b8a5dbfbe
Follow Makefile.msvc subdirectory naming scheme, and sync compiler options
2009-11-09 19:34:30 +00:00
Yang Tse
c55589355f
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.
2009-11-09 13:24:11 +00:00
Yang Tse
39c0bac44c
Test for USE_WINSOCK since it is more restrictive than WIN32
2009-11-09 12:57:26 +00:00
Yang Tse
91031e8ce4
Make header inclusion depend on HAVE_*_H definition
2009-11-09 12:56:50 +00:00
Yang Tse
52d5de9cc1
Remove unneeded preprocessor directives
2009-11-09 12:56:11 +00:00
Yang Tse
54fafaa088
Adjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds
2009-11-05 17:44:29 +00:00
Yang Tse
e057b523af
source files used by sample programs
2009-11-04 14:24:47 +00:00
Yang Tse
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
2009-11-02 11:55:53 +00:00
Yang Tse
bfca740909
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
2009-11-02 01:58:25 +00:00
Yang Tse
d101880c6a
Undo old temporary change once used for testing purposes
2009-11-01 20:26:02 +00:00
Yang Tse
6313b186ad
Mention many changes
2009-10-31 12:52:44 +00:00
Yang Tse
476b795ae0
Mention --enable-symbol-hiding configure option
2009-10-31 12:51:49 +00:00
Yang Tse
f77839ed17
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.
2009-10-31 04:16:40 +00:00
Yang Tse
54a7da89c8
Header inclusion depending on HAVE_* symbol.
...
Fix two typos.
2009-10-30 18:20:17 +00:00
Yang Tse
e576d895e7
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.
2009-10-30 18:07:17 +00:00
Yang Tse
80d7a970f1
Add CVS Id tag.
...
Fix identation of some license lines.
2009-10-30 18:03:57 +00:00
Yang Tse
ad0b952b58
Add CVS Id tag.
2009-10-30 18:03:04 +00:00
Yang Tse
4533a082bd
Fix comment
2009-10-30 16:27:30 +00:00
Yang Tse
cef06973a2
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.
2009-10-30 16:21:56 +00:00
Yang Tse
de48a86cf6
Add c-ares DLL resource file to distribution archive
2009-10-29 19:13:20 +00:00
Yang Tse
e5d9f1c7ba
ignore files
2009-10-29 18:30:38 +00:00
Yang Tse
671ccb2d1a
Empty subdir
2009-10-29 18:00:24 +00:00
Yang Tse
991dd45884
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.
2009-10-29 17:52:56 +00:00
Yang Tse
991c93cf54
Add reference for ares_parse_srv_reply.pdf
2009-10-29 02:40:16 +00:00
Yang Tse
539ffc7b40
Add reference for ares_parse_srv_reply docs
2009-10-29 01:59:57 +00:00
Yang Tse
4cb3aa4080
External API function linkage decoration adjustment
2009-10-29 01:34:19 +00:00
Yang Tse
de18bf7562
External API function linkage decoration adjustment
2009-10-29 01:02:54 +00:00
Yang Tse
9cac6a4625
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.
2009-10-28 19:45:26 +00:00
Yang Tse
a732ace461
Fix comment
2009-10-27 17:03:11 +00:00
Yang Tse
f28b736a56
Fix spelling
2009-10-27 16:56:20 +00:00
Yang Tse
76f24cfdbd
Fix Pelles C Win32 target compilation issues
2009-10-27 16:38:42 +00:00
Yang Tse
b53526b1a9
John Engelhart noticed an unreleased problem relative to a duplicate
...
ARES_ECANCELLED error code value and missing error code description.
2009-10-23 15:49:05 +00:00
Yang Tse
e199ec677f
Fix compiler warning: local variable may be used without having been initialized
2009-10-19 15:56:26 +00:00
Yang Tse
6c48e1ff36
Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
...
is only expanded and included once in the configure script.
2009-10-19 04:13:12 +00:00
Yang Tse
7472bed472
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.
2009-10-19 04:11:54 +00:00
Yang Tse
58346cbfb9
Fix compiler warning: argument is incompatible with corresponding format string conversion
2009-10-13 13:53:57 +00:00
Yang Tse
e804725e75
Fix potential out-of-bounds read
2009-10-10 12:31:27 +00:00
Yang Tse
ec11480d8b
Fix compiler warning: loop without body
2009-10-10 12:29:32 +00:00
Yang Tse
590e697792
Fix compiler warning
2009-10-09 14:06:38 +00:00
Yang Tse
f3346ca16b
Fix compiler warning
2009-10-08 18:38:29 +00:00
Yang Tse
e112f191a3
Fix compiler warning
2009-10-08 17:06:08 +00:00
Yang Tse
716d5817dc
Fix compiler warning: addition result could be truncated before cast to bigger sized type
2009-10-08 00:02:32 +00:00
Yang Tse
c2d3e82931
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.
2009-10-07 18:47:04 +00:00
Yang Tse
b7bb0a5722
Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak
2009-10-06 13:59:37 +00:00
Yang Tse
38209f6a77
more files to ignore
2009-10-05 02:47:34 +00:00
Yang Tse
bd4a8c159e
Check if _REENTRANT definition is required to
...
make errno available as a preprocessor macro.
2009-09-29 16:34:03 +00:00
Yang Tse
85442b2a4b
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
2009-09-17 11:45:27 +00:00
Yang Tse
ada932d94a
ignore more files
2009-09-14 15:12:59 +00:00
Yang Tse
4cc09c0216
T_SRV portability check
2009-09-06 23:46:07 +00:00
Yang Tse
f474f738a5
Refactor how libraries are checked for connect() function, follow-up.
2009-06-21 02:42:35 +00:00
Yang Tse
cdcc3aca8c
Refactor how libraries are checked for connect() function,
...
and check for connect() as it is done for other functions.
2009-06-20 17:24:43 +00:00
Yang Tse
f34c2a879b
sclose() function-like macro definition used to close a socket,
...
now solely based on HAVE_CLOSESOCKET and HAVE_CLOSESOCKET_CAMEL
config file preprocessor definitions.
2009-06-19 00:41:03 +00:00
Yang Tse
0757cbf7f4
add CloseSocket camel case function check
2009-06-18 12:36:10 +00:00
Yang Tse
d960739133
check for socket() and closesocket() as it is done for other functions
2009-06-17 12:52:46 +00:00
Yang Tse
a741386bec
Remove HAVE_CONFIG_H definition from here,
...
CFLAGS from common.dj already defines it.
2009-06-13 20:52:30 +00:00
Yang Tse
3f9b0ee3d9
initial step towards decoupling c-ares from libcurl for DOS
2009-06-13 18:13:00 +00:00
Yang Tse
8010774eda
don't ignore these subdirs, they must be removed first
2009-06-13 01:44:45 +00:00
Yang Tse
8f40cb6832
Remove DEBUGBUILD symbol definition, is not required for programs using the library.
2009-06-13 01:02:04 +00:00
Yang Tse
4d49566a3e
DEBUGBUILD symbol definition for debug builds
2009-06-13 00:52:48 +00:00
Yang Tse
e82026953e
ignore some subdirs
2009-06-13 00:30:08 +00:00
Yang Tse
546ef23c3e
fix comment
2009-06-13 00:20:41 +00:00
Yang Tse
1228991462
Try to make more clear that --enable-curldebug has nothing to do with --enable-debug for this library.
2009-06-12 23:51:28 +00:00