This header file enables sharing of portable declarations and
definitions across all Linux architectures, including hppa (which does
not use <bits/mman-linux.h>).
2017-11-24 Florian Weimer<fweimer@redhat.com>
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
bits/mman-shared.h.
* sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
<bits/mman-shared.h>.
(MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
to ...
* sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
* sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
<bits/mman-shared.h>.