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
Yang Tse
0c677f578e
setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>
...
Inclusion of these two header files now done in setup_once.h
12 years ago
Yang Tse
a1035276c1
Header inclusion clean-up
...
Remove header inclusions already done in setup_once.h
12 years ago
Gisle Vanem
805c736e36
adig: perror() doesn't work for socket errors on windows
...
... so print the SOCKERRNO instead
12 years ago
Yang Tse
1089cf6052
ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitions
...
Fixing compiler warnings existing definitions triggered on these.
14 years ago
Yang Tse
5ef8f5ead2
compiler warning: fix
...
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
14 years ago
Yang Tse
2c2e2d839e
adig: RFC4034 resource record type detection
...
Can be tested with: adig -s 8.8.8.8 -t ANY example.com
14 years ago
Yang Tse
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Patrik Thunstrom
e9386cfd9f
adig: fix NAPTR parsing
...
I ran across a small "issue" in your adig example.
It is simply the last part of the NAPTR record, the replacement element,
which is not a string, as currently handled in adig, but a domain name.
14 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Peter Pentchev
a83d892bb2
Fix a couple of typos and grammar nits.
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
b47af62e75
Fix icc 9.0 compiler warning: external definition with no prior declaration
15 years ago
Yang Tse
1c5f8be38d
Fix compiler warning: conditional expression is constant
15 years ago
Yang Tse
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
15 years ago
Yang Tse
58346cbfb9
Fix compiler warning: argument is incompatible with corresponding format string conversion
15 years ago
Yang Tse
16d842958a
Fix compiler warning: out of bound access
16 years ago
Yang Tse
ef4a786bf6
fix compilation on AIX
16 years ago
Yang Tse
b7c7bab713
Introduction of ares_library_init() and ares_library_cleanup()
16 years ago
Yang Tse
1c9a010cf0
fix compiler warning
16 years ago
Daniel Stenberg
43daf6decd
Charles Hardin made adig support a regular numerical dotted IP address for the
...
-s option as well.
16 years ago
Yang Tse
6503efa62a
fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
16 years ago
Yang Tse
f214b583f5
adjust inclusion of "nameser.h"
16 years ago
Yang Tse
746f3e2942
rearrange to allow internal/private use of ares_strcasecmp to any system that
...
lacks the strcasecmp function.
16 years ago
Yang Tse
9191dc5c33
Brad House fixed a missing header file inclusion in adig sample program
17 years ago
Daniel Stenberg
d4d2f9dc22
include strings.h (if available) for the strcasecmp() proto
17 years ago
Yang Tse
f1b829e418
make previous compiler warning fix more portable
17 years ago
Yang Tse
4ba9cb3a46
fix compiler warning: indirection to slightly different base types
17 years ago
Yang Tse
51d5712977
fix compiler warning: unreferenced formal parameter
17 years ago
Daniel Stenberg
b1c3cc0cfe
Alexey Simak made adig support NAPTR records
17 years ago
Steinar H. Gunderson
50ba81cd23
Make the query callbacks return the number of timeouts that happened during the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
17 years ago
Yang Tse
35b7d08768
move linkage var declarations to ares_getopt.h
18 years ago
Yang Tse
bba777d6da
ares_getopt() command-line parser function does not belong to actual
...
c-ares library. It is just a convinience source code helper function
for use in example programs adig.c and ahost.c
18 years ago
Yang Tse
088a4d923a
use ares_getopt for all platforms
18 years ago
Gisle Vanem
a627160041
Removed inclusion of <sys/types.h> in .c-files
...
since it's already included through "setup.h".
18 years ago
Gisle Vanem
908070821e
Cleanup WIN32 target using WSACleanup().
18 years ago
Gisle Vanem
b00a5ffbd8
INADDR_NONE no longer used.
18 years ago
Yang Tse
69fa447354
use macros ERRNO, SET_ERRNO(), SOCKERRNO and SET_SOCKERRNO() for errno handling
18 years ago
Gisle Vanem
2776f1ed03
Fix compiler warning.
18 years ago
Gisle Vanem
7ac09a058c
Include <sys/time.h> and <unistd.h> inside HAVE_x_H.
18 years ago
Gisle Vanem
48d6915d8b
Don't include "nameser.h" for Watt32. Use the normal BSD-socket headers.
18 years ago
Gisle Vanem
d4bc2387b5
Added '-d' option for Watt32 targets. Added cvs id.
18 years ago
Yang Tse
77ac18117c
Check for USE_WINSOCK instead of WIN32 where the check was done
...
to verify winsock API availability.
18 years ago
Yang Tse
dd3b42e1ac
Replace is*() macros with our own IS*() ones.
...
Get rid of non ANSI/ISO isascii().
18 years ago
Gisle Vanem
4cef1942be
Use ares_free_string() to avoid detecting leaks.
19 years ago
Yang Tse
c4e7de9bdd
Fix compiler warning
19 years ago
Gisle Vanem
7bd15b8baa
Include <getopt.h>.
...
Use DNS__32BIT() and DNS__16BIT() (How about BE machines?).
Display T_AAAA resource.
19 years ago
Daniel Stenberg
3e748f4b50
removed tabs and trailing whitespace from source
20 years ago
Daniel Stenberg
d5f3636a52
- 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.
21 years ago
Daniel Stenberg
961876c001
make ares_expand_name() take a long * instead of an int *, since we do
...
pointer arithmetic (ptr1 - ptr2) and to do that properly on 64bit we need
long
21 years ago