The following reply was made to PR kern/1144; it has been noted by GNATS.
From: Bill Fenner <fenner@parc.xerox.com>
To: FreeBSD-gnats-submit@freebsd.org, jraynard@dial.pipex.com
Cc: Subject: Re: kern/1144: sig{add, del}set and sigismember fns don't check signo
Date: Mon, 15 Apr 1996 16:02:59 PDT
>Obviously the macros would be much harder to fix
Would they? How about
#define sigaddset(set, signo) (((signo) <= 0 || (signo) >= NSIG) ?
(errno = EINVAL, -1) :
(*(set) |= 1 << ((signo) - 1), 0))
(untested, as usual)
Bill