[Qemu-devel] [PATCH] linux-user: write(fd, NULL, 0) parity with linux's treatment of same

2018-09-08 Thread Tony Garnock-Jones
: both linux and linux-user yield -1 for NULL 0-length reads/writes. Signed-off-by: Tony Garnock-Jones --- linux-user/syscall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 850b72a0c7..8f46540534 100644 --- a/linux-user/syscall.c +++ b/lin

[Qemu-devel] [Bug 1716292] Re: User mode emulation returns wrong value for write(fd, NULL, 0)

2018-09-07 Thread Tony Garnock-Jones
** Patch added: "0001-Bring-linux-user-write-2-handling-into-line-with-lin.patch" https://bugs.launchpad.net/qemu/+bug/1716292/+attachment/5186008/+files/0001-Bring-linux-user-write-2-handling-into-line-with-lin.patch -- You received this bug notification because you are a member of qemu-

[Qemu-devel] [Bug 1716292] Re: User mode emulation returns wrong value for write(fd, NULL, 0)

2018-09-07 Thread Tony Garnock-Jones
This happens for me also, with qemu version 2.12.0 (Debian 1:2.12+dfsg-3). An initial patch was proposed here: https://lists.gnu.org/archive/html /qemu-devel/2017-09/msg08073.html Discussion pointed out some problems, and the patch languished and was not accepted. Here is a summary of the