From patchwork Thu Mar 11 14:48:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 47337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F1C2CB7CEF for ; Fri, 12 Mar 2010 02:10:54 +1100 (EST) Received: from localhost ([127.0.0.1]:56399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npk2G-0002ei-6J for incoming@patchwork.ozlabs.org; Thu, 11 Mar 2010 10:10:52 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Npjh0-0000uP-7E for qemu-devel@nongnu.org; Thu, 11 Mar 2010 09:48:54 -0500 Received: from [199.232.76.173] (port=59983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npjgz-0000tk-J4 for qemu-devel@nongnu.org; Thu, 11 Mar 2010 09:48:53 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Npjgv-0007hV-Fr for qemu-devel@nongnu.org; Thu, 11 Mar 2010 09:48:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34540) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Npjgt-0007gx-NJ for qemu-devel@nongnu.org; Thu, 11 Mar 2010 09:48:48 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2BEmje8007136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Mar 2010 09:48:45 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2BEmii2006375; Thu, 11 Mar 2010 09:48:44 -0500 Received: from localhost.localdomain (file.tlv.redhat.com [10.35.255.8]) by cleopatra.tlv.redhat.com (Postfix) with ESMTP id A950A250059; Thu, 11 Mar 2010 16:48:43 +0200 (IST) From: Avi Kivity To: Anthony Liguori Date: Thu, 11 Mar 2010 16:48:43 +0200 Message-Id: <1268318923-13397-1-git-send-email-avi@redhat.com> In-Reply-To: <4B98FA68.7000901@codemonkey.ws> References: <4B98FA68.7000901@codemonkey.ws> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] CODING_STYLE: Reserve qemu_ prefix for library wrappers X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Avi Kivity Acked-by: Anthony Liguori Acked-by: Juan Quintela Acked-by: Aurelien Jarno --- CODING_STYLE | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index a579cb1..92036f3 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -49,6 +49,9 @@ and is therefore likely to be changed. Typedefs are used to eliminate the redundant 'struct' keyword. It is the QEMU coding style. +When wrapping standard library functions, use the prefix qemu_ to alert +readers that they are seeing a wrapped version; otherwise avoid this prefix. + 4. Block structure Every indented statement is braced; even if the block contains just one