Received: from eggs.gnu.org ([208.118.235.92]:60790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1eTq-0002Wl-5F for qemu-devel@nongnu.org; Wed, 15 Aug 2012 10:21:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1eTp-0000XS-3s for qemu-devel@nongnu.org; Wed, 15 Aug 2012 10:21:54 -0400 Date: Wed, 15 Aug 2012 15:21:48 +0100 From: Stefan Hajnoczi Message-ID: <20120815142148.GL10742@stefanha-thinkpad.localdomain> References: <1344720275-26744-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1344720275-26744-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] iov_send_recv(): Handle zero bytes case even if OS does not List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, Michael Tokarev , qemu-devel@nongnu.org, patches@linaro.org On Sat, Aug 11, 2012 at 10:24:35PM +0100, Peter Maydell wrote: > POSIX allows sendmsg() and recvmsg() to fail EMSGSIZE if passed a zero > msg.msg_iovlen (in particular the MacOS X implementation will do this). > Handle the case where iov_send_recv() is passed a zero byte count > explicitly, to avoid accidentally depending on the OS to treat zero > msg_iovlen as a no-op. > > Signed-off-by: Peter Maydell > --- > This is what was causing 'make check' to fail on MacOS X. > The other option was to declare that a zero bytecount was illegal, I guess. > > iov.c | 7 +++++++ > 1 file changed, 7 insertions(+) Thanks, applied to the trivial patches tree: https://github.com/stefanha/qemu/commits/trivial-patches Stefan