Files
semi-libc/src/thread/pthread_sigmask.c
T
Rich Felker 500c969f05 fix error handling for pthread_sigmask
it must return errno, not -1, and should reject invalud values for how.
2011-03-09 20:31:06 -05:00

11 lines
204 B
C

#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;
}