Commit Graph

14 Commits

Author SHA1 Message Date
56bb2117f0 Added #include <netinet/in.h> for the sockaddr_in6 typedef for at least
2003-04-28  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c: Added #include <netinet/in.h> for the
	sockaddr_in6 typedef for at least MacOS X.

svn path=/trunk/; revision=20998
2003-04-29 02:14:37 +00:00
1a3b2e594c Keep our buf ptr aligned to sizeof (char *). Should fix bug #41362.
2003-04-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c (e_gethostbyname_r): Keep our buf ptr aligned to
	sizeof (char *). Should fix bug #41362.
	(e_gethostbyaddr_r): Same.

svn path=/trunk/; revision=20956
2003-04-24 17:05:13 +00:00
891b85f5e0 Change the 'len' argument to 'addrlen' so that when IPv6 is enabled, our
2003-04-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c (e_gethostbyaddr_r): Change the 'len' argument to
	'addrlen' so that when IPv6 is enabled, our temp vriable (also
	named len) does not cause confusion. Fixes bug #40979.

svn path=/trunk/; revision=20791
2003-04-09 18:41:17 +00:00
61d063ada0 If the user has enabled IPv6 support, use getaddrinfo to resolve hostnames
2002-07-30  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c (e_gethostbyname_r): If the user has enabled IPv6
	support, use getaddrinfo to resolve hostnames and then manually
	fit the result into a struct hostent.
	(e_gethostbyaddr_r): Same.

svn path=/trunk/; revision=17650
2002-07-31 01:00:37 +00:00
b06b0051c5 New wrapper around gethostbyaddr_r if the system has it, else a whole new
2002-04-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-host-utils.c (e_gethostbyaddr_r): New wrapper around
	gethostbyaddr_r if the system has it, else a whole new
	implementation.

svn path=/trunk/; revision=16483
2002-04-17 01:17:24 +00:00
2e21780aad Added French conjunction.
2001-10-29  Christopher James Lahey  <clahey@ximian.com>

	* ename/e-name-western.c (e_name_western_fixup): Added French
	conjunction.

	* e-host-utils.c: Don't define gethost_mutex unless we need it.

svn path=/trunk/; revision=14373
2001-10-29 22:51:21 +00:00
08fb7329cb Fixing the license text.
svn path=/trunk/; revision=14212
2001-10-27 16:59:46 +00:00
02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
e2edef6e5e Modify `e_gethostbyname_r()' so that it doesn't report an error if the
5-argument `gethostbyname_r()' returns a non-NULL hostent and a
nonzero herr.

This fixes the "Cannot resolve localhost" error on GNU/Linux with libc
2.2.x.

svn path=/trunk/; revision=9888
2001-05-19 12:38:39 +00:00
e06a2c8d52 Make the Solaris and no-gethostbyname_r implementations behave more like
* e-host-utils.c (e_gethostbyname_r): Make the Solaris and
	no-gethostbyname_r implementations behave more like the Linux one.
	Document.

svn path=/trunk/; revision=9594
2001-04-26 20:26:08 +00:00
a525821bc7 remove prototype for e_gethostbyname_init.
2001-04-24  Chris Toshok  <toshok@ximian.com>

	* e-host-utils.h: remove prototype for e_gethostbyname_init.

	* e-host-utils.c (e_gethostbyname_r): don't dynamically allocate
	anything - store everything in the buffer that's passed in.  Also,
	stop using EMutex.  Switch to a static GMutex (so we can
	initialize it without having e_gethostbyname_init).
	(e_gethostbyname_init): removed.

svn path=/trunk/; revision=9535
2001-04-24 07:09:06 +00:00
2b9cb3edda Include glib.h, so that the g_warning in e_gethostbyname_r will be treated
2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * e-host-utils.c: Include glib.h, so that the g_warning in
        e_gethostbyname_r will be treated as a macro and not as an
        unresolved symbol.

svn path=/trunk/; revision=9528
2001-04-23 22:44:58 +00:00
f726a8e69e add e-host-utils.[ch]
2001-04-22  Chris Toshok  <toshok@ximian.com>

	* Makefile.am (libeutil_la_SOURCES): add e-host-utils.[ch]

	* e-host-utils.c: new file, with e_gethostbyname_r.

	* e-host-utils.h: new file.

svn path=/trunk/; revision=9502
2001-04-23 02:53:27 +00:00