Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 1997 17:59:13 -0600 (CST)
From:      Alex Nash <nash@mcs.com>
To:        deischen@iworks.InterWorks.org
Cc:        nash@mcs.com, freebsd-hackers@freebsd.org, julian@whistle.com
Subject:   Re: pthread_cond_timedwait returning wrong error?
Message-ID:  <199711242359.RAA00771@zen.nash.org>
In-Reply-To: <199711242341.RAA26968@iworks.InterWorks.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 Nov, Daniel M. Eischen wrote:
>> > What does the POSIX spec say about the return value of
>> > pthread_cond_timedwait()?
>>
>> The spec says that the error code is returned from the function
>> directly, and not via errno.  Unfortunately our threads library
>> appears to return -1 and set errno instead.
>>
>> Alex
> 
> Shall I send a PR against our threads library?  Or do we
> care that our threads library isn't totally POSIX compliant?

I'm going to try and clean up the return values the next chance I get
(which is probably this weekend).  Feel free to submit a PR if you
wish, but I wouldn't bother including diffs -- it'll be as much work to
verify the diffs as to actually do the work :)

Alex





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