platform/upstream/c-ares.git
2 years agoUpgrade to 1.18.1 23/269123/1 tizen submit/tizen/20220111.083250
Seonah Moon [Mon, 10 Jan 2022 05:23:36 +0000 (14:23 +0900)]
Upgrade to 1.18.1

Change-Id: I02b6054b19a2e52b3e2a1a34cb091713f946f645

2 years agoImported Upstream version 1.18.1 21/269121/1 upstream/1.18.1
Seonah Moon [Mon, 10 Jan 2022 04:52:00 +0000 (13:52 +0900)]
Imported Upstream version 1.18.1

Change-Id: I5e47fe8a8445aff4c3382d9f334bd8a976ae15dd

3 years agoUpgrade to 1.17.1 25/249625/1
Seonah Moon [Tue, 15 Dec 2020 11:08:38 +0000 (20:08 +0900)]
Upgrade to 1.17.1

Change-Id: Id1b2ca93eef1735ec24fd44cc69824232a504972

3 years agoImported Upstream version 1.17.1 23/249623/1 upstream/1.17.1
Seonah Moon [Tue, 15 Dec 2020 10:56:19 +0000 (19:56 +0900)]
Imported Upstream version 1.17.1

Change-Id: Ifb18ec521bbeaf8bac560e0588657f136ca93e5d

7 years agoares_parse_naptr_reply: check sufficient data 91/142691/1
Jiung [Mon, 7 Aug 2017 04:56:32 +0000 (13:56 +0900)]
ares_parse_naptr_reply: check sufficient data

Description:
https://github.com/c-ares/c-ares/commit/9478908a490a6bf009ba58d81de8c1d06d50a117
ares_parse_naptr_reply: check sufficient data

Check that there is enough data for the required elements
of an NAPTR record (2 int16, 3 bytes for string lengths)
before processing a record.

https://github.com/c-ares/c-ares/commit/18ea99693d63f957ecb670045adbd2c1da8a4641
ares_parse_naptr_reply: make buffer length check more accurate
9478908 introduced a length check
for records parsed by `ares_parse_naptr_reply()`. However, that
function is designed to parse replies which also contain non-NAPTR
records; for A records, the `rr_len > 7` check will fail as there
are only 4 bytes of payload.
In particular, parsing ANY replies for NAPTR records was broken
by that patch.

Fix that by moving the check into the case in which it is already
known that the record is a NAPTR record.

Change-Id: I7ca730c0367ff1cc416e67a3a99021438d237666

7 years agoDisable building tests 83/96483/1
Yu Jiung [Wed, 9 Nov 2016 04:56:33 +0000 (13:56 +0900)]
Disable building tests

Change-Id: Id873fdec5e3e0c5e1f185a0d3abc5cca7acdaa9e

7 years agoRemove unused files and update spec file version 28/96428/1
Yu Jiung [Wed, 9 Nov 2016 02:30:42 +0000 (11:30 +0900)]
Remove unused files and update spec file version

Change-Id: I55aba1ebcb3cf685b5f61f3608b0601c1f210290

7 years agoMerge branch 'upstream' into tizen 27/96427/1
Yu Jiung [Wed, 9 Nov 2016 02:24:14 +0000 (11:24 +0900)]
Merge branch 'upstream' into tizen

Change-Id: If7b14a6bca2079b3cc58a0432a9eb05a41ea5ceb

7 years agoImported Upstream version 1.12.0 19/96419/1 upstream/1.12.0
Yu Jiung [Wed, 9 Nov 2016 02:23:06 +0000 (11:23 +0900)]
Imported Upstream version 1.12.0

Change-Id: I6a571bddd24d1cb7d64b74bc66e878ccba2ce638

7 years agoMerge branch 'upstream' into tizen 26/96426/1
Yu Jiung [Wed, 9 Nov 2016 02:22:24 +0000 (11:22 +0900)]
Merge branch 'upstream' into tizen

Conflicts:
ares_set_local_dev.3
ares_set_servers_csv.3

