1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2026-03-21 02:17:15 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
7dfc7b6d56 make ares compile again for NetWare. 2005-08-10 17:03:53 +00:00
01118be8ae FIONBIO is in sys/ioctl.h on AIX 2005-06-03 07:39:18 +00:00
c94c020c96 sigh, define TRUE if not already 2005-06-02 21:10:21 +00:00
4e9c5b2dbb William Ahern:
Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
  read event can come back from poll() on a valid SOCK_DGRAM socket but
  recv(2) will still block. This patch doesn't ignore EAGAIN in
  read_udp_packets(), though maybe it should. (This patch was edited by Daniel
  Stenberg and a new configure test was added (imported from curl's configure)
  to properly detect what non-blocking socket approach to use.)
2005-06-02 11:58:04 +00:00
b41effd113 Tupone Alfredo fixed includes of arpa/nameser_compat.h to build fine on Mac OS
X.
2005-04-06 22:27:42 +00:00
1223fb7eac Prevent gcc warning. 2005-03-13 09:21:54 +00:00
3e748f4b50 removed tabs and trailing whitespace from source 2004-10-06 07:50:18 +00:00
32fded8229 No WSAGetLastError() on Watt-32/DOS 2004-08-20 14:07:11 +00:00
6deb40acac Changes for Watt-32 on Windows. I've assumed Configure
sets the required HAVE_xx defines for non-DOS/Win targets.
2004-08-20 13:45:26 +00:00
06534bf195 variable type fix 2004-07-29 07:24:39 +00:00
e8e8d3a407 Gisle Vanem:
Basically in loops like handle_errors(), 'query->next' was assigned a local
variable and then query was referenced after the memory was freed by
next_server(). I've changed that so next_server() and end_query() returns the
next query. So callers should use this ret-value.

The next problem was that 'server->tcp_buffer_pos' had a random value at entry
to 1st recv() (luckily causing Winsock to return ENOBUFS).

I've also added a ares_writev() for Windows to streamline the code
a bit more.
2004-07-24 21:47:49 +00:00
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.
2004-07-22 22:18:45 +00:00
5c1ec168f6 Gisle's win32-fix. 'errno' is not used for errors when socket() fails on
Windows.
2004-07-01 13:54:24 +00:00
cb0a33076a Gisle Vanem made this build fine with djgpp and the Watt-32 stack. 2004-07-01 06:58:47 +00:00
a881c1dfee minor size_t fix to kill a warning 2004-02-27 13:21:47 +00:00
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
2004-02-23 07:52:20 +00:00
79c1e3ab26 don't use 'sin' as variable name as the picky compiler warnings complain
about it shadowing the function sin()
2004-02-04 10:23:15 +00:00
3d0a7c00df remove rcsid stuff from c files, it serves no useful purpose 2004-02-02 15:59:35 +00:00
d52f1884be Dirk Manske fixed a flaw in the setting of the socket to non-blocking 2004-01-29 11:23:36 +00:00
5e847a14bd ares 1.1.1 with collected applied patches 2003-10-07 21:54:04 +00:00