]> Savannah Git Hosting - gnulib.git/commit
sig2str: list all signals on FreeBSD >= 7
authorPádraig Brady <P@draigBrady.com>
Thu, 14 Jan 2016 09:47:39 +0000 (09:47 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 14 Jan 2016 09:52:48 +0000 (09:52 +0000)
commitdce117ace24a660c5aa6a651e7415b1e21431d73
tree6a55d5e04fab9f14210377ac8f9f121cb1aac6dc
parentcff4b380b8a48071b341af28d93501f5d18b46cb
sig2str: list all signals on FreeBSD >= 7

FreeBSD >= 7 is contravening POSIX by not defining NSIG
to the maximal statically defined signal value.
It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.

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