Function getuid [src]
Prototype
pub fn getuid() uid_t
Source
pub fn getuid() uid_t {
if (@hasField(SYS, "getuid32")) {
return @as(uid_t, @intCast(syscall0(.getuid32)));
} else {
return @as(uid_t, @intCast(syscall0(.getuid)));
}
}