lkml.org 
[lkml]   [2001]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][RFC] global errno considered harmful

And can anybody explain, why is it so ?
(I mean checking for -1, and the switch(errno){}.)
AFAIK, syscall returns us a number (on i386 it is in eax)
and we can use it. Is errno a kernel thing, or GLIBC ?
Haven't we a return code in eax, after int 0x80 ?
(sorry, but I never worked on Linux on other architectures)



Best regards.

On Sun, 30 Dec 2001, Lennert Buytenhek wrote:
> 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

-
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/

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