Commit Graph
508 Commits
Author SHA1 Message Date
Yang Tse 2a7b004e49 Move definition of IS*() macros to setup_once.h 2006-10-18 03:41:19 +00:00
Yang Tse 69dcc701cf Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support 2006-10-14 12:01:44 +00:00
Daniel Stenberg 8df5b67ab0 Prevent ares_getsock() to overflow if more than 16 sockets are used. 2006-10-13 21:25:11 +00:00
Yang Tse 02d31bef50 Check for struct timeval at configuration time 2006-10-13 01:35:14 +00:00
Daniel Stenberg 04cb824483 avoid an overflow if an excessive amount of servers are used 2006-10-12 16:47:50 +00:00
Yang Tse 298541c56c Remove redundant __CYGWIN__ symbol check 2006-10-11 16:01:16 +00:00
Daniel Stenberg d3439e3332 - Guilherme Balena Versiani: I noted a strange BUG in Win32 port
(ares_init.c/get_iphlpapi_dns_info() function): when I disable the network
  by hand or disconnect the network cable in Windows 2000 or Windows XP, my
  application gets 127.0.0.1 as the only name server. The problem comes from
  'GetNetworkParams' function, that returns the empty string "" as the only
  name server in that case. Moreover, the Windows implementation of
  inet_addr() returns INADDR_LOOPBACK instead of INADDR_NONE.
2006-09-11 20:25:13 +00:00
Daniel Stenberg 1bec3073dc Brad Spencer did
o made ares_version.h use extern "C" for c++ compilers
 o fixed compiler warnings in ares_getnameinfo.c
 o fixed a buffer position init for TCP reads
