Skip to content

Commit 5ec038e

Browse files
committed
re-export RLIM_INFINITY from libc
1 parent 76f04df commit 5ec038e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1818
([#1808](https://github.com/nix-rust/nix/pull/1808))
1919
- Added `domainname` field of `UtsName` on Android and Linux
2020
([#1817](https://github.com/nix-rust/nix/pull/1817))
21+
- Re-export `RLIM_INFINITY` from `libc`
22+
([#1831](https://github.com/nix-rust/nix/pull/1831))
2123

2224
### Changed
2325

src/sys/resource.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::errno::Errno;
66
use crate::sys::time::TimeVal;
77
use crate::Result;
88
pub use libc::rlim_t;
9+
pub use libc::RLIM_INFINITY;
910
use std::mem;
1011

1112
cfg_if! {
@@ -175,7 +176,7 @@ libc_enum! {
175176

176177
/// Get the current processes resource limits
177178
///
178-
/// The special value `RLIM_INFINITY` indicates that no limit will be
179+
/// The special value [`RLIM_INFINITY`] indicates that no limit will be
179180
/// enforced.
180181
///
181182
/// # Parameters
@@ -224,7 +225,7 @@ pub fn getrlimit(resource: Resource) -> Result<(rlim_t, rlim_t)> {
224225
/// * `hard_limit`: The ceiling for the soft limit. Must be lower or equal to
225226
/// the current hard limit for non-root users.
226227
///
227-
/// The special value `RLIM_INFINITY` indicates that no limit will be
228+
/// The special value [`RLIM_INFINITY`] indicates that no limit will be
228229
/// enforced.
229230
///
230231
/// # Examples

0 commit comments

Comments
 (0)