about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--include/signal.h2
-rw-r--r--nptl/ChangeLog4
-rw-r--r--nptl/init.c2
4 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ed69b031f3..d310c221bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-27  Ulrich Drepper  <drepper@redhat.com>
+
+	* include/signal.h: Define __sigemptyset.
+
 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
 
 	* 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  <drepper@redhat.com>
+
+	* init.c (__pthread_initialize_minimal_internal): Use __sigemptyset.
+
 2004-12-21  Jakub Jelinek  <jakub@redhat.com>
 
 	* 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);