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

Erik Andersen
2001-12-31T20:57:22Z

On Mon Dec 31, 2001 at 12:01:20AM -0200, Ralf Baechle wrote:
> On Sun, Dec 30, 2001 at 08:52:57PM -0500, Lennert Buytenhek 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..
>
> Be careful, you'll have to fix at least util-linux (doubleplusyuck) and
> e2fsprogs.

You say this as if having util-linux and e2fsprogs etc get fixed
would be a bad thing... I personally think this would be a very
good change, and would let the kernel enforce good programming style,

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--