Subject: Re: malloc_usable_size () call under NetBSD
To: None <tech-kern@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 07/20/2007 14:13:30
On Fri, Jul 20, 2007 at 12:21:33PM +0200, Vincent wrote:
> I've tried to compiled the XaraLX vector graphics program that seems to 
> have been ported on FreeBSD. However, it fails at the first file, 
> complaining to lack the "malloc_usable_size ()" system call. After a bit 
> of googling (?), I found that this call had been added on FreeBSD 7 (so 
> that's pretty recent). Wherefore, question: how to emulate this call 
> under NetBSD, if this is possible.

If we ever want to get this into pkgsrc, DO NOT USE THAT CALL. It is
completely bogus exposure of malloc internals. Check carefully for what
they use it. It is either a (stupid) attempt to optimise behind the back
of realloc or fundamentally broken.

Joerg