MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / getpriority_user

Function getpriority_user

src/backend/libc/process/syscalls.rs:167–175  ·  view source on GitHub ↗
(uid: Uid)

Source from the content-addressed store, hash-verified

165)))]
166#[inline]
167pub(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",

Callers

nothing calls this directly

Calls 3

ErrnoClass · 0.50
ret_c_intFunction · 0.50
as_rawMethod · 0.45

Tested by

no test coverage detected