This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH][BZ #17930] MIPS: Define SHM_NORESERVE
- From: James Cowgill <james410 at cowgill dot org dot uk>
- To: libc-alpha at sourceware dot org
- Cc: James Cowgill <james410 at cowgill dot org dot uk>
- Date: Tue, 7 Apr 2015 11:00:47 +0100
- Subject: [PATCH][BZ #17930] MIPS: Define SHM_NORESERVE
- Authentication-results: sourceware.org; auth=none
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