Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2006 08:03:43 -0800
From:      Jason Evans <jasone@FreeBSD.org>
To:        vd@FreeBSD.org
Cc:        pfgshield-freebsd@yahoo.com, freebsd-ports@FreeBSD.org
Subject:   Re: Suggested port: open source Xara Xtreme
Message-ID:  <442023DF.2060303@FreeBSD.org>
In-Reply-To: <20060321145231.GA52957@qlovarnika.bg.datamax>
References:  <20060321110427.GA43879@qlovarnika.bg.datamax>	<20060321142058.7260.qmail@web32705.mail.mud.yahoo.com> <20060321145231.GA52957@qlovarnika.bg.datamax>

next in thread | previous in thread | raw e-mail | index | archive | help
Vasil Dimov wrote:
> On Tue, Mar 21, 2006 at 03:20:58PM +0100, pfgshield-freebsd@yahoo.com wrote:
> 
>>Hi Vasil;
>>
>>--- Vasil Dimov <vd@FreeBSD.org> ha scritto: 
>>...
>>
>>>>     http://www.xaraxtreme.org/
> 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?

FreeBSD doesn't have malloc_usable_size().  In general, it isn't needed 
(and it is definitely a non-standard function).  You should be able to 
restructure the Xara Xtreme source to avoid its use.

For what it's worth, we could add a similar function to FreeBSD with 
minimal effort, but if we did so, I think we'd want to call it something 
like malloc_size_np() and put its prototype in malloc_np.h.

Jason



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442023DF.2060303>