diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-04-17 09:17:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-04-17 09:17:24 +0800 |
commit | b06b0051c5fee1c0eafa87f164fe0b8f4e27e5ef (patch) | |
tree | 03eeda9d12e03bea47f1faa05957901881da4a15 /e-util/e-host-utils.h | |
parent | 37a6a67b83419b7d616642ed988f55f474e8f68e (diff) | |
download | gsoc2013-evolution-b06b0051c5fee1c0eafa87f164fe0b8f4e27e5ef.tar.gz gsoc2013-evolution-b06b0051c5fee1c0eafa87f164fe0b8f4e27e5ef.tar.zst gsoc2013-evolution-b06b0051c5fee1c0eafa87f164fe0b8f4e27e5ef.zip |
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
Diffstat (limited to 'e-util/e-host-utils.h')
-rw-r--r-- | e-util/e-host-utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/e-util/e-host-utils.h b/e-util/e-host-utils.h index 3153cc7581..543a9d3cc2 100644 --- a/e-util/e-host-utils.h +++ b/e-util/e-host-utils.h @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * - * Author: Chris Toshok + * Authors: Chris Toshok, Jeffrey Stedfast */ #ifndef E_HOST_UTILS_H @@ -31,6 +31,8 @@ *only* use this - it can't even coexist with naked calls to gethostbyname (even if they exist in libraries.) yes, this loses in many ways. blame your local OS developer. */ -int e_gethostbyname_r (const char *name, struct hostent *host, char *buf, int buflen, int *herr); +int e_gethostbyname_r (const char *name, struct hostent *host, char *buf, size_t buflen, int *herr); + +int e_gethostbyaddr_r (const char *addr, int len, int type, struct hostent *host, char *buf, size_t buflen, int *herr); #endif /* E_HOST_UTILS_H */ |