wait4, getrusage: add time64/x32 variant
[musl.git] / src / signal / siginterrupt.c
blob70063400325c0f74f82235ffc4b9440dd4e264f2
1 #include <signal.h>
3 int siginterrupt(int sig, int flag)
5 struct sigaction sa;
7 sigaction(sig, 0, &sa);
8 if (flag) sa.sa_flags &= ~SA_RESTART;
9 else sa.sa_flags |= SA_RESTART;
11 return sigaction(sig, &sa, 0);