Function nc::call::getuid

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

Get the real user ID of the calling process.

§Example

let uid = unsafe { nc::getuid() };
assert!(uid > 0);