Date: Tue, 16 Apr 1996 22:37:47 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, fenner@parc.xerox.com, freebsd-bugs@freefall.freebsd.org Subject: Re: kern/1144: sig{add, del}set and sigismember fns don't check signo Message-ID: <199604161237.WAA32001@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
I wrote: >#define sigaddset(set, signo) \ > ({ struct sigaction *__set = set; \ > int __signo = (signo); \ > int __rv; \ > \ > /* 32 because NSIG is in application namespace. */ \ > if (__signo <= 0 || __signo >= 32) { \ > errno = EINVAL; \ Namespace stuff is tricky. I think EINVAL isn't supposed to be visible if only <signal.h> is included, so it can't be used directly. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604161237.WAA32001>