diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-08 17:29:10 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-08 17:29:10 +0200 |
commit | 9f6bd1f6057e57cce9b07844c28f15859ab15d49 (patch) | |
tree | 639c756bde985f44ab57c6d03e93b0d06b300eee /signal/sigfillset.c | |
parent | 3404def00a1b332080fa51044733f6ead0eae5f3 (diff) | |
download | glibc-9f6bd1f6057e57cce9b07844c28f15859ab15d49.tar.gz glibc-9f6bd1f6057e57cce9b07844c28f15859ab15d49.tar.xz glibc-9f6bd1f6057e57cce9b07844c28f15859ab15d49.zip |
signal: Use <sigsetops.h> for sigemptyset, sigfillset
This avoids changing the entire sigset_t structure. Updating the actually used part is sufficient.
Diffstat (limited to 'signal/sigfillset.c')
-rw-r--r-- | signal/sigfillset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/signal/sigfillset.c b/signal/sigfillset.c index 0ca8b6b534..29e98a5864 100644 --- a/signal/sigfillset.c +++ b/signal/sigfillset.c @@ -17,8 +17,8 @@ #include <errno.h> #include <signal.h> -#include <string.h> #include <internal-signals.h> +#include <sigsetops.h> /* Set all signals in SET. */ int @@ -30,10 +30,8 @@ sigfillset (sigset_t *set) return -1; } - memset (set, 0xff, sizeof (sigset_t)); - + __sigfillset (set); __clear_internal_signals (set); - return 0; } libc_hidden_def (sigfillset) |