(limit: Resource)
| 198 | |
| 199 | #[inline] |
| 200 | pub(crate) fn getrlimit(limit: Resource) -> Rlimit { |
| 201 | let mut result = MaybeUninit::<rlimit64>::uninit(); |
| 202 | unsafe { |
| 203 | ret_infallible(syscall!( |
| 204 | __NR_prlimit64, |
| 205 | c_uint(0), |
| 206 | limit, |
| 207 | null::<c::c_void>(), |
| 208 | &mut result |
| 209 | )); |
| 210 | rlimit_from_linux(result.assume_init()) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | #[inline] |
| 215 | pub(crate) fn setrlimit(limit: Resource, new: Rlimit) -> io::Result<()> { |
nothing calls this directly
no test coverage detected