Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-06-19 09:00:39 +0400
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-24 16:00:02 +0300
commitde24ef326df2e76f4e1963b9e306d344c870e265 (patch)
tree58bc4cd9ce39cd7e8942edb8b4561d86de44e884 /newlib/libc/sys/rtems
parent472476a5a71d2490d2428d7552d501089393e884 (diff)
Add MAP_EXCL flag for mmap(2).
It should be combined with MAP_FIXED, and prevents the request from deleting existing mappings in the region, failing instead. Reviewed by: alc Discussed with: jhb Tested by: markj, pho (previous version, as part of the bigger patch) Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'newlib/libc/sys/rtems')
-rw-r--r--newlib/libc/sys/rtems/include/sys/mman.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/mman.h b/newlib/libc/sys/rtems/include/sys/mman.h
index 6c757c8ba..a13e3d161 100644
--- a/newlib/libc/sys/rtems/include/sys/mman.h
+++ b/newlib/libc/sys/rtems/include/sys/mman.h
@@ -89,6 +89,7 @@
/*
* Extended flags
*/
+#define MAP_EXCL 0x00004000 /* for MAP_FIXED, fail if address is used */
#define MAP_NOCORE 0x00020000 /* dont include these pages in a coredump */
#define MAP_PREFAULT_READ 0x00040000 /* prefault mapping for reading */
#ifdef __LP64__