Change-Id: I1da63c678df60657e903fd4917f07784bd37ce94

7 years agoMerge branch 'upstream' into tizen 25/96425/1
Yu Jiung [Wed, 9 Nov 2016 02:16:20 +0000 (11:16 +0900)]
Merge branch 'upstream' into tizen

Change-Id: If6a93118ede3c8d2c51e6c76df37b2fdf0df49ed

7 years agoImported Upstream version 1.11.0 18/96418/1 upstream/1.11.0
Yu Jiung [Wed, 9 Nov 2016 02:18:45 +0000 (11:18 +0900)]
Imported Upstream version 1.11.0

Change-Id: I238c24b75a10aa902d9bc4076ed68b76b5e2a750

7 years agoImported Upstream version 1.10.0 17/96417/1
Yu Jiung [Wed, 9 Nov 2016 02:15:33 +0000 (11:15 +0900)]
Imported Upstream version 1.10.0

Change-Id: Ic7f3b0ad7dca62abe4cfa642a5eb5e190eb7a8c9

7 years agoRemove tizen specific changes to update upstream 24/96424/1
Yu Jiung [Wed, 9 Nov 2016 02:15:14 +0000 (11:15 +0900)]
Remove tizen specific changes to update upstream

Change-Id: I3d785ffd2f334386561f59d076fdd5610626605b

8 years agoCVE-2016-5180 60/94460/1
hyunuktak [Mon, 31 Oct 2016 04:35:37 +0000 (13:35 +0900)]
CVE-2016-5180

ares_create_query single byte out of buffer write

Change-Id: I42baed5e1354095b27eab3fa90dc7433f6ba8362
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
8 years agoModified license using SPDX license identifier 96/55096/1
taesub.kim [Tue, 22 Dec 2015 01:06:54 +0000 (10:06 +0900)]
Modified license using SPDX license identifier

Change-Id: I295f6c8928965973ccf3dfb173d1d0b43a2edc5f
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agopackaging: Bump to 1.10.0 accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable sandbox/pcoval/latest tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/3.0/base/20161028.103013 accepted/tizen/base/20151223.052335 accepted/tizen/common/20141209.182138 accepted/tizen/ivi/20141225.103500 accepted/tizen/mobile/20150304.131056 accepted/tizen/tv/20150324.014512 accepted/tizen/wearable/20150129.005743 submit/tizen_3.0_base/20161028.062323 submit/tizen_base/20151223.111111 submit/tizen_base/20151223.111112 submit/tizen_common/20141208.142121 submit/tizen_common/20141208.144953 submit/tizen_common/20141209.092539 submit/tizen_common/20141209.111242 submit/tizen_common/20141209.112152 submit/tizen_common/20141209.172751 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20141225.222222 submit/tizen_mobile/20150116.000001 submit/tizen_mobile/20150213.000000 submit/tizen_mobile/20150223.000000 submit/tizen_mobile/20150302.000000 submit/tizen_tv/20150119.000001 submit/tizen_tv/20150320.000001 submit/tizen_wearable/20150116.000000 submit/tizen_wearable/20150127.000001 submit/tizen_wearable/20150128.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
Philippe Coval [Mon, 8 Dec 2014 12:19:20 +0000 (13:19 +0100)]
packaging: Bump to 1.10.0

Skip: 8c8d79c
Bug-Tizen: TC-2003/part
Change-Id: Iaaa0144a08e2d5df10850af83246ff03887d3c6b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
9 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 18:08:34 +0000 (21:08 +0300)]
resetting manifest requested domain to floor

9 years agoFixed packaging per rpmlint
Anas Nashif [Thu, 7 Feb 2013 00:39:42 +0000 (16:39 -0800)]
Fixed packaging per rpmlint

9 years agopackaging: Intitial packaging for Tizen
Anas Nashif [Tue, 30 Oct 2012 20:58:58 +0000 (13:58 -0700)]
packaging: Intitial packaging for Tizen

