pub fn setfsgid(gid: Gid) -> Gid
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)