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

From: ertzog (ertzog@bk.ru)
Date: Sun Dec 30 2001 - 19:01:09 EST


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/



This archive was generated by hypermail 2b29 : Mon Dec 31 2001 - 21:00:23 EST