hurd: Fix sigsetops.h macros

* sysdeps/generic/sigsetops.h: Remove spurious #endif.
	(__sigismember, __sigaddset, __sigdelset): Fix referencing set
	parameter.
This commit is contained in:
Samuel Thibault 2017-09-03 01:45:19 +02:00
parent b794e16bcc
commit 06cf9d31d7
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/generic/sigsetops.h: Remove spurious #endif.
(__sigismember, __sigaddset, __sigdelset): Fix referencing set
parameter.
2017-09-01 Joseph Myers <joseph@codesourcery.com>

View File

@ -56,20 +56,20 @@
# define __sigismember(set, sig) \
(__extension__ ({ \
__sigset_t __mask = __sigmask (sig); \
(set) & __mask ? 1 : 0; \
*(set) & __mask ? 1 : 0; \
}))
# define __sigaddset(set, sig) \
(__extension__ ({ \
__sigset_t __mask = __sigmask (sig); \
(set) |= __mask; \
*(set) |= __mask; \
(void)0; \
}))
# define __sigdelset(set, sig) \
(__extension__ ({ \
__sigset_t __mask = __sigmask (sig); \
(set) &= ~__mask; \
*(set) &= ~__mask; \
(void)0; \
}))