(pgid: Option<Pid>)
| 138 | |
| 139 | #[inline] |
| 140 | pub(crate) fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> { |
| 141 | unsafe { |
| 142 | Ok(20 |
| 143 | - ret_c_int(syscall_readonly!( |
| 144 | __NR_getpriority, |
| 145 | c_uint(PRIO_PGRP), |
| 146 | c_int(Pid::as_raw(pgid)) |
| 147 | ))?) |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | #[inline] |
| 152 | pub(crate) fn getpriority_process(pid: Option<Pid>) -> io::Result<i32> { |
nothing calls this directly
no test coverage detected