From owner-freebsd-ports@FreeBSD.ORG Tue Mar 21 16:08:08 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 B421416A401; Tue, 21 Mar 2006 16:08:08 +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 64A4F43D70; Tue, 21 Mar 2006 16:08:08 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: by lh.synack.net (Postfix, from userid 100) id 4B2205E48FD; Tue, 21 Mar 2006 08:08:08 -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 DFBEC5E4816; Tue, 21 Mar 2006 08:08:06 -0800 (PST) Message-ID: <442024E6.5080205@FreeBSD.org> Date: Tue, 21 Mar 2006 08:08:06 -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: pfgshield-freebsd@yahoo.com References: <20060321160628.5917.qmail@web32713.mail.mud.yahoo.com> In-Reply-To: <20060321160628.5917.qmail@web32713.mail.mud.yahoo.com> 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: vd@FreeBSD.org, 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:08:08 -0000 pfgshield-freebsd@yahoo.com wrote: > --- Vasil Dimov 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