(pid: Option<Pid>, priority: i32)
| 186 | |
| 187 | #[inline] |
| 188 | pub(crate) fn setpriority_process(pid: Option<Pid>, priority: i32) -> io::Result<()> { |
| 189 | unsafe { |
| 190 | ret(syscall_readonly!( |
| 191 | __NR_setpriority, |
| 192 | c_uint(PRIO_PROCESS), |
| 193 | c_int(Pid::as_raw(pid)), |
| 194 | c_int(priority) |
| 195 | )) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | #[inline] |
| 200 | pub(crate) fn getrlimit(limit: Resource) -> Rlimit { |