next up previous contents index
Next: 10.21.3 sendsig_trap_handler: convert trap Up: 10.21 Signals Previous: 10.21.1 oskit_sendsig_init: initialize kernel

10.21.2 oskit_sendsig: deliver a signal

 

SYNOPSIS

#include <oskit/c/signal.h>
#include <oskit/x86/base_trap.h>

int oskit_sendsig(int signo, struct trap_state *state);

DESCRIPTION

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.

PARAMETERS

signo
The signal number.
state
A pointer to the trap state structure.

RETURNS

Returns non-zero if a C library handler has not been installed, and thus the signal could not be propagated.



University of Utah Flux Research Group