Function nc::geteuid

source ·
pub unsafe fn geteuid() -> uid_t
Expand description

Get the effective user ID of the calling process.

§Example

let euid = unsafe { nc::geteuid() };
assert!(euid > 0);