signal: add sigisemptyset, sigandset, sigorset api
refs:https://man7.org/linux/man-pages/man3/sigorset.3.html Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
191d453063
commit
6e0d76f528
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,10 @@
|
|||
# define SIG_HOLD ((_sa_handler_t)1) /* Used only with sigset() */
|
||||
#endif
|
||||
|
||||
#define sigisemptyset(set) (!*(set))
|
||||
#define sigorset(dest, left, right) (!(*(dest) = *(left) | *(right)))
|
||||
#define sigandset(dest, left, right) (!(*(dest) = *(left) & *(right)))
|
||||
|
||||
/********************************************************************************
|
||||
* Public Types
|
||||
********************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue