(uid: Uid)
| 165 | )))] |
| 166 | #[inline] |
| 167 | pub(crate) fn getpriority_user(uid: Uid) -> io::Result<i32> { |
| 168 | libc_errno::set_errno(libc_errno::Errno(0)); |
| 169 | let r = unsafe { c::getpriority(c::PRIO_USER, uid.as_raw() as _) }; |
| 170 | if libc_errno::errno().0 != 0 { |
| 171 | ret_c_int(r) |
| 172 | } else { |
| 173 | Ok(r) |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | #[cfg(not(any( |
| 178 | target_os = "espidf", |