delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/23/10:53:29

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: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 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=-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 AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT 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 AT cygwin DOT com
Subject: Re: Cygwin's writev() non-standard behavior
References: <20140423140635 DOT 156430 AT gmx DOT com> <5357D176 DOT 4010203 AT redhat DOT com>
In-Reply-To: <5357D176.4010203@redhat.com>
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

- Raw text -


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