HP 3000 Manuals

XLIBTRAP [ Trap Handling Programmer's Guide ] MPE/iX 5.0 Documentation


Trap Handling Programmer's Guide

XLIBTRAP 

Arms or disarms the user-written software library trap handling
procedure.

Syntax 

The XLIBTRAP intrinsic is called as follows:
________________________________________________________________________
|                                                                      |
|XLIBTRAP(plabel,oldplabel);                                           |
________________________________________________________________________

Parameters 

The XLIBTRAP 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 trap handler
                          is disarmed.

oldplabel                 32-bit signed integer passed by reference 
                          (required) 

                          Returns the plabel of your process' previous
                          software library trap handler.  If no plabel
                          was previously configured, oldplabel returns 0.

Condition Codes 

The XLIBTRAP 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