[lkml]   [2001]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH][RFC] global errno considered harmful
From said:
> Is there any particular reason we need a global errno in the kernel at
> all? (which, by the way, doesn't seem to be subject to any kind of
> locking)

As far as I've been able to tell, no.

> It makes life for User Mode Linux somewhat more complicated
> than it could be, and it generally just seems a bad idea.

Yeah. In order for -fno-common to not blow up the UML build (because of the
clash between libc errno and kernel errno), I had to add -Derrno=kernel_errno
to all the kernel file compiles. It would be nice to get rid of that wart.

> Referenced patch deletes all mention of a global errno from the
> kernel

Awesome. This definitely needs to happen. If no one spots any breakage,
send it in...

> and fixes up callers where necessary.

I did some grepping and the only problem I noticed was UML's execve (heh)
converting a -errno return to a -1.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:14    [W:0.779 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site