aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-host-utils.c
Commit message (Collapse)AuthorAgeFilesLines
* If the system defines AI_ADDRCONFIG, set this flag on the hints.ai_flagsJeffrey Stedfast2003-10-251-2/+6
| | | | | | | | | | | 2003-10-17 Jeffrey Stedfast <fejj@ximian.com> * e-host-utils.c (e_gethostbyname_r): If the system defines AI_ADDRCONFIG, set this flag on the hints.ai_flags member as well so that we don't resolve a host to an IPv6 addr when the node doesn't have any IPv6 source addresses. svn path=/trunk/; revision=23077
* IPv6 implementation rewritten to use getnameinfo() which is the properJeffrey Stedfast2003-09-271-44/+5
| | | | | | | | | | 2003-09-26 Jeffrey Stedfast <fejj@ximian.com> * e-host-utils.c (e_gethostbyaddr_r): IPv6 implementation rewritten to use getnameinfo() which is the proper function to use in this case. Fixes bug #46006 the Right Way (tm). svn path=/trunk/; revision=22720
* Make sure that res->ai_canonname is non-NULL and that it doesn't match theJeffrey Stedfast2003-09-261-1/+26
| | | | | | | | | | | 2003-09-25 Jeffrey Stedfast <fejj@ximian.com> * e-host-utils.c (e_gethostbyaddr_r): Make sure that res->ai_canonname is non-NULL and that it doesn't match the numeric host address that we were trying to resolve. Fixes the second half of bug #46006. svn path=/trunk/; revision=22701
* Added #include <netinet/in.h> for the sockaddr_in6 typedef for at leastJeffrey Stedfast2003-04-291-0/+1
| | | | | | | | | 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
* Keep our buf ptr aligned to sizeof (char *). Should fix bug #41362.Jeffrey Stedfast2003-04-251-6/+9
| | | | | | | | | | 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
* Change the 'len' argument to 'addrlen' so that when IPv6 is enabled, ourJeffrey Stedfast2003-04-101-5/+5
| | | | | | | | | | 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
* If the user has enabled IPv6 support, use getaddrinfo to resolve hostnamesJeffrey Stedfast2002-07-311-9/+176
| | | | | | | | | | | 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
* New wrapper around gethostbyaddr_r if the system has it, else a whole newJeffrey Stedfast2002-04-171-77/+140
| | | | | | | | | | 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
* Added French conjunction.Christopher James Lahey2001-10-301-0/+2
| | | | | | | | | | | 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
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Modify `e_gethostbyname_r()' so that it doesn't report an error if theEttore Perazzoli2001-05-191-1/+6
| | | | | | | | | | 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
* Make the Solaris and no-gethostbyname_r implementations behave more likeDan Winship2001-04-271-4/+20
| | | | | | | | * 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
* remove prototype for e_gethostbyname_init.Chris Toshok2001-04-241-39/+33
| | | | | | | | | | | | | | 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
* Include glib.h, so that the g_warning in e_gethostbyname_r will be treatedJon Trowbridge2001-04-241-0/+1
| | | | | | | | | | 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
* add e-host-utils.[ch]Chris Toshok2001-04-231-0/+139
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