From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Avi Kivity 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> Subject: [Qemu-devel] [PATCH] CODING_STYLE: Reserve qemu_ prefix for library wrappers List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org Signed-off-by: Avi Kivity --- 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 -- 1.7.0.2