BPX4PST (pthread_setintrtype) example

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