Change-Id: Iaba7c263da4ef05284cbd4f159a14911f78a146b
Author:    Anas Nashif <anas.nashif@intel.com>

9 years agodownstream: ocloexec
Anas Nashif [Tue, 30 Oct 2012 20:57:52 +0000 (13:57 -0700)]
downstream: ocloexec

Change-Id: Ie10c7a5414603781405af5b7a094c9cc359e2465
Author:    Anas Nashif <anas.nashif@intel.com>

11 years agoRELEASE-NOTES: two more bug fixes sandbox/pcoval/upstream upstream/1.10.0
Daniel Stenberg [Sun, 12 May 2013 13:35:42 +0000 (15:35 +0200)]
RELEASE-NOTES: two more bug fixes

11 years agoares_set_servers_csv: fixed IPv6 address parsing
Keith Shaw [Fri, 10 May 2013 00:45:37 +0000 (17:45 -0700)]
ares_set_servers_csv: fixed IPv6 address parsing

Fixed bug that caused the last part of an IPv6 address to be parsed as
the port number when the last part is all numeric.

11 years agonroff: fix two syntax mistakes
Daniel Stenberg [Thu, 2 May 2013 21:11:13 +0000 (23:11 +0200)]
nroff: fix two syntax mistakes

ares_parse_a_reply and ares_parse_aaaa_reply both had two \fB instead of
\fP

Reported-by: Alexander Klauer
Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-03/0010.shtml

11 years agobuild: fix build on msvc11
Alex Loukissas [Thu, 2 May 2013 20:46:48 +0000 (22:46 +0200)]
build: fix build on msvc11

11 years agoMakefile.am: increment -version-info for 1.10.0 release
Daniel Stenberg [Tue, 23 Apr 2013 14:44:56 +0000 (16:44 +0200)]
Makefile.am: increment -version-info for 1.10.0 release

11 years agoREADME: remove unnecessary comment
Daniel Stenberg [Mon, 22 Apr 2013 22:33:24 +0000 (00:33 +0200)]
README: remove unnecessary comment

11 years agoares_version.h: copyright end range year is now 2013
Daniel Stenberg [Mon, 22 Apr 2013 22:32:51 +0000 (00:32 +0200)]
ares_version.h: copyright end range year is now 2013

11 years agoRELEASE-NOTES: synced with fb0737f3a0a1c37
Daniel Stenberg [Mon, 22 Apr 2013 22:31:14 +0000 (00:31 +0200)]
RELEASE-NOTES: synced with fb0737f3a0a1c37

11 years agoares_parse_aaaa_reply: Plug memory leak
Paul Saab [Wed, 10 Apr 2013 03:40:13 +0000 (20:40 -0700)]
ares_parse_aaaa_reply: Plug memory leak

This change is similar to ares_parse_a_reply.c in commit
bffd67f16a8f42fe6dbf79ab2e39d92eea05c8a6

11 years agoares_parse_txt_reply: return a ares_txt_reply node for each sub-string
Patrick Valsecchi [Mon, 22 Apr 2013 21:32:02 +0000 (23:32 +0200)]
ares_parse_txt_reply: return a ares_txt_reply node for each sub-string

Previously, the function would wrongly return all substrings merged into
one.

11 years agolibrary init: documentation update
Alexander Klauer [Mon, 18 Mar 2013 08:23:30 +0000 (09:23 +0100)]
library init: documentation update

This commit updates the documentation of ares_library_init() and
ares_library_cleanup() with regard to the newly introduced reference
counting of initializations and deinitializations.

11 years agolibrary init: be recursive
Alexander Klauer [Thu, 14 Mar 2013 14:26:14 +0000 (15:26 +0100)]
library init: be recursive

Previously, a single call to ares_library_cleanup() would deinitialise
the c-ares library, regardless of how many times ares_library_init() was
called. This behaviour may cause problems in programs linking two or
more libraries which, in turn, use c-ares. The present commit fixes this
problem, deinitializing the library only after a number of calls to
ares_library_cleanup() matching the number of calls to
ares_library_init().

