Add MAP_SYNC from Linux 4.15

Dmitry V. Levin ldv@altlinux.org
Tue Feb 6 00:26:00 GMT 2018


On Thu, Feb 01, 2018 at 06:15:28PM +0000, Joseph Myers wrote:
> [Proposed for once the release changes for 2.27, and the post-release 
> changes opening master for development for 2.28, have been committed.]
> 
> This patch adds the MAP_SYNC macro from Linux 4.15 to various
> bits/mman.h headers.  Note that this is *not* added to all
> architectures: in Linux 4.15, this macro is only in
> asm-generic/mman.h, and only some architectures' asm/mman.h include
> the asm-generic file - the architectures not using the asm-generic
> file will need their own values of MAP_SYNC allocated to support this
> functionality (some of them also already have conflicting mmap flags
> so the value there will have to be different from the generic
> 0x80000).  Specifically, for glibc architectures, alpha hppa mips
> powerpc sparc tile lack allocations of values for MAP_SYNC.
> 
> Tested for x86_64.

I've double-checked that this change matches Linux 4.15 headers,
so it should be OK to commit as is, but ...

> 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): New macro.
> 	* sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
> 	Likewise.
> 	* sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): Likewise.
> 	* sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): Likewise.
> 	* sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): Likewise.
> 	* sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): Likewise.
> 	* sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): Likewise.
> 	* sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
> 	(MAP_SYNC): Likewise.
> 	* sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
> 	Likewise.
> 	* sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
> 	Likewise.

... why don't we have a file with common bits similar to asm-generic/mman.h?


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180206/7a84184f/attachment.sig>


More information about the Libc-alpha mailing list