projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify unified timed wait code, drop support for newer method
[musl]
/
src
/
thread
/
pthread_sigmask.c
diff --git
a/src/thread/pthread_sigmask.c
b/src/thread/pthread_sigmask.c
index
6cc21d2
..
60a440b
100644
(file)
--- a/
src/thread/pthread_sigmask.c
+++ b/
src/thread/pthread_sigmask.c
@@
-1,10
+1,10
@@
#include <signal.h>
#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <errno.h>
#include <pthread.h>
+#include "syscall.h"
int pthread_sigmask(int how, const sigset_t *set, sigset_t *old)
{
int pthread_sigmask(int how, const sigset_t *set, sigset_t *old)
{
- int ret = sigprocmask(how, set, old);
- if (ret) return errno;
- return 0;
+ if (how > 2U) return EINVAL;
+ return -__syscall(SYS_rt_sigprocmask, how, set, old, 8);
}
}