remove __SYSCALL_SSLEN arch macro in favor of using public _NSIG
[musl] / src / select / pselect.c
1 #include <sys/select.h>
2 #include <signal.h>
3 #include "syscall.h"
4 #include "libc.h"
5
6 int pselect(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, const struct timespec *restrict ts, const sigset_t *restrict mask)
7 {
8         long data[2] = { (long)mask, _NSIG/8 };
9         struct timespec ts_tmp;
10         if (ts) ts_tmp = *ts;
11         return syscall_cp(SYS_pselect6, n, rfds, wfds, efds, ts ? &ts_tmp : 0, data);
12 }