diff mbox

[BZ,#17930] MIPS: Define SHM_NORESERVE

Message ID 1428400847-27918-1-git-send-email-james410@cowgill.org.uk
State New
Headers show

Commit Message

James Cowgill April 7, 2015, 10 a.m. UTC
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(+)

Comments

Adhemerval Zanella Netto April 7, 2015, 11:57 a.m. UTC | #1
Hi,

LGTM.


On 07-04-2015 07:00, James Cowgill wrote:
> 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
>    {
Joseph Myers April 7, 2015, 5:24 p.m. UTC | #2
On Tue, 7 Apr 2015, James Cowgill wrote:

> 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, committed.
diff mbox

Patch

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
   {