mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
LibC: Implement sigwaitinfo()
This is implemented as a simple wrapper around sigtimedwait()
This commit is contained in:
parent
762e047ec9
commit
640844c965
Notes:
sideshowbarker
2024-07-17 22:54:45 +09:00
Author: https://github.com/IdanHo
Commit: 640844c965
Pull-request: https://github.com/SerenityOS/serenity/pull/11216
Reviewed-by: https://github.com/bgianfo ✅
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