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
Yang Tse [Mon, 19 Dec 2005 00:15:04 +0000 (00:15 +0000)]
Undo previous change. This header file belongs to the public
interface and the change could break the compilation of thrid
party apps which link against this library.
Yang Tse [Sun, 18 Dec 2005 20:24:36 +0000 (20:24 +0000)]
When checking the type of the first argument of getnameinfo do it in the
following order: 'struct sockaddr *' 'const struct sockaddr *' 'void *'.
Yang Tse [Sun, 18 Dec 2005 16:50:33 +0000 (16:50 +0000)]
Fix spacing. When defining, define to 1.
Yang Tse [Sun, 18 Dec 2005 15:36:14 +0000 (15:36 +0000)]
Cleanup windows header includes. Where aplicable, inclusion of
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
Yang Tse [Sun, 18 Dec 2005 06:07:11 +0000 (06:07 +0000)]
MingW guards getnameinfo, getaddrinfo and freeaddrinfo with _WIN32_WINNT >= 0x0501
Yang Tse [Sun, 18 Dec 2005 04:47:29 +0000 (04:47 +0000)]
Fix Msys/Mingw not detecting getnameinfo() with AC_CHECK_FUNCS
Yang Tse [Sun, 18 Dec 2005 00:27:12 +0000 (00:27 +0000)]
Make it compatible with vc60 and vc71
Yang Tse [Sat, 17 Dec 2005 23:35:25 +0000 (23:35 +0000)]
Fix typo
Yang Tse [Sat, 17 Dec 2005 23:34:21 +0000 (23:34 +0000)]
Fix compiler warning
Yang Tse [Sat, 17 Dec 2005 21:20:35 +0000 (21:20 +0000)]
Cleanup
Yang Tse [Sat, 17 Dec 2005 20:37:53 +0000 (20:37 +0000)]
Windows related cleanup
Yang Tse [Sat, 17 Dec 2005 17:33:14 +0000 (17:33 +0000)]
Check first arg of getnameinfo with and without const qualifier.
Yang Tse [Sat, 17 Dec 2005 02:41:33 +0000 (02:41 +0000)]
Avoid breaking configure due to CURL_FUNC_GETNAMEINFO_ARGTYPES failure, since at this point nothing depends on it.
Yang Tse [Sat, 17 Dec 2005 02:32:55 +0000 (02:32 +0000)]
const qualifier in getnameinfo check
Yang Tse [Fri, 16 Dec 2005 23:15:33 +0000 (23:15 +0000)]
Since there is no proof of the existence of a platform which would
justify checking for socklen_t in more than one function, the code
used to find a valid socklen_t replacement is simplified back. The
only function that will be used to find a socklen_t replacement is
getpeername, as it has been since revision 1.4 of curl/acinclude.m4
Yang Tse [Fri, 16 Dec 2005 20:55:07 +0000 (20:55 +0000)]
'Fix' windows builds
Yang Tse [Fri, 16 Dec 2005 18:18:00 +0000 (18:18 +0000)]
TYPE_SOCKLEN_T completely replaced by CURL_CHECK_TYPE_SOCKLEN_T.
CURL_FUNC_GETNAMEINFO_ARGTYPES now also checks first argument.
All related changes taken to cares configuration scripts.
Yang Tse [Sun, 11 Dec 2005 23:37:58 +0000 (23:37 +0000)]
Undo last changes
Yang Tse [Sun, 11 Dec 2005 12:03:01 +0000 (12:03 +0000)]
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
Yang Tse [Sat, 10 Dec 2005 19:21:59 +0000 (19:21 +0000)]
Modified lookup_service() to avoid the risk of a potential buffer overflow
Yang Tse [Fri, 9 Dec 2005 22:23:50 +0000 (22:23 +0000)]
Fix compiler warning
Yang Tse [Fri, 9 Dec 2005 21:09:21 +0000 (21:09 +0000)]
Fix compiler warning
Daniel Stenberg [Fri, 25 Nov 2005 22:45:06 +0000 (22:45 +0000)]
Yang Tse fixed compiler warnings
Daniel Stenberg [Fri, 25 Nov 2005 22:23:28 +0000 (22:23 +0000)]
read_tcp_data() fix to get the proper buffer pointer and size
Daniel Stenberg [Fri, 25 Nov 2005 22:14:53 +0000 (22:14 +0000)]
Yang Tse: fixed compiler warnings
Daniel Stenberg [Fri, 25 Nov 2005 22:14:28 +0000 (22:14 +0000)]
Change based on Yang Tse's excellent fix to reduce buffer overflow risk and
fixing a compiler warning in the append_scopeid() function.
Daniel Stenberg [Thu, 24 Nov 2005 23:03:25 +0000 (23:03 +0000)]
avoid doing #if an a predef symbol that might not be defined
Daniel Stenberg [Wed, 16 Nov 2005 07:12:37 +0000 (07:12 +0000)]
check for and use winsock2.h instead of winsock.h and I fixed a typo in the
ifdefs where . was used instead of _!
Daniel Stenberg [Tue, 15 Nov 2005 14:39:52 +0000 (14:39 +0000)]
include ws2tcpip.h in an attempt to detect some of the ipv6 structs better
in mingw builds
Daniel Stenberg [Mon, 14 Nov 2005 23:14:54 +0000 (23:14 +0000)]
Detect big/little endian in the configure script and adjust the ares_dns.h
macros accordingly.
Gisle Vanem [Mon, 14 Nov 2005 13:40:16 +0000 (13:40 +0000)]
Added '-DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID'.
Gisle Vanem [Mon, 14 Nov 2005 13:26:17 +0000 (13:26 +0000)]
Added CVS id.
Avoid warning 'x might be used uninitialized in this function'.
Gisle Vanem [Mon, 14 Nov 2005 12:32:56 +0000 (12:32 +0000)]
We have HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID.
Gisle Vanem [Sat, 12 Nov 2005 18:33:32 +0000 (18:33 +0000)]
Fixed typo. Detabified.
Gisle Vanem [Sat, 12 Nov 2005 15:15:27 +0000 (15:15 +0000)]
Support big-endian machines.
Gisle Vanem [Sat, 12 Nov 2005 14:59:33 +0000 (14:59 +0000)]
Added CVS id, Detabified, applied c-ares coding-style.
Gisle Vanem [Sat, 12 Nov 2005 14:44:26 +0000 (14:44 +0000)]
Added CVS id. Detabified.
Gisle Vanem [Sat, 12 Nov 2005 14:41:12 +0000 (14:41 +0000)]
Include <getopt.h>.
Use DNS__32BIT() and DNS__16BIT() (How about BE machines?).
Display T_AAAA resource.
Daniel Stenberg [Sat, 12 Nov 2005 00:01:50 +0000 (00:01 +0000)]
removed files no longer existing
Gisle Vanem [Fri, 11 Nov 2005 19:25:29 +0000 (19:25 +0000)]
Squelch gcc 4.x warning.
Gisle Vanem [Fri, 11 Nov 2005 19:20:22 +0000 (19:20 +0000)]
Detabified. Added CVS id.
Gisle Vanem [Fri, 11 Nov 2005 19:14:51 +0000 (19:14 +0000)]
HAVE_xx defines moved to config-win32.h.
Gisle Vanem [Fri, 11 Nov 2005 04:28:23 +0000 (04:28 +0000)]
Update using ares_inet_pton() and ares_inet_ntop().
Gisle Vanem [Thu, 10 Nov 2005 16:55:59 +0000 (16:55 +0000)]
Use config-win32.h on Windows. Fixes for djgpp.
Gisle Vanem [Thu, 10 Nov 2005 16:52:43 +0000 (16:52 +0000)]
Defines moved to config-win32.h.
Gisle Vanem [Thu, 10 Nov 2005 16:50:21 +0000 (16:50 +0000)]
Easy configuration with this file.
Gisle Vanem [Thu, 10 Nov 2005 16:42:07 +0000 (16:42 +0000)]
Remove generated files areslib.plg areslib.mak from CVS.
Gisle Vanem [Thu, 10 Nov 2005 16:40:08 +0000 (16:40 +0000)]
Remove generated files ahost.plg ahost.mak from CVS.
Gisle Vanem [Thu, 10 Nov 2005 16:38:17 +0000 (16:38 +0000)]
Remove generated files adig.plg adig.mak from CVS.
Gisle Vanem [Wed, 9 Nov 2005 22:52:45 +0000 (22:52 +0000)]
Update with "new" HAVE_xx.
Gisle Vanem [Wed, 9 Nov 2005 22:32:45 +0000 (22:32 +0000)]
Replace <winsock.h> with <winsock2.h>
since IPv6 support is required.
Gisle Vanem [Wed, 9 Nov 2005 22:18:13 +0000 (22:18 +0000)]
Add cvs id.
Gisle Vanem [Wed, 9 Nov 2005 22:17:13 +0000 (22:17 +0000)]
Added Makefile.vc6.
Gisle Vanem [Wed, 9 Nov 2005 22:16:58 +0000 (22:16 +0000)]
I hate MS-devstudio project files.
Gisle Vanem [Wed, 9 Nov 2005 21:51:44 +0000 (21:51 +0000)]
Updated for MingW. Added inet_ntop.o inet_net_pton.o bitncmp.o.
Added -D'efines'.
Gisle Vanem [Wed, 9 Nov 2005 21:38:58 +0000 (21:38 +0000)]
MSVC fix for 'socklen_t'. Replace <winsock.h> with <winsock2.h> +
<ws2tcpip.h> since IPv6 is no longer optional (was it ever?)
Gisle Vanem [Wed, 9 Nov 2005 21:32:47 +0000 (21:32 +0000)]
Fixes for building with MSVC-6/7. Added inet*.c.
Replace <winsock.h> with <winsock2.h> + <ws2tcpip.h>
(ala libcurl since IPv6 is not optional now).
Gisle Vanem [Wed, 9 Nov 2005 21:29:34 +0000 (21:29 +0000)]
Fixes for building ahost with MSVC-6/7. Added inet*.c.
Daniel Stenberg [Mon, 3 Oct 2005 10:12:06 +0000 (10:12 +0000)]
Ok, based on the online docs for AIX'es getservbyport_r() I adjusted to code
to do (what I believe is) "right". See docs on:
http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/libs/commtrf2/getservbyport_r.htm
Daniel Stenberg [Wed, 21 Sep 2005 10:45:25 +0000 (10:45 +0000)]
1 - attempted fix of uninitialized variable
2 - indented and edited to fit better within 80 columns
3 - fixed possible buffer overflow in the service name lookup function
Daniel Stenberg [Wed, 21 Sep 2005 09:10:17 +0000 (09:10 +0000)]
simplified the sin6_scope_id test and removed some left-overs from the previous
way of detecting it
Daniel Stenberg [Wed, 21 Sep 2005 09:01:44 +0000 (09:01 +0000)]
fixed the check for the addrinfo struct
Dominick Meglio [Sun, 18 Sep 2005 16:44:49 +0000 (16:44 +0000)]
Added constants that will be used by ares_getaddrinfo. Made ares_getnameinfo use the reentrant getservbyport (getservbyport_r) if it isavailable to ensure it works properly in a threaded environment
Daniel Stenberg [Thu, 15 Sep 2005 19:23:31 +0000 (19:23 +0000)]
mention the configure change