Lines Matching refs:hostname
130 char hostname[BUF_SIZE_DEFAULT];
134 size_t bufSize = sizeof(hostname);
135 if (uv_os_gethostname(hostname, &bufSize) < 0 && EOK != strcpy_s(hostname, sizeof(hostname), "unknown")) {
145 if (snprintf_s(buf, len, len - 1, " %s@%s", username, hostname) < 0) {
674 bool GetHostName(string &hostname)
682 WRITE_LOG(LOG_FATAL, "get hostname failed: %d", ret);
686 hostname = string(buf, bufsize);
688 WRITE_LOG(LOG_INFO, "hostname: %s", hostname.c_str());
695 string hostname;
696 if (!GetHostName(hostname)) {
705 pubkey_info = hostname;