mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
14 lines
261 B
C
Vendored
14 lines
261 B
C
Vendored
#include <signal.h>
|
|
#include <errno.h>
|
|
|
|
int sigdelset(sigset_t *set, int sig)
|
|
{
|
|
unsigned s = sig-1;
|
|
if (s >= _NSIG-1 || sig-32U < 3) {
|
|
errno = EINVAL;
|
|
return -1;
|
|
}
|
|
set->__bits[s/8/sizeof *set->__bits] &=~(1UL<<(s&8*sizeof *set->__bits-1));
|
|
return 0;
|
|
}
|