qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gianni Tedesco <gianni@scaramanga.co.uk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] DOSEMU image file support
Date: Sat, 25 Sep 2004 13:04:32 +0100	[thread overview]
Message-ID: <1096113872.2913.132.camel@sherbert> (raw)
In-Reply-To: <41375469.9050508@bellard.org>

On Thu, 2004-09-02 at 19:12 +0200, Fabrice Bellard wrote:
> > The reason I used stdio is that read/write are non-blocking. It is
> > not an error for read to return fewer bytes than requested. If that
> > happens, the other block drivers fail.
> 
> I agree, but for disk accesses it is usual to assume they return the 
> requested amount of bytes. fread/fwrite are buffered I/Os which is a bit 
> overkill for block drivers.

Heh,

Not if an unmasked signal is received on NFS mounted soft/intr. That is
because POSIX "allows a read that is interrupted after reading some data
to return -1 (with errno set to EINTR) or to return the number of bytes
already read."

-- 
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D

  parent reply	other threads:[~2004-09-25 12:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 15:15 [Qemu-devel] [PATCH] DOSEMU image file support Hampa Hug
2004-09-02 16:07 ` Fabrice Bellard
2004-09-02 16:21   ` Johannes Schindelin
2004-09-02 17:00   ` Hampa Hug
2004-09-02 17:12     ` Fabrice Bellard
2004-09-03 18:04       ` [Qemu-devel] Solved: QEMU messed up in Windows Harry Sufehmi
2004-09-14  0:19       ` [Qemu-devel] [PATCH] DOSEMU image file support Hampa Hug
2004-09-14  9:04         ` Johannes Schindelin
2004-09-25 12:04       ` Gianni Tedesco [this message]
2004-09-25 12:08         ` Gianni Tedesco

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=1096113872.2913.132.camel@sherbert \
    --to=gianni@scaramanga.co.uk \
    --cc=qemu-devel@nongnu.org \
    /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).