devela::_dep::nc

Function setgroups

pub unsafe fn setgroups(group_list: &[u32]) -> Result<(), i32> 
Available on crate feature dep_nc only.
Expand description

Set list of supplementary group Ids.

§Examples

let list = [0, 1, 2];
let ret = unsafe { nc::setgroups(&list) };
assert!(ret.is_err());
assert_eq!(ret, Err(nc::EPERM));