[PATCH][BZ #17930] MIPS: Define SHM_NORESERVE

James Cowgill james410@cowgill.org.uk
Tue Apr 7 10:01:00 GMT 2015


Hi,

Something else I was working on reminded me of bug 17930. The best solution is
probably to share some of these headers between architectures, but since the
fix for this bug is so trivial, I thought I would just submit this here in the
meantime.

Thanks,
James

---
 ChangeLog                               | 5 +++++
 sysdeps/unix/sysv/linux/mips/bits/shm.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4e1df07..4108124 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-07  James Cowgill  <james410@cowgill.org.uk>
+
+	[BZ #17930]
+	* sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
+
 2015-04-07  Florian Weimer  <fweimer@redhat.com>
 
 	* include/scratch_buffer.h: New file.
diff --git a/sysdeps/unix/sysv/linux/mips/bits/shm.h b/sysdeps/unix/sysv/linux/mips/bits/shm.h
index 6dc66d0..c8d035b1 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/shm.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/shm.h
@@ -67,6 +67,7 @@ struct shmid_ds
 # define SHM_DEST	01000	/* segment will be destroyed on last detach */
 # define SHM_LOCKED	02000   /* segment will not be swapped */
 # define SHM_HUGETLB	04000	/* segment is mapped via hugetlb */
+# define SHM_NORESERVE	010000  /* don't check for reservations */
 
 struct shminfo
   {
-- 
2.1.4



More information about the Libc-alpha mailing list