Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEGkV-00061n-JR for qemu-devel@nongnu.org; Wed, 10 Jun 2009 01:53:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEGkP-00061b-7x for qemu-devel@nongnu.org; Wed, 10 Jun 2009 01:53:23 -0400 Received: from [199.232.76.173] (port=34851 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEGkP-00061X-07 for qemu-devel@nongnu.org; Wed, 10 Jun 2009 01:53:17 -0400 Received: from [192.93.160.82] (port=21693 helo=LMBUniversite.thales.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEGkO-0003e3-Jv for qemu-devel@nongnu.org; Wed, 10 Jun 2009 01:53:16 -0400 Received: from jcd-laptop.localnet (unknown [192.168.10.226]) by LMBUniversite.thales.net (Postfix) with ESMTP id 738F5184008 for ; Wed, 10 Jun 2009 07:53:09 +0200 (CEST) From: "Jean-Christophe Dubois" Subject: Re: [Qemu-devel] question about qemu_malloc and friends in xxx-user/mmap.c Date: Wed, 10 Jun 2009 07:53:16 +0200 References: <200906081816.05953.jcd@tribudubois.net> In-Reply-To: <200906081816.05953.jcd@tribudubois.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200906100753.16550.jcd@tribudubois.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Does anybody have an opinion on these topics? JC Le lundi 8 juin 2009 18:16:05 Jean-Christophe Dubois, vous avez =E9crit : > Hi everybody, > > A little question about qemu_malloc(). There is one implementation that is > heavily debated on the list. This implementation is for the main qemu par= t. > > However there are also alternative implementation in xxx-user/mmap.c files > for example. These alternative implementations are not on par with the ma= in > implementation when it comes to the behavior. In particular it does not > abort() on error for example. Is this perceived as a problem? Should all > qemu_malloc() implementation have the same behavior (whatever is finally > agreed upon on the list)? > > On the same kind of topic, these files do not offer some of the desired > function. In particular there are no implementation of qemu_strdup() or > qemu_strndud() and therefore the classical strdup() function is used in > some files. Is this other issue perceived as another problem to solve? > > Thanks > > JC