platform/upstream/c-ares.git
14 years agoAdded copyright string to ares_version.h and make use of it in other files.
Guenter Knauf [Sun, 8 Aug 2010 09:18:38 +0000 (11:18 +0200)]
Added copyright string to ares_version.h and make use of it in other files.

14 years agoBlock created ares_build.h for NetWare to avoid usage from other platforms.
Guenter Knauf [Sun, 8 Aug 2010 08:26:04 +0000 (10:26 +0200)]
Block created ares_build.h for NetWare to avoid usage from other platforms.

14 years agoFix to overwrite default libname.
Guenter Knauf [Sat, 7 Aug 2010 16:35:47 +0000 (18:35 +0200)]
Fix to overwrite default libname.

14 years agoSome more Watcom makefile massage ...
Guenter Knauf [Fri, 6 Aug 2010 01:53:03 +0000 (03:53 +0200)]
Some more Watcom makefile massage ...

14 years agoSome more Watcom makefile massage ...
Guenter Knauf [Fri, 6 Aug 2010 01:48:25 +0000 (03:48 +0200)]
Some more Watcom makefile massage ...

14 years agosock-addr-storage: Detect and deal with lack of .ss_family member.
Ben Greear [Wed, 4 Aug 2010 14:42:01 +0000 (07:42 -0700)]
sock-addr-storage:  Detect and deal with lack of .ss_family member.

AIX, at least, does not have sockaddr_storage.ss_family member.
Detect this in the configure logic and use proper #ifdefs in the
ares_process logic.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Tested-by: Tor Arntsen <tor@spacetec.no>
14 years agoAdded Watcom makefile based on libcurl's Makefile.Watcom.
Guenter Knauf [Mon, 2 Aug 2010 23:21:56 +0000 (01:21 +0200)]
Added Watcom makefile based on libcurl's Makefile.Watcom.

14 years agotypo: Fix compile bug for platforms that don't have sockaddr_storage.
Ben Greear [Sat, 31 Jul 2010 19:21:08 +0000 (12:21 -0700)]
typo:  Fix compile bug for platforms that don't have sockaddr_storage.

Bug was introduced by me in previous commit.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoFix aliasing warning in gcc 4.4.4 (at least).
Ben Greear [Sat, 31 Jul 2010 14:10:23 +0000 (07:10 -0700)]
Fix aliasing warning in gcc 4.4.4 (at least).

Should be no functional change, though the code gets a bit
ugglier.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoares_set_servers_csv: use ISDIGIT
Daniel Stenberg [Fri, 30 Jul 2010 22:15:38 +0000 (00:15 +0200)]
ares_set_servers_csv: use ISDIGIT

The IS*() set of macros are preferred to the regular is*() functions as
they help us avoid the most common pitfalls.

14 years agocast arg to isdigit to int
Ben Greear [Fri, 30 Jul 2010 22:11:54 +0000 (15:11 -0700)]
cast arg to isdigit to int

Looks like it might silence a warning on Netware build.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoremove all uses of uint32_t
Ben Greear [Fri, 30 Jul 2010 17:09:57 +0000 (10:09 -0700)]
remove all uses of uint32_t

Previous fix forgot a few.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agofix signed v/s unsigned casts warning in ares_gethostbyaddr.c
Ben Greear [Fri, 30 Jul 2010 16:30:49 +0000 (09:30 -0700)]
fix signed v/s unsigned casts warning in ares_gethostbyaddr.c

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agolocal-bind-fixup: Fix inet_pton warning.
Ben Greear [Fri, 30 Jul 2010 07:10:16 +0000 (00:10 -0700)]
local-bind-fixup:  Fix inet_pton warning.

Conditionally include <arpa/inet.h> for inet_pton
headers.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agobuild: Enable compiling with -Werror.
Ben Greear [Fri, 30 Jul 2010 06:43:02 +0000 (23:43 -0700)]
build:  Enable compiling with -Werror.

This helps find compile warnings because they simply break
the build.

To use:
./configure --enable-warnings --enable-werror

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoipv6: Fix some build issues related to the local-bind feature.
Ben Greear [Thu, 29 Jul 2010 15:24:59 +0000 (08:24 -0700)]
ipv6: Fix some build issues related to the local-bind feature.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoReplaced uint32_t with unsigned int to fix broken builds on a couple of platforms.
Guenter Knauf [Thu, 29 Jul 2010 21:27:46 +0000 (23:27 +0200)]
Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms.

