repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
apply hidden visibility to stdio internals
[musl.git]
/
src
/
signal
/
siginterrupt.c
blob
70063400325c0f74f82235ffc4b9440dd4e264f2
1
#include <signal.h>
2
3
int
siginterrupt
(
int
sig
,
int
flag
)
4
{
5
struct
sigaction sa
;
6
7
sigaction
(
sig
,
0
, &
sa
);
8
if
(
flag
)
sa
.
sa_flags
&= ~
SA_RESTART
;
9
else
sa
.
sa_flags
|=
SA_RESTART
;
10
11
return
sigaction
(
sig
, &
sa
,
0
);
12
}