SYNOPSIS
#include <signal.h>
int sigwaitinfo(const sigset_t *set, siginfo_t *info);
int sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout);
DESCRIPTION
The
The
Should any of multiple pending signals in the range SIGRTMIN to SIGRTMAX be selected, it will be the lowest numbered one. The selection order between realtime and non-realtime signals, and the selection order between non-realtime signals is unspecified.
Should the info argument be a NULL pointer, the
If more than one thread is using
PARAMETERS
- info
-
Returns information about the selected signal.
- set
-
Specifies the set of signals to wait for.
- timeout
-
Specifies the maximum time to wait for a selected signal to arrive.
RETURN VALUES
On success,
- EAGAIN
-
No signal specified by set arrived within the specified timeout period.
- EFAULT
-
sig or set is an invalid pointer.
- EINVAL
-
The set argument contains an invalid or unsupported signal number.
- EINVAL
-
The timeout value specified has a tv_nsec value that is either less than 0 or over 109.
CONFORMANCE
POSIX Realtime Extensions.
MULTITHREAD SAFETY LEVEL
MT-safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
pause() ,sigaction() ,signal() ,sigpending() ,sigwait()
PTC MKS Toolkit 10.5 Documentation Build 40.