[Top][All Lists]
[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/
- Re: monit&dietlibc, (continued)
- Re: monit&dietlibc, Martin Pala, 2003/08/12
- Re: monit&dietlibc, Christian Hopp, 2003/08/12
- Re: monit&dietlibc, Martin Pala, 2003/08/13
- Re: monit&dietlibc, Christian Hopp, 2003/08/13
- Re: monit&dietlibc, Martin Pala, 2003/08/13
- Re: monit&dietlibc, Jan-Henrik Haukeland, 2003/08/13
- Re: monit&dietlibc, Martin Pala, 2003/08/13
- Re: monit&dietlibc, Jan-Henrik Haukeland, 2003/08/13
- Re: monit&dietlibc, Martin Pala, 2003/08/14
- Re: monit&dietlibc, Jan-Henrik Haukeland, 2003/08/13
Re: monit&dietlibc,
Christian Hopp <=