#include <oskit/c/signal.h>
#include <oskit/x86/base_trap.h>int oskit_sendsig(int signo, struct trap_state *state);
Propagate a machine trap to the signal handling entrypoint provided to oskit_sendsig_init() above. This routine is intended to be called by modules that have replaced a particular trap handler, and wish to propagate the trap to the application in the form of a signal. If the C library has not called oskit_sendsig_init(), the routine returns without doing anything.
- signo
- The signal number.
- state
- A pointer to the trap state structure.
Returns non-zero if a C library handler has not been installed, and thus the signal could not be propagated.