help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: errno bug?


From: Ulrich Eckhardt
Subject: Re: errno bug?
Date: Thu, 07 Oct 2004 22:35:39 +0200
User-agent: KNode/0.7.7

E. Robert Tisdale wrote:
> Ross Smith wrote:
>> As several people have already explained to you,
>> you are not allowed to write 
> 
> I didn't write "extern int errno".
> It appears in already existing (now broken) code.
> 
[examples]

You are right, that code is now broken. However, a single, global errno is
useless in a multithreaded context - the mentioned function uses
thread-local storage.

I hope you now understand why the extern int declaration was deprecated,
else I feel sympathetic with you, but fixing that code will probably be
easy.

Uli

-- 
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]