aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-01-02 18:30:32 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-01-02 18:30:32 +0000
commit27dae0113e527aa2a94350d1f624c6e7c81139ce (patch)
tree453c24be59658c0c48a0aa9222ee276fe5a242cb
parent172019c0ecbf4714047e4ec233eab37628731d2b (diff)
downloadglibc-27dae0113e527aa2a94350d1f624c6e7c81139ce.tar
glibc-27dae0113e527aa2a94350d1f624c6e7c81139ce.tar.gz
glibc-27dae0113e527aa2a94350d1f624c6e7c81139ce.tar.bz2
glibc-27dae0113e527aa2a94350d1f624c6e7c81139ce.zip
Fix MIPS sa_flags type (bug 17781).
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). [BZ #17781] * sysdeps/unix/sysv/linux/mips/bits/sigaction.h (struct sigaction): Change type of sa_flags field to int.
-rw-r--r--ChangeLog4
-rw-r--r--NEWS2
-rw-r--r--sysdeps/unix/sysv/linux/mips/bits/sigaction.h2
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c421559d3c..6ba384029b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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.
+
[BZ #17780]
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
[!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
diff --git a/NEWS b/NEWS
index 500cbc2137..258318f8a5 100644
--- a/NEWS
+++ b/NEWS
@@ -16,7 +16,7 @@ Version 2.21
17584, 17585, 17589, 17594, 17601, 17608, 17616, 17625, 17630, 17633,
17634, 17647, 17653, 17657, 17664, 17665, 17668, 17682, 17717, 17719,
17722, 17723, 17724, 17725, 17732, 17733, 17744, 17745, 17746, 17747,
- 17775, 17780
+ 17775, 17780, 17781
* i386 memcpy functions optimized with SSE2 unaligned load/store.
diff --git a/sysdeps/unix/sysv/linux/mips/bits/sigaction.h b/sysdeps/unix/sysv/linux/mips/bits/sigaction.h
index e3cc02e282..5263ab210f 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