diff --git a/CHANGELOG.md b/CHANGELOG.md index e0c2e3b88f..a64ffb3f53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). ([#1808](https://github.com/nix-rust/nix/pull/1808)) - Added `domainname` field of `UtsName` on Android and Linux ([#1817](https://github.com/nix-rust/nix/pull/1817)) +- Re-export `RLIM_INFINITY` from `libc` + ([#1830](https://github.com/nix-rust/nix/pull/1830)) ### Changed diff --git a/src/sys/resource.rs b/src/sys/resource.rs index e9a11d95d4..d8a3208675 100644 --- a/src/sys/resource.rs +++ b/src/sys/resource.rs @@ -173,9 +173,10 @@ libc_enum! { } } +pub use libc::RLIM_INFINITY; /// 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