get_gid

Function get_gid 

Source
pub fn get_gid() -> Result<usize, Error>
Expand description

Gets the current process real group ID.

This function issues the getegid system call returning the process real group id.

ยงExamples

Basic usage:

let gid = get_gid().unwrap();