Commit Graph
100 Commits
Author SHA1 Message Date
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
Yang Tse ea46b347bb Revert last change, it is inappropriate. 2009-06-12 23:50:33 +00:00
Yang Tse e8e01acc8e when running automake copy missing files instead of symlinking them 2009-06-11 17:46:12 +00:00
Yang Tse 1bbfcc09ca 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)
2009-06-10 02:49:42 +00:00
Yang Tse 7fcd022b2a c-ares' --enable-debug --enable-curldebug decoupling follow-up 2009-06-09 17:58:34 +00:00
Yang Tse f8fac7ee8c mention last changes 2009-06-08 16:18:04 +00:00
Yang Tse f364b4aa4c Remove buildconf.bat from release and daily snapshot archives.
buildconf.bat is only for CVS tree builds.
2009-06-08 14:31:35 +00:00
Yang Tse 0ab756bf9e Ensure that buildconf.bat does nothing unless it is used with a CVS checkout. 2009-06-08 14:27:36 +00:00
Yang Tse 14a04b28b8 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.
2009-06-08 14:26:58 +00:00
Yang Tse 5136021525 just comment it out 2009-06-08 02:41:15 +00:00
Yang Tse e607ed5198 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.
2009-06-08 02:03:13 +00:00
Yang Tse e46626580f c-ares Makefile.am back to using $(top_builddir) for *_LDADD 2009-06-06 13:20:10 +00:00
Yang Tse 80d4f1170c c-ares' -no-undefined and --enable-curldebug adjustments 2009-06-05 13:17:55 +00:00
Yang Tse fdbe9b71d6 Use relative path to built c-ares tree libtool library 2009-06-02 18:29:09 +00:00
Yang Tse 1d7308ee78 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
2009-06-01 09:19:16 +00:00
Yang Tse 16d842958a Fix compiler warning: out of bound access 2009-05-29 13:19:51 +00:00
Yang Tse ef4a786bf6 fix compilation on AIX 2009-05-28 16:43:17 +00:00
Yang Tse 96f34988f4 c-ares' --enable-curldebug adjustments 2009-05-28 14:38:04 +00:00
Yang Tse 7a5621876b Remove temporarily introduced memory leak. 2009-05-28 09:58:24 +00:00
Yang Tse 425244eac4 Temporarily introduce a memory leak to verify curl debug memory tracking works. 2009-05-27 19:25:51 +00:00
Yang Tse 388e389638 Allow curl debug memory tracking when building a shared library on
systems which support external, undefined, symbols in shared libraries.
2009-05-27 19:21:09 +00:00
Yang Tse cf3301f024 Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
if library initialization has not been performed calling ares_library_init().
2009-05-26 18:00:14 +00:00
Yang Tse 84aa2f8a5d c-ares's --enable-curldebug configure option decoupled from c-ares's --enable-debug 2009-05-26 14:50:45 +00:00
Yang Tse acd2aeb388 Prevent copying 'sourced' manpages for build targets that don't use them. 2009-05-26 13:43:25 +00:00
Yang Tse 66a7fb1605 Include .pdf versions of c-ares man pages in distribution tarball. 2009-05-21 17:40:55 +00:00
Yang Tse ba2217050b Allow generation of .html and .pdf versions of c-ares man pages. 2009-05-21 17:40:19 +00:00
Yang Tse 83cb810b75 Mention last changes 2009-05-20 13:49:43 +00:00
Yang Tse dec9775cd6 Initial ares_library_cleanup(3) man page 2009-05-20 11:26:26 +00:00
Yang Tse cf2882882d Update man page 2009-05-20 11:25:21 +00:00
Yang Tse 1ddd021504 Update man page 2009-05-20 02:12:23 +00:00
Yang Tse 8e55839216 Initial ares_library_init(3) man page attempt 2009-05-19 19:00:28 +00:00
Yang Tse 91ab7974ce Force revision update, to force CVS to update the $Id date string format 2009-05-19 16:05:45 +00:00
Yang Tse 0f59e2b531 Add same copyright notice as other c-ares files 2009-05-19 15:23:25 +00:00
Yang Tse d3f3189860 Fix case 2009-05-19 15:19:03 +00:00
Yang Tse 757642f675 Remove run-time requirement for advapi32.dll since
c-ares can work even with no advapi32.dll at all.
2009-05-18 15:49:32 +00:00
Yang Tse b677ff3d15 Intentionally avoid checking if the address of SystemFunction036, a.k.a.
RtlGenRandom, has been located or not. This function is only available on
WinXP and later. When unavailable c-ares uses portable rand() function.
2009-05-18 01:25:20 +00:00
Yang Tse 5b17412c1f - Provide in external interface preprocessor symbol definitions for
CARES_HAVE_ARES_LIBRARY_INIT and CARES_HAVE_ARES_LIBRARY_CLEANUP
  to ease the use of new capabilities.

