]> sourceware.org Git - glibc.git/commit
linux: Fix __NSIG_WORDS and add __NSIG_BYTES
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 23 Apr 2020 13:58:01 +0000 (10:58 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Jul 2020 17:10:58 +0000 (14:10 -0300)
commitf26d456b98abf02b3ff92f1a3c0d4473b7ffd85c
treee61f7a38a3f7ce9b8394d1ce8001cf6a3a9dc33e
parentf13d260190d47bd38c0ae939080001e7bb58bd04
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>
15 files changed:
include/signal.h
nptl/nptl-init.c
nptl/pthread_sigmask.c
sysdeps/unix/sysv/linux/aio_misc.h
sysdeps/unix/sysv/linux/epoll_pwait.c
sysdeps/unix/sysv/linux/internal-signals.h
sysdeps/unix/sysv/linux/ppoll.c
sysdeps/unix/sysv/linux/pselect.c
sysdeps/unix/sysv/linux/sigaction.c
sysdeps/unix/sysv/linux/signalfd.c
sysdeps/unix/sysv/linux/sigpending.c
sysdeps/unix/sysv/linux/sigsetops.h
sysdeps/unix/sysv/linux/sigsuspend.c
sysdeps/unix/sysv/linux/sigtimedwait.c
sysdeps/unix/sysv/linux/x86/setjmpP.h
This page took 0.042576 seconds and 5 git commands to generate.