pub fn get_gid() -> Result<usize, Error>
Gets the current process real group ID.
This function issues the getegid system call returning the process real group id.
getegid
Basic usage:
let gid = get_gid().unwrap();