Browse Source

Defined MAP_FIXED_NOREPLACE

Added definition for MAP_FIXED_NOREPLACE which was added in kernel 4.17

Signed-off-by: linted <linted@users.noreply.github.com>
linted 1 year ago
parent
commit
b53a767cb5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/sysdeps/linux/common/bits/mman-linux.h

+ 1 - 0
libc/sysdeps/linux/common/bits/mman-linux.h

@@ -46,6 +46,7 @@
 
 /* Other flags.  */
 #define MAP_FIXED	0x10		/* Interpret addr exactly.  */
+# define MAP_FIXED_NOREPLACE 0x100000 /* Used to solve problem with MAP_FIXED */
 #ifdef __USE_MISC
 # define MAP_FILE	0
 # ifdef __MAP_ANONYMOUS