This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #17930] MIPS: Define SHM_NORESERVE
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Tue, 07 Apr 2015 08:57:21 -0300
- Subject: Re: [PATCH][BZ #17930] MIPS: Define SHM_NORESERVE
- Authentication-results: sourceware.org; auth=none
- References: <1428400847-27918-1-git-send-email-james410 at cowgill dot org dot uk>
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
> {