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
This commit is contained in:
parent
472476a5a7
commit
de24ef326d
|
@ -89,6 +89,7 @@
|
||||||
/*
|
/*
|
||||||
* Extended flags
|
* 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_NOCORE 0x00020000 /* dont include these pages in a coredump */
|
||||||
#define MAP_PREFAULT_READ 0x00040000 /* prefault mapping for reading */
|
#define MAP_PREFAULT_READ 0x00040000 /* prefault mapping for reading */
|
||||||
#ifdef __LP64__
|
#ifdef __LP64__
|
||||||
|
|
Loading…
Reference in New Issue