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