11 years agoprotocol parsing: check input data stricter
Patrick Valsecchi [Mon, 15 Apr 2013 20:28:01 +0000 (22:28 +0200)]
protocol parsing: check input data stricter

... so that bad length fields aren't blindly accepted

Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-04/0016.shtml

11 years agoCreate ares_build.h when buidling from Git.
Guenter Knauf [Thu, 11 Apr 2013 12:08:51 +0000 (14:08 +0200)]
Create ares_build.h when buidling from Git.

11 years agoAdded -DCARES_STATICLIB to CFLAGS.
Guenter Knauf [Tue, 9 Apr 2013 15:47:56 +0000 (17:47 +0200)]
Added -DCARES_STATICLIB to CFLAGS.

Currently this static makefile does only support building the
static library libcares.a.

11 years ago.gitignore: ignore patch files
Alexander Klauer [Mon, 8 Apr 2013 09:48:46 +0000 (11:48 +0200)]
.gitignore: ignore patch files

This commit adds a line to .gitignore to the effect that patch files
generated by 'git format-patch' are excluded from the repository.

11 years agoares_destroy() documentation: no new requests
Alexander Klauer [Mon, 8 Apr 2013 09:48:45 +0000 (11:48 +0200)]
ares_destroy() documentation: no new requests

Clarify that no new requests may be added to a resolver channel that is
currently being destroyed.

11 years agoDocumentation: properly document ARES_ECANCELLED
Alexander Klauer [Mon, 8 Apr 2013 09:48:44 +0000 (11:48 +0200)]
Documentation: properly document ARES_ECANCELLED

This commit clarifies the behaviour of ares_cancel() with respect to
callbacks and adds missing documentation of ARES_ECANCELLED to the man
pages of the affected functions.

11 years agoares_cancel(): cancel requests safely
Alexander Klauer [Mon, 8 Apr 2013 09:48:43 +0000 (11:48 +0200)]
ares_cancel(): cancel requests safely

An invocation of ares_cancel() walks through the request list, calling
the callbacks of all pending requests on a channel. Previously, if such
a callback added a new request to the channel, the request list might
not end up empty, causing an abort by assertion failure. The present
commit ensures that precisely all requests present upon entry of
ares_cancel() are cancelled, and that adding new requests through
callbacks is safe.

11 years agoares.h: stricter CARES_EXTERN linkage decorations logic
Yang Tse [Sun, 10 Mar 2013 20:25:10 +0000 (21:25 +0100)]
ares.h: stricter CARES_EXTERN linkage decorations logic

No API change involved.

11 years agoares_build.h.dist: enhance non-configure GCC ABI detection logic
Yang Tse [Sun, 10 Mar 2013 03:50:21 +0000 (04:50 +0100)]
ares_build.h.dist: enhance non-configure GCC ABI detection logic

GCC specific adjustments:

- check __ILP32__ before 32 and 64bit processor architectures in
  order to detect ILP32 programming model on 64 bit processors
  which, of course, also support LP64 programming model, when using
  gcc 4.7 or newer.

- keep 32bit processor architecture checks in order to support gcc
  versions older than 4.7 which don't define __ILP32__

- check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
  architecture checks for older versions which don't define __LP64__

11 years agoares.h: there is no ares_free_soa function
Daniel Stenberg [Sat, 9 Mar 2013 15:48:28 +0000 (16:48 +0100)]
ares.h: there is no ares_free_soa function

11 years agoMakefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
Yang Tse [Sat, 9 Mar 2013 12:58:35 +0000 (13:58 +0100)]
Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility

11 years agoares_inet_ntop.3: s/socklen_t/ares_socklen_t
Yang Tse [Fri, 8 Mar 2013 13:13:21 +0000 (14:13 +0100)]
ares_inet_ntop.3: s/socklen_t/ares_socklen_t

