Subject: Re: An errno for all seasons
To: None <tech-net@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: tech-net
Date: 10/30/1995 11:48:18
>> 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().
So? (*__error()) is a perfectly good lvalue. (Making sure it works
right may take care in the implementation of __error(), but there's no
reason it couldn't be done.)
der Mouse
mouse@collatz.mcrcim.mcgill.edu