#include <oskit/c/signal.h>
#include <oskit/x86/base_trap.h>void oskit_sendsig(struct trap_state *state);
Convert the machine dependent trap state structure state (see Section 10.8.1) into a signal code, and pass that, along with the trap state, to the C library via oskit_sendsig above.This routine is provided as a default trap handler that can be plugged into the base_trap_handlers array (see Section 10.8.4). Unexpected hardware traps are thus converted into signals and delivered to the application through the C library.
- state
- A pointer to the trap state structure.