sigpending (BPX1SIP, BPX4SIP) — Examine pending signals

Function

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.

Requirements

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.

Format

CALL BPX1SIP,(Signal_pending_mask,
              Return_value,
              Return_code,
              Reason_code)

AMODE 64 callers use BPX4SIP with the same parameters.

Parameters

Signal_pending_mask
Returned parameter
Type:
Structure
Length:
8 bytes

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.

Return_value
Returned parameter
Type:
Integer
Length:
Fullword

The name of a fullword in which the sigpending service returns 0 if the request is successful, or -1 if it is not successful.

Return_code
Returned parameter
Type:
Integer
Length:
Fullword

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.

Reason_code
Returned parameter
Type:
Integer
Length:
Fullword

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.

Related services

Characteristics and restrictions

See The relationship of z/OS UNIX signals to callable services.

Examples

For an example using this callable service, see BPX1SIP (sigpending) example.