Lines Matching full:hs
46 static struct hs { struct
49 } *hs; variable
151 #define HS(a) ((const struct hs *)(a)) macro
158 strcmp(HS(a1)->hs_wd.wd_hostname, HS(a2)->hs_wd.wd_hostname)); in hscmp()
165 if (ISDOWN(HS(a1))) in lcmp()
166 if (ISDOWN(HS(a2))) in lcmp()
170 else if (ISDOWN(HS(a2))) in lcmp()
174 (HS(a2)->hs_wd.wd_loadav[0] - HS(a1)->hs_wd.wd_loadav[0])); in lcmp()
180 struct hs *hsp; in ruptime()
205 if ((hs = in ruptime()
206 realloc(hs, (hspace += 40) * sizeof(*hs))) == NULL) in ruptime()
208 hsp = hs + nhosts; in ruptime()
249 qsort(hs, nhosts, sizeof(hs[0]), cmp); in ruptime()
254 hsp = &hs[i]; in ruptime()
273 free(hs); in ruptime()
274 hs = NULL; in ruptime()
281 if (ISDOWN(HS(a1))) in ucmp()
282 if (ISDOWN(HS(a2))) in ucmp()
286 else if (ISDOWN(HS(a2))) in ucmp()
289 return (rflg * (HS(a2)->hs_nusers - HS(a1)->hs_nusers)); in ucmp()
297 (ISDOWN(HS(a2)) ? HS(a2)->hs_wd.wd_recvtime - now in tcmp()
298 : HS(a2)->hs_wd.wd_sendtime - HS(a2)->hs_wd.wd_boottime) in tcmp()
300 (ISDOWN(HS(a1)) ? HS(a1)->hs_wd.wd_recvtime - now in tcmp()
301 : HS(a1)->hs_wd.wd_sendtime - HS(a1)->hs_wd.wd_boottime) in tcmp()