devela::_dep::nc

Function setpriority

pub unsafe fn setpriority(which: i32, who: i32, prio: i32) -> Result<(), i32> 
Available on crate feature dep_nc only.
Expand description

Set program scheduling priority.

§Examples

let ret = unsafe { nc::setpriority(nc::PRIO_PROCESS, nc::getpid(), -19) };
assert!(ret.is_err());
assert_eq!(ret, Err(nc::EACCES))