]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix MIPS bits/fcntl.h namespace (bug 17780).
authorJoseph Myers <joseph@codesourcery.com>
Fri, 2 Jan 2015 18:29:24 +0000 (18:29 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 2 Jan 2015 18:29:24 +0000 (18:29 +0000)
sysdeps/unix/sysv/linux/mips/bits/fcntl.h has a structure field called
pad, which is in the user's namespace.  This patch changes it to
__glibc_reserved0.

[BZ #17780]
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
[!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
__glibc_reserved0.

ChangeLog
NEWS
sysdeps/unix/sysv/linux/mips/bits/fcntl.h

index ef740a4849a95b11347c892308f41cc1cc1dbb3e..c421559d3c5165e76f5821482654264d87cebf0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #17780]
+       * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
+       [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
+       __glibc_reserved0.
+
        * nptl/version.c (banner): Use single year in copyright notice.
 
        * NEWS: Update copyright dates.
diff --git a/NEWS b/NEWS
index 68b6617d3642aff7c6b4eef9319657f8c0c863bc..500cbc213720d06138ba36ba95ae3fbf583a6210 100644 (file)
--- 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
+  17775, 17780
 
 * i386 memcpy functions optimized with SSE2 unaligned load/store.
 
index 61137c5907720c9913933e50e40b854b34df1042..80562831c0750fc57698eb08510634b3e7f88ed8 100644 (file)
@@ -84,7 +84,7 @@ struct flock
 #if ! defined __USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64
     /* The 64-bit flock structure, used by the n64 ABI, and for 64-bit
        flock in o32 and n32, never has this field.  */
-    long int pad[4];
+    long int __glibc_reserved0[4];
 #endif
   };
 typedef struct flock flock_t;