BPX4PSI (pthread_setintr) example

The following code sets the interruption type of the calling thread. For the callable service, see pthread_setintr (BPX1PSI, BPX4PSI) — Examine and change the interrupt state. For the data structure, see BPXYCONS — Constants used by services. AMODE 31 callers use BPX1PSI (pthread_setintr) example.
                                              
         CALL  BPX4PSI,              Examine and change interrupt state+
               (INTRSTATE,           Input: Interrupt state   BPXYCONS +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               MF=(E,PLIST)          ----------------------------------