From owner-freebsd-hackers Tue Nov 25 14:24:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA08871 for hackers-outgoing; Tue, 25 Nov 1997 14:24:56 -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 OAA08846 for ; Tue, 25 Nov 1997 14:24:46 -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 PAA06380; Tue, 25 Nov 1997 15:24:38 -0700 Date: Tue, 25 Nov 1997 15:24:05 -0700 (MST) From: Charles Mott X-Sender: cmott@darkstar.home To: Niall Smart cc: hackers@freebsd.org Subject: Re: pthread_cond_timedwait returning wrong error? In-Reply-To: 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, Niall Smart wrote: > On Nov 25, 12:24pm, Charles Mott wrote: > } Subject: Re: pthread_cond_timedwait returning wrong error? > > > > To me, having all the *_r reentrant functions is a big nuisance. > > Yeah, lets invent our own standard! Or maybe we should just leave out > threads altogether and stick with badly designed interfaces! > > Niall I quess I was referring to the *_r functions on Solaris that I don't see anywhere else. Are these standard? I think having the standard Unix function calls with hidden thread addaptations like the errno solution (mapping errno to a function) explained by Alex Nash seems like a good idea to me. What I have observed from Solaris, FreeBSD, Linux and OSF is that there doesn't seem to be any standard that is obvious to me. Even OSF 3.2 and 4.0 are different from each other. This is a major source of annoyance if one is trying to develop software which will cleanly compile accross different platforms. Charles Mott