mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-17 15:02:24 +00:00
LibC: Implement sigsuspend function
This commit is contained in:
parent
7abf58ecaf
commit
f2b8b46bb0
Notes:
sideshowbarker
2024-07-18 07:03:06 +09:00
Author: https://github.com/boricj
Commit: f2b8b46bb0
Pull-request: https://github.com/SerenityOS/serenity/pull/9343
1 changed files with 3 additions and 3 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/select.h>
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
@ -162,10 +163,9 @@ void siglongjmp(jmp_buf env, int val)
|
||||||
longjmp(env, val);
|
longjmp(env, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
int sigsuspend(const sigset_t*)
|
int sigsuspend(const sigset_t* set)
|
||||||
{
|
{
|
||||||
dbgln("FIXME: Implement sigsuspend()");
|
return pselect(0, nullptr, nullptr, nullptr, nullptr, set);
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char* signal_names[] = {
|
static const char* signal_names[] = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue