//! Module to abstract libc function that get user login name.
use CStr;
// libc crate doesnt have getlogin_r, cuserid on linux target
// use libc::{getlogin, getlogin_r, cuserid};
use getlogin;
use BString;
/// Returns the the name of the user logged in on the controlling terminal of the process
/// if found.