XSYSTRAP [ Trap Handling Programmer's Guide ] MPE/iX 5.0 Documentation
Trap Handling Programmer's Guide
XSYSTRAP
Arms or disarms a user-written system trap handling procedure.
Syntax
The XSYSTRAP intrinsic is called as follows:
________________________________________________________________________
| |
|XSYSTRAP(plabel,oldplabel); |
________________________________________________________________________
Parameters
The XSYSTRAP intrinsic has two required parameters:
plabel 32-bit signed integer passed by value
(required)
The address of your trap handling procedure.
If the value of plabel is 0, the software trap
handler is disarmed.
oldplabel 32-bit signed integer passed by reference
(required)
Returns the plabel of your process' previous
software system trap handler. If no plabel was
previously configured, oldplabel returns 0.
Condition Codes
The XSYSTRAP intrinsic can return one of the following condition codes:
CCE Request granted. Trap armed.
CCG Request granted. Trap disarmed.
CCL Request denied because of an illegal plabel.
MPE/iX 5.0 Documentation