From 63d40948e66ec2e15e5c6e03fa7f1a0590ccb0e7 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 17 Sep 2021 19:00:13 +0100 Subject: mman: add MAP_EXCL flag for freebsd. --- src/sys/mman.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sys/mman.rs') diff --git a/src/sys/mman.rs b/src/sys/mman.rs index ba6eb661..e3c36208 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -40,6 +40,10 @@ libc_bitflags!{ MAP_PRIVATE; /// Place the mapping at exactly the address specified in `addr`. MAP_FIXED; + /// To be used with `MAP_FIXED`, to forbid the system + /// to select a different address than the one specified. + #[cfg(target_os = "freebsd")] + MAP_EXCL; /// Synonym for `MAP_ANONYMOUS`. MAP_ANON; /// The mapping is not backed by any file. -- cgit v1.2.3