Function redox_users::get_uid

source ·
pub fn get_uid() -> Result<usize, Error>
Expand description

Gets the current process real user ID.

This function issues the getuid system call returning the process real user id.

§Examples

Basic usage:

let uid = get_uid().unwrap();