From: Carlo Arenas <carenas@gmail.com>
To: Laurent Vivier <laurent@vivier.eu>
Cc: zhuoweizhang@yahoo.com, qemu-devel@nongnu.org, riku.voipio@iki.fi
Subject: Re: [Qemu-devel] [PATCH] syscall: fix special case of write(fd, NULL, 0)
Date: Fri, 29 Sep 2017 16:33:17 -0700 [thread overview]
Message-ID: <CAPUEspiEoZk2ems4L_f9J7y9r+65EKu85COJzkBoH_YYuu+q8A@mail.gmail.com> (raw)
In-Reply-To: <46ce7f3c-f0cb-bdfe-25fc-984276601f7d@vivier.eu>
a return of 0 is a valid response for write per POSIX and just indicates 0
bytes were written.
the use of NULL for the buffer is not a trigger for that behaviour, but the
fact that the third parameter asks for 0 bytes to be copied.
therefore there is no need to get logic in this handler to check for NULL
IMHO
Carlo
next prev parent reply other threads:[~2017-09-29 23:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 16:50 [Qemu-devel] [PATCH] syscall: fix special case of write(fd, NULL, 0) zhuoweizhang
2017-09-29 19:14 ` Laurent Vivier
2017-09-29 19:49 ` Peter Maydell
2017-09-29 23:33 ` Carlo Arenas [this message]
2017-09-29 23:38 ` Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2018-02-14 23:33 Oliver Smith
2018-02-15 8:50 ` Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPUEspiEoZk2ems4L_f9J7y9r+65EKu85COJzkBoH_YYuu+q8A@mail.gmail.com \
--to=carenas@gmail.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
--cc=zhuoweizhang@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).