From owner-freebsd-hackers Tue Nov 25 11:12:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA10105 for hackers-outgoing; Tue, 25 Nov 1997 11:12:20 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from Kitten.mcs.com (Kitten.mcs.com [192.160.127.90]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA10097 for ; Tue, 25 Nov 1997 11:12:18 -0800 (PST) (envelope-from nash@Jupiter.Mcs.Net) Received: from Jupiter.Mcs.Net (nash@Jupiter.mcs.net [192.160.127.88]) by Kitten.mcs.com (8.8.5/8.8.2) with ESMTP id NAA23862; Tue, 25 Nov 1997 13:12:17 -0600 (CST) Received: from localhost (nash@localhost) by Jupiter.Mcs.Net (8.8.7/8.8.2) with SMTP id NAA04308; Tue, 25 Nov 1997 13:12:16 -0600 (CST) Date: Tue, 25 Nov 1997 13:12:16 -0600 (CST) From: Alex Nash To: Terry Lambert cc: nash@mcs.com, bradley@dunn.org, 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: > > 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. errno is thread-specific. #define errno (* __error()) Alex