OIL_BEGIN_DECLS IMPORT_C void | oil_fault_check_enable | ( | void | ) |
oil_fault_check_enable:
Enables fault checking mode. This function may be called multiple times. Each call to this function must be paired with a corresponding call to oil_fault_check_disable().
This function sets a signal handler for SIGILL.
IMPORT_C void | oil_fault_check_disable | ( | void | ) |
oil_fault_check_disable:
Disables fault checking mode. See oil_fault_check_enable() for details.
IMPORT_C int | oil_fault_check_try | ( | void(*)(void *) | func, |
void * | priv | |||
) |
oil_fault_check_try: : the function to attempt : a value to pass to the function
Calls to this function must be preceded by a call to oil_fault_check_enable() to enable fault checking mode. This function sets up recovery information and then calls the function with the parameter . If or any other functions it calls attempt to execute an illegal instruction, the exception will be caught and recovered from.
Returns: 1 if the function was executed sucessfully, 0 if the function attempted to execute an illegal instruction.