Date: Thu, 11 Jan 2001 09:20:52 -0700 From: "Jacques A. Vidrine" <n@nectar.com> To: Daniel Eischen <eischen@vigrid.com> Cc: "Justin T. Gibbs" <gibbs@scsiguy.com>, John Baldwin <jhb@FreeBSD.org>, =?iso-8859-1?Q?G=E9rard_Roudier?= <groudier@club-internet.fr>, Jake Burkholder <jake@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Bruce Evans <bde@zeta.org.au> Subject: Re: cvs commit: src/sys/alpha/alpha interrupt.c machdep.c mp_mac Message-ID: <20010111092052.A43267@ophelia.nectar.com> In-Reply-To: <Pine.SUN.3.91.1010111000241.27724A-100000@pcnet1.pcnet.com>; from eischen@vigrid.com on Thu, Jan 11, 2001 at 12:12:07AM -0500 References: <200101110428.f0B4Rcs23445@aslan.scsiguy.com> <Pine.SUN.3.91.1010111000241.27724A-100000@pcnet1.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 11, 2001 at 12:12:07AM -0500, Daniel Eischen wrote:
> Uh-oh. I've just gone through libc (not committed yet) and replaced all
> instances of "errno = x" to _set_errno(x) to deal with threaded apps. I
> didn't realize that it actually worked correctly.
>
> Should I discard these changes, or is _set_errno(x) seen as a better
> interface than errno = x?
I thought you were kidding until I read on a little further.
I think this is a bad idea:
. it doesn't solve any problems
. it breaks a well-defined API
. we still like to share parts of libc where possible and this
gets in the way
. it's damn ugly :-)
Cheers,
--
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010111092052.A43267>
