On Tue, 2002-07-16 at 21:14, Branko Čibej wrote:
> Strictly speaking, Ulrich's patch is better, because there's no 
> guarantee that "errno" is a simple global variable. It could be 
> translated into a function call, for all you know -- depends on the 
> platform, linc implementation, threading support, etc. etc. So making a 
> copy makes sense.

So it's a function call.  So what?  It still returns a single stable
value.

If you're worried about speed, that's ridiculous.  This is an error
case; a few cycles here or there isn't going to matter.  (And it's not
like errno is ever a slow function call, when it's a function call.)

Reply via email to