usecrate::errors::*;uselibc::gid_t;/// Set the supplemental groups.
////// ```no_run
/// boxxy::ffi::setgroups(&[1,2,3]).unwrap();
/// ```
pubfnsetgroups(groups:&[gid_t])->Result<()>{let ret =unsafe{libc::setgroups(groups.len()asi32, groups.as_ptr())};if ret <0{Err(errno())}else{Ok(())}}