Re: [PATCH][RFC] global errno considered harmful

Lennert Buytenhek (buytenh@gnu.org)
Sun, 30 Dec 2001 20:52:57 -0500


On Sun, Dec 30, 2001 at 07:00:20PM -0200, Ralf Baechle wrote:

> As user application are trying to use unistd.h and expect errno to get
> set properly unistd.h or at least it's syscallX macros will have to be
> made unusable from userspace or silent breakage of such apps rebuild
> against new headers will occur.

How about conditionalising definition of_syscallX on __KERNEL_SYSCALLS__?
(http://www.math.leidenuniv.nl/~buytenh/errno_ectomy-1-to-2.diff)

I guess I'll go ask all arch maintainers' permission now..

cheers,
Lennert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/