Signal break-codes in Linux

324 Views Asked by At

I am porting a code from IRIX to Linux RedHat, that is currently using signal handlers with the form of

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 have shown that Linux doesn't support it. Does it?

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

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

Thanks!

0

There are 0 best solutions below