11 years agoconfigure: use XC_LIBTOOL for portability across libtool versions
Yang Tse [Tue, 19 Feb 2013 13:11:26 +0000 (14:11 +0100)]
configure: use XC_LIBTOOL for portability across libtool versions

11 years agoxc-lt-iface.m4: provide XC_LIBTOOL macro
Yang Tse [Fri, 8 Mar 2013 12:19:42 +0000 (13:19 +0100)]
xc-lt-iface.m4: provide XC_LIBTOOL macro

11 years agoMakefile.am: use AM_CPPFLAGS instead of INCLUDES
Yang Tse [Mon, 18 Feb 2013 10:38:22 +0000 (11:38 +0100)]
Makefile.am: use AM_CPPFLAGS instead of INCLUDES

11 years agoinet_ntop.c: s/socklen_t/ares_socklen_t
Yang Tse [Tue, 19 Feb 2013 12:54:28 +0000 (13:54 +0100)]
inet_ntop.c: s/socklen_t/ares_socklen_t

11 years agoinet_ntop.c: s/socklen_t/ares_socklen_t for portability
Yang Tse [Tue, 19 Feb 2013 12:27:33 +0000 (13:27 +0100)]
inet_ntop.c: s/socklen_t/ares_socklen_t for portability

11 years agoares.h: s/socklen_t/ares_socklen_t for portability
Daniel Stenberg [Tue, 19 Feb 2013 12:00:36 +0000 (13:00 +0100)]
ares.h: s/socklen_t/ares_socklen_t for portability

11 years agoares_inet_ntop.3: 4th argument is socklen_t!
Daniel Stenberg [Sun, 17 Feb 2013 18:18:54 +0000 (19:18 +0100)]
ares_inet_ntop.3: 4th argument is socklen_t!

11 years agospell inet correctly!
Daniel Stenberg [Sun, 17 Feb 2013 16:51:37 +0000 (17:51 +0100)]
spell inet correctly!

11 years agoares_inet_pton/ntop: cleanup
Daniel Stenberg [Sun, 17 Feb 2013 16:13:39 +0000 (17:13 +0100)]
ares_inet_pton/ntop: cleanup

Make sure that the symbols are always exported and present in c-ares.

Make the headers prefixed with 'ares'.

Removed the inet_ntop.h version as it no longer features any content.

11 years agoares_inet_ntop/ares_inet_pton: added man pages
Daniel Stenberg [Sun, 17 Feb 2013 15:56:21 +0000 (16:56 +0100)]
ares_inet_ntop/ares_inet_pton: added man pages

11 years agocurl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
Gisle Vanem [Fri, 15 Feb 2013 01:27:10 +0000 (02:27 +0100)]
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()

11 years agoconfig-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
Gisle Vanem [Fri, 15 Feb 2013 01:23:18 +0000 (02:23 +0100)]
config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32

11 years agoconfig-dos.h: define strerror() to strerror_s_() for High-C
Gisle Vanem [Fri, 15 Feb 2013 01:20:49 +0000 (02:20 +0100)]
config-dos.h: define strerror() to strerror_s_() for High-C

11 years agoares_get_datatype: removed unused function
Daniel Stenberg [Wed, 13 Feb 2013 13:40:00 +0000 (14:40 +0100)]
ares_get_datatype: removed unused function

it was also wrongly named as internal functions require two underscores

11 years agoares__bitncmp: use two underscores for private functions
Daniel Stenberg [Wed, 13 Feb 2013 13:37:16 +0000 (14:37 +0100)]
ares__bitncmp: use two underscores for private functions

It used a single one previously making it look like a public one

11 years agoares__generate_new_id: moved to ares_query.c
Daniel Stenberg [Wed, 13 Feb 2013 13:21:08 +0000 (14:21 +0100)]
ares__generate_new_id: moved to ares_query.c

... and ares__rc4 is turned into a local static function.

11 years agoares__swap_lists: make private and static
Daniel Stenberg [Wed, 13 Feb 2013 13:01:14 +0000 (14:01 +0100)]
ares__swap_lists: make private and static

