sigpending

Examines the pending signals.

Library:LibC
Classification:ANSI
Service:Signal Services

Syntax

  #include <signal.h> 
   
  int sigpending (
     sigset_t   *set );
  

Parameters

set

(OUT) Points to the set of signals that are blocked from delivery to the calling thread and that are pending on the process or the calling thread.

Return Values

If successful, returns 0. Otherwise, returns -1 and sets errno to indicate the error.

Decimal

Constant

Description

105

ENOCONTEXT

No thread context is present.

Remarks

Each object of type sigset_t must be initialized once with a call to either sigfillset or sigemptyset before calling the other functions which manage the signal set.

IMPORTANT:This function is only available to NLMs that are using POSIX semantics.

See Also