delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/26/20:39:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <002401c1bf2f$a1375250$6401a8c0@dopeslap2k>
From: "Andrew T. Schnable" <schnable AT enteract DOT com>
To: <cygwin AT cygwin DOT com>
References: <FC169E059D1A0442A04C40F86D9BA76008AAC0 AT itdomain003 DOT itdomain DOT net DOT au> <20020226221913 DOT GA20206 AT redhat DOT com> <001d01c1bf23$bcd8cd10$6401a8c0 AT dopeslap2k> <20020227003322 DOT GA23153 AT redhat DOT com>
Subject: Re: sem_trywait returns EAGAIN (rather than returning -1 and setting errno)
Date: Tue, 26 Feb 2002 20:39:43 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

cool - I misunderstood.  I will try and work up a patch...

Andy

----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin AT cygwin DOT com>
Sent: Tuesday, February 26, 2002 7:33 PM
Subject: Re: sem_trywait returns EAGAIN (rather than returning -1 and
setting errno)


> On Tue, Feb 26, 2002 at 07:14:35PM -0500, Andrew T. Schnable wrote:
> >You have a point regarding errno, but unfortunately, this is how the
> >standard
> >is written. If it's intentional that cygwin deviate from posix 1.b, I'm
fine
> >with that - I can code accordingly.  FYI - I went to the
> >
> >    The Open Group Base Specifications Issue 6
> >    technically identical to IEEE Std 1003.1-2001
> >    Copyright ? 2001 The IEEE and The Open Group
> >
> >(because this was easier to find on-line and it should be close enough,)
> >and snipped this fragment from the sem_trywait man page...
>
> I wasn't referring to the specific case that you reported.  I was just
> referring to my grep which found many cases where an errno value was
> being returned.
>
> As Robert indicated, in the vast majority of those cases, this was, in
> fact, the right thing to do.
>
> It's apparently not the right thing to do in the case of sem_trywait, so
> a patch will be required:  http://cygwin.com/contrib.html .
>
> cgf
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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