From a71c152cfce9040addc1474936c2b96382ab9169 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 28 Dec 2004 01:41:24 +0000 Subject: [PATCH] Update. 2004-12-27 Ulrich Drepper * include/signal.h: Define __sigemptyset. --- ChangeLog | 4 ++++ include/signal.h | 2 ++ nptl/ChangeLog | 4 ++++ nptl/init.c | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ed69b031f3..d310c221bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-12-27 Ulrich Drepper + + * include/signal.h: Define __sigemptyset. + 2004-04-27 Paolo Bonzini * posix/regex_internal.h (struct re_dfastate_t): Make diff --git a/include/signal.h b/include/signal.h index 104ea8f83a..6ceafe0c73 100644 --- a/include/signal.h +++ b/include/signal.h @@ -48,6 +48,8 @@ extern int __sigpause (int sig_or_mask, int is_sig); extern int __default_sigpause (int mask); extern int __xpg_sigpause (int sig); +/* Simplified sigemptyset() implementation without the parameter checking. */ +#define __sigemptyset(ss) (memset (ss, '\0', sizeof (sigset_t)), 0) /* Allocate real-time signal with highest/lowest available priority. */ diff --git a/nptl/ChangeLog b/nptl/ChangeLog index ddb4dab457..19ce0d7e1e 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2004-12-27 Ulrich Drepper + + * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset. + 2004-12-21 Jakub Jelinek * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of diff --git a/nptl/init.c b/nptl/init.c index 3751e6be77..86745af8d1 100644 --- a/nptl/init.c +++ b/nptl/init.c @@ -262,7 +262,7 @@ __pthread_initialize_minimal_internal (void) struct sigaction sa; sa.sa_sigaction = sigcancel_handler; sa.sa_flags = SA_SIGINFO; - sigemptyset (&sa.sa_mask); + __sigemptyset (&sa.sa_mask); (void) __libc_sigaction (SIGCANCEL, &sa, NULL);