This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] [BZ #10283] localedef: align fixed maps to SHMLBA
- From: Rich Felker <dalias at aerifal dot cx>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Roland McGrath <roland at hack dot frob dot com>, Carlos O'Donell <carlos at redhat dot com>, David Miller <davem at davemloft dot net>, vapier at gentoo dot org, libc-alpha at sourceware dot org
- Date: Thu, 30 May 2013 09:54:20 -0400
- Subject: Re: [PATCH v2] [BZ #10283] localedef: align fixed maps to SHMLBA
- References: <20130528 dot 130721 dot 1721261559877509450 dot davem at davemloft dot net> <51A51186 dot 7070904 at redhat dot com> <20130528 dot 132601 dot 2200516495498570890 dot davem at davemloft dot net> <51A524FE dot 7040202 at redhat dot com> <20130528231403 dot 2C6C32C05D at topped-with-meat dot com> <51A544A5 dot 5050001 at redhat dot com> <20130529000346 dot 0D6AB2C073 at topped-with-meat dot com> <51A549FB dot 1010402 at redhat dot com> <20130529231838 dot 4487E2C07F at topped-with-meat dot com> <m261y0or7v dot fsf at linux-m68k dot org>
On Thu, May 30, 2013 at 09:35:16AM +0200, Andreas Schwab wrote:
> Roland McGrath <roland@hack.frob.com> writes:
>
> > This being the case, it would be helpful if the committee amended the
> > main MAP_FIXED paragraph to be more explicit about the constraints.
>
> The rationale already makes it clear that portable applications should
> not use MAP_FIXED.
I think it would be nice to clarify and make explicit conditions under
which MAP_FIXED should work for mapping over an existing map. This is
the only reasonable use of MAP_FIXED anyway, much like the only
reasonable use of dup2 is replacing an existing file descriptor.
Rich