summaryrefslogtreecommitdiff
path: root/src/sys/mman.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-01-31 21:34:57 -0600
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-02-02 17:53:47 -0600
commite6f01f20e1e1d1ebd4c8685c742c9381f3967252 (patch)
tree5699527f1f363eded5a4c71a5d52d05507a34b4f /src/sys/mman.rs
parent7d0344141c63be4b08f1668a298766ebc81ffcc3 (diff)
downloadnix-e6f01f20e1e1d1ebd4c8685c742c9381f3967252.zip
Document mman.rs
No documentation provided for MADV_CAN_REUSE, as Darwin doesn't actually document its functionality.
Diffstat (limited to 'src/sys/mman.rs')
-rw-r--r--src/sys/mman.rs5
1 files changed, 5 insertions, 0 deletions
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,
}
}