Open System Services System Calls Reference Manual (G06.25+, H06.03+)

sigpending(2) OSS System Calls Reference Manual
NAME
sigpending - Examines pending signals
LIBRARY
G-series native OSS processes: system library
H-series OSS processes: implicit libraries
SYNOPSIS
#include <signal.h>
int sigpending(
sigset_t *set);
PARAMETERS
set Points to an object of type sigset_t that returns the set of signals that are blocked
from delivery and pending to the calling process.
DESCRIPTION
The sigpending( ) function stores the set of signals that are blocked from delivery and pending to
the calling process in the object pointed to by the set parameter.
Because signals can arrive asynchronously, no assumption should be made about the current set
of pending signals, based on the value returned by this function in set.
Use From the Guardian Environment
If called from a TNS or accelerated Guardian process, the actions of this function are undened
and errno is set to [ENOTOSS].
RETURN VALUES
Upon successful completion, the sigpending( ) function returns the value 0 (zero). Otherwise,
the value -1 is returned and errno is set to indicate the error.
ERRORS
If any of the following conditions occurs, the sigpending() function sets errno to the
corresponding value:
[EFAULT] The set parameter points to a location outside the allocated address space of the
process.
[ENOTOSS] The calling process was not an OSS process or a native Guardian process. The
sigpending( ) function cannot be used in the Guardian environment by a TNS or
accelerated process.
RELATED INFORMATION
Functions: sigaddset(2), sigdelset(2), sigemptyset(3), sigllset(2), sigismember(2), sigproc-
mask(2).
Files: signal(4).
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specication:
The [EFAULT] and [ENOTOSS] errors can be returned.
764 Hewlett-Packard Company 527186-003