posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
POSIX_REALTIME_SIGNALS

POSIX Realtime Signals option group. More...

Functions

int sigqueue (pid_t pid, int sig, union sigval value)
 Queue a signal and data to a process.
 
int sigtimedwait (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info, const struct timespec *ZRESTRICT timeout)
 Wait for a queued signal with a timeout.
 
int sigwaitinfo (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info)
 Wait for a queued signal (no timeout).
 

Detailed Description

POSIX Realtime Signals option group.

Function Documentation

◆ sigqueue()

int sigqueue ( pid_t  pid,
int  sig,
union sigval  value 
)

Queue a signal and data to a process.

Parameters
pidTarget process ID.
sigSignal number.
valueValue to deliver along with the signal.
Returns
0 on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigqueue.html

◆ sigtimedwait()

int sigtimedwait ( const sigset_t *ZRESTRICT  set,
siginfo_t *ZRESTRICT  info,
const struct timespec *ZRESTRICT  timeout 
)

Wait for a queued signal with a timeout.

Parameters
setSet of signals to wait for.
infoOutput: information about the accepted signal, or NULL.
timeoutMaximum time to wait.
Returns
Signal number on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigtimedwait.html

◆ sigwaitinfo()

int sigwaitinfo ( const sigset_t *ZRESTRICT  set,
siginfo_t *ZRESTRICT  info 
)

Wait for a queued signal (no timeout).

Parameters
setSet of signals to wait for.
infoOutput: information about the accepted signal, or NULL.
Returns
Signal number on success, or -1 with errno set on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigwaitinfo.html