platform/upstream/c-ares.git
19 years agoAllow environment variables to override default autotools.
Dan Fandrich [Wed, 13 Apr 2005 00:32:33 +0000 (00:32 +0000)]
Allow environment variables to override default autotools.

19 years agocredits
Daniel Stenberg [Mon, 11 Apr 2005 14:07:02 +0000 (14:07 +0000)]
credits

19 years agoRemoved usage of u_int and u_char
Dominick Meglio [Sat, 9 Apr 2005 23:46:31 +0000 (23:46 +0000)]
Removed usage of u_int and u_char

19 years agoMade sortlist support IPv6 (this can probably use some testing)
Dominick Meglio [Sat, 9 Apr 2005 19:59:59 +0000 (19:59 +0000)]
Made sortlist support IPv6 (this can probably use some testing)

19 years agoMade sortlist support CIDR matching for IPv4
Dominick Meglio [Sat, 9 Apr 2005 16:49:47 +0000 (16:49 +0000)]
Made sortlist support CIDR matching for IPv4

19 years agoAdded preliminary IPv6 support to ares_gethostbyname
Dominick Meglio [Fri, 8 Apr 2005 19:46:46 +0000 (19:46 +0000)]
Added preliminary IPv6 support to ares_gethostbyname

19 years agoAdded include for inet_net_pton.h to ares__get_hostent.c
Dominick Meglio [Fri, 8 Apr 2005 16:22:51 +0000 (16:22 +0000)]
Added include for inet_net_pton.h to ares__get_hostent.c

19 years agoMade ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family
Dominick Meglio [Fri, 8 Apr 2005 15:41:31 +0000 (15:41 +0000)]
Made ares_gethostbyaddr support IPv6 by specifying AF_INET6 as the family

19 years agoinclude sys/types.h too when checking for headers as otherwise this breaks
Daniel Stenberg [Fri, 8 Apr 2005 08:48:17 +0000 (08:48 +0000)]
include sys/types.h too when checking for headers as otherwise this breaks
on Solaris and FreeBSD. At least.

19 years agoTry harder to see if arpa/nameser_compat.h REALLY is a good header file to
Daniel Stenberg [Thu, 7 Apr 2005 07:38:53 +0000 (07:38 +0000)]
Try harder to see if arpa/nameser_compat.h REALLY is a good header file to
include, as it seems at least some AIX versions don't really allow it to be
include at the same time as the original nameser.h.

19 years agoTupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
Daniel Stenberg [Wed, 6 Apr 2005 22:27:42 +0000 (22:27 +0000)]
Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
X.

19 years agobetter errno constant replacements, as mentioned by Gisle Vanem
Daniel Stenberg [Wed, 6 Apr 2005 21:14:58 +0000 (21:14 +0000)]
better errno constant replacements, as mentioned by Gisle Vanem

19 years agoInclude inet_net_pton.h for 'struct in6_addr'. Ideally this
Gisle Vanem [Wed, 6 Apr 2005 18:58:33 +0000 (18:58 +0000)]
Include inet_net_pton.h for 'struct in6_addr'. Ideally this
should come from <ws2tcpip.h>, but Winsock 1.1 should
suffice.

19 years agoMoved inet_net_pton.h to HHEADERS.
Gisle Vanem [Wed, 6 Apr 2005 18:55:59 +0000 (18:55 +0000)]
Moved  inet_net_pton.h to HHEADERS.

19 years agocheck for struct sizes and use those sizes if the NS_* defines are lacking
Daniel Stenberg [Wed, 6 Apr 2005 14:11:50 +0000 (14:11 +0000)]
check for struct sizes and use those sizes if the NS_* defines are lacking
(IRIX 6.5.22 it seems)

19 years agomoved the *_inet_pton protos to inet_net_pton.h instead
Daniel Stenberg [Wed, 6 Apr 2005 14:02:37 +0000 (14:02 +0000)]
moved the *_inet_pton protos to inet_net_pton.h instead

