From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9cen-0002MU-Gn for qemu-devel@nongnu.org; Thu, 17 Dec 2015 12:48:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9cek-00072E-JM for qemu-devel@nongnu.org; Thu, 17 Dec 2015 12:48:01 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9cej-000722-TJ for qemu-devel@nongnu.org; Thu, 17 Dec 2015 12:47:58 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 836338EA39 for ; Thu, 17 Dec 2015 17:47:57 +0000 (UTC) From: Paolo Bonzini Date: Thu, 17 Dec 2015 18:46:40 +0100 Message-Id: <1450374401-31352-45-git-send-email-pbonzini@redhat.com> In-Reply-To: <1450374401-31352-1-git-send-email-pbonzini@redhat.com> References: <1450374401-31352-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 44/45] coverity: Model g_poll() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster From: Markus Armbruster In my testing, Coverity reported two more CHECKED_RETURN: * qemu-char.c:1248: fixed in commit c1f2448: "qemu-char: retry g_poll on EINTR". * migration/qemu-file-unix.c:75: harmless, cleaned up in commit 4e39f57 "migration: Clean up use of g_poll() in socket_writev_buffer() Signed-off-by: Markus Armbruster Message-Id: <1450336833-27710-1-git-send-email-armbru@redhat.com> Signed-off-by: Paolo Bonzini --- scripts/coverity-model.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c index 617f67d..bde7411 100644 --- a/scripts/coverity-model.c +++ b/scripts/coverity-model.c @@ -325,6 +325,15 @@ char *g_strconcat(const char *s, ...) /* Other glib functions */ +typedef struct pollfd GPollFD; + +int poll(); + +int g_poll (GPollFD *fds, unsigned nfds, int timeout) +{ + return poll(fds, nfds, timeout); +} + typedef struct _GIOChannel GIOChannel; GIOChannel *g_io_channel_unix_new(int fd) { -- 2.5.0