Retrieves or sets resource limits of a process.
fn prlimit(pid: i32, res: i32, new: Option<&rlimit64>, old: Option<&mut rlimit64>) -> i32
| Name | Description |
|---|---|
| pid | The affected process. |
| res | The affected resource. |
| new | The (optional) new value of the resource. |
| old | A place where the previous value of the object will be stored. |
Returns success or an error value.