19 years agomade the ares_inet_net_pton() proto use size_t size, as the function in the
Daniel Stenberg [Wed, 6 Apr 2005 13:54:02 +0000 (13:54 +0000)]
made the ares_inet_net_pton() proto use size_t size, as the function in the
code uses that

19 years agowith these changes, it builds on my win32 cross-compiler
Daniel Stenberg [Tue, 5 Apr 2005 20:20:14 +0000 (20:20 +0000)]
with these changes, it builds on my win32 cross-compiler

19 years agocheck for another arpa header
Daniel Stenberg [Tue, 5 Apr 2005 20:19:55 +0000 (20:19 +0000)]
check for another arpa header

19 years agocheck for the arpa/* headers
Daniel Stenberg [Tue, 5 Apr 2005 20:08:15 +0000 (20:08 +0000)]
check for the arpa/* headers

19 years agoProvided implementations of inet_net_pton and inet_pton from BIND for systems that...
Dominick Meglio [Tue, 5 Apr 2005 18:26:55 +0000 (18:26 +0000)]
Provided implementations of inet_net_pton and inet_pton from BIND for systems that do not include these functions. These will be necessary for CIDR support and IPv6 support.

19 years agoUpdated the copyright year since changes have been this year.
Daniel Stenberg [Thu, 31 Mar 2005 07:02:02 +0000 (07:02 +0000)]
Updated the copyright year since changes have been this year.

19 years agoCURL_EXTERN is already in <curl/curl.h>.
Gisle Vanem [Tue, 22 Mar 2005 10:37:26 +0000 (10:37 +0000)]
CURL_EXTERN is already in <curl/curl.h>.

19 years agoPrevent redefinition warning with CURLDEBUG.
Gisle Vanem [Tue, 22 Mar 2005 10:36:20 +0000 (10:36 +0000)]
Prevent redefinition warning with CURLDEBUG.

19 years agothe same fix here too, typecast to prevent win32 compiler warning
Daniel Stenberg [Mon, 21 Mar 2005 22:38:45 +0000 (22:38 +0000)]
the same fix here too, typecast to prevent win32 compiler warning

19 years agotypecase to fix win32 compiler warning (and intended as other code is)
Daniel Stenberg [Mon, 21 Mar 2005 22:37:18 +0000 (22:37 +0000)]
typecase to fix win32 compiler warning (and intended as other code is)

19 years agosilence win32 compiler warnings
Daniel Stenberg [Sun, 20 Mar 2005 12:29:15 +0000 (12:29 +0000)]
silence win32 compiler warnings

19 years agoattempt to fix the ares link breakage with --enable-debug in libcurl and here
Daniel Stenberg [Sun, 20 Mar 2005 00:38:50 +0000 (00:38 +0000)]
attempt to fix the ares link breakage with --enable-debug in libcurl and here

19 years agosilence warnings on win32 about static functions that are never used
Daniel Stenberg [Sat, 19 Mar 2005 01:03:46 +0000 (01:03 +0000)]
silence warnings on win32 about static functions that are never used

19 years agoPrevent gcc warning.
Gisle Vanem [Sun, 13 Mar 2005 09:21:54 +0000 (09:21 +0000)]
Prevent gcc warning.

19 years agothe ares_parse_aaaa_reply man page
Daniel Stenberg [Fri, 11 Mar 2005 08:34:51 +0000 (08:34 +0000)]
the ares_parse_aaaa_reply man page

19 years agoCheck for winsock.h to work with win32. Only include system headers we know
Daniel Stenberg [Fri, 11 Mar 2005 08:14:36 +0000 (08:14 +0000)]
Check for winsock.h to work with win32. Only include system headers we know
exist.

19 years agoReplace AC_TRY_RUN() with AC_EGREP_CPP() when checking for constants to
Daniel Stenberg [Fri, 11 Mar 2005 08:06:57 +0000 (08:06 +0000)]
Replace AC_TRY_RUN() with AC_EGREP_CPP() when checking for constants to
work fine with cross-compiled builds.

19 years agooops, once is enough! ;-)
Daniel Stenberg [Fri, 11 Mar 2005 08:03:20 +0000 (08:03 +0000)]
oops, once is enough! ;-)

19 years agoDefine HAVE_AF_INET6_H for Netware too, as Guenter Knauf's builds indicate.
Daniel Stenberg [Fri, 11 Mar 2005 07:53:42 +0000 (07:53 +0000)]
Define HAVE_AF_INET6_H for Netware too, as Guenter Knauf's builds indicate.

19 years agoAdded HAVE_AF_INET6 to Netware's config.h
Dan Fandrich [Fri, 11 Mar 2005 07:52:24 +0000 (07:52 +0000)]
Added HAVE_AF_INET6 to Netware's config.h

19 years agoAdded HAVE_STRUCT_IN6_ADDR to Netware's config.h
Dan Fandrich [Fri, 11 Mar 2005 05:39:37 +0000 (05:39 +0000)]
Added HAVE_STRUCT_IN6_ADDR to Netware's config.h

19 years agoDominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
Daniel Stenberg [Thu, 10 Mar 2005 23:30:34 +0000 (23:30 +0000)]
Dominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
first little steps towards IPv6 support!

19 years agoSamuel Díaz García's correction
Daniel Stenberg [Sat, 5 Mar 2005 00:04:52 +0000 (00:04 +0000)]
Samuel Díaz García's correction

19 years agoUpdated as suggested by Samuel Díaz García
Daniel Stenberg [Tue, 22 Feb 2005 18:39:40 +0000 (18:39 +0000)]
Updated as suggested by Samuel Díaz García

19 years agountabified
Daniel Stenberg [Fri, 10 Dec 2004 21:46:00 +0000 (21:46 +0000)]
untabified

19 years agoNORECURSE clarification, minor formatting update
Daniel Stenberg [Tue, 7 Dec 2004 10:43:21 +0000 (10:43 +0000)]
NORECURSE clarification, minor formatting update

20 years agofix the -I path to the proper include dir when --enable-debug is used
Daniel Stenberg [Thu, 11 Nov 2004 14:15:41 +0000 (14:15 +0000)]
fix the -I path to the proper include dir when --enable-debug is used

20 years agoAdapted for C++.
Gisle Vanem [Thu, 11 Nov 2004 12:25:40 +0000 (12:25 +0000)]
Adapted for C++.

20 years agoReplace IsNT with IS_NT().
Gisle Vanem [Wed, 10 Nov 2004 14:30:25 +0000 (14:30 +0000)]
Replace IsNT with IS_NT().

20 years agoReplace IsNT with IS_NT().
Gisle Vanem [Wed, 10 Nov 2004 14:23:20 +0000 (14:23 +0000)]
Replace IsNT with IS_NT().
Return correct timeval in windows_port.c.
Squelch gcc warnings:
  use 'ares_socket_t' in ares_fds.c.
  Don't cast a 'lvalue' in ares_init.c.

20 years agofix CURL_EXTERN for debug builds
Daniel Stenberg [Tue, 9 Nov 2004 18:10:51 +0000 (18:10 +0000)]
fix CURL_EXTERN for debug builds

20 years agotwo post-1.2.1 changes
Daniel Stenberg [Sun, 7 Nov 2004 23:48:42 +0000 (23:48 +0000)]
two post-1.2.1 changes

20 years agoadded ares_cancel and ares_version
Daniel Stenberg [Sun, 7 Nov 2004 13:37:07 +0000 (13:37 +0000)]
added ares_cancel and ares_version

20 years agomention incompatibilities with ares
Daniel Stenberg [Tue, 26 Oct 2004 08:08:41 +0000 (08:08 +0000)]
mention incompatibilities with ares

20 years agoignore this
Daniel Stenberg [Sun, 24 Oct 2004 13:02:46 +0000 (13:02 +0000)]
ignore this

20 years agomaketgz now creates a ares_version.h.dist file with the given version data
Daniel Stenberg [Sun, 24 Oct 2004 13:02:09 +0000 (13:02 +0000)]
maketgz now creates a ares_version.h.dist file with the given version data
properly set, and the Makefile.am is now fixed to use that when building
a new package with make dist.

20 years ago1.2.1 release time
Daniel Stenberg [Wed, 20 Oct 2004 08:01:38 +0000 (08:01 +0000)]
1.2.1 release time

20 years agoremoved tabs and trailing whitespace from source
Daniel Stenberg [Wed, 6 Oct 2004 07:50:18 +0000 (07:50 +0000)]
removed tabs and trailing whitespace from source

20 years ago- Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
Daniel Stenberg [Tue, 28 Sep 2004 22:19:39 +0000 (22:19 +0000)]
- Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
  when they made Alpha's) uses /etc/svc.conf for the purpose fixed below for
  other OSes. He made c-ares check for and understand it if present.

- Now c-ares will use local host name lookup _before_ DNS resolving by default
  if nothing else is told.

20 years ago- Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
Daniel Stenberg [Sun, 26 Sep 2004 22:35:18 +0000 (22:35 +0000)]
- Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
  file to determine the sequence in which to search /etc/hosts and DNS.  So on
  systems where this order is defined by /etc/host.conf instead of a "lookup"
  entry in /etc/resolv.conf, C-ARES will always default to looking in DNS
  first, and /etc/hosts second.

  c-ares now looks at

  1) resolv.conf (for the "lookup" line);
  2) nsswitch.fon (for the "hosts:" line);
  3) host.conf (for the "order" line).

  First match wins.

20 years agoDominick Meglio host file path discovery patch for windows
Daniel Stenberg [Sun, 26 Sep 2004 18:20:58 +0000 (18:20 +0000)]
Dominick Meglio host file path discovery patch for windows

20 years agoignore more
Daniel Stenberg [Tue, 14 Sep 2004 21:31:06 +0000 (21:31 +0000)]
ignore more

20 years agofixed nasty warnings with gcc 3.3.
Gunter Knauf [Fri, 3 Sep 2004 18:51:36 +0000 (18:51 +0000)]
fixed nasty warnings with gcc 3.3.

20 years agomention Gisle's recent fixes
Daniel Stenberg [Mon, 30 Aug 2004 09:16:31 +0000 (09:16 +0000)]
mention Gisle's recent fixes

20 years agoRemoved ares_free_errmem.c from MSCV project files.
Gisle Vanem [Sun, 29 Aug 2004 15:40:17 +0000 (15:40 +0000)]
Removed ares_free_errmem.c from MSCV project files.
Fixed line-endings to CR-LF.

20 years agoMore patches for Watt-32 on Win32; don't include "nameser.h".
Gisle Vanem [Fri, 20 Aug 2004 14:10:44 +0000 (14:10 +0000)]
More patches for Watt-32 on Win32; don't include "nameser.h".

20 years agoNo WSAGetLastError() on Watt-32/DOS
Gisle Vanem [Fri, 20 Aug 2004 14:07:11 +0000 (14:07 +0000)]
No WSAGetLastError() on Watt-32/DOS

20 years agoNo <sys/uio.h> on DOS/Win32
Gisle Vanem [Fri, 20 Aug 2004 13:48:24 +0000 (13:48 +0000)]
No <sys/uio.h> on DOS/Win32

20 years agoChanges for Watt-32 on Windows. I've assumed Configure
Gisle Vanem [Fri, 20 Aug 2004 13:45:26 +0000 (13:45 +0000)]
Changes for Watt-32 on Windows. I've assumed Configure
sets the required HAVE_xx defines for non-DOS/Win targets.

20 years agoZLIB_ROOT not needed
Gisle Vanem [Thu, 19 Aug 2004 15:24:49 +0000 (15:24 +0000)]
ZLIB_ROOT not needed

20 years agoMy first CVS commit just to see if this works.
Gisle Vanem [Thu, 19 Aug 2004 15:16:40 +0000 (15:16 +0000)]
My first CVS commit just to see if this works.
BTW. Used eclipse IDE fo this, which really kicks ass.

20 years agomention Harshal Pradhan's windows fix
Daniel Stenberg [Fri, 13 Aug 2004 12:01:20 +0000 (12:01 +0000)]
mention Harshal Pradhan's windows fix

20 years agoHarshal Pradhan made minor syntax change to make this build with MSVC 7.1
Daniel Stenberg [Fri, 13 Aug 2004 12:00:33 +0000 (12:00 +0000)]
Harshal Pradhan made minor syntax change to make this build with MSVC 7.1

20 years agoignore more files
Daniel Stenberg [Tue, 10 Aug 2004 10:43:10 +0000 (10:43 +0000)]
ignore more files

20 years agovariable type fix
Daniel Stenberg [Thu, 29 Jul 2004 07:24:39 +0000 (07:24 +0000)]
variable type fix

20 years agoremoved C++ comment to please picky source checkers
Daniel Stenberg [Thu, 29 Jul 2004 07:19:27 +0000 (07:19 +0000)]
removed C++ comment to please picky source checkers

20 years ago--enable-debug builds static only, Gisle fixed a memory leak and more
Daniel Stenberg [Sat, 24 Jul 2004 21:51:43 +0000 (21:51 +0000)]
--enable-debug builds static only, Gisle fixed a memory leak and more

20 years agoGisle Vanem:
Daniel Stenberg [Sat, 24 Jul 2004 21:47:49 +0000 (21:47 +0000)]
Gisle Vanem:

Basically in loops like handle_errors(), 'query->next' was assigned a local
variable and then query was referenced after the memory was freed by
next_server(). I've changed that so next_server() and end_query() returns the
next query. So callers should use this ret-value.

The next problem was that 'server->tcp_buffer_pos' had a random value at entry
to 1st recv() (luckily causing Winsock to return ENOBUFS).

I've also added a ares_writev() for Windows to streamline the code
a bit more.

20 years ago--enable-debug now makes the lib built static only since otherwise we
Daniel Stenberg [Sat, 24 Jul 2004 21:22:46 +0000 (21:22 +0000)]
--enable-debug now makes the lib built static only since otherwise we
get problems

20 years agogenerate the new configure better
Daniel Stenberg [Sat, 24 Jul 2004 06:29:38 +0000 (06:29 +0000)]
generate the new configure better

20 years agonow generated by automake
Daniel Stenberg [Fri, 23 Jul 2004 18:34:21 +0000 (18:34 +0000)]
now generated by automake

20 years ago- Fixed a few variable return types for some system calls. Made configure
Daniel Stenberg [Thu, 22 Jul 2004 22:18:45 +0000 (22:18 +0000)]
- Fixed a few variable return types for some system calls. Made configure
  check for ssize_t to make it possible to use that when receiving the send()
  error code. This is necessary to prevent compiler warnings on some systems.

- Made configure create config.h, and all source files now include setup.h that
  might include the proper config.h (or a handicrafted alternative).

- Switched to 'ares_socket_t' type for sockets in ares, since Windows don't
  use 'int' for that.

- automake-ified and libool-ified c-ares. Now it builds libcares as a shared
  lib on most platforms if wanted. (This bloated the size of the release
  archive with another 200K!)

- Makefile.am now uses Makefile.inc for the c sources, h headers and man
  pages, to make it easier for other makefiles to use the exact same set of
  files.

- Adjusted 'maketgz' to use the new automake magic when building distribution
  archives.

20 years agominor cleanup.
Gunter Knauf [Sun, 11 Jul 2004 18:14:11 +0000 (18:14 +0000)]
minor cleanup.

20 years agoadded ifdef for NetWare to ares.h.
Gunter Knauf [Sun, 11 Jul 2004 08:30:23 +0000 (08:30 +0000)]
added ifdef for NetWare to ares.h.

20 years agomingw and netware makefiles added by Gunter Knauf
Daniel Stenberg [Tue, 6 Jul 2004 08:06:03 +0000 (08:06 +0000)]
mingw and netware makefiles added by Gunter Knauf

20 years agominor cosmetic fix.
Gunter Knauf [Mon, 5 Jul 2004 21:44:09 +0000 (21:44 +0000)]
minor cosmetic fix.

20 years agoadded MingW32 makefile.
Gunter Knauf [Mon, 5 Jul 2004 13:53:27 +0000 (13:53 +0000)]
added MingW32 makefile.

20 years agotry to relax linux build host detection.
Gunter Knauf [Mon, 5 Jul 2004 01:58:33 +0000 (01:58 +0000)]
try to relax linux build host detection.

20 years agoGünter Knauf made c-ares build and run on Novell Netware.
Daniel Stenberg [Sun, 4 Jul 2004 22:20:26 +0000 (22:20 +0000)]
Günter Knauf made c-ares build and run on Novell Netware.

20 years agoadded NetWare section for paths.
Gunter Knauf [Sun, 4 Jul 2004 21:36:32 +0000 (21:36 +0000)]
added NetWare section for paths.

20 years agoupdate to build both test apps.
Gunter Knauf [Sun, 4 Jul 2004 21:35:26 +0000 (21:35 +0000)]
update to build both test apps.

20 years agominor fix for compiling on Linux.
Gunter Knauf [Sat, 3 Jul 2004 22:25:37 +0000 (22:25 +0000)]
minor fix for compiling on Linux.

20 years agoadded few ifdefs to make it usable for NetWare.
Gunter Knauf [Sat, 3 Jul 2004 21:48:42 +0000 (21:48 +0000)]
added few ifdefs to make it usable for NetWare.

20 years agoadded NetWare makefile.
Gunter Knauf [Sat, 3 Jul 2004 21:44:32 +0000 (21:44 +0000)]
added NetWare makefile.

20 years agodjgpp fixes by Gisle
Daniel Stenberg [Thu, 1 Jul 2004 13:55:13 +0000 (13:55 +0000)]
djgpp fixes by Gisle

20 years agoGisle's win32-fix. 'errno' is not used for errors when socket() fails on
Daniel Stenberg [Thu, 1 Jul 2004 13:54:24 +0000 (13:54 +0000)]
Gisle's win32-fix. 'errno' is not used for errors when socket() fails on
Windows.

20 years agoGisle added makefile for djgpp builds
Daniel Stenberg [Thu, 1 Jul 2004 13:53:13 +0000 (13:53 +0000)]
Gisle added makefile for djgpp builds

20 years agoGisle's djgpp magic
Daniel Stenberg [Thu, 1 Jul 2004 06:59:43 +0000 (06:59 +0000)]
Gisle's djgpp magic

20 years agoGisle Vanem made this build fine with djgpp and the Watt-32 stack.
Daniel Stenberg [Thu, 1 Jul 2004 06:58:47 +0000 (06:58 +0000)]
Gisle Vanem made this build fine with djgpp and the Watt-32 stack.

20 years agoprevent compiler warnings on non-win32 platforms
Daniel Stenberg [Mon, 14 Jun 2004 10:45:30 +0000 (10:45 +0000)]
prevent compiler warnings on non-win32 platforms

20 years agoGisle Vanem's init patch for Windows
Daniel Stenberg [Thu, 10 Jun 2004 13:11:32 +0000 (13:11 +0000)]
Gisle Vanem's init patch for Windows

20 years agofix
Daniel Stenberg [Tue, 8 Jun 2004 21:26:03 +0000 (21:26 +0000)]
fix

20 years agoJames Bursa fixed a RISC OS init issue, removed trailing whitespace
Daniel Stenberg [Tue, 8 Jun 2004 21:25:11 +0000 (21:25 +0000)]
James Bursa fixed a RISC OS init issue, removed trailing whitespace

20 years agofree() allocated memory when the ares search can't be made
Daniel Stenberg [Thu, 27 May 2004 07:10:36 +0000 (07:10 +0000)]
free() allocated memory when the ares search can't be made