... since there's only one user, make it static within ares_process.c

11 years agoMakefile.msvc: add four VS version strings
Yang Tse [Wed, 13 Feb 2013 12:00:36 +0000 (13:00 +0100)]
Makefile.msvc: add four VS version strings

11 years agoares_expand_name.3: clarify how to free the data
Daniel Stenberg [Wed, 13 Feb 2013 10:01:29 +0000 (11:01 +0100)]
ares_expand_name.3: clarify how to free the data

11 years agozz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
Yang Tse [Wed, 30 Jan 2013 15:58:46 +0000 (16:58 +0100)]
zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2

- Fix a pair of single quotes to double quotes.

URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
Reported by: Tor Arntsen

11 years agozz40-xc-ovr.m4: fix 'wc' detection - follow-up
Yang Tse [Wed, 30 Jan 2013 14:46:50 +0000 (15:46 +0100)]
zz40-xc-ovr.m4: fix 'wc' detection - follow-up

- Take into account that 'wc' may return leading spaces and/or tabs.

- Set initial IFS to space, tab and newline.

11 years agozz40-xc-ovr.m4: fix 'wc' detection
Yang Tse [Wed, 30 Jan 2013 11:19:59 +0000 (12:19 +0100)]
zz40-xc-ovr.m4: fix 'wc' detection

- Take into account that 'wc' may return leading spaces.

- Set internationalization behavior variables.

Tor Arntsen analyzed and reported the issue.

URL: http://curl.haxx.se/mail/lib-2013-01/0351.html

11 years agozz40-xc-ovr.m4: check another three basic utilities
Yang Tse [Tue, 29 Jan 2013 19:49:16 +0000 (20:49 +0100)]
zz40-xc-ovr.m4: check another three basic utilities

11 years agozz40-xc-ovr.m4: 1.0 interface stabilization
Yang Tse [Mon, 28 Jan 2013 20:28:42 +0000 (21:28 +0100)]
zz40-xc-ovr.m4: 1.0 interface stabilization

- Stabilization results in 4 public interface m4 macros:
  XC_CONFIGURE_PREAMBLE
  XC_CONFIGURE_PREAMBLE_VER_MAJOR
  XC_CONFIGURE_PREAMBLE_VER_MINOR
  XC_CHECK_PATH_SEPARATOR
- Avoid one level of internal indirection
- Update comments
- Drop XC_OVR_ZZ40 macro

11 years agozz40-xc-ovr.m4: emit witness message in configure BODY
Yang Tse [Sat, 26 Jan 2013 02:49:30 +0000 (03:49 +0100)]
zz40-xc-ovr.m4: emit witness message in configure BODY

This avoids witness message in output when running configure --help,
while sending the message to config.log for other configure runs.

11 years agozz40-xc-ovr.m4: truly do version conditional overriding
Yang Tse [Fri, 25 Jan 2013 18:20:28 +0000 (19:20 +0100)]
zz40-xc-ovr.m4: truly do version conditional overriding

- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments

11 years agozz40-xc-ovr.m4: fix variable assignment of subshell output bashism
Yang Tse [Fri, 25 Jan 2013 13:22:43 +0000 (14:22 +0100)]
zz40-xc-ovr.m4: fix variable assignment of subshell output bashism

Tor Arntsen analyzed and reported the issue.

URL: http://curl.haxx.se/mail/lib-2013-01/0306.html

11 years agozz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
Yang Tse [Fri, 25 Jan 2013 11:21:47 +0000 (12:21 +0100)]
zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies

11 years agozz40-xc-ovr.m4: avoid double single-quote usage
Yang Tse [Fri, 25 Jan 2013 04:16:18 +0000 (05:16 +0100)]
zz40-xc-ovr.m4: avoid double single-quote usage

11 years agozz40-xc-ovr.m4: parentheses balancing of 'case' statements
Yang Tse [Thu, 24 Jan 2013 23:46:58 +0000 (00:46 +0100)]
zz40-xc-ovr.m4: parentheses balancing of 'case' statements

