Retrieves the real, effective, and saved group ids of the process.
fn getresgid(rgid: &mut u32, egid: &mut u32, sgid: &mut u32) -> i32
Returns success or an error value.
getresgid(2)