14 years agolocal-bind: Support binding to local interface/IPs
Ben Greear [Sun, 18 Jul 2010 21:58:39 +0000 (23:58 +0200)]
local-bind:  Support binding to local interface/IPs

Add 3 new functions to set the local binding for the out-going
socket connection, and add ares_set_servers_csv() to set a
list of servers at once as a comma-separated string.

Signed-off-by: Ben Greear <greearb@candelatech.com>
14 years agoversion: now start on 1.7.4
Daniel Stenberg [Fri, 11 Jun 2010 15:03:41 +0000 (17:03 +0200)]
version: now start on 1.7.4

14 years agofix memory leak in ares_getnameinfo
Andrew C. Morrow [Wed, 16 Jun 2010 02:18:24 +0000 (10:18 +0800)]
fix memory leak in ares_getnameinfo

14 years agochangelogs: updated for 1.7.3
Daniel Stenberg [Fri, 11 Jun 2010 14:58:28 +0000 (16:58 +0200)]
changelogs: updated for 1.7.3

14 years agoinit: allow c-ares to work on Android OS
BogDan Vatra [Fri, 11 Jun 2010 08:47:00 +0000 (10:47 +0200)]
init: allow c-ares to work on Android OS

14 years agochangelog: fill in the 1.7.2 changes
Daniel Stenberg [Fri, 11 Jun 2010 08:37:37 +0000 (10:37 +0200)]
changelog: fill in the 1.7.2 changes

14 years agoadded another pdf to ignore
Daniel Stenberg [Fri, 11 Jun 2010 06:23:14 +0000 (08:23 +0200)]
added another pdf to ignore

14 years agoadd ares_parse_mx_reply.c to VS dsp file
Yang Tse [Thu, 10 Jun 2010 23:56:12 +0000 (01:56 +0200)]
add ares_parse_mx_reply.c to VS dsp file

14 years agotarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST
Daniel Stenberg [Thu, 10 Jun 2010 21:22:59 +0000 (23:22 +0200)]
tarball: add $(CSOURCES) $(HHEADERS) to EXTRA_DIST

It's not clear to me why we need this, but we apparently may
otherwise not get all files bundled in the dist tarball.

14 years agoversion: start working on 1.7.3
Daniel Stenberg [Thu, 10 Jun 2010 09:47:23 +0000 (11:47 +0200)]
version: start working on 1.7.3

14 years agoRELEASE-NOTES: 1.7.2 details added
Daniel Stenberg [Thu, 10 Jun 2010 09:43:57 +0000 (11:43 +0200)]
RELEASE-NOTES: 1.7.2 details added

14 years agoares_init: Last, not first instance of domain or search should win
Jakub Hrozek [Mon, 31 May 2010 14:32:54 +0000 (16:32 +0200)]
ares_init: Last, not first instance of domain or search should win

14 years agostyle: make code less than 80 columns wide
Daniel Stenberg [Wed, 26 May 2010 21:16:28 +0000 (23:16 +0200)]
style: make code less than 80 columns wide

14 years agoimprove alternative definition of bool to use enum instead of unsigned char
Tor Arntsen [Mon, 31 May 2010 12:08:35 +0000 (14:08 +0200)]
improve alternative definition of bool to use enum instead of unsigned char

14 years agofix VS2010 compiler warnings
Yang Tse [Mon, 31 May 2010 11:53:37 +0000 (13:53 +0200)]
fix VS2010 compiler warnings

14 years agoadded ares_parse_mx_reply
Jérémy Lal [Sat, 17 Apr 2010 22:29:26 +0000 (00:29 +0200)]
added ares_parse_mx_reply

14 years agorepair the file mode
Daniel Stenberg [Sat, 27 Mar 2010 18:43:33 +0000 (19:43 +0100)]
repair the file mode

14 years agoremove all $Id$ lines
Daniel Stenberg [Sat, 27 Mar 2010 18:41:32 +0000 (19:41 +0100)]
remove all $Id$ lines

14 years agoremove all .cvsignore files
Daniel Stenberg [Sat, 27 Mar 2010 18:36:38 +0000 (19:36 +0100)]
remove all .cvsignore files

14 years agospell fix
Daniel Stenberg [Thu, 25 Mar 2010 13:06:26 +0000 (14:06 +0100)]
spell fix

reported by Gregor Jasny on the mailing list

14 years agoFix a couple of typos and grammar nits.
Peter Pentchev [Thu, 25 Mar 2010 11:48:39 +0000 (12:48 +0100)]
Fix a couple of typos and grammar nits.

