Yang Tse
a5ce39391c
c-ares/nameser.h: add some T_* defines for ns_t_* values
12 years ago
Yang Tse
ebc9a9d958
nameser.h: RFC4034 resource record type definitions
14 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
f214b583f5
adjust inclusion of "nameser.h"
16 years ago
Yang Tse
861ea67ee8
reorder some lines in file
16 years ago
Yang Tse
507c529dc0
code cleanup
16 years ago
Yang Tse
1a9795b401
rearrange to allow internal/private use of ares_writev to any system
...
that lacks the writev function.
16 years ago
Daniel Stenberg
705c749aa1
- As was pointed out to me by Andreas Schuldei, the MAXHOSTNAMELEN define is
...
not posix or anything and thus c-ares failed to build on hurd (and possibly
elsewhere). The define was also somewhat artificially used in the windows
port. Now, I instead rewrote the use of gethostbyname to enlarge the host
name buffer in case of need and totally avoid the use of the MAXHOSTNAMELEN
define. I thus also removed the defien from the namser.h file where it was
once added for the windows build.
I also fixed init_by_defaults() function to not leak memory in case if
error.
17 years ago
Yang Tse
0848b4fdaa
Use monotonic time source if available.
17 years ago
Yang Tse
8627b23715
Needed now that in6_addr is referenced in ares.h
17 years ago
Yang Tse
a0b8ac2bdc
improve portability, defining MAXDNAME and MAXCDNAME
17 years ago
Gunter Knauf
76a007538c
although the check for HAVE_STRUCT_TIMEVAL solved the redefine it is incorrect; lets see if a check for HAVE_GETTIMEOFDAY also works; if gettimeofday() is present then we can assume we have the timezone struct too.
18 years ago
Gunter Knauf
5a6af8adbc
trial to catch problem with Daniels cross-mingw ares builds.
18 years ago
Yang Tse
ee2df583d3
Move portable error number symbolic name definitions to setup_once.h
18 years ago
Gisle Vanem
4a30753b47
Support for OpenWatcom (Win32): It do have getpid(), but no
...
<sys/time.h>.
18 years ago
Yang Tse
413a37e409
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
19 years ago
Yang Tse
c43edebb70
Undo previous change. This header file belongs to the public
...
interface and the change could break the compilation of thrid
party apps which link against this library.
19 years ago
Yang Tse
4b3090680a
Cleanup windows header includes. Where aplicable, inclusion of
...
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
19 years ago
Gisle Vanem
0776e67138
Added CVS id. Detabified.
19 years ago
Daniel Stenberg
3a80a3eb01
better errno constant replacements, as mentioned by Gisle Vanem
20 years ago
Daniel Stenberg
3d90cb252b
with these changes, it builds on my win32 cross-compiler
20 years ago
Gisle Vanem
6deb40acac
Changes for Watt-32 on Windows. I've assumed Configure
...
sets the required HAVE_xx defines for non-DOS/Win targets.
21 years ago
Daniel Stenberg
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.
21 years ago
Gunter Knauf
c73d12e2e4
added few ifdefs to make it usable for NetWare.
21 years ago
Daniel Stenberg
e7293e0779
djgpp fixes by Gisle
21 years ago
Daniel Stenberg
3f01f1b772
mingw has str(n)casecmp() functions
21 years ago
Daniel Stenberg
9df1eda502
timezone dummy to build better on Windows - Gisle Vanem
21 years ago
Daniel Stenberg
69d192ba1e
include process.h to get the _getpid() proto
21 years ago
Daniel Stenberg
49eceda4dd
prevent a compiler warning about a macro definition
21 years ago
Daniel Stenberg
c72a2f4af7
prevent the windows version to use global symbol names
...
added prototypes for the strcasecmp() functions
21 years ago
Daniel Stenberg
2c9c9e92fd
Dominick Meglio's fix to make our private gettimeofday() use the ares_
...
namespace
21 years ago
Daniel Stenberg
5e847a14bd
ares 1.1.1 with collected applied patches
21 years ago