From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Srh-0001WY-1r for qemu-devel@nongnu.org; Thu, 17 Dec 2015 02:20:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Srd-0002VV-0z for qemu-devel@nongnu.org; Thu, 17 Dec 2015 02:20:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9Src-0002VR-Km for qemu-devel@nongnu.org; Thu, 17 Dec 2015 02:20:36 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 306708E93E for ; Thu, 17 Dec 2015 07:20:36 +0000 (UTC) From: Markus Armbruster Date: Thu, 17 Dec 2015 08:20:33 +0100 Message-Id: <1450336833-27710-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH v2] coverity: Model g_poll() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com 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 --- v2: Commit message body rewritten, because fixes have been committed meanwhile. scripts/coverity-model.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c index e1d5f45..ee5bf9d 100644 --- a/scripts/coverity-model.c +++ b/scripts/coverity-model.c @@ -342,6 +342,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.4.3