curl-7_15_6-prepipeline
2006-08-29 15:17:47 +00:00
Daniel Stenberg 70a27de3c5 add missing man page 2006-08-14 07:21:33 +00:00
Yang Tse ec9f8c45e8 Check for network libraries the _same_ way it is done in cURL. curl-7_15_5 2006-08-06 10:58:47 +00:00
Yang Tse cfae7aa9e5 Check for network libraries the same way it is done in cURL. 2006-08-05 22:02:47 +00:00
Yang Tse fc71973aa6 Minor compatibility fix 2006-08-04 17:35:05 +00:00
Gisle Vanem 415e2ae109 Fixed comment. 2006-08-04 15:41:56 +00:00
Yang Tse 857a5f9353 Fix compiler warning 2006-08-04 02:49:04 +00:00
Yang Tse 1a8709fa8d Avoid redundant check. configure script takes care of not defining
HAVE_WINDOWS_H, HAVE_WINSOCK_H, HAVE_WINSOCK2_H, neither
HAVE_WS2TCPIP_H when __CYGWIN__ is defined.
2006-08-04 01:13:24 +00:00
Yang Tse fb5decf740 Being unable to link or find out recv() or send() args types is a fatal error. 2006-08-04 00:39:34 +00:00
Yang Tse 43995b7d1b MinGW/MSYS needs lib ws2_32 for proper operation of configure script. 2006-08-03 21:19:40 +00:00
Daniel Stenberg 19fb255f9e Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
not always zero!
2006-08-03 18:20:45 +00:00
Yang Tse 6ca041f8f1 Avoid the risk of a false positive detection of MSG_NOSIGNAL when cross compiling a Windows target. 2006-07-31 18:41:29 +00:00
Yang Tse c7aae2ef2e Force compilation failure in case macros sread() or swrite() are not defined. 2006-07-31 17:12:24 +00:00
Yang Tse 6438dff987 Provide definitions needed for macros sread() and swrite() in config file. 2006-07-31 16:58:10 +00:00
Yang Tse cf64c31aac Fix compiler warnings. 2006-07-29 09:15:03 +00:00
Yang Tse 62e22ec3af include setup_once.h dependency and adjust to 80 char lines. 2006-07-29 08:39:20 +00:00
Yang Tse 283737c856 Replace send() and recv() with swrite() and sread() macros. 2006-07-28 18:01:23 +00:00
Yang Tse b05a63758c First step trying to avoid the multiple header inclusion and recursion nightmare.
Reintroduce checking for HAVE_MSG_NOSIGNAL in configure script, so that we don't depend on header inclusion order for a valid check.
2006-07-28 14:19:03 +00:00
Yang Tse bed83eaf82 Provide multiple header inclusion prevention definition __ARES_PRIVATE_H 2006-07-26 10:54:08 +00:00
Yang Tse 30d25aad3e Change multiple header inclusion prevention definition to __ARES_BITNCMP_H 2006-07-26 10:47:11 +00:00
Yang Tse 962f710089 Change multiple header inclusion prevention definition to __ARES_INET_NET_PTON_H 2006-07-26 10:43:15 +00:00
Yang Tse e5c95e68d8 Sync header with source code 2006-07-26 10:33:17 +00:00
Yang Tse 4e8835e782 Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if <malloc.h> header file must be included even when including <stdlib.h>. 2006-07-25 13:49:50 +00:00
Gisle Vanem 08ce30f216 Added getopt() processing. 2006-07-23 10:10:52 +00:00
Gisle Vanem 383126b38f Added getopt() processing of [-t {a|aaaa}]. 2006-07-22 17:31:00 +00:00
Gisle Vanem f417f06ca9 Added CVS id. 2006-07-22 15:38:35 +00:00
Gisle Vanem 0a83c1e416 2nd try adding CVS id. 2006-07-22 15:37:10 +00:00
Gisle Vanem f6e7395ca0 Added CVS id. 2006-07-22 15:21:13 +00:00
Gisle Vanem 4cef1942be Use ares_free_string() to avoid detecting leaks. 2006-07-22 15:12:34 +00:00
Gisle Vanem a5c01eed75 If CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set. 2006-07-22 14:51:39 +00:00
Yang Tse fb7987171c Fix compiler warning 2006-07-14 11:04:19 +00:00
Yang Tse c3c8945646 Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493. 2006-07-14 10:30:44 +00:00
Yang Tse 31dfa4924d Define NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation and <malloc.h> must also be included. 2006-07-11 20:40:38 +00:00
Yang Tse 04369e1134 Finally get rid of CURL_CHECK_HEADERS_ONCE since it adds very little value and has portability issues.
Change some shell if...then...fi tests into case...esac tests which demand less resources.
2006-07-07 17:34:40 +00:00
Yang Tse f3643c497b Substitution of the literal '-' is only done if it's the first or last character. 2006-07-07 14:03:17 +00:00
Yang Tse e7be013388 Using backslashes and slashes in the strings of the sed 'y' command shall be avoided since its interpretation is not the same across platforms.
Now we use the sed 's' command with a bracket expression.
2006-07-07 12:59:45 +00:00
Yang Tse d4b831bd3e Fix excessive escaping. 2006-07-07 05:39:14 +00:00
Yang Tse 33be40af18 Fix CURL_CHECK_HEADERS_ONCE 2006-07-07 04:42:15 +00:00
Yang Tse 69a7d102b7 Fix MinGW/MSYS support in CURL_CHECK_FUNC_RECV and CURL_CHECK_FUNC_SEND. 2006-07-06 15:51:03 +00:00
Yang Tse 413a37e409 Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode. 2006-07-05 23:10:38 +00:00
Yang Tse 3e2f91b95f Use a more descriptive var name. 2006-07-04 17:19:15 +00:00
Yang Tse e26ef987d7 Get qualifier of arg 2 for send() apart into SEND_QUAL_ARG2. 2006-07-04 16:54:11 +00:00
Yang Tse 26b2944fb9 Platforms that don't have/run configure need default values in their config files for:
HAVE_GETNAMEINFO, GETNAMEINFO_QUAL_ARG1, GETNAMEINFO_TYPE_ARG1, GETNAMEINFO_TYPE_ARG2, GETNAMEINFO_TYPE_ARG46, GETNAMEINFO_TYPE_ARG7

HAVE_RECV, RECV_TYPE_ARG1, RECV_TYPE_ARG2, RECV_TYPE_ARG3, RECV_TYPE_ARG4, RECV_TYPE_RETV

HAVE_SEND, SEND_TYPE_ARG1, SEND_TYPE_ARG2, SEND_TYPE_ARG3, SEND_TYPE_ARG4, SEND_TYPE_RETV
2006-07-04 16:10:13 +00:00