From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1E9o-0006UP-5l for qemu-devel@nongnu.org; Wed, 17 Dec 2014 07:56:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1E9f-0005Hk-Bk for qemu-devel@nongnu.org; Wed, 17 Dec 2014 07:56:48 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1E9f-0005HY-5d for qemu-devel@nongnu.org; Wed, 17 Dec 2014 07:56:39 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGQ007O79H9M910@mailout1.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 17 Dec 2014 13:00:45 +0000 (GMT) Message-id: <54917D83.3070504@samsung.com> Date: Wed, 17 Dec 2014 15:56:35 +0300 From: Ilya Palachev MIME-version: 1.0 References: <1418817762-9727-1-git-send-email-i.palachev@samsung.com> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Force pread64/pwrite64 to return 0 for zero-length buffer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Vyachelav Barinov , QEMU Developers On 17.12.2014 15:28, Peter Maydell wrote: > If this is a problem, doesn't it apply to more syscalls than > just pread64 and pwrite64 ? Hi, We were interested in pwrite64/pread64 only since it caused a failure in elfutils (see https://bugzilla.redhat.com/show_bug.cgi?id=1174267). Of course, it applies also to other syscalls. There are the following problems: - Find what syscalls should be changed (check POSIX specification and qemu implementation) - Whether to change them all with "if" statements as for pread64/pwrite64. Or there is some more convenient way? - Find they how to test them all after the change is made (make check?) What do you think about that? Best regards, Ilya Palachev