Subject: Re: COMPAT_LINUX and errno: one more dead bug!
To: Jarommr Dolecek <jdolecek@netbsd.org>
From: Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
List: tech-kern
Date: 02/09/2001 01:15:01
> Though, the return value for actual syscall may not be. Linux syscalls
> return >= 0 for success, -errno for failure, at least on i386. (g)libc
> stubs then translate then map the return code and set C errno appropriately.
I fixed the errno been negative problem, and it works. I can now run X
programs such as xlogo or xclock. An interesting side effect is that
glibc-2 now uses sigaction instead of rt_sigaction. I'm happy, cause I
had 2 bugs for the price of only one.
Just one problem: I had to #define COMPAT_LINUX in
powerpc/powerpc/trap.c, it was not defined while compiling. I need to
fix this before comitting. Do you see any reason why COMPAT_LINUX would
not be defined in trap.c
--
Emmanuel Dreyfus.
p99dreyf@criens.u-psud.fr