]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* mach/lock-intern.h: Include <sys/cdefs.h>.
authorRoland McGrath <roland@gnu.org>
Sun, 22 Jul 2007 06:52:07 +0000 (06:52 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 22 Jul 2007 06:52:07 +0000 (06:52 +0000)
* sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
reading A.

        * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
        to __sigsuspend.

* sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.

2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>

* sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
`__ASSEMBLER__'.
* sysdeps/mach/hurd/i386/tls.h: Likewise.

ChangeLog
mach/lock-intern.h
sysdeps/mach/hurd/sigaction.c
sysdeps/mach/hurd/sigsuspend.c
sysdeps/mach/i386/sysdep.h

index 838ccf0b295881c65759aa51bec1b5392bb6c0ce..13f51bddc744916fd46abcd66469046eeec47696 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2007-07-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * mach/lock-intern.h: Include <sys/cdefs.h>.
+
+       * sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
+       reading A.
+
+        * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
+        to __sigsuspend.
+
+       * sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
+
+2006-06-13  Thomas Schwinge  <tschwinge@gnu.org>
+
+       * sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
+       `__ASSEMBLER__'.
+       * sysdeps/mach/hurd/i386/tls.h: Likewise.
+
 2007-07-21  Ulrich Drepper  <drepper@redhat.com>
 
        * nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
index d42a378f4d04597774dbcfb723782835b24110de..4aaaedc1c05513a3450e8f1040420030340517cb 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef _LOCK_INTERN_H
 #define        _LOCK_INTERN_H
 
+#include <sys/cdefs.h>
 #include <machine-lock.h>
 
 #ifndef _EXTERN_INLINE
index 3dc530955d7a294cec3f119b438a3bc6320e5896..1ff94f61f4f067161a5193c76df14d77e7d905eb 100644 (file)
@@ -68,7 +68,7 @@ __sigaction (sig, act, oact)
       __spin_lock (&ss->lock);
       pending = ss->pending & ~ss->blocked;
     }
-  else if (a.sa_handler == SIG_IGN || a.sa_handler == SIG_DFL)
+  else if (act != NULL && (a.sa_handler == SIG_IGN || a.sa_handler == SIG_DFL))
     /* We are changing to an action that might be to ignore SIG signals.
        If SIG is blocked and pending and the new action is to ignore it, we
        must remove it from the pending set now; if the action is changed
index 96b3857c720e3071d6fae81f6ecdd2550a6b2b51..75390f7cfa55da2717a47edcf72359ebceaae690 100644 (file)
@@ -80,4 +80,5 @@ __sigsuspend (set)
   return -1;
 }
 libc_hidden_def (__sigsuspend)
+strong_alias (__sigsuspend, sigsuspend_not_cancel)
 weak_alias (__sigsuspend, sigsuspend)
index 1f138f47590af23e68196b79c70ec9b2ffc6259b..9da46dbbdc19fcfd3406540971cc702c9cc63388 100644 (file)
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+/* Defines RTLD_PRIVATE_ERRNO and USE_DL_SYSINFO.  */
+#include <dl-sysdep.h>
+#include <tls.h>
+
 #define LOSE asm volatile ("hlt")
 
 #define SNARF_ARGS(entry_sp, argc, argv, envp)                               \