Yang Tse [Wed, 18 Oct 2006 15:57:49 +0000 (15:57 +0000)]
Introduce symbol USE_WINSOCK which will be defined when
using winsock or winsock2 API.
Daniel Stenberg [Wed, 18 Oct 2006 12:59:02 +0000 (12:59 +0000)]
Tor's spell fixes
Yang Tse [Wed, 18 Oct 2006 03:42:06 +0000 (03:42 +0000)]
Replace is*() macros with our own IS*() ones.
Get rid of non ANSI/ISO isascii().
Yang Tse [Wed, 18 Oct 2006 03:41:19 +0000 (03:41 +0000)]
Move definition of IS*() macros to setup_once.h
Yang Tse [Sat, 14 Oct 2006 12:01:44 +0000 (12:01 +0000)]
Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support
Daniel Stenberg [Fri, 13 Oct 2006 21:25:11 +0000 (21:25 +0000)]
Prevent ares_getsock() to overflow if more than 16 sockets are used.
Yang Tse [Fri, 13 Oct 2006 01:35:14 +0000 (01:35 +0000)]
Check for struct timeval at configuration time
Daniel Stenberg [Thu, 12 Oct 2006 16:47:50 +0000 (16:47 +0000)]
avoid an overflow if an excessive amount of servers are used
Yang Tse [Wed, 11 Oct 2006 16:01:16 +0000 (16:01 +0000)]
Remove redundant __CYGWIN__ symbol check
Daniel Stenberg [Mon, 11 Sep 2006 20:25:13 +0000 (20:25 +0000)]
- 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.
Daniel Stenberg [Tue, 29 Aug 2006 15:17:47 +0000 (15:17 +0000)]
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
Daniel Stenberg [Mon, 14 Aug 2006 07:21:33 +0000 (07:21 +0000)]
add missing man page
Yang Tse [Sun, 6 Aug 2006 10:58:47 +0000 (10:58 +0000)]
Check for network libraries the _same_ way it is done in cURL.
Yang Tse [Sat, 5 Aug 2006 22:02:47 +0000 (22:02 +0000)]
Check for network libraries the same way it is done in cURL.
Yang Tse [Fri, 4 Aug 2006 17:35:05 +0000 (17:35 +0000)]
Minor compatibility fix
Gisle Vanem [Fri, 4 Aug 2006 15:41:56 +0000 (15:41 +0000)]
Fixed comment.
Yang Tse [Fri, 4 Aug 2006 02:49:04 +0000 (02:49 +0000)]
Fix compiler warning
Yang Tse [Fri, 4 Aug 2006 01:13:24 +0000 (01:13 +0000)]
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.
Yang Tse [Fri, 4 Aug 2006 00:39:34 +0000 (00:39 +0000)]
Being unable to link or find out recv() or send() args types is a fatal error.
Yang Tse [Thu, 3 Aug 2006 21:19:40 +0000 (21:19 +0000)]
MinGW/MSYS needs lib ws2_32 for proper operation of configure script.
Daniel Stenberg [Thu, 3 Aug 2006 18:20:45 +0000 (18:20 +0000)]
Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
not always zero!
Yang Tse [Mon, 31 Jul 2006 18:41:29 +0000 (18:41 +0000)]
Avoid the risk of a false positive detection of MSG_NOSIGNAL when cross compiling a Windows target.
Yang Tse [Mon, 31 Jul 2006 17:12:24 +0000 (17:12 +0000)]
Force compilation failure in case macros sread() or swrite() are not defined.
Yang Tse [Mon, 31 Jul 2006 16:58:10 +0000 (16:58 +0000)]
Provide definitions needed for macros sread() and swrite() in config file.
Yang Tse [Sat, 29 Jul 2006 09:15:03 +0000 (09:15 +0000)]
Fix compiler warnings.
Yang Tse [Sat, 29 Jul 2006 08:39:20 +0000 (08:39 +0000)]
include setup_once.h dependency and adjust to 80 char lines.
Yang Tse [Fri, 28 Jul 2006 18:01:23 +0000 (18:01 +0000)]
Replace send() and recv() with swrite() and sread() macros.
Yang Tse [Fri, 28 Jul 2006 14:19:03 +0000 (14:19 +0000)]
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.
Yang Tse [Wed, 26 Jul 2006 10:54:08 +0000 (10:54 +0000)]
Provide multiple header inclusion prevention definition __ARES_PRIVATE_H
Yang Tse [Wed, 26 Jul 2006 10:47:11 +0000 (10:47 +0000)]
Change multiple header inclusion prevention definition to __ARES_BITNCMP_H
Yang Tse [Wed, 26 Jul 2006 10:43:15 +0000 (10:43 +0000)]
Change multiple header inclusion prevention definition to __ARES_INET_NET_PTON_H
Yang Tse [Wed, 26 Jul 2006 10:33:17 +0000 (10:33 +0000)]
Sync header with source code
Yang Tse [Tue, 25 Jul 2006 13:49:50 +0000 (13:49 +0000)]
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>.
Gisle Vanem [Sun, 23 Jul 2006 10:10:52 +0000 (10:10 +0000)]
Added getopt() processing.
Gisle Vanem [Sat, 22 Jul 2006 17:31:00 +0000 (17:31 +0000)]
Added getopt() processing of [-t {a|aaaa}].
Gisle Vanem [Sat, 22 Jul 2006 15:38:35 +0000 (15:38 +0000)]
Added CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:37:10 +0000 (15:37 +0000)]
2nd try adding CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:21:13 +0000 (15:21 +0000)]
Added CVS id.
Gisle Vanem [Sat, 22 Jul 2006 15:12:34 +0000 (15:12 +0000)]
Use ares_free_string() to avoid detecting leaks.
Gisle Vanem [Sat, 22 Jul 2006 14:51:39 +0000 (14:51 +0000)]
If CURLDEBUG defined, call curl_memdebug() if $CARES_MEMDEBUG is set.
Yang Tse [Fri, 14 Jul 2006 11:04:19 +0000 (11:04 +0000)]
Fix compiler warning
Yang Tse [Fri, 14 Jul 2006 10:30:44 +0000 (10:30 +0000)]
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
Yang Tse [Tue, 11 Jul 2006 20:40:38 +0000 (20:40 +0000)]
Define NEED_MALLOC_H if including <stdlib.h> is not enough for proper compilation and <malloc.h> must also be included.
Yang Tse [Fri, 7 Jul 2006 17:34:40 +0000 (17:34 +0000)]
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.
Yang Tse [Fri, 7 Jul 2006 14:03:17 +0000 (14:03 +0000)]
Substitution of the literal '-' is only done if it's the first or last character.
Yang Tse [Fri, 7 Jul 2006 12:59:45 +0000 (12:59 +0000)]
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.
Yang Tse [Fri, 7 Jul 2006 05:39:14 +0000 (05:39 +0000)]
Fix excessive escaping.
Yang Tse [Fri, 7 Jul 2006 04:42:15 +0000 (04:42 +0000)]
Fix CURL_CHECK_HEADERS_ONCE
Yang Tse [Thu, 6 Jul 2006 15:51:03 +0000 (15:51 +0000)]
Fix MinGW/MSYS support in CURL_CHECK_FUNC_RECV and CURL_CHECK_FUNC_SEND.
Yang Tse [Wed, 5 Jul 2006 23:10:38 +0000 (23:10 +0000)]
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
Yang Tse [Tue, 4 Jul 2006 17:19:15 +0000 (17:19 +0000)]
Use a more descriptive var name.
Yang Tse [Tue, 4 Jul 2006 16:54:11 +0000 (16:54 +0000)]
Get qualifier of arg 2 for send() apart into SEND_QUAL_ARG2.
Yang Tse [Tue, 4 Jul 2006 16:10:13 +0000 (16:10 +0000)]
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
Yang Tse [Tue, 4 Jul 2006 13:03:33 +0000 (13:03 +0000)]
Find out return types and argument types for functions recv() and send() at configuration stage.
Yang Tse [Mon, 3 Jul 2006 15:32:12 +0000 (15:32 +0000)]
Use CURL_CHECK_FUNC_GETNAMEINFO results in CURL_CHECK_NI_WITHSCOPEID
Yang Tse [Sun, 2 Jul 2006 23:09:46 +0000 (23:09 +0000)]
Make CURL_CHECK_NI_WITHSCOPEID actually try to compile NI_WITHSCOPEID when cross-compiling.
Yang Tse [Sun, 2 Jul 2006 01:21:54 +0000 (01:21 +0000)]
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
Yang Tse [Sun, 2 Jul 2006 01:17:37 +0000 (01:17 +0000)]
Fix shell globbing in CURL_CHECK_FUNC_GETNAMEINFO
Yang Tse [Sat, 1 Jul 2006 02:53:18 +0000 (02:53 +0000)]
Get qualifier of arg 1 for getnameinfo apart. Take 2.
Yang Tse [Fri, 30 Jun 2006 19:20:16 +0000 (19:20 +0000)]
Get qualifier of arg 1 for getnameinfo apart.
Yang Tse [Fri, 30 Jun 2006 00:22:39 +0000 (00:22 +0000)]
Remove experimental notice from CURL_CHECK_FUNC_GETNAMEINFO
Daniel Stenberg [Mon, 26 Jun 2006 08:56:04 +0000 (08:56 +0000)]
include config-win32.h in release archives
Daniel Stenberg [Sat, 24 Jun 2006 18:29:18 +0000 (18:29 +0000)]
1.3.1
William Ahern [Mon, 19 Jun 2006 06:41:55 +0000 (06:41 +0000)]
Remove "big endian" DNS section and RR data integer parser macros from
ares_dns.h, which break c-ares on my Sparc64. Bit-wise operations in C
operate on logical values. And in any event the octets are already in
big-endian (aka network) byte order so they're being reversed (thus the
source of the breakage).
William Ahern [Mon, 19 Jun 2006 01:18:05 +0000 (01:18 +0000)]
Handle EAGAIN/EWOULDBLOCK readiness errors, which can occur for both TCP and
UDP even when a poll(2) or select(2) suggest otherwise.
Daniel Stenberg [Wed, 24 May 2006 23:02:51 +0000 (23:02 +0000)]
Copied the NO_UNDEFINED magic from libcurl to make this build fine again with
libtool cross-compiled on linux with mingw32
Daniel Stenberg [Wed, 10 May 2006 08:03:54 +0000 (08:03 +0000)]
Bram Matthys brought my attention to a libtool peculiarity where detecting
things such as C++ compiler actually is a bad thing and since we don't need
that detection I added a work-around, much inspired by a previous patch by
Paolo Bonzini. This also shortens the configure script quite a lot.
Daniel Stenberg [Fri, 5 May 2006 21:08:09 +0000 (21:08 +0000)]
two more contributors
Daniel Stenberg [Wed, 3 May 2006 22:39:49 +0000 (22:39 +0000)]
moved the curl_off_t check to within the --enable-debug block where it belongs since it is a somewhat ugly hack
Daniel Stenberg [Wed, 3 May 2006 06:11:44 +0000 (06:11 +0000)]
Nick Mathewson added the ARES_OPT_SOCK_STATE_CB option that when set makes
c-ares call a callback on socket state changes. A better way than the
ares_getsock() to get full control over the socket state.
Gunter Knauf [Thu, 20 Apr 2006 10:26:51 +0000 (10:26 +0000)]
removed -fpack-struct because gcc4 seems to know its obsolete and warns...
Gunter Knauf [Mon, 17 Apr 2006 18:04:27 +0000 (18:04 +0000)]
minor Makefile fix - let's go 2006;
use correct version var.
Daniel Stenberg [Mon, 9 Jan 2006 08:31:48 +0000 (08:31 +0000)]
Alexander Lazic improved the getservbyport_r() configure check.
Daniel Stenberg [Fri, 6 Jan 2006 22:59:34 +0000 (22:59 +0000)]
buildconf fixes
Daniel Stenberg [Fri, 6 Jan 2006 22:07:51 +0000 (22:07 +0000)]
Use $ACLOCAL_FLAGS too, pointed out by Alexander Lazic
Daniel Stenberg [Thu, 5 Jan 2006 07:57:32 +0000 (07:57 +0000)]
James Bursa fixes: find the hosts file on RISC OS, and made it build with
newer gcc versions that no longer defines "riscos".
Daniel Stenberg [Thu, 5 Jan 2006 07:56:43 +0000 (07:56 +0000)]
Yang Tse has been helping out
Gisle Vanem [Wed, 4 Jan 2006 14:21:57 +0000 (14:21 +0000)]
Added ares_getsock.obj.
Daniel Stenberg [Mon, 2 Jan 2006 09:13:56 +0000 (09:13 +0000)]
we're working on 1.3.1 (or more)
Daniel Stenberg [Thu, 22 Dec 2005 15:31:32 +0000 (15:31 +0000)]
This function was added in c-ares [version]
Daniel Stenberg [Thu, 22 Dec 2005 15:29:12 +0000 (15:29 +0000)]
added ares_getsock()
Daniel Stenberg [Thu, 22 Dec 2005 15:27:41 +0000 (15:27 +0000)]
Added ares_getsock() to extract sockets to wait for action on, without being
limited to select().
Yang Tse [Wed, 21 Dec 2005 20:44:54 +0000 (20:44 +0000)]
Checking for function getnameinfo and its arguments is finally
done in one single function CURL_CHECK_FUNC_GETNAMEINFO which
will only define HAVE_GETNAMEINFO if the function has been found
AND the type of its arguments has been properly been detected
Yang Tse [Wed, 21 Dec 2005 17:51:08 +0000 (17:51 +0000)]
Undefine HAVE_GETNAMEINFO if unable to find
proper types to use for getnameinfo args
Yang Tse [Wed, 21 Dec 2005 17:20:23 +0000 (17:20 +0000)]
Undefine HAVE_GETNAMEINFO if unable to find
proper types to use for getnameinfo args
Yang Tse [Wed, 21 Dec 2005 16:08:35 +0000 (16:08 +0000)]
Make sure we're using 'c-ares' sources and not 'ares' ones.
Yang Tse [Tue, 20 Dec 2005 23:49:14 +0000 (23:49 +0000)]
In CURL_FUNC_GETNAMEINFO_ARGTYPES, when cross-compiling a windows
target use calling convention WSAAPI for getnameinfo() prototype.
Checking type DWORD as argument 4 and 6 of getnameinfo not needed.
Gisle Vanem [Tue, 20 Dec 2005 20:58:51 +0000 (20:58 +0000)]
Fix PellesC warning.
Gisle Vanem [Tue, 20 Dec 2005 20:48:38 +0000 (20:48 +0000)]
Changes for PellesC for Win32. It needs <unistd.h> for 'ssize_t'. Hence the
rearrangement in ares_process.c.
Yang Tse [Tue, 20 Dec 2005 20:29:53 +0000 (20:29 +0000)]
fix ioctlsocket detection
Yang Tse [Tue, 20 Dec 2005 18:50:37 +0000 (18:50 +0000)]
Fix, header checks must be done before using its results.
Daniel Stenberg [Tue, 20 Dec 2005 08:51:48 +0000 (08:51 +0000)]
fix closing parentheses
Daniel Stenberg [Tue, 20 Dec 2005 08:51:34 +0000 (08:51 +0000)]
use AC_PROG_LIBTOOL after AC_DISABLE_SHARED
Yang Tse [Tue, 20 Dec 2005 03:23:49 +0000 (03:23 +0000)]
Fix quoting
Yang Tse [Tue, 20 Dec 2005 00:27:59 +0000 (00:27 +0000)]
Use native type SOCKET instead of int when testing functionality of ioctlsocket on Windows
Yang Tse [Mon, 19 Dec 2005 23:32:52 +0000 (23:32 +0000)]
Ooops
Yang Tse [Mon, 19 Dec 2005 21:45:43 +0000 (21:45 +0000)]
Add checking for type DWORD as argument 4 and 6 of getnameinfo
Yang Tse [Mon, 19 Dec 2005 21:38:10 +0000 (21:38 +0000)]
Adjust more windows header includes
Yang Tse [Mon, 19 Dec 2005 05:57:17 +0000 (05:57 +0000)]
Fix guard detection of _WIN32_WINNT for MingW in CURL_FUNC_GETNAMEINFO_ARGTYPES
Yang Tse [Mon, 19 Dec 2005 05:32:33 +0000 (05:32 +0000)]
Add check for 'unsigned int' as type of arguments 4 and 6 of getnameinfo