public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin's writev() non-standard behavior
Date: Wed, 23 Apr 2014 16:44:00 -0000	[thread overview]
Message-ID: <20140423164443.GP2339@calimero.vinschen.de> (raw)
In-Reply-To: <20140423154825.161280@gmx.com>

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

On Apr 23 17:48, qq qq wrote:
> > I applied a patch to CVS.
> 
> Thanks.  Although I could not see it in ViewVC -- the page stops loading at the "configure" script.
> 
> Anyhow, I suppose that check_iovec still returns EINVAL for count==0 in any read functions:  simply returning
> "tot"==0 means EOF in many (if not all) of them.

That's perfectly ok:

  If count is zero, read() may detect the errors described below.  In the
  absence of any errors, or if read() does not check for errors, a read()
  with a count of 0 returns zero and has no other effects.

This behaviour is also fine for readv.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-04-23 16:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 15:48 qq qq
2014-04-23 16:44 ` Corinna Vinschen [this message]
2014-04-23 18:44 ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2014-04-23 14:53 qq qq
2014-04-23 16:24 ` Eric Blake
2014-04-23 14:06 qq qq
2014-04-23 14:43 ` Eric Blake
2014-04-23 14:53   ` Eliot Moss
2014-04-23 15:29 ` Corinna Vinschen

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=20140423164443.GP2339@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.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 read-only IMAP folder(s) and NNTP newsgroup(s).