This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH/committed] ia64: sigaction.h: fix sa_flags ordering
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 23 Jul 2015 03:28:32 -0400
- Subject: [PATCH/committed] ia64: sigaction.h: fix sa_flags ordering
- Authentication-results: sourceware.org; auth=none
- References: <1437532880-20661-1-git-send-email-vapier at gentoo dot org>
Since ia64 is little endian, sa_flags has to come before the padding
when splitting it from 64bits to 32bits.
Reported-by: Joseph Myers <joseph@codesourcery.com>
---
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/ia64/bits/sigaction.h | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 25abba6..47afb89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-23 Mike Frysinger <vapier@gentoo.org>
+
+ * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
+ Swap __glibc_reserved0 and sa_flags order.
+
2015-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
[BZ #18657]
diff --git a/sysdeps/unix/sysv/linux/ia64/bits/sigaction.h b/sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
index 46d03fa..912307e 100644
--- a/sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
@@ -40,8 +40,8 @@ struct sigaction
#endif
/* Special flags. */
- int __glibc_reserved0;
int sa_flags;
+ int __glibc_reserved0;
/* Additional set of signals to be blocked. */
__sigset_t sa_mask;
--
2.4.4