mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
linux: Fix __NSIG_WORDS and add __NSIG_BYTES
The __NSIG_WORDS value is based on minimum number of words to hold the maximum number of signals supported by the architecture. This patch also adds __NSIG_BYTES, which is the number of bytes required to represent the supported number of signals. It is used in syscalls which takes a sigset_t. Checked on x86_64-linux-gnu and i686-linux-gnu. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -43,7 +43,7 @@ __pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
||||
} data;
|
||||
|
||||
data.ss = (__syscall_ulong_t) (uintptr_t) sigmask;
|
||||
data.ss_len = _NSIG / 8;
|
||||
data.ss_len = __NSIG_BYTES;
|
||||
|
||||
return SYSCALL_CANCEL (pselect6, nfds, readfds, writefds, exceptfds,
|
||||
timeout, &data);
|
||||
|
Reference in New Issue
Block a user