nix::unistd

Function getresuid

source
pub fn getresuid() -> Result<ResUid>
Expand description

Gets the real, effective, and saved user IDs.

(see getresuid(2))

#Returns

  • Ok((Uid, Uid, Uid)): tuple of real, effective and saved uids on success.
  • Err(x): libc error code on failure.