mirror of
https://github.com/fluencelabs/musl
synced 2025-05-27 14:41:30 +00:00
some minor changes to how hard-coded sets for thread-related purposes are handled were also needed, since the old object sizes were not necessarily sufficient. things have gotten a bit ugly in this area, and i think a cleanup is in order at some point, but for now the goal is just to get the code working on all supported archs including mips, which was badly broken by linux rejecting syscalls with the wrong sigset_t size.
8 lines
164 B
C
8 lines
164 B
C
#include <sys/signalfd.h>
|
|
#include "syscall.h"
|
|
|
|
int signalfd(int fd, const sigset_t *sigs, int flags)
|
|
{
|
|
return syscall(SYS_signalfd, fd, sigs, __SYSCALL_SSLEN);
|
|
}
|