[PATCH] Linux: Introduce <bits/mman-shared.h>
Florian Weimer
fweimer@redhat.com
Fri Nov 24 17:06:00 GMT 2017
On 11/24/2017 05:59 PM, Joseph Myers wrote:
> On Fri, 24 Nov 2017, Florian Weimer wrote:
>
>> This header file enables sharing of portable declarations and
>> definitions across all Linux architectures, including hppa (which does
>> not use <bits/mman-linux.h>).
>
> OK, please commit. But there are more definitions that are the same
> between bits/mman-linux.h and hppa/bits/mman.h, which it might make sense
> to move to the new file as well - it looks like PROT_*, MCL_*, MREMAP_*,
> POSIX_MADV_* are the same. (Some MADV_* are the same, some are
> different.)
MCL_* current shows considerable variance across architectures.
POSIX_MADV_* has an outlier on alpha (POSIX_MADV_DONTNEED is 6 and not
4). I think we should restrict <bits/mman-shared.h> to thinks which are
actually shared.
PROT_* and MREMAP_* look the same to me. They could be consolidated.
Thanks,
Florian
More information about the Libc-alpha
mailing list