14 years agoignore the GPG signature files too
Daniel Stenberg [Tue, 23 Mar 2010 13:56:21 +0000 (14:56 +0100)]
ignore the GPG signature files too

14 years agostart the journey towards 1.7.2
Daniel Stenberg [Tue, 23 Mar 2010 13:56:04 +0000 (14:56 +0100)]
start the journey towards 1.7.2

14 years agono longer CVS tagging
Daniel Stenberg [Tue, 23 Mar 2010 13:49:52 +0000 (14:49 +0100)]
no longer CVS tagging

14 years agoignore generated PDFs
Daniel Stenberg [Tue, 23 Mar 2010 13:49:41 +0000 (14:49 +0100)]
ignore generated PDFs

14 years ago1.7.1
Daniel Stenberg [Tue, 23 Mar 2010 13:47:56 +0000 (14:47 +0100)]
1.7.1

14 years agomade README the primary readme file
Daniel Stenberg [Tue, 23 Mar 2010 13:12:50 +0000 (14:12 +0100)]
made README the primary readme file

... and did README.cares to contain a historic reason etc.

14 years agos/CVS/git
Daniel Stenberg [Tue, 23 Mar 2010 13:04:26 +0000 (14:04 +0100)]
s/CVS/git

14 years agogit now, not CVS
Daniel Stenberg [Tue, 23 Mar 2010 13:00:48 +0000 (14:00 +0100)]
git now, not CVS

14 years agoignore lots of generated files
Daniel Stenberg [Tue, 23 Mar 2010 12:51:47 +0000 (13:51 +0100)]
ignore lots of generated files

14 years agoFix warnings for clang
Daniel Johnson [Tue, 23 Mar 2010 12:43:34 +0000 (13:43 +0100)]
Fix warnings for clang

14 years agoreplaced intel compiler option -no-ansi-alias with -fno-strict-aliasing
Yang Tse [Wed, 17 Mar 2010 10:44:28 +0000 (10:44 +0000)]
replaced intel compiler option -no-ansi-alias with -fno-strict-aliasing

14 years agoupdate outdated serial number
Yang Tse [Wed, 17 Mar 2010 10:39:07 +0000 (10:39 +0000)]
update outdated serial number

14 years agofix compiler warning
Yang Tse [Thu, 11 Mar 2010 18:53:42 +0000 (18:53 +0000)]
fix compiler warning

14 years agowatt32 compilation fix
Yang Tse [Tue, 9 Mar 2010 17:59:35 +0000 (17:59 +0000)]
watt32 compilation fix

14 years agoAdded another VS10 version string
Yang Tse [Sat, 6 Mar 2010 10:52:56 +0000 (10:52 +0000)]
Added another VS10 version string

14 years agofix line break
Yang Tse [Sat, 6 Mar 2010 02:33:25 +0000 (02:33 +0000)]
fix line break

14 years agoremoved usage of 's6_addr', fixing compilation issue triggered with no
Yang Tse [Sat, 6 Mar 2010 01:23:09 +0000 (01:23 +0000)]
removed usage of 's6_addr', fixing compilation issue triggered with no
longer using 'in6_addr' but only our 'ares_in6_addr' struct

14 years agoDaniel Johnson provided fixes for building with the clang compiler
Daniel Stenberg [Fri, 5 Mar 2010 22:53:31 +0000 (22:53 +0000)]
Daniel Johnson provided fixes for building with the clang compiler

14 years agoAdded IPv6 name servers support
Yang Tse [Fri, 5 Mar 2010 20:01:47 +0000 (20:01 +0000)]
Added IPv6 name servers support

14 years agoOps!. Readded ares_nowarn.h.
Gisle Vanem [Fri, 5 Mar 2010 18:45:17 +0000 (18:45 +0000)]
Ops!. Readded ares_nowarn.h.

14 years agoAdded ares_nowarn.c.
Gisle Vanem [Fri, 5 Mar 2010 18:21:56 +0000 (18:21 +0000)]
Added ares_nowarn.c.

14 years agoAdded SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
Yang Tse [Sun, 28 Feb 2010 02:51:35 +0000 (02:51 +0000)]
Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems

14 years agoAdded ares_nowarn.* to VC6 project file
Yang Tse [Sun, 28 Feb 2010 02:50:51 +0000 (02:50 +0000)]
Added ares_nowarn.* to VC6 project file

