Lines Matching defs:we
78 /* Time interval limit; ruptime will think that we are down > than this */
85 * We communicate with each neighbor in a list constructed at the time we're
293 * Otherwise we might overflow or read past the end.
314 struct whoent *we;
321 we = wd.wd_we;
323 we->we_idle = ntohl(we->we_idle);
324 we->we_utmp.out_time =
325 ntohl(we->we_utmp.out_time);
326 we++;
361 struct whoent *we = mywd.wd_we, *wlast;
380 (void)strncpy(we->we_utmp.out_line, ep->line,
381 sizeof(we->we_utmp.out_line));
382 (void)strncpy(we->we_utmp.out_name, ep->name,
383 sizeof(we->we_utmp.out_name));
384 we->we_utmp.out_time = htonl(ep->tv.tv_sec);
385 if (we >= wlast)
387 we++;
389 utmpent = we - mywd.wd_we;
401 we = mywd.wd_we;
403 if (stat(we->we_utmp.out_line, &stb) >= 0)
404 we->we_idle = htonl(now - stb.st_atime);
405 we++;
410 cc = (char *)we - (char *)&mywd;
513 /* gag, wish we could get rid of Internet dependencies */
553 struct whoent *we;
567 for (we = w->wd_we, cc /= sizeof(struct whoent); cc > 0; cc--, we++) {
568 time_t t = ntohl(we->we_utmp.out_time);
569 printf("%-8.8s %s:%s %.12s", we->we_utmp.out_name,
570 w->wd_hostname, we->we_utmp.out_line, ctime(&t)+4);
571 we->we_idle = ntohl(we->we_idle) / 60;
572 if (we->we_idle) {
573 if (we->we_idle >= 100*60)
574 we->we_idle = 100*60 - 1;
575 if (we->we_idle >= 60)
576 printf(" %2d", we->we_idle / 60);
579 printf(":%02d", we->we_idle % 60);