From owner-freebsd-ports@FreeBSD.ORG Tue Mar 21 16:03:50 2006 Return-Path: X-Original-To: freebsd-ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2625916A401; Tue, 21 Mar 2006 16:03:50 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from lh.synack.net (lh.synack.net [204.152.188.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF6BB43D73; Tue, 21 Mar 2006 16:03:47 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: by lh.synack.net (Postfix, from userid 100) id D440D5E48FD; Tue, 21 Mar 2006 08:03:47 -0800 (PST) Received: from [192.168.168.201] (moscow-cuda-gen2-68-64-60-20.losaca.adelphia.net [68.64.60.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lh.synack.net (Postfix) with ESMTP id 1D4FF5E4816; Tue, 21 Mar 2006 08:03:45 -0800 (PST) Message-ID: <442023DF.2060303@FreeBSD.org> Date: Tue, 21 Mar 2006 08:03:43 -0800 From: Jason Evans User-Agent: Mozilla Thunderbird 1.0.7-1.4.1 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vd@FreeBSD.org References: <20060321110427.GA43879@qlovarnika.bg.datamax> <20060321142058.7260.qmail@web32705.mail.mud.yahoo.com> <20060321145231.GA52957@qlovarnika.bg.datamax> In-Reply-To: <20060321145231.GA52957@qlovarnika.bg.datamax> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.5 (2005-11-28) on lh.synack.net X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.5 Cc: pfgshield-freebsd@yahoo.com, freebsd-ports@FreeBSD.org Subject: Re: Suggested port: open source Xara Xtreme X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2006 16:03:50 -0000 Vasil Dimov wrote: > On Tue, Mar 21, 2006 at 03:20:58PM +0100, pfgshield-freebsd@yahoo.com wrote: > >>Hi Vasil; >> >>--- Vasil Dimov 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