LibC: Implement sigsuspend function

This commit is contained in:
Jean-Baptiste Boric 2021-08-11 18:48:18 +02:00 committed by Andreas Kling
parent 7abf58ecaf
commit f2b8b46bb0
Notes: sideshowbarker 2024-07-18 07:03:06 +09:00

View File

@ -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[] = {