From owner-freebsd-hackers Tue Nov 25 11:25:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA10964 for hackers-outgoing; Tue, 25 Nov 1997 11:25:21 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from anlsun.ebr.anlw.anl.gov (anlsun.ebr.anlw.anl.gov [141.221.1.2]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id LAA10948 for ; Tue, 25 Nov 1997 11:25:16 -0800 (PST) (envelope-from cmott@srv.net) Received: from darkstar.home (dialin3.anlw.anl.gov [141.221.254.103]) by anlsun.ebr.anlw.anl.gov (8.6.11/8.6.11) with SMTP id MAA05915; Tue, 25 Nov 1997 12:25:08 -0700 Date: Tue, 25 Nov 1997 12:24:36 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar.home To: Terry Lambert cc: freebsd-hackers@freebsd.org Subject: Re: pthread_cond_timedwait returning wrong error? In-Reply-To: <199711251746.KAA02503@usr08.primenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 25 Nov 1997, Terry Lambert wrote: > > > While we are talking about threads, any comments on PR-4376? > > > > You are 100% right about the return value being incorrect. > > Unfortunately, this problem is present in many more functions than just > > pthread_join(). > > > > From what I can tell by looking at an old DEC OSF/1 reference on > > pthreads, returning -1 an setting errno is the way things used to work. > > Apparently POSIX has changed that. > > Given that "errno" is a global variable, this is actually a good thing. > I was wondering whether maybe errno could be a thread-specific variable rather than global -- mabye via use of a macro. I was looking through libc_r sources, but I couldn't discern what was being done in this regard. To me, having all the *_r reentrant functions is a big nuisance. Charles Mott