mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
signal: Use <sigsetops.h> for sigemptyset, sigfillset
This avoids changing the entire sigset_t structure. Updating the actually used part is sufficient.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <sigsetops.h>
|
||||
|
||||
/* Clear all signals from SET. */
|
||||
int
|
||||
@@ -29,8 +29,7 @@ sigemptyset (sigset_t *set)
|
||||
return -1;
|
||||
}
|
||||
|
||||
memset (set, 0, sizeof (sigset_t));
|
||||
|
||||
__sigemptyset (set);
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (sigemptyset)
|
||||
|
||||
Reference in New Issue
Block a user