Function getUserInfo [src]

POSIX function which gets a uid from username.

Prototype

pub fn getUserInfo(name: []const u8) !UserInfo

Parameters

name: []const u8

Source

pub fn getUserInfo(name: []const u8) !UserInfo { return switch (native_os) { .linux, .macos, .watchos, .visionos, .tvos, .ios, .freebsd, .netbsd, .openbsd, .haiku, .solaris, .illumos, .serenity, => posixGetUserInfo(name), else => @compileError("Unsupported OS"), }; }