sys/signalvar.h: Fix opposite boolean sense in comment

Correct the sense of the comment describing sigsetmasked() to match the
code.  It was exactly backwards.

While here, convert the type/values of the predicate from pre-C99 int/1/0 to
bool/true/false.  No functional change.
This commit is contained in:
Conrad Meyer 2020-03-03 23:15:30 +00:00
parent 5df2e54c42
commit 2bde6d4e72

View file

@ -282,20 +282,20 @@ extern bool sigfastblock_fetch_always;
(!SIGISEMPTY((td)->td_proc->p_siglist) && \
!sigsetmasked(&(td)->td_proc->p_siglist, &(td)->td_sigmask)))
/*
* Return the value of the pseudo-expression ((*set & ~*mask) != 0). This
* Return the value of the pseudo-expression ((*set & ~*mask) == 0). This
* is an optimized version of SIGISEMPTY() on a temporary variable
* containing SIGSETNAND(*set, *mask).
*/
static __inline int
static __inline bool
sigsetmasked(sigset_t *set, sigset_t *mask)
{
int i;
for (i = 0; i < _SIG_WORDS; i++) {
if (set->__bits[i] & ~mask->__bits[i])
return (0);
return (false);
}
return (1);
return (true);
}
#define ksiginfo_init(ksi) \