From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15053 invoked by alias); 23 Apr 2014 14:53:15 -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 15041 invoked by uid 89); 23 Apr 2014 14:53:15 -0000 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 Received: from mdc1.cs.umass.edu (HELO csmail.cs.umass.edu) (128.119.240.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Apr 2014 14:53:14 +0000 Received: from [192.168.0.3] (c-71-192-247-69.hsd1.ma.comcast.net [71.192.247.69]) by csmail.cs.umass.edu (Postfix) with ESMTPSA id 067DEC000022055625; Wed, 23 Apr 2014 10:53:11 -0400 (EDT) Message-ID: <5357D3D8.1010707@cs.umass.edu> Date: Wed, 23 Apr 2014 14:53:00 -0000 From: Eliot Moss 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 X-SW-Source: 2014-04/txt/msg00512.txt.bz2 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