diff options
Diffstat (limited to 'src/thread/pthread_sigmask.c')
-rw-r--r-- | src/thread/pthread_sigmask.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/thread/pthread_sigmask.c b/src/thread/pthread_sigmask.c new file mode 100644 index 00000000..6cc21d22 --- /dev/null +++ b/src/thread/pthread_sigmask.c @@ -0,0 +1,10 @@ +#include <signal.h> +#include <errno.h> +#include <pthread.h> + +int pthread_sigmask(int how, const sigset_t *set, sigset_t *old) +{ + int ret = sigprocmask(how, set, old); + if (ret) return errno; + return 0; +} |