m4 quadrigraph shell comment technique allows proper autoconf
parentheses balancing in shell 'case' statements. The presence
of unbalanced parentheses may otherwise trigger expansion bugs.

11 years agozz40-xc-ovr.m4: internals overhauling
Yang Tse [Thu, 24 Jan 2013 19:25:43 +0000 (20:25 +0100)]
zz40-xc-ovr.m4: internals overhauling

- Update comments
- Execute commands in subshells
- Faster path separator check
- Fix missing 'test' command
- Rename private macros
- Minimize AC_REQUIRE usage

11 years agozz40-xc-ovr.m4: redirect errors and warnings to stderr
Yang Tse [Wed, 23 Jan 2013 20:54:06 +0000 (21:54 +0100)]
zz40-xc-ovr.m4: redirect errors and warnings to stderr

11 years agoconfigure: use XC_CONFIGURE_PREAMBLE early checks
Yang Tse [Wed, 23 Jan 2013 15:54:33 +0000 (16:54 +0100)]
configure: use XC_CONFIGURE_PREAMBLE early checks

Some basic checks we make were placed early enough in generated
configure script when using autoconf 2.5X versions. Newer autoconf
versions expand these checks much further into the configure script,
rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
of early intended checks across all our autoconf supported versions.

11 years agozz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
Yang Tse [Wed, 23 Jan 2013 15:46:58 +0000 (16:46 +0100)]
zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro

11 years agoconfigure: autotools compatibility fixes - step I
Yang Tse [Wed, 23 Jan 2013 15:44:25 +0000 (16:44 +0100)]
configure: autotools compatibility fixes - step I

Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.

11 years agoconfigure: fix automake 1.13 compatibility
Yang Tse [Wed, 23 Jan 2013 15:16:13 +0000 (16:16 +0100)]
configure: fix automake 1.13 compatibility

Tested with:

buildconf: autoconf version 2.69
buildconf: autom4te version 2.69
buildconf: autoheader version 2.69
buildconf: automake version 1.13.1
buildconf: aclocal version 1.13.1
buildconf: libtool version 2.4
buildconf: GNU m4 version 1.4.16

11 years agoares_private.h: use again memdebug.h instead of curl_memdebug.h
Yang Tse [Fri, 4 Jan 2013 11:30:52 +0000 (12:30 +0100)]
ares_private.h: use again memdebug.h instead of curl_memdebug.h

11 years agoconfigure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Yang Tse [Tue, 1 Jan 2013 18:27:30 +0000 (19:27 +0100)]
configure.ac: replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS

automake 1.13 errors if AM_CONFIG_HEADER is used in configure script.

11 years agocares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally
Yang Tse [Tue, 1 Jan 2013 17:21:34 +0000 (18:21 +0100)]
cares-override.m4: provide AC_CONFIG_MACRO_DIR definition conditionally

Provide a 'traceable' AC_CONFIG_MACRO_DIR definition only when using
an autoconf version that does not provide it, instead of what we were
doing up to now of providing and overriding AC_CONFIG_MACRO_DIR for
all autoconf versions.

11 years agoares_private.h: use curl_memdebug.h instead of memdebug.h
Yang Tse [Fri, 28 Dec 2012 18:57:04 +0000 (19:57 +0100)]
ares_private.h: use curl_memdebug.h instead of memdebug.h

11 years agovc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c
Yang Tse [Tue, 18 Dec 2012 12:54:27 +0000 (13:54 +0100)]
vc6cares.dsp: add ares_create_query.c and ares_parse_soa_reply.c

11 years agocares-functions.m4: improve gethostname arg 2 data type check
Yang Tse [Mon, 17 Dec 2012 15:32:24 +0000 (16:32 +0100)]
cares-functions.m4: improve gethostname arg 2 data type check

