implement gnu sigisemptyset
This commit is contained in:
parent
ce17ea6f2c
commit
fb80e047cc
2 changed files with 10 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ void (*sigset(int, void (*)(int)))(int);
|
|||
#ifdef _GNU_SOURCE
|
||||
typedef void (*sighandler_t)(int);
|
||||
void (*bsd_signal(int, void (*)(int)))(int);
|
||||
int sigisemptyset(const sigset_t *);
|
||||
#define SA_NOMASK SA_NODEFER
|
||||
#endif
|
||||
|
||||
|
|
|
|||
9
src/signal/sigisemptyset.c
Normal file
9
src/signal/sigisemptyset.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
|
||||
int sigisemptyset(const sigset_t *set)
|
||||
{
|
||||
static const sigset_t zeroset;
|
||||
return !memcmp(set, &zeroset, 8);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue