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:
dongjiuzhu1 2022-11-18 11:32:45 +08:00 committed by Xiang Xiao
parent 191d453063
commit 6e0d76f528

View file

@ -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
********************************************************************************/