Date: Mon, 15 Apr 1996 16:10:01 -0700 (PDT) From: Bill Fenner <fenner@parc.xerox.com> To: freebsd-bugs Subject: Re: kern/1144: sig{add, del}set and sigismember fns don't check signo Message-ID: <199604152310.QAA15181@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604152310.QAA15181>