From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 316 invoked by alias); 24 Sep 2013 14:56:01 -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 305 invoked by uid 89); 24 Sep 2013 14:56:01 -0000 Received: from mho-02-ewr.mailhop.org (HELO mho-02-ewr.mailhop.org) (204.13.248.72) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 24 Sep 2013 14:56:01 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=6.2 required=5.0 tests=AWL,BAYES_05,FSL_HELO_NON_FQDN_1,HELO_LOCALHOST,RCVD_IN_PBL,RCVD_IN_RP_RNBL,RCVD_IN_SORBS_DUL,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mho-02-ewr.mailhop.org Received: from pool-98-110-183-21.bstnma.fios.verizon.net ([98.110.183.21] helo=cgf.cx) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1VOU1u-000JtJ-PE; Tue, 24 Sep 2013 14:55:58 +0000 Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 1D69D60050; Tue, 24 Sep 2013 10:55:57 -0400 (EDT) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18tZl5dTeVUeOBpJmsh2xex Date: Tue, 24 Sep 2013 15:05:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: sem_getvalue returns the semaphore count, while not setting the actual semaphore counter Message-ID: <20130924145557.GA4813@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <524182BA.3050002@cs.utoronto.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <524182BA.3050002@cs.utoronto.ca> User-Agent: Mutt/1.5.20 (2009-06-14) X-SW-Source: 2013-09/txt/msg00350.txt.bz2 On Tue, Sep 24, 2013 at 05:16:58AM -0700, Ryan Johnson wrote: >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/ This was not submitted. I asked some questions which the OP never answered. cgf -- 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