[][src]Function simple_libc::process::getlogin

pub fn getlogin() -> Result<OsString>

[NOT RECOMMENDED] Returns the username of the currently logged-in user.

WARNING: Use of this function is not recommended (see the documentation of the C function getlogin() for details). In most cases, especially when security is important, you should call getuid() and pass the result to pwd::Passwd::lookup_uid().