Function nix::unistd::setfsgid  
pub fn setfsgid(gid: Gid) -> GidThe portability is definied by: 
#[cfg(any(target_os = "linux", target_os = "android"))]Documentation
Set the group identity used for filesystem checks per-thread. On both success and failure, this call returns the previous filesystem group ID of the caller.
See also setfsgid(2)