Home | History | Annotate | Download | only in rwhod

Lines Matching defs:we

79 /* Time interval limit; ruptime will think that we are down > than this */
86 * We communicate with each neighbor in a list constructed at the time we're
294 * Otherwise we might overflow or read past the end.
315 struct whoent *we;
322 we = wd.wd_we;
324 we->we_idle = ntohl(we->we_idle);
325 we->we_utmp.out_time =
326 ntohl(we->we_utmp.out_time);
327 we++;
362 struct whoent *we = mywd.wd_we, *wlast;
381 (void)strncpy(we->we_utmp.out_line, ep->line,
382 sizeof(we->we_utmp.out_line));
383 (void)strncpy(we->we_utmp.out_name, ep->name,
384 sizeof(we->we_utmp.out_name));
385 we->we_utmp.out_time = htonl(ep->tv.tv_sec);
386 if (we >= wlast)
388 we++;
390 utmpent = we - mywd.wd_we;
402 we = mywd.wd_we;
404 if (stat(we->we_utmp.out_line, &stb) >= 0)
405 we->we_idle = htonl(now - stb.st_atime);
406 we++;
411 cc = (char *)we - (char *)&mywd;
514 /* gag, wish we could get rid of Internet dependencies */
554 struct whoent *we;
568 for (we = w->wd_we, cc /= sizeof(struct whoent); cc > 0; cc--, we++) {
569 time_t t = ntohl(we->we_utmp.out_time);
570 printf("%-8.8s %s:%s %.12s", we->we_utmp.out_name,
571 w->wd_hostname, we->we_utmp.out_line, ctime(&t)+4);
572 we->we_idle = ntohl(we->we_idle) / 60;
573 if (we->we_idle) {
574 if (we->we_idle >= 100*60)
575 we->we_idle = 100*60 - 1;
576 if (we->we_idle >= 60)
577 printf(" %2d", we->we_idle / 60);
580 printf(":%02d", we->we_idle % 60);