diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-04-23 10:58:01 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-07 14:10:58 -0300 |
commit | f26d456b98abf02b3ff92f1a3c0d4473b7ffd85c (patch) | |
tree | e61f7a38a3f7ce9b8394d1ce8001cf6a3a9dc33e /nptl/nptl-init.c | |
parent | f13d260190d47bd38c0ae939080001e7bb58bd04 (diff) | |
download | glibc-f26d456b98abf02b3ff92f1a3c0d4473b7ffd85c.tar glibc-f26d456b98abf02b3ff92f1a3c0d4473b7ffd85c.tar.gz glibc-f26d456b98abf02b3ff92f1a3c0d4473b7ffd85c.tar.bz2 glibc-f26d456b98abf02b3ff92f1a3c0d4473b7ffd85c.zip |
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>
Diffstat (limited to 'nptl/nptl-init.c')
-rw-r--r-- | nptl/nptl-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index d4cf20e3d1..95c60a524a 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -281,7 +281,7 @@ __pthread_initialize_minimal_internal (void) __sigaddset (&sa.sa_mask, SIGCANCEL); __sigaddset (&sa.sa_mask, SIGSETXID); INTERNAL_SYSCALL_CALL (rt_sigprocmask, SIG_UNBLOCK, &sa.sa_mask, - NULL, _NSIG / 8); + NULL, __NSIG_BYTES); /* Get the size of the static and alignment requirements for the TLS block. */ |