From e6f01f20e1e1d1ebd4c8685c742c9381f3967252 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Mon, 31 Jan 2022 21:34:57 -0600 Subject: Document mman.rs No documentation provided for MADV_CAN_REUSE, as Darwin doesn't actually document its functionality. --- src/sys/mman.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sys/mman.rs') diff --git a/src/sys/mman.rs b/src/sys/mman.rs index 523b4683..a7469a17 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -299,6 +299,7 @@ libc_enum!{ #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))] #[cfg_attr(docsrs, doc(cfg(all())))] MADV_CORE, + /// This process should not be killed when swap space is exhausted. #[cfg(any(target_os = "freebsd"))] #[cfg_attr(docsrs, doc(cfg(all())))] MADV_PROTECT, @@ -314,14 +315,18 @@ libc_enum!{ #[cfg(any(target_os = "ios", target_os = "macos"))] #[cfg_attr(docsrs, doc(cfg(all())))] MADV_ZERO_WIRED_PAGES, + /// Pages can be reused (by anyone). #[cfg(any(target_os = "ios", target_os = "macos"))] #[cfg_attr(docsrs, doc(cfg(all())))] MADV_FREE_REUSABLE, + /// Caller wants to reuse those pages. #[cfg(any(target_os = "ios", target_os = "macos"))] #[cfg_attr(docsrs, doc(cfg(all())))] MADV_FREE_REUSE, + // Darwin doesn't document this flag's behavior. #[cfg(any(target_os = "ios", target_os = "macos"))] #[cfg_attr(docsrs, doc(cfg(all())))] + #[allow(missing_docs)] MADV_CAN_REUSE, } } -- cgit v1.2.3