#include <oskit/com/libcenv.h>oskit_error_t oskit_libcenv_signals_init(oskit_libcenv_t *c, int (*func)(int, int, void *));
oskit_error_t oskit_libcenv_setsiginit(oskit_libcenv_t *c, void (*sigfunc)(int (*func)(int,int,void *)));
Call (or set) the signal initialization function for the POSIX library. The signal initialization function defaults to the OSKit kernel library signal initialization routine (see Section 13.21). The POSIX library will call this routine if the application uses any of the POSIX signal interface functions, passing in a function pointer to the callback in the POSIX library that should be invoked when a hardware trap should be passed to the application as a signal. The signal initialization function can be changed with the setsiginit method, although that should be done with caution.
- c
- The oskit_libcenv object to operate on.
- func
- The callback routine for the kernel trap code.
- sigfunc
- The new signal initialization function.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.