Tor Arntsen
83ab208e83
ares_rules.h: CARES_SIZEOF_LONG doesn't exist anymore, don't test for it
...
It was removed in f19387dd72
12 years ago
Daniel Stenberg
f19387dd72
nowarn: use <limits.h> instead of configure for size of long
...
This makes the header file much more multi-arch friendly and can be used
as-is with both 32 bit and 64 bit builds.
12 years ago
Daniel Stenberg
efdd616118
timeoffset: made static and private
...
ares__timeoffset() was only used once within this single source file
12 years ago
Daniel Stenberg
30c9031afa
timeadd: make static
...
ares__timeadd() was only ever used from within the same source
12 years ago
Yang Tse
742e234855
xc-am-iface.m4: comments refinement
12 years ago
Yang Tse
68b3c67e61
configure: fix 'subdir-objects' distclean related issue
...
See XC_AMEND_DISTCLEAN comments for details.
12 years ago
Yang Tse
d69ae9c6f8
configure: automake 1.14 compatibility tweak (use XC_AUTOMAKE)
12 years ago
Yang Tse
9540d48184
xc-am-iface.m4: provide XC_AUTOMAKE macro
12 years ago
Daniel Stenberg
f8a2354016
gitignore: ignore all ares_*pdf but also CHANGES.dist
12 years ago
Daniel Stenberg
1c948a70b1
bump: start working towards 1.10.1
12 years ago
Daniel Stenberg
46fa9cad79
RELEASE-NOTES: two more bug fixes
12 years ago
Keith Shaw
09be3edf3a
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.
12 years ago
Daniel Stenberg
03e2fd085c
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
12 years ago
Alex Loukissas
df55bfac79
build: fix build on msvc11
12 years ago
Daniel Stenberg
3f0ec4733e
Makefile.am: increment -version-info for 1.10.0 release
12 years ago
Daniel Stenberg
76ef032fd0
README: remove unnecessary comment
12 years ago
Daniel Stenberg
58a822231c
ares_version.h: copyright end range year is now 2013
12 years ago
Daniel Stenberg
c727dcb924
RELEASE-NOTES: synced with fb0737f3a0
12 years ago
Paul Saab
fb0737f3a0
ares_parse_aaaa_reply: Plug memory leak
...
This change is similar to ares_parse_a_reply.c in commit
bffd67f16a
12 years ago
Patrick Valsecchi
b5135bbc66
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.
12 years ago
Alexander Klauer
9a92b80191
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.
12 years ago
Alexander Klauer
2e0c3076e5
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().
12 years ago
Patrick Valsecchi
148c8e0353
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
12 years ago
Guenter Knauf
2004a7a111
Create ares_build.h when buidling from Git.
12 years ago
Guenter Knauf
c95041c6a1
Added -DCARES_STATICLIB to CFLAGS.
...
Currently this static makefile does only support building the
static library libcares.a.
12 years ago
Alexander Klauer
483d49d060
.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.
12 years ago
Alexander Klauer
1317a1c94b
ares_destroy() documentation: no new requests
...
Clarify that no new requests may be added to a resolver channel that is
currently being destroyed.
12 years ago
Alexander Klauer
fa19279bba
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.
12 years ago
Alexander Klauer
54faf09da6
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.
12 years ago
Yang Tse
127d4cb357
ares.h: stricter CARES_EXTERN linkage decorations logic
...
No API change involved.
12 years ago
Yang Tse
8f3f059f33
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__
12 years ago
Daniel Stenberg
57203b14df
ares.h: there is no ares_free_soa function
12 years ago
Yang Tse
a2881fee6b
Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
12 years ago
Yang Tse
60cad73007
ares_inet_ntop.3: s/socklen_t/ares_socklen_t
12 years ago
Yang Tse
715b499c79
configure: use XC_LIBTOOL for portability across libtool versions
12 years ago
Yang Tse
f454e82dc7
xc-lt-iface.m4: provide XC_LIBTOOL macro
12 years ago
Yang Tse
320c4eb659
Makefile.am: use AM_CPPFLAGS instead of INCLUDES
12 years ago
Yang Tse
9ed49f3e17
inet_ntop.c: s/socklen_t/ares_socklen_t
12 years ago
Yang Tse
b82874ad6f
inet_ntop.c: s/socklen_t/ares_socklen_t for portability
12 years ago
Daniel Stenberg
ecf6f65b43
ares.h: s/socklen_t/ares_socklen_t for portability
12 years ago
Daniel Stenberg
f4dce2e9f0
ares_inet_ntop.3: 4th argument is socklen_t!
12 years ago
Daniel Stenberg
07bbbd85c3
spell inet correctly!
12 years ago
Daniel Stenberg
cf7ad9758d
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.
12 years ago
Daniel Stenberg
ee9a1c2457
ares_inet_ntop/ares_inet_pton: added man pages
12 years ago
Gisle Vanem
8d013420a0
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
12 years ago
Gisle Vanem
c28e6d98db
config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
12 years ago
Gisle Vanem
e9bca998f9
config-dos.h: define strerror() to strerror_s_() for High-C
12 years ago
Daniel Stenberg
050663271e
ares_get_datatype: removed unused function
...
it was also wrongly named as internal functions require two underscores
12 years ago
Daniel Stenberg
2a3a63ae1f
ares__bitncmp: use two underscores for private functions
...
It used a single one previously making it look like a public one
12 years ago
Daniel Stenberg
9c03cc118c
ares__generate_new_id: moved to ares_query.c
...
... and ares__rc4 is turned into a local static function.
12 years ago