Lines Matching defs:hn
391 char hn[64];
399 hn[0] = '\0';
400 gethostname(hn, sizeof(hn) - 1);
404 "target_info{hostname=\"%s\"", hn);
407 if (grabfile("/proc/self/cmdline", hn, sizeof(hn)))
409 ",cmdline=\"%s\"", hn);
432 if (grabfile("/proc/loadavg", hn, sizeof(hn))) {
433 char *sp = strchr(hn, ' ');
438 lws_ptr_diff(sp, hn), hn);