Subject: Re: An errno for all seasons
To: Christoph Badura <bad@flatlin.ka.sub.org>
From: Matt Thomas <matt@lkg.dec.com>
List: tech-net
Date: 10/30/1995 18:10:05
In <m0t9v5Y-00005tC@flatlin.ka.sub.org> , you wrote:
> John Birrel writes:
> >We're living with a threaded version of NetBSD's libc where errno is thread
> >specific. By changing errno.h to define errno as:
>
> >extern int *__error();
> >#define errno (*__error())
>
> I believe POSIX requires errno to be writeable in order to detect the
> indeterminate cases of sysconf()/pathconf().
And in what is that expression not writeable?
*__error() is a perfectly valid lvalue.
Matt Thomas Internet: matt@lkg.dec.com
3am Software Foundry WWW URL: <currently homeless>
Westford, MA Disclaimer: Digital disavows all knowledge
of this message