This is the mail archive of the
mailing list for the Cygwin project.
Re: sem_trywait returns EAGAIN (rather than returning -1 and setting errno)
cool - I misunderstood. I will try and work up a patch...
----- Original Message -----
From: "Christopher Faylor" <firstname.lastname@example.org>
Sent: Tuesday, February 26, 2002 7:33 PM
Subject: Re: sem_trywait returns EAGAIN (rather than returning -1 and
> 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
> >is written. If it's intentional that cygwin deviate from posix 1.b, I'm
> >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 .
> 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