Subject: Re: finding where is errno
To: Emmanuel Dreyfus <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
Date: 04/13/2002 12:42:15
On Sat, 13 Apr 2002, Emmanuel Dreyfus wrote:
: I'm still working on COMPAT_IRIX. It seems that during signal delivery,
: the kernel has to build a signal frame with a field containing errno
: address in userspace. It is used by the signal trampoline to set errno
: on sigreturn exit.
I have a suspicion that this value might be passed to the kernel from the
libc sigreturn call in an extra register. It's rather unusual for the
kernel to have to grovel the ELF symbol tables to find such a beast.
-- Todd Vierling <email@example.com> * Wasabi & NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/