X-Recipient: archive-cygwin@delorie.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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=TSXV7roWxyEO175Q
	O45Fw2n58/v/kA/gt6nICTQxt12DzMEvUM+uP3EW5/w8LwFWXTn5yZKL8LP85tdZ
	aCVPYInR5vE3jgjgqEwzN1lhRWbk+9YjDXjTlZvCSND0wMEIpnABuYePBdbBy0Zv
	QsV11UtV3ZUV+R8tmZn4h8rzs8I=
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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=o4UkYeef/Y8lOc+73ino0c
	9RmQU=; b=DK6NPlhI50/gd68CV7RJPl8dA+fXpAJIRoRSTeW9/MtHA9aLH5X++0
	2BH1rSnYfKZ9DQfuxhOIAh3bi1ayz8JB+MxL3DLg5tRVPbfclWl2qv9oOb5cJDSK
	7TTeYQjM3Go65ZeM5Zrvr0MvLdMl2uc/5kVW/yqZUt3cUXWalTVzw=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <5357D3D8.1010707@cs.umass.edu>
Date: Wed, 23 Apr 2014 10:53:12 -0400
From: Eliot Moss <moss@cs.umass.edu>
Reply-To: moss@cs.umass.edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin's writev() non-standard behavior
References: <20140423140635.156430@gmx.com> <5357D176.4010203@redhat.com>
In-Reply-To: <5357D176.4010203@redhat.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Using the link Eric Blake provided, I extract this from the POSIX
specification for writev:

"The iovcnt argument is valid if greater than 0 ..."

So, while the man page is a little off, the response seems
to be correct.  You cold argue, and I might agree, that
POSIX should have allowed a 0 and said writev should just
return 0 in that case, but they didn't ...

Regards -- Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