- Move ares_version() prototype to ares.h
2009-05-18 00:21:02 +00:00
Yang Tse b7c7bab713 Introduction of ares_library_init() and ares_library_cleanup() 2009-05-17 17:11:28 +00:00
Yang Tse c03c7251c9 Introduction of ares_library_init() and ares_library_cleanup() 2009-05-17 17:10:41 +00:00
Yang Tse 4b5589ab99 remove outdated comment 2009-05-15 09:35:46 +00:00
Yang Tse 566b59a236 Fix preprocessor conditional expression 2009-05-15 01:08:18 +00:00
Yang Tse c3c2992cb0 fiX *__SOCKLEN_T definitions for remaining targets 2009-05-12 01:57:53 +00:00
Yang Tse 3837fc4bd0 *__SOCKLEN_T definitions for OS400 already fixed 2009-05-12 00:54:21 +00:00
Yang Tse 79f80b49b0 fIX *__SOCKLEN_T definitions for SYMBIAN32 and VMS targets 2009-05-11 18:20:13 +00:00
Yang Tse cb6cec903b Remove experimental check. Currently there's no need for it. 2009-05-11 00:28:18 +00:00
Yang Tse 69fea1321f Fix an m4 overquoting triggering a spurious 'AS_TR_CPP' symbol definition
attempt in generated config.h
2009-05-07 14:03:04 +00:00
Yang Tse 78e9ec92b7 Proper naming for the experimental compiler test and moved to *-compilers.m4 2009-05-07 13:58:15 +00:00
Yang Tse 411a7e17a1 Moved *_CHECK_COMPILER_HALT_ON_ERROR and *_CHECK_COMPILER_ARRAY_SIZE_NEGATIVE to *-compilers.m4 along with other *_CHECK_COMPILER_* 2009-05-07 11:06:48 +00:00
Yang Tse 2a61e01b30 fIX *__SOCKLEN_T definitions for OS400 and generic GCC targets 2009-05-06 13:58:41 +00:00
Yang Tse 00b2ba7ad4 fIX *__SOCKLEN_T definitions for MVS and 370 targets 2009-05-04 17:05:25 +00:00
Yang Tse 68458a15bb fIX *__SOCKLEN_T definitions for several Windows target tool-chains 2009-05-04 15:25:57 +00:00
Yang Tse 64fef21f5d HP-UX's X/Open network library requirement check follow-up 2009-05-03 19:41:12 +00:00
Yang Tse 0eeb553827 HP-UX's X/Open network library requirement check follow-up 2009-05-03 17:35:44 +00:00
Yang Tse 3a55bbebf1 Use build-time configured ares_socklen_t instead of socklen_t 2009-05-02 02:36:47 +00:00
Yang Tse d9647bd70f David McCreedy's "TPF-platform specific changes to various files" patch follow-up 2009-05-01 22:41:23 +00:00
Yang Tse ce1ec3b87f David McCreedy's "TPF-platform specific changes to various files" patch 2009-05-01 12:39:40 +00:00
Yang Tse dcdabb9ebe Check definition of _XOPEN_SOURCE_EXTENDED with the compiler 2009-05-01 02:03:43 +00:00
Yang Tse c2ae8f0059 Check if X/Open network library is required 2009-04-30 18:35:36 +00:00
Yang Tse bb2935b8fb cope with ares_build.h and ares_rules.h follow-up 2009-04-30 13:50:44 +00:00
Yang Tse 483c514458 Added some notes regarding ares_build.h 2009-04-30 12:44:17 +00:00
Yang Tse 015399b9e7 fix EOL 2009-04-30 12:12:31 +00:00
Yang Tse bdf809f5c5 fix EOL 2009-04-30 12:05:53 +00:00
Yang Tse 7951433e32 cope with ares_build.h and ares_rules.h 2009-04-30 11:48:43 +00:00
Yang Tse 128f52ec60 buildconf.bat for CVS-tree c-ares 2009-04-30 10:43:27 +00:00
Yang Tse f444fb7f88 Use 'unsigned int' instead of size_t attempting to avoid header inclusion 2009-04-30 01:34:04 +00:00
Yang Tse d19611328c NetWare LibC's getpeername() third argument data type is size_t 2009-04-30 00:11:20 +00:00