platform/upstream/c-ares.git
11 months agoDon't use getrandom() 20/301420/1 accepted/tizen_7.0_base tizen_7.0_base accepted/tizen/7.0/base/20231117.051142
Seonah Moon [Wed, 15 Nov 2023 11:58:29 +0000 (20:58 +0900)]
Don't use getrandom()

ENOSYS error occurs when using getrandom().
(ENOSYS 38 Function not implemented)

Change-Id: I504f5b94af71da9466e111e402cd13605c02b7fb

11 months agoUpgrade to 1.21.0 70/301370/1
Seonah Moon [Wed, 15 Nov 2023 03:31:44 +0000 (12:31 +0900)]
Upgrade to 1.21.0

Change-Id: Idf92dc66f0720a0d50187326f70f38a451ff466e

11 months agoImported Upstream version 1.21.0 25/301225/1 upstream upstream/1.21.0
Seonah Moon [Fri, 10 Nov 2023 08:44:03 +0000 (17:44 +0900)]
Imported Upstream version 1.21.0

Change-Id: I1a8bdf4364efffd62a45c95e66aea9040803be18

20 months agoAdd BSD license file for ares__sortaddrinfo.c 02/288902/2 accepted/tizen/7.0/base/20230302.100234
Seonah Moon [Fri, 24 Feb 2023 08:01:37 +0000 (17:01 +0900)]
Add BSD license file for ares__sortaddrinfo.c

Change-Id: I028b94b893fc5fd257444f7c0d285660e6dc8579

2 years agoUpgrade to 1.18.1 61/269261/1 accepted/tizen_7.0_base_hotfix accepted/tizen_8.0_base accepted/tizen_9.0_base accepted/tizen_base accepted/tizen_base_dev tizen_7.0_base_hotfix tizen_8.0_base tizen_9.0_base tizen_base accepted/tizen/7.0/base/20221116.030007 accepted/tizen/7.0/base/hotfix/20221116.055416 accepted/tizen/8.0/base/20231005.044622 accepted/tizen/9.0/base/20241030.075733 accepted/tizen/base/20220116.220755 accepted/tizen/base/20221115.103841 accepted/tizen/base/dev/20230602.080931 submit/tizen_base/20220112.070418 tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
Seonah Moon [Wed, 12 Jan 2022 06:55:57 +0000 (15:55 +0900)]
Upgrade to 1.18.1

Change-Id: I78d0446c9b8a29e5a5acd91c5399bc89736ca168

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 agoChange the upstream source URL 79/250279/1 accepted/tizen_6.5_base tizen_6.5_base accepted/tizen/6.5/base/20211028.055421 accepted/tizen/base/20210105.224750 submit/tizen_6.5_base/20211028.133901 submit/tizen_base/20201224.050427 submit/tizen_base/20210104.071621 tizen_6.5.m2_release
Seonah Moon [Wed, 23 Dec 2020 04:58:20 +0000 (13:58 +0900)]
Change the upstream source URL

Change-Id: I1668f6299ea3f2161f81a7fea3035eae16b97c0e

3 years agoRevert "Revert "Imported Upstream version 1.17.1""
Seonah Moon [Wed, 23 Dec 2020 04:54:58 +0000 (13:54 +0900)]
Revert "Revert "Imported Upstream version 1.17.1""

This reverts commit 62cb64b22c599fa9c2c7d864569c017b55100279.

3 years agoRevert "Imported Upstream version 1.17.1"
Seonah Moon [Wed, 23 Dec 2020 04:53:37 +0000 (13:53 +0900)]
Revert "Imported Upstream version 1.17.1"

This reverts commit bff27be9aa171a5afc25df79cd652337aa1ecbb0.

3 years agoUpgrade to 1.17.1
Seonah Moon [Wed, 23 Dec 2020 04:49:24 +0000 (13:49 +0900)]
Upgrade to 1.17.1

Change-Id: I9c889de812fe62ff3a408efb6adfd98e1bb77bf0

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

