[Python-Dev] Assign to errno allowed?

Brad Clements bkc@murkworks.com
Tue, 24 Sep 2002 15:04:40 -0400


On 24 Sep 2002 at 20:46, Fredrik Lundh wrote:

> brad wrote:
> 
> > (oh, also put "NetWare" in there wherever you see the word CE .. and I
> > suspect some other embedded operating systems running on MMU-less
> > processors that can't virtualize errno and don't have TLS)
> 
> that's why the specification says that "errno" might be a macro,
> and why many platforms define that macro to be something like:
> 
>     #define errno (*_errno())

Yes, but still on CE you cannot get a pointer to the thread specific errno. You cannot 
take it's address.

So .. errno is

#define errno	GetLastError()

I wish this were not true.


Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
AOL-IM: BKClements