mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Add MAP_FIXED_NOREPLACE from Linux 4.17 to bits/mman.h.
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.
This commit is contained in:
parent
0e0577c93f
commit
bef1cbf4da
31
ChangeLog
31
ChangeLog
@ -1,5 +1,36 @@
|
||||
2018-06-05 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
* sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
|
||||
version to 4.17.
|
||||
|
||||
|
@ -38,6 +38,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -36,6 +36,8 @@
|
||||
# define MAP_NONBLOCK 0x40000 /* Do not block on IO. */
|
||||
# define MAP_STACK 0x80000 /* Allocation is for a stack. */
|
||||
# define MAP_HUGETLB 0x100000 /* Create huge page mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x200000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Flags for `mlockall'. */
|
||||
|
@ -36,6 +36,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -62,6 +62,8 @@
|
||||
# define MAP_NONBLOCK 0x20000 /* Do not block on IO */
|
||||
# define MAP_STACK 0x40000 /* Create for process/thread stacks */
|
||||
# define MAP_HUGETLB 0x80000 /* Create a huge page mapping */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Flags to "msync" */
|
||||
|
@ -37,6 +37,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -36,6 +36,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -38,6 +38,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -34,6 +34,8 @@
|
||||
# define MAP_NONBLOCK 0x20000 /* do not block on IO */
|
||||
# define MAP_STACK 0x40000 /* Allocation is for a stack. */
|
||||
# define MAP_HUGETLB 0x80000 /* Create huge page mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
#define __MAP_ANONYMOUS 0x0800
|
||||
|
@ -38,6 +38,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -36,6 +36,8 @@
|
||||
# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
|
||||
# define MAP_STACK 0x20000 /* Allocation is for a stack. */
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Flags for `mlockall'. */
|
||||
|
@ -32,6 +32,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -37,6 +37,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -36,6 +36,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
@ -36,6 +36,8 @@
|
||||
# define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
|
||||
# define MAP_STACK 0x20000 /* Allocation is for a stack. */
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Flags for `mlockall'. */
|
||||
|
@ -41,6 +41,8 @@
|
||||
# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
|
||||
# define MAP_SYNC 0x80000 /* Perform synchronous page
|
||||
faults for the mapping. */
|
||||
# define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED but do not unmap
|
||||
underlying mapping. */
|
||||
#endif
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
|
Loading…
Reference in New Issue
Block a user