Skip to content
  • Joseph Myers's avatar
    Add MAP_FIXED_NOREPLACE from Linux 4.17 to bits/mman.h. · bef1cbf4
    Joseph Myers authored
    Linux 4.17 adds MAP_FIXED_NOREPLACE (value 0x100000 on most
    architectures, 0x200000 on alpha).  This patch adds that macro to
    glibc's bits/mman.h headers.
    
    Tested for x86_64.
    
    	* sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): New macro.
    	* sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    	* sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
    	(MAP_FIXED_NOREPLACE): Likewise.
    bef1cbf4
To find the state of this project's repository at the time of any of these versions, check out the tags.