14 years agoAdded SIZEOF_INT definition
Yang Tse [Fri, 26 Feb 2010 17:48:18 +0000 (17:48 +0000)]
Added SIZEOF_INT definition

14 years agofix compiler warning
Yang Tse [Fri, 26 Feb 2010 16:42:33 +0000 (16:42 +0000)]
fix compiler warning

14 years agofix compiler warning
Yang Tse [Tue, 23 Feb 2010 18:46:27 +0000 (18:46 +0000)]
fix compiler warning

14 years agofix compiler warning
Yang Tse [Sun, 21 Feb 2010 19:59:09 +0000 (19:59 +0000)]
fix compiler warning

14 years agoares_reinit()
Daniel Stenberg [Wed, 17 Feb 2010 22:15:23 +0000 (22:15 +0000)]
ares_reinit()

- To allow an app to force a re-read of /etc/resolv.conf etc, pretty much
  like the res_init() resolver function offers

14 years ago- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
Daniel Stenberg [Thu, 28 Jan 2010 22:03:48 +0000 (22:03 +0000)]
- Tommie Gannert pointed out a silly bug in ares_process_fd() since it didn't
  check for broken connections like ares_process() did. Based on that, I
  merged the two functions into a single generic one with two front-ends.

14 years agoVMS specific preprocessor symbol checking adjustments
Yang Tse [Wed, 30 Dec 2009 17:59:56 +0000 (17:59 +0000)]
VMS specific preprocessor symbol checking adjustments

14 years agoMention last changes
Yang Tse [Tue, 29 Dec 2009 02:32:12 +0000 (02:32 +0000)]
Mention last changes

14 years ago- Fix configure_socket() to use ares_socket_t instead of int data type.
Yang Tse [Tue, 29 Dec 2009 02:04:17 +0000 (02:04 +0000)]
- Fix configure_socket() to use ares_socket_t instead of int data type.

14 years ago- Where run-time error checks enabling compiler option /GZ was used it is now
Yang Tse [Tue, 29 Dec 2009 01:51:57 +0000 (01:51 +0000)]
- Where run-time error checks enabling compiler option /GZ was used it is now
  replaced with equivalent /RTCsu for Visual Studio 2003 and newer versions.

- Compiler option /GX is now replaced with equivalent /EHsc for all versions.

14 years ago- Ingmar Runge noticed that Windows config-win32.h configuration file
Yang Tse [Mon, 21 Dec 2009 16:55:39 +0000 (16:55 +0000)]
- Ingmar Runge noticed that Windows config-win32.h configuration file
  did not include a definition for HAVE_CLOSESOCKET which resulted in
  function close() being inappropriately used to close sockets.

14 years agostart working on 1.7.1
Daniel Stenberg [Mon, 30 Nov 2009 22:39:04 +0000 (22:39 +0000)]
start working on 1.7.1

14 years agoPreserve empty line following last target
Yang Tse [Fri, 27 Nov 2009 05:24:44 +0000 (05:24 +0000)]
Preserve empty line following last target

14 years ago- Larry Lansing fixed ares_parse_srv_reply to properly parse replies
Yang Tse [Thu, 26 Nov 2009 01:21:21 +0000 (01:21 +0000)]
- Larry Lansing fixed ares_parse_srv_reply to properly parse replies
  which might contain non-SRV answers, skipping over potential non-SRV
  ones such as CNAMEs.

14 years agoWhen using icc, compile with -fpic and link with intel dynamic libraries.
Yang Tse [Tue, 24 Nov 2009 16:12:23 +0000 (16:12 +0000)]
When using icc, compile with -fpic and link with intel dynamic libraries.

14 years agoAdded 'currently' in italics to insist on transient situation.
Yang Tse [Tue, 24 Nov 2009 10:08:45 +0000 (10:08 +0000)]
Added 'currently' in italics to insist on transient situation.

14 years agoFix language
Yang Tse [Tue, 24 Nov 2009 09:48:32 +0000 (09:48 +0000)]
Fix language

14 years agoDaniel wants upcoming release to be 1.7.0
Yang Tse [Mon, 23 Nov 2009 12:03:32 +0000 (12:03 +0000)]
Daniel wants upcoming release to be 1.7.0

14 years agoMention last changes
Yang Tse [Mon, 23 Nov 2009 11:35:53 +0000 (11:35 +0000)]
Mention last changes

