bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] sig2str: list all signals on FreeBSD >= 7


From: Eric Blake
Subject: Re: [PATCH] sig2str: list all signals on FreeBSD >= 7
Date: Thu, 14 Jan 2016 10:38:27 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 01/14/2016 02:53 AM, Pádraig Brady wrote:
> FreeBSD >= 7 is contravening POSIX by not defining NSIG

Umm, POSIX doesn't yet define NSIG:

http://austingroupbugs.net/view.php?id=741#c1834

> to the maximal statically defined signal value.
> It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.

But POSIX is proposing the standardization of NSIG_MAX (related to BSD's
_SIG_MAXSIG), and will allow for systems where NSIG is not always as
large as the possible maximum.  So maybe that should affect this patch.

> 
> * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
> where available, even when NSIG is defined.
> ---

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]