Subject: Re: finding where is errno
To: Emmanuel Dreyfus <>
From: Todd Vierling <>
List: tech-userlevel
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 <>  *  Wasabi & NetBSD:  Run with it.
-- CDs, Integration, Embedding, Support --