From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22784 invoked by alias); 24 Sep 2013 12:17:07 -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 22771 invoked by uid 89); 24 Sep 2013 12:17:07 -0000 Received: from bureau81.ns.utoronto.ca (HELO bureau81.ns.utoronto.ca) (128.100.132.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 24 Sep 2013 12:17:07 +0000 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 Received: from [172.16.2.247] ([12.199.7.82]) (authenticated bits=0) by bureau81.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id r8OCH1DC009290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 24 Sep 2013 08:17:04 -0400 Message-ID: <524182BA.3050002@cs.utoronto.ca> Date: Tue, 24 Sep 2013 14:56:00 -0000 From: Ryan Johnson 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: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00349.txt.bz2 On 24/09/2013 5:04 AM, Tue Henriksen wrote: > problems with sem_getvalue function > 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