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:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=XWlGg2y9/Pegb/QmuDLvsSTxyq1wLlji1+x8580NYnX
	/crBqvA7YeA5DrY2AQUFdqFAcjwyzw1jnwM9SSk4TuzWKVHBWNSZM8Yxr+lRo2X4
	cxEo7BGQrz4KHpSQFTjiHyd++o84cTtn78MSrrYi2tIAhq7rfWwe/0x3WhASRG1Q
	=
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:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=VG1qg4zZGvH3HBTIsohyFp0x/nQ=; b=CeEi1FZnWpiiPi4Tb
	jYrw0EHTU4u1RflyWj8u3YuzeL1HSU4/Yfy9sfNLb/AzZO2sAMK82tHVWN+7VmlF
	Mpk3itg1qcJDtikkIqhGBN7uuSaAkyTh5uAKyDclIaoZx4ke6ySusq1sgrF/NGqu
	xk3wFXnWp7Arok/mnTHIfd/GVk=
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.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50 autolearn=ham version=3.3.2
X-HELO: bureau81.ns.utoronto.ca
Message-ID: <524182BA.3050002@cs.utoronto.ca>
Date: Tue, 24 Sep 2013 05:16:58 -0700
From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: sem_getvalue returns the semaphore count, while not setting the actual semaphore counter
References: <FDCE19ABDB9E0E4AAC59D533D365D2AF0170C38983@EXCHSRV02.deif.com>
In-Reply-To: <FDCE19ABDB9E0E4AAC59D533D365D2AF0170C38983@EXCHSRV02.deif.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 24/09/2013 5:04 AM, Tue Henriksen wrote:
> problems with sem_getvalue function
<snip>
> On success, it should return 0, otherwise -1. However, it looks like the function lately has been changed so it now returns the semaphore count, and leaves '*sval' unchanged.
A patch to fix this was submitted recently [1], you might want to see 
whether the current snapshot has the fix yet [2].

[1] http://cygwin.com/ml/cygwin-patches/2013-q3/msg00006.html
[2] http://cygwin.com/snapshots/

Ryan


--
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

