monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit&dietlibc


From: Christian Hopp
Subject: Re: monit&dietlibc
Date: Wed, 13 Aug 2003 14:25:07 +0200 (CEST)

On Tue, 12 Aug 2003, Christian Hopp wrote:

> Still todo... (might be useful for other "normal" platforms)...
>
> 1) replacement of gethostbyname against gethostbyname_r because...
>    "warning: gethostbyname() leaks memory.  Use gethostbyname_r instead!"

Let forget about it... it's gonna get really ugly... for Linux!  The
gethostbyname_r interface of Linux differs from all other system and
it is not posix compatible.  Just a nice cite I found in the netdb.h
of dietlibc:


; /* this glibc "invention" is so ugly, I'm going to throw up any minute
;  * now */
; extern int gethostbyname_r(const char* NAME, struct hostent* RESULT_BUF,
;                            char* BUF, size_t BUFLEN, struct hostent** RESULT,
;                            int* H_ERRNOP) __THROW;

CHopp


-- 
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]