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: Bruno Haible
Subject: Re: [PATCH] sig2str: list all signals on FreeBSD >= 7
Date: Thu, 14 Jan 2016 16:41:48 +0100
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Pádraig Brady wrote:
> 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.

We are using NSIG in other places as well, such as lib/spawni.c.
If FreeBSD is not defining it to the right value, we should
override it in lib/signal.in.h, no?

Bruno




reply via email to

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