mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:58:13 +00:00
LibC: Implement sigwaitinfo()
This is implemented as a simple wrapper around sigtimedwait()
This commit is contained in:
parent
762e047ec9
commit
640844c965
2 changed files with 7 additions and 0 deletions
|
@ -163,6 +163,12 @@ int sigsuspend(const sigset_t* set)
|
|||
return pselect(0, nullptr, nullptr, nullptr, nullptr, set);
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigwaitinfo.html
|
||||
int sigwaitinfo(sigset_t const* set, siginfo_t* info)
|
||||
{
|
||||
return sigtimedwait(set, info, nullptr);
|
||||
}
|
||||
|
||||
int sigtimedwait(sigset_t const* set, siginfo_t* info, struct timespec const* timeout)
|
||||
{
|
||||
int rc = syscall(Syscall::SC_sigtimedwait, set, info, timeout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue