This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: sigset_t for new arches
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Vineet Gupta <Vineet dot Gupta1 at synopsys dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 13 Nov 2017 23:18:07 +0000
- Subject: Re: sigset_t for new arches
- Authentication-results: sourceware.org; auth=none
- References: <98f1258a-8df3-77a3-be80-7b08ce7a1e9f@synopsys.com>
On Mon, 13 Nov 2017, Vineet Gupta wrote:
> Hi,
>
> This came to light when initial testing ARC port to glibc.
>
> ARC glibc sigaction wrapper was failing as Linux kernel expects sa_mask
> (sigset_t) to be 2 words (for the asm-generic syscall ABI mandated for newer
> arches) while glibc defines it to be 32 words.
I think the userspace sigset_t is deliberately much larger, to allow for
possible increase in the number of signals in future without breaking the
glibc ABI.
--
Joseph S. Myers
joseph@codesourcery.com