HP 3000 Manuals

Handling CONTROL-Y Traps [ Trap Handling Programmer's Guide ] MPE/iX 5.0 Documentation


Trap Handling Programmer's Guide

Handling CONTROL-Y Traps 

To use the XCONTRAP and RESETCONTROL intrinsics to enable/disable and
arm/disarm user-written CONTROL-Y trap handler, you must do the
following:

 *  Declare the intrinsics in your source, using whatever conventions are
    appropriate to your language.

 *  Declare the trap handling procedure, with no parameters and no
    functional return.


CAUTION A user-defined trap handling procedure cannot perform a goto out of that procedure. The state of the process and the program results are not predictable after a non-local goto. Performing an ESCAPE (HP Pascal/XL) or completing the trap handling procedure are the only valid ways to return.


MPE/iX 5.0 Documentation