The sigpending service returns the union of the set of signals that are pending on the thread and the set of signals that are pending on the process.
Pending signals at the process level are moved to the thread that called the sigpending service.
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1SIP): | 31-bit |
AMODE (BPX4SIP): | 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 BPX4SIP with the same parameters.
The name of an 8-byte area to which the sigpending service returns a 64-bit signal pending mask. Bits that are set on represent signals that are pending and blocked. Each bit that is set to on represents a signal that is currently pending at the process level or the thread-level and is blocked by the current thread's signal mask. The leftmost bit represents signal 1, and the rightmost bit represents signal 64.
The name of a fullword in which the sigpending service returns 0 if the request is successful, or -1 if it is not successful.
The name of a fullword in which the sigpending service stores the return code. The sigpending service returns Return_code only if Return_value is -1. For a complete list of possible return code values, see z/OS UNIX System Services Messages and Codes.
The name of a fullword in which the sigpending service stores the reason code. The sigpending 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 BPX1SIP (sigpending) example.