Lines Matching defs:hostname
58 std::string hostname;59 if (getenv("HOSTNAME")) hostname = getenv("HOSTNAME");62 if (hostname.empty() && gethostname(buf, sizeof(buf)) != -1) hostname = buf;64 if (hostname.empty()) hostname = "unknown";71 if (username.empty()) hostname = "unknown";73 return " " + username + "@" + hostname;