Skip to content

Commit

Permalink
re-export RLIM_INFINITY from libc
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Oct 2, 2022
1 parent 76f04df commit d2d06a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/sys/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d2d06a5

Please sign in to comment.