From patchwork Tue Jan 19 23:56:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 43237 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 62522B7CD9 for ; Wed, 20 Jan 2010 11:05:08 +1100 (EST) Received: from localhost ([127.0.0.1]:46433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXO1o-0007aC-T5 for incoming@patchwork.ozlabs.org; Tue, 19 Jan 2010 19:02:32 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXNw9-0005mI-2f for qemu-devel@nongnu.org; Tue, 19 Jan 2010 18:56:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXNw4-0005j1-2d for qemu-devel@nongnu.org; Tue, 19 Jan 2010 18:56:40 -0500 Received: from [199.232.76.173] (port=59370 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXNw3-0005iu-TF for qemu-devel@nongnu.org; Tue, 19 Jan 2010 18:56:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42460) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXNw3-0005uu-AJ for qemu-devel@nongnu.org; Tue, 19 Jan 2010 18:56:35 -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 o0JNuY8S024140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Jan 2010 18:56:34 -0500 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0JNuT3j027975; Tue, 19 Jan 2010 18:56:33 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 20 Jan 2010 00:56:09 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: 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: kirill@shutemov.name Subject: [Qemu-devel] [PATCH 02/17] force to test result for qemu_write_full() 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: Juan Quintela --- qemu-common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-common.h b/qemu-common.h index a8144cb..f009796 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -160,7 +160,8 @@ void qemu_mutex_lock_iothread(void); void qemu_mutex_unlock_iothread(void); int qemu_open(const char *name, int flags, ...); -ssize_t qemu_write_full(int fd, const void *buf, size_t count); +ssize_t qemu_write_full(int fd, const void *buf, size_t count) + QEMU_WARN_UNUSED_RESULT; void qemu_set_cloexec(int fd); #ifndef _WIN32