From patchwork Thu Mar 11 14:48:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: CODING_STYLE: Reserve qemu_ prefix for library wrappers Date: Thu, 11 Mar 2010 04:48:43 -0000 From: Avi Kivity X-Patchwork-Id: 47337 Message-Id: <1268318923-13397-1-git-send-email-avi@redhat.com> To: Anthony Liguori Cc: qemu-devel@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