Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2006 08:08:06 -0800
From:      Jason Evans <jasone@FreeBSD.org>
To:        pfgshield-freebsd@yahoo.com
Cc:        vd@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: Suggested port: open source Xara Xtreme
Message-ID:  <442024E6.5080205@FreeBSD.org>
In-Reply-To: <20060321160628.5917.qmail@web32713.mail.mud.yahoo.com>
References:  <20060321160628.5917.qmail@web32713.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
pfgshield-freebsd@yahoo.com wrote:
> --- Vasil Dimov <vd@FreeBSD.org> ha scritto: 
> ...
> 
>>In spite of the scary errors I continued hacking and hit some serious
>>issue: they use a function malloc_usable_size() which is defined like
>>this on linux, but unavailable for FreeBSD:
>>
>>/* Report the number of usable allocated bytes associated with allocated
>>   chunk __ptr. */
>>extern size_t malloc_usable_size __MALLOC_P ((__malloc_ptr_t __ptr));
>>
>>Any ideas for alternatives?
>>
> 
> Hmm...not really but here are two options:
> 
> - check the code to see what they did for MacOS X.
> - It looks like devel/libdlmalloc might have it.

OS X has malloc_size() and malloc_good_size().

Jason




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442024E6.5080205>