Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Oct 2004 01:13:24 -0500
From:      Brian Fundakowski Feldman <green@freebsd.org>
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/lib/libpthread/thread thr_mutex.c
Message-ID:  <20041031061324.GR93831@green.homeunix.org>
In-Reply-To: <20041031055630.GE24892@elvis.mu.org>
References:  <200410310503.i9V53ofj011896@repoman.freebsd.org> <20041031050620.GQ93831@green.homeunix.org> <20041031055630.GE24892@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 30, 2004 at 10:56:30PM -0700, Alfred Perlstein wrote:
> * Brian Fundakowski Feldman <green@FreeBSD.org> [041030 22:06] wrote:
> > On Sun, Oct 31, 2004 at 05:03:50AM +0000, Brian Feldman wrote:
> > > green       2004-10-31 05:03:50 UTC
> > > 
> > >   FreeBSD src repository
> > > 
> > >   Modified files:
> > >     lib/libpthread/thread thr_mutex.c 
> > >   Log:
> > >   Make pthread_mutex_trylock(3) return EBUSY on failure, as all software
> > >   packages expect and seems to be most correct according to the slightly-
> > >   ambiguous standards.
> > >   
> > >   MFC after:              1 month
> > >   Corroborated by:        POSIX <http://tinyurl.com/4uvub>;
> > >   Reviewed by:            silence on threads@
> > 
> > Software such as mozilla projects (using NSPR) and Java have been
> > broken in various ways by this.  We need to try to be more compatible
> > with the most popular interpretation of the standards (instead of just
> > inventing our own) -- usually we're pretty good about this.
> 
> Good catch... it could have just been an oversight though. :)
> 
> We need a "configure" like regression suite for pthreads[*].
> 
> [*] and a ton of other stuff. :)

Actually, I think POSIX has a whole bunch of regression tests!  I wonder
if anyone could ever convince them to make them free for BSD operating
systems...

http://www.opengroup.org/testing/testsuites/vsthover.htm

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041031061324.GR93831>