]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hppa: sigaction.h: change sa_flags to an int
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Jul 2015 02:49:22 +0000 (22:49 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 30 Jul 2015 03:14:03 +0000 (23:14 -0400)
This fixes the conform test for the sigaction.h header and makes it match
all the other arches.

ChangeLog
sysdeps/unix/sysv/linux/hppa/bits/sigaction.h

index 8a1953192750db9774f7759d84ee10d9580f07b0..b8d1c338c713b228090ff8be264e682197728fe4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2015-07-30  Mike Frysinger  <vapier@gentoo.org>
+
+       * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
+       (struct sigaction): Change sa_flags from a long to an int, and add
+       __glibc_reserved0 before it for padding when __WORDSIZE is 64.
+
+2015-07-30  Mike Frysinger  <vapier@gentoo.org>
+
+       * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
+       * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
+       sysdeps/generic/sysdep.h include.
+       * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
+       _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
+       sysdeps/hppa/sysdep.h.
+       (ENTRY, PSEUDO): Undefine before defining.
+
 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
 
        * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
index ee41396394d8b073bee57f2c33b7cd6a08cd614b..ebe375fb1eb920297c316fac2688135e180f5177 100644 (file)
@@ -20,6 +20,8 @@
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
 
+#include <bits/wordsize.h>
+
 /* Structure describing the action to be taken when a signal arrives.  */
 struct sigaction
   {
@@ -40,7 +42,10 @@ struct sigaction
 #endif
 
     /* Special flags.  */
-    unsigned long int sa_flags;
+#if __WORDSIZE == 64
+    int __glibc_reserved0;
+#endif
+    int sa_flags;
 
     /* Additional set of signals to be blocked.  */
     __sigset_t sa_mask;