projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
yet another ugly legacy syscall rename...
[oweals/musl.git]
/
src
/
signal
/
siginterrupt.c
1
#include <stdlib.h>
2
#include <signal.h>
3
4
int siginterrupt(int sig, int flag)
5
{
6
struct sigaction sa;
7
8
sigaction(sig, NULL, &sa);
9
if (flag) sa.sa_flags &= ~SA_RESTART;
10
else sa.sa_flags |= SA_RESTART;
11
12
return sigaction(sig, &sa, NULL);
13
}