mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03: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: https://github.com/SerenityOS/serenity/commit/f2b8b46bb06 Pull-request: https://github.com/SerenityOS/serenity/pull/9343
@ -10,6 +10,7 @@
|
||||
#include <setjmp.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <sys/select.h>
|
||||
#include <syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -162,10 +163,9 @@ void siglongjmp(jmp_buf env, int val)
|
||||
longjmp(env, val);
|
||||
}
|
||||
|
||||
int sigsuspend(const sigset_t*)
|
||||
int sigsuspend(const sigset_t* set)
|
||||
{
|
||||
dbgln("FIXME: Implement sigsuspend()");
|
||||
return -1;
|
||||
return pselect(0, nullptr, nullptr, nullptr, nullptr, set);
|
||||
}
|
||||
|
||||
static const char* signal_names[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user