diff options
author | Steve Lau <stevelauc@outlook.com> | 2022-10-02 10:46:22 +0800 |
---|---|---|
committer | Steve Lau <stevelauc@outlook.com> | 2022-10-02 10:46:22 +0800 |
commit | 5ec038e915542391a98499aaf6149542e4cb16ea (patch) | |
tree | 2c873b37a3c60dcfc9a9855e70b036e27731dc95 /src/sys | |
parent | 76f04df295c47ad5c9b74f67a37854b2a66137c9 (diff) | |
download | nix-5ec038e915542391a98499aaf6149542e4cb16ea.zip |
re-export RLIM_INFINITY from libc
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/resource.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sys/resource.rs b/src/sys/resource.rs index e9a11d95..788444d8 100644 --- a/src/sys/resource.rs +++ b/src/sys/resource.rs @@ -6,6 +6,7 @@ use crate::errno::Errno; use crate::sys::time::TimeVal; use crate::Result; pub use libc::rlim_t; +pub use libc::RLIM_INFINITY; use std::mem; cfg_if! { @@ -175,7 +176,7 @@ libc_enum! { /// Get the current processes resource limits /// -/// The special value `RLIM_INFINITY` indicates that no limit will be +/// The special value [`RLIM_INFINITY`] indicates that no limit will be /// enforced. /// /// # Parameters @@ -224,7 +225,7 @@ pub fn getrlimit(resource: Resource) -> Result<(rlim_t, rlim_t)> { /// * `hard_limit`: The ceiling for the soft limit. Must be lower or equal to /// the current hard limit for non-root users. /// -/// The special value `RLIM_INFINITY` indicates that no limit will be +/// The special value [`RLIM_INFINITY`] indicates that no limit will be /// enforced. /// /// # Examples |