| |||
| Home > The C and C++ Libraries > Tailoring error signaling, error handling, and program exit > __rt_raise() | |||
This function raises a signal to indicate a runtime anomaly.
void __rt_raise(int signal, int type);
where:
signalIs an integer that holds the signal number.
typeIs an integer or string constant or variable.
Redefine this to replace the entire signal handling mechanism
for the library. The default implementation calls __raise().
See __raise() for more information.
Depending on the value returned from __raise():
The handler
performed a long jump or restart and __rt_raise() does
not regain control.
The signal was handled
and __rt_raise() exits.
The default library
implementation calls _sys_exit(rc) if __raise() returns
a nonzero return code rc.