From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6264 invoked by alias); 23 Apr 2014 16:44:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 6255 invoked by uid 89); 23 Apr 2014 16:44:47 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Apr 2014 16:44:46 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id A19C38E142F; Wed, 23 Apr 2014 18:44:43 +0200 (CEST) Date: Wed, 23 Apr 2014 16:44:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin's writev() non-standard behavior Message-ID: <20140423164443.GP2339@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20140423154825.161280@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hTKW8p8tUZ/8vLMe" Content-Disposition: inline In-Reply-To: <20140423154825.161280@gmx.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-04/txt/msg00522.txt.bz2 --hTKW8p8tUZ/8vLMe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 784 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 Content-length: 819 -----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--