qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Force pread64/pwrite64 to return 0 for zero-len


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] Force pread64/pwrite64 to return 0 for zero-length buffer
Date: Wed, 17 Dec 2014 12:28:47 +0000

On 17 December 2014 at 12:02, Ilya Palachev <address@hidden> wrote:
> According to official standard POSIX.1-2001. pread64 and pwrite64
> should return 0 for zero-length buffers as mentioned at
>
> http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html
> http://pubs.opengroup.org/onlinepubs/009695399/functions/write.html
>
> Change-Id: Icd66ea29658329fbd5e6461d1def0c78c81d2671
> Signed-off-by: Ilya Palachev <address@hidden>

If this is a problem, doesn't it apply to more syscalls than
just pread64 and pwrite64 ?

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]