Signal violation codes in Linux

I am porting code from IRIX to Linux RedHat which currently uses signal handlers in the form

void sig_handler (int sig, int code, struct sigcontext *).

      

These codes are, for example BRK_USERBP, BRK_SSTEPBP, BRK_OVERFLOW, BRK_DIVZERO and BRK_MULOVF.

My searches showed that Linux does not support it. It?

If not, what equivalent / replacement can I use instead?

I've seen si_code in siginfo_t in sigaction , but it doesn't seem correct for this purpose.

Thank!

+3


source to share





All Articles