VMS Help
RTL Routines, LIB$, LIB$ESTABLISH
*Conan The Librarian
|
The Establish a Condition Handler routine moves the address of
a condition handling routine (which can be a user-written or a
library routine) to longword 0 of the stack frame of the caller
of LIB$ESTABLISH.
This routine is not available to native OpenVMS Alpha and I64
programs but is recognized and handled appropriately by most HP
high-level language compilers.
Format
LIB$ESTABLISH new-handler
OpenVMS usage:routine
type: procedure value
access: write only
mechanism: by reference
Previous contents of SF$A_HANDLER (longword 0) of the caller's
stack frame; zero if no handler existed.
new-handler
OpenVMS usage:procedure
type: procedure value
access: read only
mechanism: by value
Routine to be set up as the condition handler. The new-handler
argument is the address of the procedure value to this routine.