Subject: Re: SA_SIGINFO notes
To: Christos Zoulas <christos@zoulas.com>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 10/07/2003 09:45:41
On Tuesday, October 7, 2003, at 09:34 AM, Christos Zoulas wrote:
> A simpler way, is to have trapsignal assert that si_code > 0,
> so that we can simply test for si_code > 0. In this case we
> really don't care if the signal came from the kernel or userland
> as long as we can tell if the signal was generated by a trap
> or not.

That won't work.  For arithmetic faults, both vax and powerpc use
a ksi_code of 0 since it's quite difficult to figure out which
fault actually happened.
-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this 
message.