This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix MIPS sa_flags type (bug 17781) [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Fri, 2 Jan 2015 18:32:49 +0000
- Subject: Fix MIPS sa_flags type (bug 17781) [committed]
- Authentication-results: sourceware.org; auth=none
sysdeps/unix/sysv/linux/mips/bits/sigaction.h gives sa_flags type
unsigned int, but POSIX says it should be signed int. This patch
gives it the correct type (the layout is unchanged, so there are no
ABI issues involved).
Committed.
2015-01-02 Joseph Myers <joseph@codesourcery.com>
[BZ #17781]
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h
(struct sigaction): Change type of sa_flags field to int.
diff --git a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
index e3cc02e..5263ab2 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
@@ -24,7 +24,7 @@
struct sigaction
{
/* Special flags. */
- unsigned int sa_flags;
+ int sa_flags;
/* Signal handler. */
#ifdef __USE_POSIX199309
--
Joseph S. Myers
joseph@codesourcery.com