mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +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:
@ -21,6 +21,7 @@
|
||||
|
||||
#include <bits/types/__sigset_t.h>
|
||||
#include <libc-pointer-arith.h>
|
||||
#include <sigsetops.h>
|
||||
|
||||
/* <setjmp/setjmp.h> has
|
||||
|
||||
@ -113,11 +114,9 @@ typedef union
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
#define _SIGPROCMASK_NSIG_WORDS (_NSIG / (8 * sizeof (unsigned long int)))
|
||||
|
||||
typedef struct
|
||||
{
|
||||
unsigned long int __val[_SIGPROCMASK_NSIG_WORDS];
|
||||
unsigned long int __val[__NSIG_WORDS];
|
||||
} __sigprocmask_sigset_t;
|
||||
|
||||
extern jmp_buf ___buf;
|
||||
|
Reference in New Issue
Block a user