11 years agosetup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.
Yang Tse [Mon, 17 Dec 2012 01:09:22 +0000 (02:09 +0100)]
setup_once.h: HP-UX specific 'bool', 'false' and 'true' definitions.

Also reverts commit bceb40095a

11 years agoconfigure: check if compiler halts on function prototype mismatch
Yang Tse [Sun, 16 Dec 2012 17:50:58 +0000 (18:50 +0100)]
configure: check if compiler halts on function prototype mismatch

11 years agocares-functions.m4: add gethostname arg 2 data type check and definition
Yang Tse [Sat, 15 Dec 2012 16:46:49 +0000 (17:46 +0100)]
cares-functions.m4: add gethostname arg 2 data type check and definition

11 years agocares-functions.m4: update thread-safeness detection of getaddrinfo()
Yang Tse [Sat, 15 Dec 2012 16:36:09 +0000 (17:36 +0100)]
cares-functions.m4: update thread-safeness detection of getaddrinfo()

Take in account that POSIX standard Issue 7 drops h_errno support. Now, we also
consider getaddrinfo() to be thread-safe when (_POSIX_C_SOURCE >= 200809L) or
(_XOPEN_SOURCE >= 700) independently of whether h_errno exists or not.

Take in account that h_errno might be a modifiable lvalue not defined as
a C preprocessor macro.

11 years agosetup_once.h: HP-UX <sys/socket.h> issue workaround
Yang Tse [Fri, 14 Dec 2012 18:39:21 +0000 (19:39 +0100)]
setup_once.h: HP-UX <sys/socket.h> issue workaround

Issue: When building a 32bit target with large file support HP-UX
<sys/socket.h> header file may simultaneously provide two different
sets of declarations for sendfile and sendpath functions, one with
static and another with external linkage. Given that we do not use
mentioned functions we really don't care which linkage is the
appropriate one, but on the other hand, the double declaration emmits
warnings when using the HP-UX compiler and errors when using modern
gcc versions resulting in fatal compilation errors.

Mentioned issue is now fixed as long as we don't use sendfile nor
sendpath functions.

11 years agosetup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
Yang Tse [Fri, 14 Dec 2012 17:36:59 +0000 (18:36 +0100)]
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>

Inclusion of these two header files now done in setup_once.h

11 years agoHeader inclusion clean-up
Yang Tse [Fri, 14 Dec 2012 17:25:56 +0000 (18:25 +0100)]
Header inclusion clean-up

Remove header inclusions already done in setup_once.h

11 years agosetup_once.h: HP-UX specific TRUE and FALSE definitions
Yang Tse [Wed, 12 Dec 2012 15:39:07 +0000 (16:39 +0100)]
setup_once.h: HP-UX specific TRUE and FALSE definitions

Some HP-UX system headers require TRUE defined to 1 and FALSE to 0.

11 years agoares_timeout.c: fix compiler warning
Yang Tse [Mon, 10 Dec 2012 15:12:49 +0000 (16:12 +0100)]
ares_timeout.c: fix compiler warning

11 years agoares_create_query.c: IRIX compilation fix
Yang Tse [Fri, 23 Nov 2012 13:28:37 +0000 (14:28 +0100)]
ares_create_query.c: IRIX compilation fix

11 years agoc-ares/nameser.h: add some T_* defines for ns_t_* values
Yang Tse [Fri, 23 Nov 2012 13:23:34 +0000 (14:23 +0100)]
c-ares/nameser.h: add some T_* defines for ns_t_* values

11 years agoRevert "ares_parse_aaaa_reply: fix memory leak"
Daniel Stenberg [Wed, 7 Nov 2012 21:54:50 +0000 (22:54 +0100)]
Revert "ares_parse_aaaa_reply: fix memory leak"

This reverts commit 50f25d8a4b2d16f4c5e0ef620238688b7a315c7a.

12 years agoImported Upstream version 1.7.5 upstream/1.7.5
Anas Nashif [Tue, 30 Oct 2012 20:54:38 +0000 (13:54 -0700)]
Imported Upstream version 1.7.5