delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/23/12:45:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=NNKDoCfB43zdH7dm/xiJqvZW3XKLwsP4jx6+ttKOPkEOwmlM1u/k0
Ocq5NGLxz/yR/ZswxbuOa8nNNRZlQoBIHOhQXgbU1mVRjqP/gh+7GSVvWijv7rBT
WtEy/d/01wtFWlyBmCJbAaOkWyJSmCeAnJRkqlMMuTXQYC0LUdDlZ0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=i9dJ2TFfG/kSHr357n/rGJy9TJU=; b=iNRDxooXH1qwJWs2FdW9Z7kTs8tx
jfmGedesxfNaV60VUv3aej8WPqdpa1h6nFY2k7F2PWchg/GAXTJBJE3q4oEYNsEs
VL1suvQ1ssfBJcSVXeXZ1Lwv/yMnC3AdGxp2LOe7OTSmMcKZqJ9D/t4Q7S2OLu27
I7M6xOq2HpPGjQo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Wed, 23 Apr 2014 18:44:43 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin's writev() non-standard behavior
Message-ID: <20140423164443.GP2339@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20140423154825 DOT 161280 AT gmx DOT com>
MIME-Version: 1.0
In-Reply-To: <20140423154825.161280@gmx.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

--hTKW8p8tUZ/8vLMe
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr 23 17:48, qq qq wrote:
> > I applied a patch to CVS.
>=20
> Thanks. =C2=A0Although I could not see it in ViewVC -- the page stops loa=
ding at the "configure" script.
>=20
> Anyhow, I suppose that check_iovec still returns EINVAL for count=3D=3D0 =
in any read functions: =C2=A0simply returning
> "tot"=3D=3D0 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

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

--hTKW8p8tUZ/8vLMe
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTV+37AAoJEPU2Bp2uRE+g9y0P/3yQ7Yw9Qc74SMHB51kzTNxC
6yrScc89BUDwNZdJVG/ERVMCW+yuyTx7Ine+orP/45zDLGeiL1Qj+dT2AOsYhsvX
g7G2MUrCegm0dq9u+m1KJOuWUs6ZIEjD1lmZHBZaQQaUNp2whQ9+Z6K3cCUYduKv
uLfcQ152RLfq9ddFZk/U+9iUKBkEtJeYHE8h0WTZiEXurmKM6rSWYGD3BtDjeera
uK+Q8LmAPQMAjLegfSNT0ul5HAR11h2Vq5GQIcJN0VJ01esv5YMXSsiqQItERirh
+Xe5U2DB0Oqi6aXK82YaUSvHwyZzkjCuWRc/tXHHrd2hK4Zl5jzARbLWELMRlscR
GEuIrqQEaowgs9C5cne1jvuUDCYYs675EyWzypO4+SBCD6lYFfnCZE1gQ1dMG/M9
omZIqPx/yAvL6QEYWajlkqnLSECgGrfyoTXUlb0KbNwYGE9jUSHUfaFmFOPHYitv
MwB9nGvKpHijWnoy3D55g31m/si7umt7nuLBREFgoKDSvYVZrn2y1vW7+hx0xY5+
ca3sFHqLj+yxUssizyFL6IU2HToRRiHqFn4LVaYmixrCCTb1CRQxG/6vf/HxLX8a
CxRM+1UT51LK9Lc0xtM5qwQCXgP5ZcsiXJGIA6F44LiWzZvuGLUc7BEpUxLjhxyD
KBgY1wmZAk2zmtmHF0pm
=oJZ3
-----END PGP SIGNATURE-----

--hTKW8p8tUZ/8vLMe--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019