The Complete SPRLIB & ANNLIB

set_sigsegv_handler

- install the SPRANNLIB segmentation violation handler (LOCAL)

SYNOPSIS

int set_sigsegv_handler (new_handler)

ARGUMENTS

void (*new_handler)() A function pointer to the new segmentation violation handler.

RETURNS

TRUE in case of an error, FALSE in case of succes.

FUNCTION

This function is called by the first ....alloc_monitor function called after SPRANNLIB is initialized, or if the linked list of MALINFO structures is empty (indicating no memory is yet allocated using a monitor routine). It replaces the standard segmentation violation handler by sigsegv_handler.

NOTE

This function is only called when the SPRDEBUG compilation flag was set during the compilation of SPRANNLIB (see LIBRARY-flags). It calls the standard signal function to accomplish this. A pointer to the old handler is stored in the old_handler variable (see MONITOR-ALLOCATION-variables).

SEE ALSO

MONITOR-ALLOCATION-functions, reset_sigsegv_handler, sigsegv_handler

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998