5 years agoares_parse_naptr_reply: check sufficient data 97/198597/1 accepted/tizen_5.5_base accepted/tizen_5.5_base_mobile_hotfix accepted/tizen_5.5_base_wearable_hotfix accepted/tizen_6.0_base accepted/tizen_6.0_base_hotfix tizen_5.5_base tizen_5.5_base_mobile_hotfix tizen_5.5_base_wearable_hotfix tizen_5.5_tv tizen_6.0_base tizen_6.0_base_hotfix accepted/tizen/5.5/base/20191030.084059 accepted/tizen/5.5/base/mobile/hotfix/20201023.085651 accepted/tizen/5.5/base/wearable/hotfix/20201023.081830 accepted/tizen/6.0/base/20201029.110307 accepted/tizen/6.0/base/hotfix/20201102.093258 accepted/tizen/base/20190316.131830 submit/tizen_5.5_base/20191030.000001 submit/tizen_5.5_base_mobile_hotfix/20201023.171501 submit/tizen_5.5_base_wearable_hotfix/20201023.155601 submit/tizen_6.0_base/20201029.184801 submit/tizen_6.0_base_hotfix/20201030.192501 submit/tizen_6.0_base_hotfix/20201102.162701 submit/tizen_base/20190311.051335 tizen_5.5.m2_release tizen_6.0.m2_release
David Drysdale [Mon, 22 May 2017 09:54:10 +0000 (10:54 +0100)]
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.

Bug: https://c-ares.haxx.se/adv_20170620.html
Link: https://c-ares.haxx.se/CVE-2017-1000381.patch
Change-Id: I16056280817af5cd7a62ddc366280c73391cbc6a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
7 years agoMerge branch 'tizen' into tizen_base 92/142692/2 accepted/tizen/5.0/base/20181101.091108 accepted/tizen/base/20171110.163200 submit/tizen_5.0_base/20181101.000001 submit/tizen_base/20171106.054136
Jiung [Mon, 7 Aug 2017 04:59:41 +0000 (13:59 +0900)]
Merge branch 'tizen' into tizen_base

Change-Id: I57bed66206d1aab30e02ded357d1ff4f2d444ed6

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 agoMerge branch 'tizen' into tizen_base 81/96781/1 accepted/tizen/4.0/base/20170811.093019 accepted/tizen/4.0/base/20170828.221324 accepted/tizen/base/20170707.183634 submit/tizen_4.0_base/20170811.071500 submit/tizen_4.0_base/20170828.000000 submit/tizen_4.0_base/20170828.000001 submit/tizen_base/20170703.013654 submit/tizen_base/20170705.023439 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Yu Jiung [Thu, 10 Nov 2016 07:24:08 +0000 (16:24 +0900)]
Merge branch 'tizen' into tizen_base

Conflicts:
packaging/c-ares.spec

Change-Id: I1ec10e394aed3ef19ee21fefbe3aba7d7a615c74

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 agoMerge branch 'tizen_3.0_base' into tizen_base 19/95419/1 accepted/tizen/base/20161104.200131 submit/tizen_base/20161103.074054 tizen_4.0.m1_release
chleun.moon [Thu, 3 Nov 2016 07:36:28 +0000 (16:36 +0900)]
Merge branch 'tizen_3.0_base' into tizen_base

Change-Id: I5ab9d75268fe587280668f752f93908decb84c64
Signed-off-by: cheoleun <chleun.moon@samsung.com>
8 years agoFixed build error 18/95418/1 accepted/tizen/3.0/base/20161104.104345 submit/tizen_3.0_base/20161103.074103
chleun.moon [Thu, 3 Nov 2016 07:34:39 +0000 (16:34 +0900)]
Fixed build error

Change-Id: I00e6ac85101d53923cb9464dfa43af5c67563c21
Signed-off-by: cheoleun <chleun.moon@samsung.com>
8 years agoMerge branch 'tizen_3.0_base' into tizen_base 66/95366/1 submit/tizen_base/20161103.045154
chleun.moon [Thu, 3 Nov 2016 04:45:57 +0000 (13:45 +0900)]
Merge branch 'tizen_3.0_base' into tizen_base

Change-Id: If19e1e8ff43361d06f956ec72892838ba56cb22d
Signed-off-by: cheoleun <chleun.moon@samsung.com>
8 years agoMerge branch 'tizen' into tizen_3.0_base 65/95365/1 submit/tizen_3.0_base/20161103.044410 submit/tizen_3.0_base/20161103.045206
chleun.moon [Thu, 3 Nov 2016 04:43:19 +0000 (13:43 +0900)]
Merge branch 'tizen' into tizen_3.0_base

Change-Id: Ic1ba0de5d4ffef7e3debed8e309bab8839c3f283
Signed-off-by: cheoleun <chleun.moon@samsung.com>
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