Function nc::setfsgid

source ·
pub unsafe fn setfsgid(fsgid: gid_t) -> Result<gid_t, Errno>
Expand description

Set group identify used for filesystem checkes.

§Example

let ret = unsafe { nc::setfsgid(0) };
assert!(ret.is_ok());
let gid = unsafe { nc::getgid() };
assert_eq!(ret, Ok(gid));