Commit Graph

19 Commits

Author SHA1 Message Date
Yang Tse 827228bd69 move linkage var declarations to ares_getopt.h 2007-04-16 15:35:34 +00:00
Yang Tse 0563a7a923 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
2007-04-16 09:01:16 +00:00
Yang Tse 2364066be0 use ares_getopt for all platforms 2007-04-12 19:01:19 +00:00
Gisle Vanem ee1235a7cd Removed inclusion of <sys/types.h> in .c-files
since it's already included through "setup.h".
2007-02-26 04:33:19 +00:00
Gisle Vanem 45bf417301 Cleanup WIN32 target using WSACleanup(). 2007-02-21 15:01:51 +00:00
Gisle Vanem 529e01736c INADDR_NONE no longer used. 2007-02-06 19:14:33 +00:00
Gisle Vanem 078fc4186b Added debug option ('-d') for Watt-32 programs. 2007-02-06 19:12:38 +00:00
Gisle Vanem 1fa9ef246a Include <sys/time.h> and <unistd.h> inside HAVE_x_H.
Added 'optind' and 'optarg' as in adig.c.
2007-02-06 18:56:34 +00:00
Gisle Vanem 561d01c450 Don't include "nameser.h" for Watt32. Use the normal BSD-socket headers. 2006-10-31 17:51:54 +00:00
Yang Tse 5df4be1165 Check for USE_WINSOCK instead of WIN32 where the check was done
to verify winsock API availability.
2006-10-18 21:05:40 +00:00
Gisle Vanem 132067b081 Added getopt() processing of [-t {a|aaaa}]. 2006-07-22 17:31:00 +00:00
Gisle Vanem b7a673c6e2 Update using ares_inet_pton() and ares_inet_ntop(). 2005-11-11 04:28:23 +00:00
Daniel Stenberg 39af394a1c removed tabs and trailing whitespace from source 2004-10-06 07:50:18 +00:00
Daniel Stenberg c85bf83e88 - 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.
2004-07-22 22:18:45 +00:00
Daniel Stenberg bd42a2acb1 Gisle Vanem fixed the bad argc check 2004-03-09 09:43:30 +00:00
Daniel Stenberg 3a36d4fdea removed usage of unset variables (by a function that does nothing!) 2004-02-13 12:28:27 +00:00
Daniel Stenberg 462d1c5231 use the new single-argument ares_strerror() 2004-02-02 16:15:58 +00:00
Daniel Stenberg 1442fab4b6 remove rcsid stuff from c files, it serves no useful purpose 2004-02-02 15:59:35 +00:00
Daniel Stenberg 0436fbe226 ares 1.1.1 with collected applied patches 2003-10-07 21:54:04 +00:00