14 years ago- Removed from external interface preprocessor symbol definition for
Yang Tse [Mon, 23 Nov 2009 11:26:29 +0000 (11:26 +0000)]
- Removed from external interface preprocessor symbol definition for
  CARES_HAVE_ARES_FREE_DATA. Current functionality of ares_free_data()
  makes it unnecessary.

14 years agoAdded README.msvc
Yang Tse [Mon, 23 Nov 2009 11:07:16 +0000 (11:07 +0000)]
Added README.msvc

14 years agoChanged c-ares naming conventions when using MSVC as described in README.msvc
Yang Tse [Mon, 23 Nov 2009 11:05:47 +0000 (11:05 +0000)]
Changed c-ares naming conventions when using MSVC as described in README.msvc

14 years ago- Mention other recent changes
Yang Tse [Mon, 23 Nov 2009 01:54:55 +0000 (01:54 +0000)]
- Mention other recent changes

14 years ago- Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
Yang Tse [Mon, 23 Nov 2009 01:24:17 +0000 (01:24 +0000)]
- Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
  ares_addr6ttl in order to prevent name space pollution, along with
  necessary changes to code base and man pages.This change does not break
  ABI, there is no need to recompile existing applications. But existing
  applications using these structs with the old name will need source code
  adjustments when recompiled using c-ares 1.6.1.

14 years ago- Jakub Hrozek fixed more function prototypes in man pages to sync them
Yang Tse [Mon, 23 Nov 2009 00:57:50 +0000 (00:57 +0000)]
- Jakub Hrozek fixed more function prototypes in man pages to sync them
  with the ones declared in ares.h

14 years agoMake configure remove the ares_build.h file included in distribution tarballs.
Yang Tse [Sun, 22 Nov 2009 05:31:31 +0000 (05:31 +0000)]
Make configure remove the ares_build.h file included in distribution tarballs.

14 years agoFix macro redefinition.
Yang Tse [Sun, 22 Nov 2009 03:51:07 +0000 (03:51 +0000)]
Fix macro redefinition.

14 years agoFix name space pollution.
Yang Tse [Sun, 22 Nov 2009 03:41:26 +0000 (03:41 +0000)]
Fix name space pollution.

14 years agoAllow using different extra import libraries for debug and release builds.
Yang Tse [Sun, 22 Nov 2009 03:40:42 +0000 (03:40 +0000)]
Allow using different extra import libraries for debug and release builds.

14 years agoAdd manifest stuff to msvc makefile
Yang Tse [Sat, 21 Nov 2009 13:28:07 +0000 (13:28 +0000)]
Add manifest stuff to msvc makefile

14 years agoSync man page with reality
Yang Tse [Fri, 20 Nov 2009 14:15:05 +0000 (14:15 +0000)]
Sync man page with reality

14 years agoAdd missing external API decoration for ares_set_socket_callback()
Yang Tse [Fri, 20 Nov 2009 14:11:06 +0000 (14:11 +0000)]
Add missing external API decoration for ares_set_socket_callback()

14 years agoAdd ares_free_data() man page.
Yang Tse [Fri, 20 Nov 2009 13:02:41 +0000 (13:02 +0000)]
Add ares_free_data() man page.

14 years ago- Provide in external interface preprocessor symbol definitions for
Yang Tse [Fri, 20 Nov 2009 13:01:35 +0000 (13:01 +0000)]
- Provide in external interface preprocessor symbol definitions for
  CARES_HAVE_ARES_FREE_DATA as an indication of function availability.

14 years agoRemove typecast
Yang Tse [Fri, 20 Nov 2009 09:57:25 +0000 (09:57 +0000)]
Remove typecast

14 years agoFix comment
Yang Tse [Fri, 20 Nov 2009 09:54:15 +0000 (09:54 +0000)]
Fix comment

14 years agoAdd ares_data.c and ares_data.h
Yang Tse [Fri, 20 Nov 2009 09:14:37 +0000 (09:14 +0000)]
Add ares_data.c and ares_data.h

14 years agoJakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
Yang Tse [Fri, 20 Nov 2009 09:06:33 +0000 (09:06 +0000)]
Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
to return a linked lists of results. These were also modified to internally
use the ares_data memory struct and as such its result must be free'ed with
ares_free_data().

14 years agoInitial support for the generic ares_free_data() function that will allow
Yang Tse [Fri, 20 Nov 2009 08:50:03 +0000 (08:50 +0000)]
Initial support for the generic ares_free_data() function that will allow
applications to free memory allocated and returned by some c-ares funtions.