Skip to content

Commit

Permalink
mman: add MAP_EXCL flag for freebsd.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 17, 2021
1 parent b45d842 commit bf7c1dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sys/mman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ libc_bitflags!{
MAP_PRIVATE;
/// Place the mapping at exactly the address specified in `addr`.
MAP_FIXED;
/// To be used with MAP_FIXED context and will only succeeds if there is no existing mapping.
#[cfg(target_os = "freebsd")]
MAP_EXCL;
/// Synonym for `MAP_ANONYMOUS`.
MAP_ANON;
/// The mapping is not backed by any file.
Expand Down

0 comments on commit bf7c1dd

Please sign in to comment.