The sigprocmask callable service examines, changes, or both examines and changes the calling thread's signal mask.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1SPM): | 31-bit |
AMODE (BPX4SPM): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4SPM with the same parameters.
Constant | Description |
---|---|
SIG_BLOCK# | Add the signals in New_signal_mask to those to be blocked for this thread. |
SIG_UNBLOCK# | Delete the signals in New_signal_mask from those blocked for this thread. |
SIG_SETMASK# | Replace the thread's signal mask with New_signal_mask. |
The name of a fullword that contains either 0 or the address of an 8-byte area that contains the 64-bit signal mask. The leftmost bit represents signal number 1, and the rightmost bit represents signal number 64. The New_signal_mask parameter is applied to the thread's signal mask as specified by the How parameter. Mask bits that are set on represent signals that are blocked. If zero, the signal mask is not changed, and the How parameter is ignored.
The name of a fullword that contains either 0 or the address of an 8-byte signal-mask return area. The service stores in this area the signal mask that was in effect, showing the signals that were blocked. The leftmost bit represents signal number 1, and the rightmost bit represents signal number 64. Mask bits set on represent signals that are blocked. A zero indicates that no signal mask was returned.
The name of a fullword in which the sigprocmask service returns 0 if the request is successful, or -1 if it is not successful.
Return_code | Explanation |
---|---|
EFAULT | The specified address for New_signal_mask or Old_signal_mask was incorrect. |
EINVAL | The value of the How parameter is not one of the allowable values. |
The name of a fullword in which the sigprocmask service stores the reason code. The sigprocmask service returns Reason_code only if Return_value is -1. Reason_code further qualifies the Return_code value. For the reason codes, see z/OS UNIX System Services Messages and Codes.
See The relationship of z/OS UNIX signals to callable services.
For an example using this callable service, see BPX1SPM (sigprocmask) example.