apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: Is --enable-utf8 working everywhere?
Date Wed, 17 Jul 2002 16:36:55 GMT
Ulrich Drepper wrote:
> > While errno is not a simple variable, compilers are smart enough to
> > treat it as if it is a simple variable, so just 'return errno' works
> > everywhere.
> Wrong.  errno is in fact on most systems a hidden function call and the
> C language does not have any provisions to say that a function call can
> be eliminated because it always returns the same value and has no side
> effects.  We have such a feature in gcc but it's not evailable
> everywhere.

If 'errno' is a function call, how the heck does 'errno = 0;' do
anything? If it works because the compiler/system treats errno
as a integral value, then everything else is moot.
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

View raw message