Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDhwu-0006l3-8H for qemu-devel@nongnu.org; Mon, 08 Jun 2009 12:43:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDhwp-0006gl-Bd for qemu-devel@nongnu.org; Mon, 08 Jun 2009 12:43:51 -0400 Received: from [199.232.76.173] (port=34276 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDhwp-0006gZ-5h for qemu-devel@nongnu.org; Mon, 08 Jun 2009 12:43:47 -0400 Received: from [192.93.160.82] (port=49795 helo=LMBUniversite.thales.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDhwo-0000Lg-GM for qemu-devel@nongnu.org; Mon, 08 Jun 2009 12:43:46 -0400 Received: from jcd-laptop.localnet (unknown [192.168.10.193]) by LMBUniversite.thales.net (Postfix) with ESMTP id 8A0EF184008 for ; Mon, 8 Jun 2009 18:16:00 +0200 (CEST) From: "Jean-Christophe Dubois" Date: Mon, 8 Jun 2009 18:16:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906081816.05953.jcd@tribudubois.net> Subject: [Qemu-devel] question about qemu_malloc and friends in xxx-user/mmap.c List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 part. However there are also alternative implementation in xxx-user/mmap.c files for example. These alternative implementations are not on par with the main 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