diff options
author | David Carlier <devnexen@gmail.com> | 2021-09-19 12:42:05 +0100 |
---|---|---|
committer | David CARLIER <devnexen@gmail.com> | 2021-09-19 15:59:06 +0100 |
commit | 1529038d23cd0a642acd922655151cf2bab7b293 (patch) | |
tree | 389fb89bf9a7774720f188af3d1693d5a1b0ac20 /src/sys | |
parent | 1c0bc5c2f5157270843898f89120c21a43f04c22 (diff) | |
download | nix-1529038d23cd0a642acd922655151cf2bab7b293.zip |
mman add MAP_CONCEAL mmap flag for openbsd
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/mman.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/mman.rs b/src/sys/mman.rs index 30d53881..44af62c8 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -143,6 +143,9 @@ libc_bitflags!{ /// Allows to use large pages, underlying alignment based on size. #[cfg(target_os = "freesd")] MAP_ALIGNED_SUPER; + /// Pages will be discarded in the core dumps. + #[cfg(target_os = "openbsd")] + MAP_CONCEAL; } } |