Subject: Re: inet6 userland and non-inet6 kernel
To: Rui Paulo <>
From: David Laight <>
List: current-users
Date: 05/30/2006 21:33:49
On Sun, May 28, 2006 at 03:31:53PM +0100, Rui Paulo wrote:
> > +		extern int errno;
> You don't need to do this, at least for NetBSD, if you include <errno.h>.

Actually doing so is completely unportable as well.
The standards require errno to be a 'modifyable lvalue of type int',
in particular it's definition could easily be:

extern int *__errno(void);
#define errno (*__errno())

so that the value in a threaded program it is (correctly) per-thread.


David Laight: